[PATCH] add R_390_*20 relocations.

Martin Schwidefsky schwidefsky@de.ibm.com
Fri Nov 12 14:22:00 GMT 2004


Hi,
while working on a bugfix for modutils I noticed that the 20 bit
relocations for s390 are missing in elf/elf.h. Without them
the fixed modutils won't compile anymore.

blue skies,
  Martin.

2004-11-12  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* elf/elf.h: Add 20 bit relocations R_390_*20.

diff -urN libc/elf/elf.h libc-elf/elf/elf.h
--- libc/elf/elf.h	2004-11-03 15:39:52.000000000 +0100
+++ libc-elf/elf/elf.h	2004-11-10 17:20:28.000000000 +0100
@@ -2402,8 +2402,13 @@
 #define R_390_TLS_DTPOFF	55	/* Offset in TLS block.	 */
 #define R_390_TLS_TPOFF		56	/* Negated offset in static TLS
 					   block.  */
+#define R_390_20		57	/* Direct 20 bit.  */
+#define R_390_GOT20		58	/* 20 bit GOT offset.  */
+#define R_390_GOTPLT20		59	/* 20 bit offset to jump slot.  */
+#define R_390_TLS_GOTIE20	60	/* 20 bit GOT offset for static TLS
+					   block offset.  */
 /* Keep this the last entry.  */
-#define R_390_NUM		57
+#define R_390_NUM		61
 
 
 /* CRIS relocations.  */



More information about the Libc-alpha mailing list