This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: makes --gc-sections compatible with -r/-q
On Tue, Jan 08, 2008 at 04:58:01PM +0100, Tristan Gingold wrote:
>
> On Jan 8, 2008, at 4:34 PM, H.J. Lu wrote:
>
>> On Tue, Jan 08, 2008 at 04:15:28PM +0100, Tristan Gingold wrote:
>>> This option can be set when doing a partial link (enabled with option
>>> @samp{-r}). In this case the root of symbols kept must be specified with
>>> the option @samp{-e}.
>>
>> Did you enforce it in linker?
>
> No, there is always a default entry set by the script (usually start). I
> think it's simpler to have the
> same semantic as normal link.
The current linker does
[hjl@gnu-6 tmp]$ ld -r --gc-sections y.o
ld: --gc-sections and -r may not be used together
[hjl@gnu-6 tmp]$
So are you proposing linker will now generate incorrect output
siliently instead? I don't like it.
H.J.