This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: crash with --gc-sections
- To: pb at futuretv dot com
- Subject: Re: crash with --gc-sections
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 9 Nov 2000 09:33:39 -0800
- CC: binutils at sources dot redhat dot com
- References: <E13ttt9-000668-00@fountain.labs.futuretv.com>
From: Philip Blundell <pb@futuretv.com>
Date: Thu, 09 Nov 2000 15:45:19 +0000
I'm experiencing a linker segfault with --gc-sections. The problem seems to
be that elf_gc_mark is trying to visit the *ABS* section, which is stored in
read-only memory.
The trivial patch below causes the special sections like *ABS* and *UND* to
start out with their gc_mark flag already set. Does that seem reasonable?
The patch may be right, but why is the garbage collector visiting the
*ABS* section? I can't see any obvious reason that that should
happen. I generally recommend against fixing symptoms without
understanding the underlying problem.
Ian