Alexandre Oliva
4a096548a6
2001-08-22 Alexandre Oliva <aoliva@redhat.com>
...
* emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* configure.host (am33_2.0-*-linux*): Added.
* configure.tgt (am33_2.0-*-linux*): Likewise.
* emulparams/elf32am33lin.sh: New.
* Makefile.am (eelf32am33lin.c): New rule.
* Makefile.in: Rebuilt.
2003-07-10 04:45:16 +00:00
Alexandre Oliva
892bb3264a
2001-04-17 Alexandre Oliva <aoliva@redhat.com>
...
* emulparams/mn10300.sh (TEMPLATE_NAME): Define.
(GENERATE_SHLIB_SCRIPT): Likewise.
2003-07-10 03:20:26 +00:00
Alan Modra
1c0bd72e41
* ld-powerpc/powerpc.exp: Dump output .got section rather than .toc.
...
* ld-powerpc/tlsexetoc.g: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlstoc.g: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.
2003-07-10 00:38:42 +00:00
Alan Modra
68f8ff14d1
* emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
...
(GOT): Define.
* emultempl/ppc64elf.em (stub_added): New static var.
(ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd.
(ppc_add_stub_section): Set stub_added.
(gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust
ppc64_elf_size_stubs call and test for stubs.
* scripttempl/elf.sc (GOT): Define and use.
2003-07-10 00:38:19 +00:00
Joern Rennecke
fb319d8d1d
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
...
Allow second call from ldemul_finish.
2003-07-08 18:05:34 +00:00
Joern Rennecke
3a51fda661
Allow to override sh64 initial stack value with --defsym:
...
* emulparams/shelf32.sh (STACK_ADDR): Don't define.
(OTHER_SECTIONS): Include .stack.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
2003-07-04 16:07:01 +00:00
Jakub Jelinek
9203ba999f
bfd/
...
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add rel_fptr_sec.
(elfNN_ia64_dynamic_symbol_p): Change info->shared into
!info->executable.
(get_fptr): For -pie create .opd as writable section and create
.rela.opd as well.
(elfNN_ia64_check_relocs): Change info->shared into
!info->executable.
(allocate_fptr): Likewise.
(allocate_dynrel_entries): Account for a relative reloc for -pie
@fptr(). Don't account for a relative reloc if -pie want_ltoff_fptr
for undefweak symbol. Account for an IPLT reloc in .rela.opd
section if -pie.
(set_got_entry): Don't create a relative reloc if -pie
want_ltoff_fptr for undefweak symbol.
(set_fptr_entry): Emit an IPLT reloc in .rela.opd for -pie.
(elfNN_ia64_relocate_section): Emit a relative reloc for -pie
@fptr().
* elfxx-ia64.c (elfNN_ia64_relocate_section): Issue undefined_symbol
even if -pie.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
ld/
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't include
.opd if -pie.
(OTHER_READWRITE_SECTIONS): Include .opd if -pie.
* scripttempl/elf.sc: Use SHLIB_DATA_ADDR instead of DATA_ADDR
if -pie.
2003-07-04 13:53:38 +00:00
Nick Clifton
8c17da6e59
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
...
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.
* ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
unconditionally. Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00
Thiemo Seufer
fbf18a5ce9
* ld-mips-elf/mips-elf.exp: Use is_elf_format.
2003-06-28 22:14:59 +00:00
Thiemo Seufer
0c29b4ccce
* ld-mips-elf/mips-elf-flags.exp: Use -melf32bsmip for IRIX6.
2003-06-28 22:12:26 +00:00
Alan Modra
1579bae1cd
Convert to C90
2003-06-28 05:28:54 +00:00
Nick Clifton
dc17f155ff
Cope with NUL seperated directives. Fix reporting of unparseable directives.
2003-06-27 08:10:57 +00:00
Alan Modra
0c7a8e5acd
* emultempl/aix.em: Convert to C90, remove unnecessary prototypes
...
and casts. Replace PTR with void *. Formatting.
* emultempl/alphaelf.em: Likewise
* emultempl/armcoff.em: Likewise
* emultempl/armelf.em: Likewise
* emultempl/armelf_oabi.em: Likewise
* emultempl/beos.em: Likewise
* emultempl/elf32.em: Likewise
* emultempl/generic.em: Likewise
* emultempl/gld960.em: Likewise
* emultempl/gld960c.em: Likewise
* emultempl/hppaelf.em: Likewise
* emultempl/linux.em: Likewise
* emultempl/lnk960.em: Likewise
* emultempl/m68hc1xelf.em: Likewise
* emultempl/m68kcoff.em: Likewise
* emultempl/m68kelf.em: Likewise
* emultempl/mipsecoff.em: Likewise
* emultempl/mipself.em: Likewise
* emultempl/mmix-elfnmmo.em: Likewise
* emultempl/mmixelf.em: Likewise
* emultempl/mmo.em: Likewise
* emultempl/needrelax.em: Likewise
* emultempl/netbsd.em: Likewise
* emultempl/pe.em: Likewise
* emultempl/sh64elf.em: Likewise
* emultempl/sunos.em: Likewise
* emultempl/ticoff.em: Likewise
* emultempl/vanilla.em: Likewise
* emultempl/xtensaelf.em: Likewise
* Makefile.am: Correct dependencies.
* Makefile.in: Regenerate.
2003-06-27 00:38:25 +00:00
Alan Modra
264d75f79b
* ld-powerpc/apuinfo.rd: Update.
2003-06-25 11:12:46 +00:00
Alan Modra
1049f94e8e
Correct spelling of "relocatable".
2003-06-25 06:40:27 +00:00
Alan Modra
7e5d8d48ed
* emultempl/ppc32elf.em: Convert to C90.
2003-06-24 14:04:29 +00:00
Thiemo Seufer
b7c7d6c193
* config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
...
special handling for n32 ABI.
(macro): Likewise.
* gas/mips/elf-rel-got-n32.d: Remove special handling for n32 ABI.
* gas/mips/elf-rel-xgot-n32.d: Likewise.
* gas/mips/jal-newabi.d: Likewise.
* ld-mips-elf/elf-rel-got-n32.d: Remove special handling for n32 ABI.
* ld-mips-elf/elf-rel-xgot-n32.d: Likewise.
2003-06-21 21:38:04 +00:00
Alan Modra
7d8a3a28e3
* emultempl/ppc64elf.em: Convert to C90 function definitions, remove
...
unnecessary prototypes and casts.
2003-06-20 05:33:26 +00:00
Alan Modra
bda6c678f6
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
...
statistics from ppc64_elf_build_stubs.
2003-06-19 13:51:05 +00:00
Alan Modra
6bc8652b47
* emultempl/ppc64elf.em (build_section_lists): Check return status
...
from ppc64_elf_next_input_section.
2003-06-19 11:51:55 +00:00
Hans-Peter Nilsson
c1f1974625
* ld-cris/locref1.d, ld-cris/locref1.s, ld-cris/locref2.d,
...
ld-cris/locref2.s: New tests.
2003-06-18 04:11:13 +00:00
Hans-Peter Nilsson
a42ec05b09
* ld-elfcomm/elfcomm.exp (dump_common1): Use $READELF, not plain
...
readelf as found using default path.
2003-06-18 03:38:05 +00:00
Alan Modra
b0fe1bf34d
* lib/ld-lib.exp (default_ld_simple_link): Trim ld parms before
...
trying to trim ld path.
(default_ld_compile): Likewise for cc.
2003-06-18 01:55:57 +00:00
H.J. Lu
f97b9cb853
bfd/
...
2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
* section.c (struct sec): Put back kept_section.
(STD_SECTION): Put back kept_section initialization.
* bfd-in2.h: Regenerate.
* elflink.h (elf_link_input_bfd): Also check discarded linkonce
sections for relocateable output. Use kept_section to preserve
debug information discarded by linkonce.
ld/
2003-06-17 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (section_already_linked): Put back assignment of
kept_section.
2003-06-18 00:30:04 +00:00
Alan Modra
0f84fde19e
* lib/ld-lib.exp (default_ld_simple_link): Trim ld path before
...
looking for gcc match.
(default_ld_compile): Likewise for cc.
2003-06-17 23:26:57 +00:00
Nick Clifton
fea39bcb07
Catch and ignore an ARM_26D reloc.
2003-06-17 12:05:33 +00:00
Nick Clifton
40bdaaa8ed
* ld-undefined/undefined.exp (i?86-*-freebsd*): Remove xfail.
...
* configure.host (*-*-freebsd*): Add known path for ld-elf.so.1 if not produced by gcc.
2003-06-17 11:01:17 +00:00
Alan Modra
37c18fe25f
* ld-powerpc/tlsexetoc.d: Update.
...
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlstoc.d: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.r: Update.
2003-06-16 10:51:07 +00:00
Hans-Peter Nilsson
b826ae225a
* configure.tgt: Add specific case for cris-*-linux-gnu*
...
with crislinux emulation only.
2003-06-16 00:03:48 +00:00
Hans-Peter Nilsson
1de1cfb15b
* ld-cris/ldsym1.d: Restrict to cris-*-*elf* and cris-*-*aout*.
...
* ld-cris/noglob1.d: Ditto.
* ld-cris/badgotr1.d: Pass --underscore to gas.
2003-06-16 00:02:36 +00:00
Nick Clifton
a06a29f25f
Add i386-netbsd-gnu target.
2003-06-13 13:17:58 +00:00
Thiemo Seufer
31a1f3a136
* ld-mips-elf/elf-rel-got-n64-linux.d: New file.
...
* ld-mips-elf/elf-rel-xgot-n64-linux.d: New file.
* ld-mips-elf/mips-elf.exp: Use the new files for Linux.
2003-06-12 17:07:14 +00:00
Richard Sandiford
728fa2f69b
* configure.tgt (mips*-sgi-irix6*): Add the o32 and n64 emulations
...
to $targ_extra_libpath.
2003-06-12 05:48:06 +00:00
Thiemo Seufer
2d8f7dc8d5
* ld-mips-elf/relax-jalr.s: Fix testsuite breakage.
...
* ld-mips-elf/relax-jalr-n32.d: Likewise.
* ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
* ld-mips-elf/relax-jalr-n64.d: Likewise.
* ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2003-06-11 22:51:59 +00:00
Thiemo Seufer
d80dcc6af4
* elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME): Use .MIPS.options
...
for n32, too.
(MIPS_ELF_STUB_SECTION_NAME): Use .MIPS.stubs for n32, too.
(mips_elf_rel_dyn_section): Use appropriate section alignment.
(mips_elf_create_got_section): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Likewise.
* ld-mips-elf/multi-got-1.d: Adjust addresses.
* ld-mips-elf/rel32-n32.d: Likewise.
2003-06-11 21:01:50 +00:00
Alan Modra
4c80642a39
* ld-srec/srec.exp (run_srec_test): Remove powerpc64 xfails, and
...
xfail for hppa duplicated elsewhere.
2003-06-11 06:20:44 +00:00
H.J. Lu
3b4433739c
bfd/
...
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
binutils/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
gas/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
gprof/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
ld/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
opcodes/
2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
* po/Make-in (DESTDIR): New.
(install-data-yes): Support $(DESTDIR).
(uninstall): Likewise.
2003-06-11 01:32:08 +00:00
Doug Evans
cfa1ac0cb2
* Makefile.am (ALL_EMULATIONS): Add em32relf.o.
...
* Makefile.in: Regenerate.
2003-06-10 23:29:19 +00:00
Thiemo Seufer
5ef0935e19
* gas/mips/mips.exp: Fix typo.
...
* gas/mips/elempic.d: Force o64 ABI.
* gas/mips/telempic.d: Likewise.
* ld-mips-elf/rel32-n32.d: Force big endian assembly.
* ld-mips-elf/rel32-o32.d: Likewise.
* ld-mips-elf/rel64.d: Likewise.
2003-06-10 19:45:24 +00:00
Richard Sandiford
d1b2d571cc
* scripttempl/h8300sxn.sc: New file.
2003-06-10 08:31:04 +00:00
Richard Sandiford
f4984206d8
include/elf/
...
* h8.h (E_H8_MACH_H8300SXN): New flag.
bfd/
* archures.c (bfd_mach_h8300sxn): New architecture.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (h8300_scan): Check for 'sxn'.
(h8300sxn_info_struct): New.
(h8300sx_info_struct): Link to it.
* elf32-h8300.c (elf32_h8_mach): Add h8300sxn case.
(elf32_h8_final_write_processing): Likewise.
gas/
* config/tc-h8300.c (h8300sxnmode): New.
(md_pseudo_table): Add .h8300sxn entry. Sync others with FSF version.
ld/
* configure.tgt (h8300*): Add h8300sxn emulations.
* Makefile.am (ALL_EMULATIONS): Add eh8300sxn.o and eh8300sxnelf.o.
(eh8300sxn.c, eh8300sxnelf.c): New rules.
* Makefile.in: Regenerate.
* emulparams/h8300sxnelf.sh, emulparams/h8300sxn.sh: New files.
2003-06-10 07:09:31 +00:00
Alan Modra
81cacc150b
* ld-elfvsb/elfvsb.exp: Run for powerpc64 too.
...
* ld-powerpc/tls.t: Update.
* ld-powerpc/tlsexe.d: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexetoc.d: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-powerpc/tlsexetoc.t: Update.
* ld-powerpc/tlsso.d: Update.
* ld-powerpc/tlsso.g: Update.
* ld-powerpc/tlsso.r: Update.
* ld-powerpc/tlsso.t: Update.
* ld-powerpc/tlstocso.d: Update.
* ld-powerpc/tlstocso.g: Update.
* ld-powerpc/tlstocso.r: Update.
* ld-powerpc/tlstocso.t: Update.
2003-06-10 04:36:01 +00:00
Alan Modra
285272bdb0
* emulparams/elf64ppc.sh (EXECUTABLE_SYMBOLS, OTHER_BSS_END_SYMBOLS,
...
CTOR_START, CTOR_END, DTOR_START, DTOR_END): Don't define.
2003-06-10 04:35:28 +00:00
Alan Modra
0b9a4d73a8
* emultempl/ppc64elf.em (emit_stub_syms, toc_section): New vars.
...
(build_toc_list): New function.
(gld${EMULATION_NAME}_finish): Call build_toc_list and
ppc64_elf_reinit_toc. Adjust ppc64_elf_build_stubs call.
(OPTION_STUBSYMS): Define.
(PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
(PARSE_AND_LIST_OPTIONS): Document.
(PARSE_AND_LIST_ARGS_CASES): Handle.
2003-06-08 14:07:34 +00:00
Roland McGrath
c16d554dbf
.
2003-06-06 06:28:50 +00:00
Roland McGrath
10b4329d5b
2003-06-05 Roland McGrath <roland@redhat.com>
...
* emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Remove
extra \t in -z noexecstack line.
2003-06-06 06:28:42 +00:00
Jakub Jelinek
9ee5e4996f
binutils/
...
* readelf.c (get_segment_type): Handle PT_GNU_STACK.
bfd/
* elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_STACK.
(bfd_section_from_phdr): Likewise.
(map_sections_to_segments): Create PT_GNU_STACK segment header.
(get_program_header_size): Count with PT_GNU_STACK.
* elf-bfd.h (struct elf_obj_tdata): Add stack_flags.
* elflink.h (bfd_elfNN_size_dynamic_sections): Set stack_flags.
include/
* bfdlink.h (struct bfd_link_info): Add execstack and noexecstack.
* elf/common.h (PT_GNU_STACK): Define.
ld/
* ldgram.y (phdr_type): Grok PT_GNU_STACK.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add
-z execstack and -z noexecstack.
(gld${EMULATION_NAME}_list_options): Likewise.
* scripttempl/elf.sc: If not -r, discard .note.GNU-stack section.
2003-06-03 22:27:24 +00:00
Michael Snyder
65982ba6e7
2003-06-03 Michael Snyder <msnyder@redhat.com>
...
and Bernd Schmidt <bernds@redhat.com>
and Alexandre Oliva <aoliva@redhat.com>
* Makefile.am: Add new emulations for h8300sx.
* Makefile.in: Regenerate.
* configure.tgt: Add new emulations.
* emulparams/h8300sx.sh: New emulation.
* emulparams/h8300sxelf.sh: Ditto.
* scripttempl/h8300sx.sc: Ditto.
2003-06-03 21:43:52 +00:00
H.J. Lu
6f6f27f842
bfd/
...
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (elf_link_input_bfd): Call linker error_handler
for discarded definitions.
include/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (LD_DEFINITION_IN_DISCARDED_SECTION): New.
ld/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ldmisc.c: Include "bfdlink.h".
(error_handler): Handle LD_DEFINITION_IN_DISCARDED_SECTION
and -LD_DEFINITION_IN_DISCARDED_SECTION.
* Makefile.am: Rebuild dependency.
* Makefile.in: Regenerated.
ld/testsuite/
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Updated.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
2003-06-03 18:15:05 +00:00
H.J. Lu
b814bbcbee
2003-06-03 H.J. Lu <hongjiu.lu@intel.com>
...
* ld-elfcomm/elfcomm.exp: Mark tests untested if compiler is
not available.
2003-06-03 15:28:36 +00:00