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][RFC] Explicitly set ELF symbol size to zero for undefined symbols -- libbfd, gold


On Mon, Jul 21, 2008 at 19:49, Alan Modra <amodra@bigpond.net.au> wrote:
> The following modification of Simon's original patch ought to work.
> Please verify and commit.
>
> 2008-07-22  Simon Baldwin  <simonb@google.com>
>
>        * elflink.c (elf_link_output_extsym): Set st_size to zero for
>        symbols from dynamic libraries.

I wasn't sure whether Simon has write access, so I tested this and
checked it in.  (Actually, looking back over the e-mail, seems like he
probably does... hopefully he won't mind.  8-)

built for i686-linux before after, test results identical.

Manually verified that a simple test executable has zero sizes for
undefined symbols in both the normal and dynamic symbol tables.


thanks,

chris


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