git: ec8985a10033 - main - rtld: Remove a stale #ifdef PIC
John Baldwin <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a7e01d3.2042d.752179e3__37139.2082701036$1786642933$gmane$org@gitrepo.freebsd.org> |
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ec8985a1003326eff53cb6b594000b7cbb2114c5 commit ec8985a1003326eff53cb6b594000b7cbb2114c5 Author: John Baldwin <[email protected]> AuthorDate: 2026-08-13 17:02:17 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2026-08-13 17:02:17 +0000 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 --- libexec/rtld-elf/rtld.c | 2 -- 1 file changed, 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);