diff options
author | peter <peter@FreeBSD.org> | 2001-10-29 10:10:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-10-29 10:10:10 +0000 |
commit | 7f637f2bb2ae5510edd8461a7ccc1ab9bb20c34d (patch) | |
tree | c6f2e920ed301497d5c70408b7fe99cd0e111427 /libexec/rtld-elf/amd64 | |
parent | 0135add4a6138b4850540eb42f6a4345c3956c2a (diff) | |
download | FreeBSD-src-7f637f2bb2ae5510edd8461a7ccc1ab9bb20c34d.zip FreeBSD-src-7f637f2bb2ae5510edd8461a7ccc1ab9bb20c34d.tar.gz |
Update rtld for the "new" ia64 ABI. In the old toolchain, the
DT_INIT and DT_FINI tags pointed to fptr records. In 2.11.2, it points
to the actuall address of the function. On IA64 you cannot just take
an address of a function, store it in a function pointer variable and
call it.. the function pointers point to a fptr data block that has the
target gp and address in it. This is absolutely necessary for using
the in-tree binutils toolchain, but (unfortunately) will not work with
old shared libraries. Save your old ld-elf.so.1 if you want to use
old ones still. Do not mix-and-match.
This is a no-op change for i386 and alpha.
Reviewed by: dfr
Diffstat (limited to 'libexec/rtld-elf/amd64')
-rw-r--r-- | libexec/rtld-elf/amd64/rtld_machdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/amd64/rtld_machdep.h b/libexec/rtld-elf/amd64/rtld_machdep.h index a26394f..e51194c 100644 --- a/libexec/rtld-elf/amd64/rtld_machdep.h +++ b/libexec/rtld-elf/amd64/rtld_machdep.h @@ -49,6 +49,9 @@ reloc_jmpslot(Elf_Addr *where, Elf_Addr target, #define make_function_pointer(def, defobj) \ ((defobj)->relocbase + (def)->st_value) +#define call_initfini_pointer(obj, target) \ + (((InitFunc)(target))()) + static inline void atomic_decr_int(volatile int *p) { |