diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-12-21 12:51:26 +0100 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-12-21 12:51:26 +0100 |
commit | 333a6b1a6399992cc98ac34727acf38136b770e6 (patch) | |
tree | 1e7e812cd26db0e87c9f88608f5b65a6852a567b /ld/ChangeLog | |
parent | bfcfa995f9461726d57f0d9a2879ba4352547870 (diff) | |
download | gdb-333a6b1a6399992cc98ac34727acf38136b770e6.zip gdb-333a6b1a6399992cc98ac34727acf38136b770e6.tar.gz gdb-333a6b1a6399992cc98ac34727acf38136b770e6.tar.bz2 |
ld: Add lib32 directories for 32-bit emulation on FreeBSD/amd64
GNU ld currently fails to link 32-bit executables on FreeBSD/amd64 when
the linked libraries have dependencies on shared objects themselves:
$ gcc -m32 -o ei ei.c -lexecinfo
/var/gcc/binutils/amd64/lib/gcc/amd64-pc-freebsd14.0/13.2.0/../../../../amd64-pc-freebsd14.0/bin/ld:
warning: libelf.so.2, needed by /usr/lib/../lib32/libexecinfo.so, not found
(try using -rpath or -rpath-link)
/var/gcc/binutils/amd64/lib/gcc/amd64-pc-freebsd14.0/13.2.0/../../../../amd64-pc-freebsd14.0/bin/ld:
/usr/lib/../lib32/libexecinfo.so: undefined reference to `elf_begin@R1.0'
[...]
Fixed by handling FreeBSD/amd64 like Linux/x86.
Tested on amd64-pc-freebsd14.0.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r-- | ld/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index cbcb29d..82cb270 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2023-12-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * emulparams/elf_i386.sh (LIBPATH_SUFFIX, LIBPATH_SUFFIX_SKIP) + [x86_64*-freebsd*]: Set for i386 emulation. + 2023-12-12 Georg-Johann Lay <avr@gjlay.de> PR 31124 |