OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Kurt Miller (kurtcvs.openbsd.org)
Date: Wed Apr 09 2008 - 16:45:26 CDT


CVSROOT: /cvs
Module name: src
Changes by: kurtcvs.openbsd.org 2008/04/09 15:45:26

Modified files:
        libexec/ld.so : dl_prebind.c dlfcn.c library.c resolve.c
                         resolve.h
        libexec/ld.so/alpha: rtld_machine.c
        libexec/ld.so/amd64: rtld_machine.c
        libexec/ld.so/arm: rtld_machine.c
        libexec/ld.so/hppa: archdep.h rtld_machine.c
        libexec/ld.so/i386: rtld_machine.c
        libexec/ld.so/ldconfig: dl_prebind.c prebind.c
        libexec/ld.so/mips64: rtld_machine.c
        libexec/ld.so/powerpc: rtld_machine.c
        libexec/ld.so/sh: rtld_machine.c
        libexec/ld.so/sparc: rtld_machine.c
        libexec/ld.so/sparc64: rtld_machine.c

Log message:
Improve support for shared libs linked at non-zero addreses:
- rename private values in struct elf_object to better
describe their meaning:
s/load_offs/obj_base/ "object's address '0' base"
s/load_addr/load_base/ "The base address of the loadable
segments"
- gdb needs the obj_base value so swap positions with load_base in
struct elf_object
- fix a few occurrences of where load_base was used instead of
obj_base.

With help and okay drahn