Date: Sat, 24 Jan 2009 20:11:38 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 156620 for review Message-ID: <200901242011.n0OKBc78054958@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156620 Change 156620 by rwatson@rwatson_freebsd_capabilities on 2009/01/24 20:11:00 Set the starting address for ld-elf-cap.so.1 to 0x04000000 so that fexecve(2) on it will map it in a useful place for running (i.e., not 0x00000000) but not at an address that collides with the dynamic binary that ld-elf-cap.so will be doing runtime linking for. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/rtld-elf-cap.xs#2 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/rtld-elf-cap.xs#2 (text+ko) ==== @@ -9,7 +9,7 @@ SECTIONS { /* Read-only sections, merged into text segment: */ - . = 0 + SIZEOF_HEADERS; + . = 0x04000000 + SIZEOF_HEADERS; .hash : { *(.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901242011.n0OKBc78054958>