|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE |
Date: | Fri, 20 Oct 2017 16:31:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22269 --- Comment #27 from H.J. Lu <hjl.tools at gmail dot com> --- For aarch64: address@hidden pr22269]$ cat x.c extern int foo __attribute ((weak)); int _start () { if (&foo) return foo; } address@hidden pr22269]$ make /export/gnu/import/git/toolchain/install/compilers/aarch64-linux-gnu/bin/aarch64-glibc-linux-gnu-gcc -O2 -fPIE -c -o x.o x.c /export/gnu/import/git/toolchain/install/compilers/aarch64-linux-gnu/bin/aarch64-glibc-linux-gnu-ld -pie --no-dynamic-linker x.o /export/gnu/import/git/toolchain/install/compilers/aarch64-linux-gnu/bin/aarch64-glibc-linux-gnu-ld: final link failed: Nonrepresentable section on output make: *** [Makefile:14: x] Error 1 address@hidden pr22269]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |