From 4346166b0776aaa239172faa744f4357be89f0f7 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 24 Aug 1993 23:45:26 +0000 Subject: [PATCH] From Peter Hoogenboom : * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA ELF emulation is "elf32-hppa" not "elf-big". (hppaosf_before_parse): Remove unneeded processing of environment variables. * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in .text segment of output file. * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa. --- ld/ChangeLog | 11 +++++++++++ ld/emulparams/hppaosf.sh | 2 +- ld/emultempl/hppaosf.em | 30 +----------------------------- ld/scripttempl/hppaosf.sc | 1 + 4 files changed, 14 insertions(+), 30 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 852cda03645..09e87dba14c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,14 @@ +Tue Aug 24 18:49:40 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) + + From Peter Hoogenboom : + * emultempl/hppaosf.em (ld_hppaosf_emulation): Correct name for PA + ELF emulation is "elf32-hppa" not "elf-big". + (hppaosf_before_parse): Remove unneeded processing of environment + variables. + * scripttempl/hppaosf.sc: Include .hppa_linker_stubs sections in + .text segment of output file. + * emulparams/hppaosf.sh (OUTPUT_FORMAT): Use elf32-hppa. + Tue Aug 24 16:17:00 1993 K. Richard Pixley (rich@sendai.cygnus.com) * ld.h: define BYTE_SIZE, SHORT_SIZE, and LONG_SIZE which are no diff --git a/ld/emulparams/hppaosf.sh b/ld/emulparams/hppaosf.sh index c51582cda5b..df41d5f14e3 100644 --- a/ld/emulparams/hppaosf.sh +++ b/ld/emulparams/hppaosf.sh @@ -1,5 +1,5 @@ SCRIPT_NAME=hppaosf -OUTPUT_FORMAT="elf-big" +OUTPUT_FORMAT="elf32-hppa" TEXT_START_ADDR=0x1000 PAGE_SIZE=4096 ARCH=hppa diff --git a/ld/emultempl/hppaosf.em b/ld/emultempl/hppaosf.em index 91ddd364f64..93ae02191dd 100644 --- a/ld/emultempl/hppaosf.em +++ b/ld/emultempl/hppaosf.em @@ -40,38 +40,10 @@ extern char *ldfile_output_machine_name; extern bfd *output_bfd; - -#ifdef HPPAOSF - -static void hppaosf_before_parse() -{ - static char *env_variables[] = { "HPPALIB", "HPPABASE", 0 }; - char **p; - char *env ; - - for ( p = env_variables; *p; p++ ){ - env = (char *) getenv(*p); - if (env) { - ldfile_add_library_path(concat(env,"/lib/libbout","")); - } - } - ldfile_output_architecture = bfd_arch_hppa; -} -#else static void hppaosf_before_parse() { - char *env ; - env = getenv("HPPALIB"); - if (env) { - ldfile_add_library_path(env); - } - env = getenv("HPPABASE"); - if (env) { - ldfile_add_library_path(concat(env,"/lib","")); - } ldfile_output_architecture = bfd_arch_hppa; } -#endif /* HPPAOSF */ static void hppaosf_set_output_arch() @@ -154,6 +126,6 @@ struct ld_emulation_xfer_struct ld_hppaosf_emulation = before_allocation_default, hppaosf_get_script, "hppaosf", - "elf-big" + "elf32-hppa" }; EOF diff --git a/ld/scripttempl/hppaosf.sc b/ld/scripttempl/hppaosf.sc index 30e3c6e3a73..88a018b78bd 100644 --- a/ld/scripttempl/hppaosf.sc +++ b/ld/scripttempl/hppaosf.sc @@ -9,6 +9,7 @@ SECTIONS { ${RELOCATING+__text_start = .}; CREATE_OBJECT_SYMBOLS + *(.hppa_linker_stubs) *(.text) } .data ${RELOCATING+ 0x40000000 } : -- 2.30.2