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

            Bug ID: 19075
           Summary: Archive member not fetched when strong undefined
                    symbol found after a weak undef one
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: rafael.espindola at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 8683
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8683&action=edit
testcase

I the attached testcase:

* test1.s introduces an weak undefined reference to foo.
* test2.s introduces a strong one
* test3.s defines foo and is put in a library

running

ld test1.o --start-group test3.a test2.o --end-group

works with bfd ld but not gold.

Removing the weak undefined symbol from test1.s causes gold to fetch the
member.

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