This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/24529] New: Static linking issue with getcontext/setcontext and PIC on ARM
- From: "hd at os-cillation dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 06 May 2019 17:10:49 +0000
- Subject: [Bug build/24529] New: Static linking issue with getcontext/setcontext and PIC on ARM
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=24529
Bug ID: 24529
Summary: Static linking issue with getcontext/setcontext and
PIC on ARM
Product: glibc
Version: 2.29
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: hd@os-cillation.de
CC: carlos at redhat dot com
Target Milestone: ---
Hello,
we observe the following issue statically linking in libc.a:
/usr/sbin/ld:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.3.0/../../../libc.a(getcontext.o):
in function `getcontext':
(.text+0x88): undefined reference to `_rtld_global_ro'
/usr/sbin/ld:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.3.0/../../../libc.a(setcontext.o):
in function `__startcontext':
(.text+0x80): undefined reference to `_rtld_global_ro'
This seems to be due our static pie enabled toolchain and ifdef PIC vs SHARED
confusion in
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/getcontext.S;h=e072c30fc7a64ffe723bbae52f6eb2736d999bd5;hb=HEAD#l53
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/getcontext.S;h=e072c30fc7a64ffe723bbae52f6eb2736d999bd5;hb=HEAD#l105
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/setcontext.S;h=3381b9486126d5492ddbddf79b599b35aab16eb3;hb=HEAD#l35
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/arm/setcontext.S;h=3381b9486126d5492ddbddf79b599b35aab16eb3;hb=HEAD#l104
I guess that needs to be fixed like in
https://sourceware.org/git/?p=glibc.git;a=commit;h=3ee578690f35942f41926cc2d98e25b3d0d08c71
?
--
You are receiving this mail because:
You are on the CC list for the bug.