This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/17842: [ARM] Gap between sections and section headers when ld -s is used when ld -s is used
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Wed, 14 Jan 2015 17:41:26 -0800
- Subject: Re: PATCH: PR ld/17842: [ARM] Gap between sections and section headers when ld -s is used when ld -s is used
- Authentication-results: sourceware.org; auth=none
- References: <20141230220548 dot GA3126 at intel dot com> <20150114180739 dot GA21910 at intel dot com> <20150115010403 dot GP23768 at bubble dot grove dot modra dot org>
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.