diff options
author | kib <kib@FreeBSD.org> | 2011-12-12 11:03:14 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-12-12 11:03:14 +0000 |
commit | a95b8e72c8b8615806e884acc5ccce614fae0370 (patch) | |
tree | d5f18ee2f1f28d34c0603cd801c3d94d87e79adf /libexec/rtld-elf/powerpc | |
parent | e4d5e370653906483ad3fd23a8e15acb12b82ab5 (diff) | |
download | FreeBSD-src-a95b8e72c8b8615806e884acc5ccce614fae0370.zip FreeBSD-src-a95b8e72c8b8615806e884acc5ccce614fae0370.tar.gz |
Add support for STT_GNU_IFUNC and R_MACHINE_IRELATIVE GNU extensions to
rtld on 386 and amd64. This adds runtime bits neccessary for the use
of the dispatch functions from the dynamically-linked executables and
shared libraries.
To allow use of external references from the dispatch function, resolution
of the R_MACHINE_IRESOLVE relocations in PLT is postponed until GOT entries
for PLT are prepared, and normal resolution of the GOT entries is finished.
Similar to how it is done by GNU, IRELATIVE relocations are resolved in
advance, instead of normal lazy handling for PLT.
Move the init_pltgot() call before the relocations for the object are
processed.
MFC after: 3 weeks
Diffstat (limited to 'libexec/rtld-elf/powerpc')
-rw-r--r-- | libexec/rtld-elf/powerpc/reloc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libexec/rtld-elf/powerpc/reloc.c b/libexec/rtld-elf/powerpc/reloc.c index 4aca86e..d0128f4 100644 --- a/libexec/rtld-elf/powerpc/reloc.c +++ b/libexec/rtld-elf/powerpc/reloc.c @@ -504,6 +504,21 @@ reloc_jmpslot(Elf_Addr *wherep, Elf_Addr target, const Obj_Entry *defobj, return (target); } +int +reloc_iresolve(Obj_Entry *obj, struct Struct_RtldLockState *lockstate) +{ + + /* XXX not implemented */ + return (0); +} + +int +reloc_gnu_ifunc(Obj_Entry *obj, struct Struct_RtldLockState *lockstate) +{ + + /* XXX not implemented */ + return (0); +} /* * Setup the plt glue routines. |