[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 Joe Hermaszewski changed: What|Removed |Added CC||sourceware at sub dot monoid.al --- Comment #10 from Joe Hermaszewski --- Hi Jessica, I tried out the patch, thank you! It still applies cleanly, however when building ncurses it fails, here are the last few lines: armv7l-unknown-linux-musleabihf-ranlib ../lib/libncurses++w.a compiling demo (obj_s) armv7l-unknown-linux-musleabihf-g++ -o demo ../obj_s/demo.o -L../lib -lncurses++w -L../lib -lformw -lmenuw -lpanelw -lncursesw-lutil -DHAVE_CONFIG_H -I../c++ -I. -I../include -DNDEBUG -O2 -fPIC armv7l-unknown-linux-musleabihf-ld: ../obj_s/demo.o(.data.rel.ro._ZTI16NCursesFieldType[_ZTI16NCursesFieldType]+0): unresolvable R_ARM_ABS32 relocation against symbol `_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3' armv7l-unknown-linux-musleabihf-ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status The complete log (against musl) is here: https://gist.github.com/2dcd79254db6a00e9d9b99f7f556e56e And against glibc: https://gist.github.com/3d744762e20df5bad9652f20d8f1a06e -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 --- Comment #11 from Joe Hermaszewski --- To reproduce, - Get a copy of the ncurses 6.2 source - With binutils (with the patch), and gcc in PATH (both cross compiling to armv7l-unknown-linux-gnueabihf) - CXX=armv7l-unknown-linux-gnueabihf-g++ CC=armv7l-unknown-linux-gnueabihf-gcc ... - ./configure --build=x86_64-unknown-linux-gnu --host=armv7l-unknown-linux-gnueabihf - make all -j - Observe the mentioned failure -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 --- Comment #12 from Joe Hermaszewski --- A much more simple reproducer for the error message I mentioned (from GHC's configure script): cat >actest.s <<-EOF .globl _start .p2align 4 _start: bkpt .data .globl data_object object_reference: .long data_object .size object_reference, 4 EOF cat >aclib.s <<-EOF .data .globl data_object .type data_object, %object .size data_object, 4 data_object: .long 123 EOF $AS -o aclib.o aclib.s $LD -shared -o aclib.so aclib.o $AS -o actest.o actest.s $LD -o actest actest.o aclib.so -- You are receiving this mail because: You are on the CC list for the bug.