This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: makes --gc-sections compatible with -r/-q



On Jan 8, 2008, at 5:45 PM, H.J. Lu wrote:


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.

I understand your point.


Do you want --gc-sections -r requires a -e ?
As a consequence, ENTRY in linker script won't be allowed.

As I don't last the consequence, we may also remove the ENTRY command in .xr scripts.

Thoughts ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]