diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-08-13 17:02:17 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-08-13 17:02:17 +0000 |
| commit | ec8985a1003326eff53cb6b594000b7cbb2114c5 (patch) | |
| tree | 5ba74266dff6cc8c2878746d34fc884eeb0c3043 | |
| parent | f9dfe9b8deee0054949eda22f5c0aae8ba3d432d (diff) | |
rtld: Remove a stale #ifdef PIC
rtld has always been built PIC since commit
7ca8e6a67068e8357e251bd3ea86253c8a751d59. The stale #ifdef might
confuse a reader by thinking rtld can be built as non-PIC.
Reviewed by: kib
Sponsored by: AFRL, DARPA
Differential Revision: https://reviews.freebsd.org/D58623
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 361a2d3b905d..f5ef29aaec85 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -2508,9 +2508,7 @@ init_rtld(caddr_t mapbase, Elf_Auxinfo **aux_info) objtmp.path = NULL; objtmp.rtld = true; objtmp.mapbase = mapbase; -#ifdef PIC objtmp.relocbase = mapbase; -#endif objtmp.dynamic = rtld_dynamic(&objtmp); digest_dynamic1(&objtmp, 1, &dyn_rpath, &dyn_soname, &dyn_runpath); |
