This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Build issue with top-of-tree binutils on aarch64


FYI: This is a pointer and a heads up for anyone who might be trying to
build the latest aarch64 glibc with the latest toolchain (particularly
the top-of-tree binutils).  I get an error when I do this due to a
change in binutils and have reported it to the person who checked in
the patch.

https://sourceware.org/ml/binutils/2017-06/msg00219.html


/home/sellcey/toolchain/install/lib/gcc/aarch64-linux-gnu/8.0.0/../../../../aarch64-linux-gnu/bin/ld: /home/sellcey/toolchain/obj/glibc64/elf/librtld.os: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_dl_argv' which may bind externally can not be used when making a shared object; recompile with -fPIC

If you don't notice the error in the build output (it does not seem to abort the make) you will notice that when you try to execute something by calling the dynamic linker/loader directly, it will fail and give you a segfault.

Steve Ellcey
sellcey@cavium.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]