bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/12488] New: Fails with plugins and weak, hidden symbols


From: rafael.espindola at gmail dot com
Subject: [Bug gold/12488] New: Fails with plugins and weak, hidden symbols
Date: Mon, 14 Feb 2011 01:22:49 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12488

           Summary: Fails with plugins and weak, hidden symbols
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden


This works:

$ ./gold/ld-new -plugin ./gold/testsuite/plugin_test.so --no-demangle -shared
-o test.so bar.o  foo.o
API version:   1
gold version:  111
bar.o: claim file hook called (offset = 0, size = 936)
foo.o: claim file hook called (offset = 0, size = 1176)
all symbols read hook called
cleanup hook called

But this fails:

$ ./gold/ld-new -plugin ./gold/testsuite/plugin_test.so --no-demangle -shared
-o test.so bar.syms  foo.o
API version:   1
gold version:  111
bar.syms: claim file hook called (offset = 0, size = 596)
bar.syms: claiming file, adding 1 symbols
foo.o: claim file hook called (offset = 0, size = 1176)
all symbols read hook called
bar.syms: xyz: PREVAILING_DEF_REG
bar.o: adding new input file
./gold/ld-new: error: foo.o: requires dynamic reloc which may overflow at
runtime; recompile with -fPIC
./gold/ld-new: foo.o: in function bar:foo.ll(.text+0x4): warning: relocation
refers to discarded section
./gold/ld-new: error: hidden symbol 'xyz' is not defined locally
cleanup hook called

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]