https://sourceware.org/bugzilla/show_bug.cgi?id=17773

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |amodra at gmail dot com

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
It is caused by

commit a485e98ea0cbb61ea9da1e7858da545e0bcf1a46
Author: Alan Modra <amo...@gmail.com>
Date:   Wed Sep 10 14:26:25 2014 +0930

    Move ELF section headers to end of object file

    Currently, section ordering differs a little for non-loaded reloc
    sections output by ld -emit-relocs or ld -r and that after passing
    such objects through objcopy.  Not that it really matters, but it
    would be better for a simple objcopy to produce an unchanged output
    object file.  Also, section headers are put somewhere in the middle of
    the non-loaded sections, again slightly differently for ld and
    objcopy.  This patch fixes these discrepancies and puts section
    headers last, which is where gold puts them, and is where
    bfd_from_remote_memory wrongly assumed they will be found.

    bfd/
        * elf.c (assign_file_positions_except_relocs): Move section header
        placement to..
        (_bfd_elf_assign_file_positions_for_relocs): ..here.  Make static.
        * elf-bfd.h (_bfd_elf_assign_file_positions_for_relocs): Delete.
        * elflink.c (bfd_elf_final_link): Don't call above function.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to