This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Support R_*_IRELATIVE in static executables


On Thu, May 28, 2009 at 1:09 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi,
>
> Here is the total rewrite of STT_GNU_IFUNC support
> with R_*_IRELATIVE for i386 and x86-64 on shared
> library and static/dynamic executables together with
> a modified glibc. ?OK for trunk?
>


Here the glibc patch to support  R_*_IRELATIVE in
static executables. Need the above linker patch to
build.


-- 
H.J.
--
2009-05-28  H.J. Lu  <hongjiu.lu@intel.com>

	* csu/elf-init.c: Include <link.h> and <dl-irel.h> if
	LIBC_NONSHARED is not defined.
	(__rela_iplt_start): New.
	(__rela_iplt_end): Likewise.
	(__rel_iplt_start): Likewise.
	(__rel_iplt_end): Likewise.
	(__libc_csu_init): Process __rela_iplt_start and
	__rel_iplt_start.

	* sysdeps/generic/dl-irel.h: New.
	* sysdeps/i386/dl-irel.h: Likewise.
	* sysdeps/x86_64/dl-irel.h: Likewise.

Attachment: libc-ifunc-static-1.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]