Add R_MIPS_GLOB_DAT to elf/elf.h

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Add R_MIPS_GLOB_DAT to elf/elf.h

Richard Sandiford-3
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.

Please install if OK.

Richard


2006-10-27  Richard Sandiford  <[hidden email]>

        * elf/elf.h (R_MIPS_GLOB_DAT): Define.
        (R_MIPS_NUM): Bump by 1.

Index: elf/elf.h
===================================================================
RCS file: /cvs/glibc/libc/elf/elf.h,v
retrieving revision 1.155
diff -u -p -r1.155 elf.h
--- elf/elf.h 10 Jul 2006 21:54:02 -0000 1.155
+++ elf/elf.h 27 Oct 2006 16:12:07 -0000
@@ -1511,8 +1511,9 @@ typedef struct
 #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.  */
 
Reply | Threaded
Open this post in threaded view
|

Re: Add R_MIPS_GLOB_DAT to elf/elf.h

Richard Sandiford-3
Ping!

Richard Sandiford <[hidden email]> 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  <[hidden email]>

        * 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.  */
 
Reply | Threaded
Open this post in threaded view
|

Re: Add R_MIPS_GLOB_DAT to elf/elf.h

Richard Sandiford-3
Ping^2

Richard Sandiford <[hidden email]> 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  <[hidden email]>

        * 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.  */