[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HURD PATCH 0/7] $ORIGIN substitution in RPATH
From: |
Jeremie Koenig |
Subject: |
[HURD PATCH 0/7] $ORIGIN substitution in RPATH |
Date: |
Wed, 17 Aug 2011 21:35:25 +0200 |
Hi,
The ELF RPATH header (an executable-specific search path for shared libraries)
can include the special string $ORIGIN, which should be substituted with the
directory in which the binary resides. On Hurd this is not implemented yet;
the filename used is not available to a newly executed binary.
This series builds on Emilio's file_exec_file_name patches from last year and
is the libc counterpart to the Hurd patches posted here:
http://lists.gnu.org/archive/html/bug-hurd/2011-08/msg00047.html
Emilio Pozuelo Monfort (2):
Use the new file_exec_file_name RPC
Add check for file_exec_file_name
Jeremie Koenig (5):
Hurd startup: fetch the exec filename using exec_startup_get_info_2
Hurd dl-origin.c: start with a copy of elf/dl-origin.c
Hurd dl-origin.c: Use _hurd_init_filename if available
Propagate _hurd_init_filename beyond dynamic loading
_hurd_exec_file_name: canonicalize filename
aclocal.m4 | 17 +++++++
hurd/Versions | 3 +
hurd/hurd.h | 25 +++++++++-
hurd/hurdexec.c | 64 ++++++++++++++++++++++-----
hurd/hurdstartup.c | 25 ++++++++++-
hurd/hurdstartup.h | 2 +
sysdeps/mach/hurd/configure.in | 6 +++
sysdeps/mach/hurd/dl-origin.c | 76 ++++++++++++++++++++++++++++++++
sysdeps/mach/hurd/execve.c | 6 ++-
sysdeps/mach/hurd/fexecve.c | 7 ++-
sysdeps/mach/hurd/i386/init-first.c | 1 +
sysdeps/mach/hurd/powerpc/init-first.c | 1 +
sysdeps/mach/hurd/spawni.c | 59 +++++++++++++++----------
13 files changed, 248 insertions(+), 44 deletions(-)
create mode 100644 sysdeps/mach/hurd/dl-origin.c
--
1.7.5.4
- [HURD PATCH 0/7] $ORIGIN substitution in RPATH,
Jeremie Koenig <=
- [HURD PATCH 2/7] Add check for file_exec_file_name, Jeremie Koenig, 2011/08/17
- [HURD PATCH 1/7] Use the new file_exec_file_name RPC, Jeremie Koenig, 2011/08/17
- [HURD PATCH 3/7] Hurd startup: fetch the exec filename using exec_startup_get_info_2, Jeremie Koenig, 2011/08/17
- [HURD PATCH 4/7] Hurd dl-origin.c: start with a copy of elf/dl-origin.c, Jeremie Koenig, 2011/08/17
- [HURD PATCH 5/7] Hurd dl-origin.c: Use _hurd_init_filename if available, Jeremie Koenig, 2011/08/17
- [HURD PATCH 7/7] _hurd_exec_file_name: canonicalize filename, Jeremie Koenig, 2011/08/17
- [HURD PATCH 6/7] Propagate _hurd_init_filename beyond dynamic loading, Jeremie Koenig, 2011/08/17