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: Linker Bug or Design Intent (Absolute symbols in zero sized sections)


Daniel Jacobowitz wrote:
On Tue, Sep 26, 2006 at 07:51:59AM -0700, H. J. Lu wrote:

I think for --emit-relocs, we can keep an empty output section if its
address is taken.

Of course, we need to update linker doc.


I think we're being too specific to this case.

Why are we changing what the linker script clearly defines as section
relative symbols to absolute symbols?  This isn't the only use case
I've encountered where that will break.  We should either discard the
symbols, or leave the empty section.


I think retaining the zero sized section might be more logical otherwise a user who has specifically defined a section relative symbol in linker script file will be surprised to know that in some cases symbol is not present at all.


Thanks
Vivek


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