[Bug gold/10893] New: gold doesn't work with multi-arched libc.a

View: New views
7 Messages — Rating Filter:   Alert me  

[Bug gold/10893] New: gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gold can't link again libc.a with multi-arch enabled:

gcctestdir/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/libc.a(elf-init.o): in
function __libc_csu_init:(.text+0x65): error: undefined reference to
'__rela_iplt_end'
gcctestdir/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/libc.a(elf-init.o): in
function __libc_csu_init:(.text+0x6e): error: undefined reference to
'__rela_iplt_start'
gcctestdir/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/libc.a(elf-init.o): in
function __libc_csu_init:(.text+0x8a): error: undefined reference to
'__rela_iplt_start'
gcctestdir/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/libc.a(elf-init.o): in
function __libc_csu_init:(.text+0x98): error: undefined reference to
'__rela_iplt_start'
gcctestdir/ld:
/usr/lib/gcc/x86_64-redhat-linux/4.4.1/../../../../lib64/libc.a(elf-init.o): in
function __libc_csu_init:(.text+0x9e): error: undefined reference to
'__rela_iplt_start'
collect2: ld returned 1 exit status
make[7]: *** [two_file_static_test] Error 1

__rela_iplt_start/__rela_iplt_end should be defined by linker.

--
           Summary: gold doesn't work with multi-arched libc.a
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian at airs dot com
        ReportedBy: hjl dot tools at gmail dot com
                CC: bug-binutils at gnu dot org
GCC target triplet: x86_64-pc-linux-gnu


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-11-03 15:42 -------
Subject: Bug 10893

CVSROOT: /cvs/src
Module name: src
Changes by: ian@... 2009-11-03 15:41:51

Modified files:
        gold           : ChangeLog defstd.cc

Log message:
        PR 10893
        * defstd.cc (in_section): Add entries for __rel_iplt_start,
        __rel_iplt_end, __rela_iplt_start, __rela_iplt_end, and __stack.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.339&r2=1.340
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/defstd.cc.diff?cvsroot=src&r1=1.6&r2=1.7



--


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-11-03 15:43 -------
Subject: Bug 10893

CVSROOT: /cvs/src
Module name: src
Branch: binutils-2_20-branch
Changes by: ian@... 2009-11-03 15:42:51

Modified files:
        gold           : ChangeLog defstd.cc

Log message:
        PR 10893
        * defstd.cc (in_section): Add entries for __rel_iplt_start,
        __rel_iplt_end, __rela_iplt_start, __rela_iplt_end, and __stack.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.281.2.5&r2=1.281.2.6
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/defstd.cc.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.6&r2=1.6.8.1



--


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From ian at airs dot com  2009-11-03 15:44 -------
Fixed.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-11-03 17:41 -------
Gold generates those symbols. However, those special sections

+    ".rel.iplt", // output_section
+    ".rela.iplt", // output_section

are generated by linker. Does gold generate them now? I got

FAIL: tls_shared_gnu2_test
FAIL: script_test_2
FAIL: binary_test

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From ian at airs dot com  2009-11-04 07:34 -------
gold does not generate the .rel.iplt or .rela.iplt sections itself.  I'm not
sure what this has to do with "multi-arched libc.a".  gold does not yet support
STT_GNU_IFUNC symbols.

It's normal for tls_shared_gnu2_test to fail, but everything else should pass.

--


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

[Bug gold/10893] gold doesn't work with multi-arched libc.a

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-11-04 14:45 -------
(In reply to comment #5)
> gold does not generate the .rel.iplt or .rela.iplt sections itself.  I'm not
> sure what this has to do with "multi-arched libc.a".  gold does not yet support
> STT_GNU_IFUNC symbols.
>

multi-arched libc.a has STT_GNU_IFUNC symbols. If gold doesn't support them,
static linking may not work.

--


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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