PATCH: PR ld/17842: [ARM] Gap between sections and section headers when ld -s is used when ld -s is used

H.J. Lu hjl.tools@gmail.com
Thu Jan 15 01:41:00 GMT 2015


On Wed, Jan 14, 2015 at 5:04 PM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Jan 14, 2015 at 10:07:39AM -0800, H.J. Lu wrote:
>>       * elflink.c (bfd_elf_final_link): Assign the file position for
>>       the symbol table only there are symbols to be emitted.
>
> Not OK.  Search for places where elf_link_output_sym is called.
>

For info->strip == strip_all, can backend still output local symbols?

 /* If backend needs to output some local symbols not present in the hash
     table, do it now.  */
  if (bed->elf_backend_output_arch_local_syms)
    {
      typedef int (*out_sym_func)
        (void *, const char *, Elf_Internal_Sym *, asection *,
         struct elf_link_hash_entry *);

      if (! ((*bed->elf_backend_output_arch_local_syms)
             (abfd, info, &flinfo, (out_sym_func) elf_link_output_sym)))
        return FALSE;
    }


-- 
H.J.



More information about the Binutils mailing list