This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Add R_MIPS_GLOB_DAT to elf/elf.h
- From: Richard Sandiford <richard at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 09 Nov 2006 14:57:13 +0000
- Subject: Re: Add R_MIPS_GLOB_DAT to elf/elf.h
- References: <87r6wtpwe9.fsf@talisman.home>
Ping!
Richard Sandiford <richard@codesourcery.com> writes:
> Jakub has committed the (o32) MIPS prelinker port to svn -- thanks!
> The dynamic linker side needs to support a new R_MIPS_GLOB_DAT relocation,
> which was added specifically for the purposes of the prelinker. The
> relocation has code 51, is only defined for symbols >= DT_MIPS_GOTSYM,
> and has relocation value "S", as for other targets. It has been blessed
> by MIPS Technology Inc.
...and for completeness, the relocation has also been added to binutils.
> Please install if OK.
>
> Richard
2006-11-09 Richard Sandiford <richard@codesourcery.com>
* elf/elf.h (R_MIPS_GLOB_DAT): Define.
(R_MIPS_NUM): Bump by 1.
Index: elf/elf.h
===================================================================
--- elf/elf.h (revision 152011)
+++ elf/elf.h (working copy)
@@ -1511,8 +1511,9 @@ #define R_MIPS_TLS_TPREL32 47 /* TP-rela
#define R_MIPS_TLS_TPREL64 48 /* TP-relative offset, 64 bit */
#define R_MIPS_TLS_TPREL_HI16 49 /* TP-relative offset, high 16 bits */
#define R_MIPS_TLS_TPREL_LO16 50 /* TP-relative offset, low 16 bits */
+#define R_MIPS_GLOB_DAT 51
/* Keep this the last entry. */
-#define R_MIPS_NUM 51
+#define R_MIPS_NUM 52
/* Legal values for p_type field of Elf32_Phdr. */