From d513119138d7c44094ef3b07f70b7a0ae2cd66c1 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 22 Jun 1995 19:08:18 +0000 Subject: [PATCH] Add .fixup section --- ld/ChangeLog | 5 +++++ ld/scripttempl/elfppc.sc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 8b34482..c9d9b4a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 22 15:06:35 1995 Michael Meissner + + * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section + that contains pointers to be relocated. + Tue Jun 20 17:47:20 1995 Stan Shebs * mpw-esh.c: New file, modified for MPW from esh.c. diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc index 8a6b78d..5d7fa21 100644 --- a/ld/scripttempl/elfppc.sc +++ b/ld/scripttempl/elfppc.sc @@ -105,7 +105,7 @@ SECTIONS ${RELOCATING+_GOT1_END_ = .;} /* Put .ctors and .dtors next to the .got2 section, so that the pointers - get relocated with -mrelocatable. */ + get relocated with -mrelocatable. Also put in the .fixup pointers. */ ${RELOCATING+_GOT2_START_ = .;} .got2 ${RELOCATING-0} : { *(.got2) } @@ -118,6 +118,9 @@ SECTIONS .dtors ${RELOCATING-0} : { *(.dtors) } ${RELOCATING+__DTOR_END__ = .;} + ${RELOCATING+_FIXUP_START_ = .;} + .fixup ${RELOCATING-0} : { *(.fixup) } + ${RELOCATING+_FIXUP_END_ = .;} ${RELOCATING+_GOT2_END_ = .;} ${RELOCATING+_GOT_START_ = .;} -- 2.7.4