From 0c2f0bd5b51a037f0a112d1b1a282c7d7ccb83ac Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 31 May 2009 22:23:54 -0700 Subject: [PATCH] syslinux.ld: add a .got to the linker script Add a .got section to the linker script, to cope with PIE code imported from libcom32. Signed-off-by: H. Peter Anvin --- core/syslinux.ld | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/syslinux.ld b/core/syslinux.ld index 7a7f01e..eb0e411 100644 --- a/core/syslinux.ld +++ b/core/syslinux.ld @@ -217,6 +217,17 @@ SECTIONS __rodata_end = .; } + . = ALIGN(4); + + __got_vma = .; + __got_lma = __got_vma + __text_lma - __text_vma; + .got : AT(__got_lma) { + __got_start = .; + *(.got.plt) + *(.got) + __got_end = .; + } + . = ALIGN(16); __data_vma = .; -- 2.7.4