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: elflink.c/elf_add_symbol_hook symbol skipping


Hi Doug,

I've been trying to implement this with elf_add_symbol_hook by returning a null name for a symbol that should be skipped, e.g. in accordance with the elflink.c/elf_link_add_object_symbols() comment:

          /* The hook function sets the name to NULL if this symbol
             should be skipped for some reason.  */
          if (name == NULL)
            continue;

Setting the name to null wrecks tremendous havoc later in the link. I'm looking for some ideas on how to make this work.

Strange - it appears that this feature is used by at least the mips backend, (see bfd/elfxx-mips.c:_bfd_mips_elf_add_symbol_hook). Maybe you can compare your code with that code ?


Cheers
  Nick



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