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

--- Comment #4 from Michael Karcher <sourceware-bugzilla at mkarcher dot 
dialup.fu-berlin.de> ---
Thanks for your comment, which seems to be spot-on. It allowed me to create a
minimal example that exhibits the same assertation failure if linked with
--gc-sections:

        .section data.kept
        .globl  foo
foo:
        .long   foo@GOT

        .section data.omitted
        .long   foo@GOTOFF

It seems like sh_elf_gc_sweep_hook should not decrement the refcount for GOTOFF
and GOTPC relocation types. Patch with testcase incoming later

-- 
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