Skip to contentSkip to conversation

Provide __rel_iplt_{start,end}

PATCH RESEND New Lubomir Rintel 1 participant 1 message Oct 18, 2009

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Provide __rel_iplt_{start,end}

This basically fixes build with -static against recent glibc (libc.a's __libc_csu_init() refers to these symbols).

---
 i386.ld |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
i386.ld +7 -1
index f2dafec..9b4063e 100644
@@ -39,7 +39,13 @@ SECTIONS
   .rela.fini     : { *(.rela.fini)	}
   .rel.bss       : { *(.rel.bss)		}
   .rela.bss      : { *(.rela.bss)		}
-  .rel.plt       : { *(.rel.plt)		}
+  .rel.plt        :
+    {
+      *(.rel.plt)
+      PROVIDE_HIDDEN (__rel_iplt_start = .);
+      *(.rel.iplt)
+      PROVIDE_HIDDEN (__rel_iplt_end = .);
+    }
   .rela.plt      : { *(.rela.plt)		}
   .init          : { *(.init)	} =0x47ff041f
   .text      :
Signature · 1 line
1.6.5.rc2