From 24098abb6ce00287bc14c26fb9ec296a9ecc7f21 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 12 Aug 2001 20:19:49 +0000 Subject: [PATCH] * scripttempl/elf.sc, scripttempl/elfd30v.sc, scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc, scripttempl/v850.sc: Keep .jcr data. --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elf.sc | 1 + ld/scripttempl/elfd30v.sc | 3 +++ ld/scripttempl/elfm68hc11.sc | 7 ++++++- ld/scripttempl/elfm68hc12.sc | 7 ++++++- ld/scripttempl/v850.sc | 4 ++++ 6 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index f9974c37a4c..ccf462f5761 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-08-12 Richard Henderson + + * scripttempl/elf.sc, scripttempl/elfd30v.sc, + scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc, + scripttempl/v850.sc: Keep .jcr data. + 2001-08-12 H.J. Lu Andrew Haley Nick Clifton diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 9c03dd6c3d7..c66be4b623e 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -312,6 +312,7 @@ SECTIONS ${TEXT_DYNAMIC-${DYNAMIC}} ${RELOCATING+${CTOR}} ${RELOCATING+${DTOR}} + .jcr : { KEEP (*(.jcr)) } ${DATA_PLT+${PLT}} ${RELOCATING+${OTHER_GOT_SYMBOLS}} .got ${RELOCATING-0} : { *(.got.plt) *(.got) } diff --git a/ld/scripttempl/elfd30v.sc b/ld/scripttempl/elfd30v.sc index 3b0a08a5ec2..4c42585b6d6 100644 --- a/ld/scripttempl/elfd30v.sc +++ b/ld/scripttempl/elfd30v.sc @@ -124,6 +124,9 @@ SECTIONS .eh_frame ${RELOCATING-0} : { KEEP (*(.eh_frame)) } ${RELOCATING+ > ${DATA_MEMORY}} .gcc_except_table ${RELOCATING-0} : { *(.gcc_except_table) } ${RELOCATING+ > ${DATA_MEMORY}} + /* Java class registration support. */ + .jcr ${RELOCATING-0} : { KEEP (*(.jcr)) } ${RELOCATING+ >${DATA_MEMORY}} + ${RELOCATING+${CTOR}} ${RELOCATING+${DTOR}} diff --git a/ld/scripttempl/elfm68hc11.sc b/ld/scripttempl/elfm68hc11.sc index 50183b5ee6e..f40e32c5116 100644 --- a/ld/scripttempl/elfm68hc11.sc +++ b/ld/scripttempl/elfm68hc11.sc @@ -331,7 +331,7 @@ SECTIONS .eh_frame ${RELOCATING-0} : { - *(.eh_frame) + KEEP (*(.eh_frame)) } ${RELOCATING+ > ${TEXT_MEMORY}} .rodata ${RELOCATING-0} : @@ -350,6 +350,11 @@ SECTIONS ${RELOCATING+${CTOR}} ${RELOCATING+${DTOR}} + .jcr ${RELOCATING-0} : + { + KEEP (*(.jcr)) + } ${RELOCATING+ > ${TEXT_MEMORY}} + /* Start of the data section image in ROM. */ ${RELOCATING+__data_image = .;} ${RELOCATING+PROVIDE (__data_image = .);} diff --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc index 546fe545f39..d7898bba5ed 100644 --- a/ld/scripttempl/elfm68hc12.sc +++ b/ld/scripttempl/elfm68hc12.sc @@ -331,7 +331,7 @@ SECTIONS .eh_frame ${RELOCATING-0} : { - *(.eh_frame) + KEEP (*(.eh_frame)) } ${RELOCATING+ > ${TEXT_MEMORY}} .rodata ${RELOCATING-0} : @@ -350,6 +350,11 @@ SECTIONS ${RELOCATING+${CTOR}} ${RELOCATING+${DTOR}} + .jcr ${RELOCATING-0} : + { + KEEP (*(.jcr)) + } ${RELOCATING+ > ${TEXT_MEMORY}} + /* Start of the data section image in ROM. */ ${RELOCATING+__data_image = .;} ${RELOCATING+PROVIDE (__data_image = .);} diff --git a/ld/scripttempl/v850.sc b/ld/scripttempl/v850.sc index 90731de8749..12042782b8d 100644 --- a/ld/scripttempl/v850.sc +++ b/ld/scripttempl/v850.sc @@ -115,6 +115,10 @@ SECTIONS KEEP (*crtend.o(.dtors)) ${CONSTRUCTING+___dtors_end = .;} } + .jcr : + { + KEEP (*(.jcr)) + } .got : { *(.got.plt) *(.got) } .dynamic : { *(.dynamic) } -- 2.30.2