This website requires JavaScript.
Explore
Help
Sign In
d
/
freebsd-skq
Watch
1
Star
0
Fork
0
You've already forked freebsd-skq
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
f4cf3aa68b
freebsd-skq
/
usr.bin
/
ldd
/
Makefile
9 lines
76 B
Makefile
Raw
Normal View
History
Unescape
Escape
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
# $FreeBSD$
Imported NetBSD's ld for shared libs.
1993-11-03 23:41:59 +00:00
Tweak the support for using ldd on 32-bit objects a bit further. Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly)
2008-08-01 21:52:41 +00:00
PROG
?=
ldd
Make ldd work on alpha.
1998-09-16 09:31:48 +00:00
SRCS
=
ldd.c
Imported NetBSD's ld for shared libs.
1993-11-03 23:41:59 +00:00
Fix ldd to work with more ELF files. - Use libelf to parse ELF data structures and remove code duplication for ELF32. - Don't require the OSABI field to be set to the FreeBSD OSABI for shared libraries. Both AArch64 and RISC-V leave it set to "none" and instead depend on the ABI tag note. For ldd, this means falling back to walking the notes in PT_NOTE segments to find the ABI tag note to determine if an ELF shared library without OSABI set in the header file is a FreeBSD shared library. Reviewed by: kib MFC after: 5 days Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D28342
2021-01-29 18:53:50 +00:00
LIBADD
=
elf
Imported NetBSD's ld for shared libs.
1993-11-03 23:41:59 +00:00
.
i
n
c
l
u
d
e
<
b
s
d
.
p
r
o
g
.
m
k
>
Reference in New Issue
Copy Permalink