diff options
author | emaste <emaste@FreeBSD.org> | 2014-11-21 02:05:48 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-11-21 02:05:48 +0000 |
commit | c7e313326dae74e64f75ded1afb06337d55ecd57 (patch) | |
tree | 9eebff29c016aa690ddbb8ca4e33ff42270a0d1c /libexec | |
parent | 8723ec446135291c191b573bd01676c8a4c83d3e (diff) | |
download | FreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.zip FreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.tar.gz |
Use canonical __PIC__ flag
It is automatically set when -fPIC is passed to the compiler.
Reviewed by: dim, kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D1179
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index cc7afda..57cb306 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -1817,7 +1817,7 @@ init_rtld(caddr_t mapbase, Elf_Auxinfo **aux_info) objtmp.path = NULL; objtmp.rtld = true; objtmp.mapbase = mapbase; -#ifdef PIC +#ifdef __PIC__ objtmp.relocbase = mapbase; #endif if (RTLD_IS_DYNAMIC()) { |