diff options
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/shelf_fd.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/shlelf_fd.sh | 16 | ||||
-rw-r--r-- | ld/emulparams/shlelf_linux.sh | 2 |
3 files changed, 19 insertions, 1 deletions
diff --git a/ld/emulparams/shelf_fd.sh b/ld/emulparams/shelf_fd.sh new file mode 100644 index 0000000..7ec25ab --- /dev/null +++ b/ld/emulparams/shelf_fd.sh @@ -0,0 +1,2 @@ +. ${srcdir}/emulparams/shlelf_fd.sh +OUTPUT_FORMAT="elf32-shbig-fdpic" diff --git a/ld/emulparams/shlelf_fd.sh b/ld/emulparams/shlelf_fd.sh new file mode 100644 index 0000000..f1f4107 --- /dev/null +++ b/ld/emulparams/shlelf_fd.sh @@ -0,0 +1,16 @@ +# If you change this file, please also look at files which source this one: +# shelf_fd.sh + +. ${srcdir}/emulparams/shlelf_linux.sh +OUTPUT_FORMAT="elf32-sh-fdpic" +GOT=".got ${RELOCATING-0} : { *(.got.funcdesc) *(.got.plt) *(.got) }" +OTHER_GOT_RELOC_SECTIONS=" + .rela.got.funcdesc ${RELOCATING-0} : { *(.rela.got.funcdesc) } +" +OTHER_READONLY_SECTIONS=" + .rofixup : { + ${RELOCATING+__ROFIXUP_LIST__ = .;} + *(.rofixup) + ${RELOCATING+__ROFIXUP_END__ = .;} + } +" diff --git a/ld/emulparams/shlelf_linux.sh b/ld/emulparams/shlelf_linux.sh index 95b6acc..c14aae2 100644 --- a/ld/emulparams/shlelf_linux.sh +++ b/ld/emulparams/shlelf_linux.sh @@ -1,5 +1,5 @@ # If you change this file, please also look at files which source this one: -# shelf_linux.sh +# shelf_linux.sh shelf_fd.sh shlelf_fd.sh SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-sh-linux" |