2005-12-27 11:00:03 +00:00
|
|
|
|
2005-12-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/vi.po: New Vietnamese translation.
|
|
|
|
|
* configure.in (ALL_LINGUAS): Add vi.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2005-12-27 01:21:01 +00:00
|
|
|
|
2005-12-27 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-12-24 07:48:30 +00:00
|
|
|
|
2005-12-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Add prev.
|
|
|
|
|
* ldlang.c (output_statement_newfunc): Set os.prev.
|
|
|
|
|
(lang_insert_orphan): Likewise.
|
|
|
|
|
(output_prev_sec_find): Use os.prev.
|
|
|
|
|
|
2005-12-22 17:43:34 +00:00
|
|
|
|
2005-12-22 Santosh Raktawan <santoshr2@kpitcummins.com>
|
|
|
|
|
|
|
|
|
|
* ld/emulparms/h8300helf.sh (TINY_READONLY_SECTION,
|
|
|
|
|
TINY_DATA_SECTION, TINY_BSS_SECTION): Define.
|
|
|
|
|
* ld/emulparms/h8300self.sh: Likewise.
|
|
|
|
|
* ld/emulparms/h8300sxelf.sh: Likewise.
|
|
|
|
|
* ld/scripttempl/elf.sc: Add TINY_READONLY_SECTION,
|
|
|
|
|
TINY_DATA_SECTION, TINY_BSS_SECTION.
|
|
|
|
|
|
2005-12-19 15:06:40 +00:00
|
|
|
|
2005-12-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/2065
|
|
|
|
|
* ldlang.c (output_statement_newfunc): Revert the change made on
|
|
|
|
|
2005-11-16.
|
2005-12-20 01:22:48 +00:00
|
|
|
|
(output_prev_sec_find): Likewise.
|
|
|
|
|
* ldlang.h (lang_statement_list_type): Likewise.
|
2005-12-19 15:06:40 +00:00
|
|
|
|
|
Second part of ms1 to mt renaming.
* bfd/archures.c (bfd_arch_mt): Renamed.
(bfd_mt_arch): Renamed.
(bfd_archures_list): Adjusted.
* bfd/bfd-in2.h: Rebuilt.
* bfd/config.bfd (mt): Remove special case targ_archs.
(mt-*-elf): Rename bfd_elf32_mt_vec.
* bfd/configure: Rebuilt.
* bfd/configure.in (bfd_elf32_mt_vec): Renamed.
(selarchs) Remove mt special case.
* bfd/cpu-mt.c (arch_info_struct): Adjust.
(bfd_mt_arch): Renamed, adjust.
* bfd/elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
mt_elf_howto_table): Renamed, adjusted.
(mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
mt_elf_print_private_bfd_data): Renamed, adjusted.
(TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
elf_backend_gc_sweep_hook, elf_backend_check_relocs,
eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
bfd_elf32_bfd_copy_private_bfd_data,
bfd_elf32_bfd_merge_private_bfd_data,
bfd_elf32_bfd_print_private_bfd_data): Adjusted.
* bfd/libbfd.h: Regenerated.
* bfd/reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
* bfd/targets.c (bfd_elf32_mt_vec): Renamed.
(_bfd_target_vector): Adjusted.
* binutils/readelf.c (guess_is_rela): Use EM_MT.
(dump_relocations, get_machine_name): Adjust.
* cpu/mt.cpu (define-arch, define-isa): Set name to mt.
(define-mach): Adjust.
* cpu/mt.opc (CGEN_ASM_HASH): Update.
(mt_asm_hash, mt_cgen_insn_supported): Renamed.
(parse_loopsize, parse_imm16): Adjust.
* gas/configure: Rebuilt.
* gas/configure.in (mt): Remove special case.
* gas/config/tc-mt.c (opcodes/mt-desc.h, opcodes/mt-opc.h): Change
#includes.
(mt_insn, mt_mach, mt_mach_bitmask, mt_flags, mt_architectures):
Rename, adjust.
(md_parse_option, md_show_usage, md_begin, md_assemble,
md_cgen_lookup_reloc, md_atof): Adjust.
(mt_force_relocation, mt_apply_fix, mt_fix_adjustable): Rename, adjust.
* gas/config/tc-mt.h (TC_MT): Rename.
(LISTING_HEADER, TARGET_ARCH, TARGET_FORMAT): Adjust.
(md_apply_fix): Adjust.
(mt_apply_fix, mt_fix_adjustable, mt_force_relocation): Rename.
(TC_FORCE_RELOCATION, tc_fix_adjustable): Adjust.
* gdb/mt-tdep.c (mt_arch_constants, mt_gdb_regnums): Rename, adjust.
(mt_register_name, mt_register_type, mt_register_reggroup_p,
mt_return_value, mt_skip_prologue, mt_breapoint_from_pc,
mt_pseudo_register_read, mt_pseudo_register_write, mt_frame_align,
mt_registers_info, mt_push_dummy_call, mt_unwind_cache,
mt_frame_unwind_cache, mt_unwind_pc, mt_unwind_dummy_id,
mt_frame_this_id, mt_frame_prev_register, mt_frame_base_address,
mt_frame_unwind, mt_frame_sniffer, mt_frame_base, mt_gdbarch_init,
_initialize_mt_tdep): Rename & adjust.
* include/dis-asm.h (print_insn_mt): Renamed.
* include/elf/common.h (EM_MT): Renamed.
* include/elf/mt.h: Rename relocs, cpu & other defines.
* ld/emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
* opcodes/Makefile.am (HFILES, CFILES, ALL_MACHINES): Adjust.
(stamp-mt): Adjust rule.
(mt-asm.lo, mt-desc.lo, mt-dis.lo, mt-ibld.lo, mt-opc.lo): Rename &
adjust.
* opcodes/Makefile.in: Rebuilt.
* opcodes/configure: Rebuilt.
* opcodes/configure.in (bfd_mt_arch): Rename & adjust.
* opcodes/disassemble.c (ARCH_mt): Renamed.
(disassembler): Adjust.
* opcodes/mt-asm.c: Renamed, rebuilt.
* opcodes/mt-desc.c: Renamed, rebuilt.
* opcodes/mt-desc.h: Renamed, rebuilt.
* opcodes/mt-dis.c: Renamed, rebuilt.
* opcodes/mt-ibld.c: Renamed, rebuilt.
* opcodes/mt-opc.c: Renamed, rebuilt.
* opcodes/mt-opc.h: Renamed, rebuilt.
* sid/Makefile.in: Rebuilt.
* sid/aclocal.m4: Rebuilt.
* sid/configure: Rebuilt.
* sid/sid.spec: Adjust.
* sid/bsp/Makefile.am: Adjust.
* sid/bsp/Makefile.in: Rebuilt.
* sid/bsp/aclocal.m4: Rebuilt.
* sid/bsp/configrun-sid.in: Adjust.
* sid/bsp/pregen/Makefile.in: Rebuilt.
* sid/bsp/pregen/mt-gdb.conf: Renamed & rebuilt.
* sid/bsp/pregen/mt-gloss.conf: Renamed & rebuilt.
* sid/bsp/pregen/pregen-configs.in: Adjust.
* sid/component/aclocal.m4: Rebuilt.
* sid/component/configure: Rebuilt.
* sid/component/tconfig.in: Adjust.
* sid/component/bochs/aclocal.m4: Rebuilt.
* sid/component/cache/Makefile.in: Rebuilt.
* sid/component/cgen-cpu/Makefile.in: Rebuilt.
* sid/component/cgen-cpu/aclocal.m4: Rebuilt.
* sid/component/cgen-cpu/compCGEN.cxx: Adjust.
* sid/component/cgen-cpu/configure: Rebuilt.
* sid/component/cgen-cpu/configure.in: Rebult.
* sid/component/cgen-cpu/mt/Makefile.am: Adjust.
* sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
* sid/component/cgen-cpu/mt/hw-cpu-mt.txt: Adjust.
* sid/component/cgen-cpu/mt/mt-cpu.h: Rebuilt.
* sid/component/cgen-cpu/mt/mt-decode.cxx: Rebuilt.
* sid/component/cgen-cpu/mt/mt-decode.h: Rebuilt.
* sid/component/cgen-cpu/mt/mt-defs.h: Rebuilt.
* sid/component/cgen-cpu/mt/mt-desc.h: Rebuilt.
* sid/component/cgen-cpu/mt/mt-sem.cxx: Rebuilt.
* sid/component/cgen-cpu/mt/mt-write.cxx: Rebuilt.
* sid/component/cgen-cpu/mt/mt.cxx: Adjust.
* sid/component/cgen-cpu/mt/mt.h: Adjust.
* sid/component/consoles/Makefile.in: Rebuilt.
* sid/component/families/aclocal.m4: Rebuilt.
* sid/component/families/configure: Rebuilt.
* sid/component/gdb/Makefile.in: Rebuilt.
* sid/component/gloss/Makefile.in: Rebuilt.
* sid/component/glue/Makefile.in: Rebuilt.
* sid/component/ide/Makefile.in: Rebuilt.
* sid/component/interrupt/Makefile.in: Rebuilt.
* sid/component/lcd/Makefile.in: Rebuilt.
* sid/component/lcd/testsuite/Makefile.in: Rebuilt.
* sid/component/loader/Makefile.am: Rebuilt.
* sid/component/loader/Makefile.in: Rebuilt.
* sid/component/mapper/Makefile.in: Rebuilt.
* sid/component/mapper/testsuite/Makefile.in: Rebuilt.
* sid/component/memory/Makefile.in: Rebuilt.
* sid/component/mmu/Makefile.in: Rebuilt.
* sid/component/parport/Makefile.in: Rebuilt.
* sid/component/profiling/Makefile.in: Rebuilt.
* sid/component/rtc/Makefile.in: Rebuilt.
* sid/component/sched/Makefile.in: Rebuilt.
* sid/component/testsuite/Makefile.in: Rebuilt.
* sid/component/timers/aclocal.m4: Rebuilt.
* sid/component/timers/configure: Rebuilt.
* sid/component/uart/Makefile.in: Rebuilt.
* sid/component/uart/testsuite/Makefile.in: Rebuilt.
* sid/config/config.sub: Adjust.
* sid/config/info.tcl.in: Adjust.
* sid/config/sidtargets.m4: Adjust.
* sid/doc/Makefile.in: Rebuilt.
* sid/main/dynamic/Makefile.am: Rebuilt.
* sid/main/dynamic/Makefile.in: Rebuilt.
* sid/main/dynamic/aclocal.m4: Rebuilt.
* sid/main/dynamic/configure: Rebuilt.
2005-12-16 10:23:12 +00:00
|
|
|
|
2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
Second part of ms1 to mt renaming.
|
|
|
|
|
* emulparams/elf32mt.sh (ARCH, OUTPUT_FORMAT): Adjust.
|
|
|
|
|
|
2005-12-14 15:15:55 +00:00
|
|
|
|
2005-12-14 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Put .gnu.linkonce.d.rel.ro.* sections into
|
|
|
|
|
.data.rel.ro output section. Fix a pasto for -z nocombreloc
|
|
|
|
|
.rela.data.rel.ro section content.
|
|
|
|
|
|
2005-12-12 11:25:08 +00:00
|
|
|
|
2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files.
|
|
|
|
|
(eelf32mt.c): Update target name and dependencies.
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
* configure.tgt: Replace ms1 arch with mt arch.
|
|
|
|
|
* emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update
|
|
|
|
|
comment.
|
|
|
|
|
|
2005-12-11 00:49:19 +00:00
|
|
|
|
2005-12-11 Bernhard Fischer <aldot@gcc.gnu.org>
|
|
|
|
|
|
|
|
|
|
* scripttempl/armbpabi.sc: Fix typo in comment for .ctors.
|
|
|
|
|
* scripttempl/elf.sc: Ditto.
|
|
|
|
|
* scripttempl/elf32sh-symbian.sc: Ditto.
|
|
|
|
|
* scripttempl/elf_chaos.sc: Ditto.
|
|
|
|
|
* scripttempl/elfd10v.sc: Ditto.
|
|
|
|
|
* scripttempl/elfd30v.sc: Ditto.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Ditto.
|
|
|
|
|
* scripttempl/iq2000.sc: Ditto.
|
|
|
|
|
* scripttempl/xstormy16.sc: Ditto.
|
|
|
|
|
|
2005-12-08 11:41:12 +00:00
|
|
|
|
2005-12-08 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc32elf.em (emit_stub_syms): New var.
|
|
|
|
|
(ppc_after_open): Pass it to ppc_elf_select_plt_layout.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE <OPTION_STUBSYMS>): Define.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add emit-stub-syms.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Describe emit-stub-syms.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Handle it.
|
|
|
|
|
|
2005-12-08 11:38:25 +00:00
|
|
|
|
2005-12-08 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (build_filler_bfd): Conform error message to standard.
|
|
|
|
|
(pe_dll_generate_implib): Use %E in error message.
|
|
|
|
|
(add_bfd_to_link): Likewise.
|
|
|
|
|
(pe_implied_import_dll): Likewise.
|
|
|
|
|
|
2005-12-07 14:43:54 +00:00
|
|
|
|
2005-12-07 Thiemo Seufer <ths@networkno.de>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/1932
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
|
|
|
|
|
Adjust bfd_elf_record_link_assignment call.
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Remove call to bfd_hide_symbol.
|
|
|
|
|
|
2005-11-25 09:21:42 +00:00
|
|
|
|
2005-11-25 Jan Beulich <jbeulich@novell.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Make configdoc.texi writeable before trying
|
|
|
|
|
to write to it.
|
|
|
|
|
* Makefile.in: Refresh.
|
|
|
|
|
|
2005-11-24 06:02:08 +00:00
|
|
|
|
2005-11-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_output_section_find_by_flags): Add match_type param.
|
|
|
|
|
Run two passes, first using match_type, second without.
|
|
|
|
|
* ldlang.h (lang_match_sec_type_func): New typedef.
|
|
|
|
|
(lang_output_section_find_by_flags): Update prototype.
|
|
|
|
|
bfd_match_sections_by_type and lang_output_section_find_by_flags.
|
|
|
|
|
* emultempl/pe.em (place_orphan): Likewise.
|
|
|
|
|
|
2005-11-24 00:58:28 +00:00
|
|
|
|
2005-11-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_insert_orphan): Skip first assignment to dot
|
|
|
|
|
in script when looking for place to insert orphan statements.
|
|
|
|
|
|
2005-11-18 04:26:29 +00:00
|
|
|
|
2005-11-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme.
|
|
|
|
|
(.got, .toc1, .opd): Likewise.
|
|
|
|
|
|
2005-11-18 04:12:27 +00:00
|
|
|
|
2005-11-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional
|
|
|
|
|
changes to section alignment.
|
|
|
|
|
* ldmisc.c (vfinfo): Handle %ld and %lu.
|
|
|
|
|
|
2005-11-17 01:01:05 +00:00
|
|
|
|
2005-11-16 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (configdoc.texi): Set top_srcdir in configdoc.texi..
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* ld.texinfo: Include configdoc.texi and ldver.texi in man pages.
|
|
|
|
|
Add @file documentation.
|
2005-11-24 00:58:28 +00:00
|
|
|
|
|
2005-11-17 00:10:05 +00:00
|
|
|
|
2005-11-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_input_section_type): Remove "ifile" field.
|
|
|
|
|
(lang_insert_orphan, lang_add_section): Update prototypes.
|
|
|
|
|
* ldlang.c (lang_insert_orphan): Remove "file" param.
|
|
|
|
|
(lang_add_section): Likewise. Update all callers.
|
|
|
|
|
(wild_sort): Get an input section's bfd via "section->owner".
|
|
|
|
|
(size_input_section): Access just_syms_flag via bfd usrdata.
|
|
|
|
|
(lang_place_orphans): Update ldemul_place_orphan call.
|
|
|
|
|
* ldemul.h (ldemul_place_orphan): Remove input_statement param.
|
|
|
|
|
(struct ld_emulation_xfer_struct <place_orphan>): Likewise.
|
|
|
|
|
* ldemul.c (ldemul_place_orphan): Likewise.
|
|
|
|
|
* ldwrite.c (build_link_order): Access just_syms_flag via bfd usrdata.
|
|
|
|
|
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
|
|
|
|
|
* emultempl/beos.em (sort_by_file_name): Access bfd by section->owner.
|
|
|
|
|
(sort_sections): Likewise.
|
|
|
|
|
(place_orphan): Remove "file" param. Adjust lang_add_section call.
|
|
|
|
|
* emultempl/elf32.em (place_orphan): Remove "file" param. Adjust
|
|
|
|
|
lang_add_section and lang_insert_orphan calls.
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_add_stub_section): Adjust
|
|
|
|
|
lang_add_section call.
|
|
|
|
|
(build_section_lists): Access just_syms_flag via bfd usrdata.
|
|
|
|
|
* emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Adjust
|
|
|
|
|
lang_add_section call.
|
|
|
|
|
* emultempl/mmo.em (mmo_place_orphan): Remove "file" param. Adjust
|
|
|
|
|
lang_add_section and lang_insert_orphan calls.
|
|
|
|
|
* emultempl/pe.em (place_orphan): Likewise. Access bfd via section
|
|
|
|
|
owner.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_add_stub_section): Adjust
|
|
|
|
|
lang_add_section call.
|
|
|
|
|
(build_toc_list): Access just_syms_flag via bfd usrdata.
|
|
|
|
|
(build_section_lists): Likewise.
|
|
|
|
|
* emultempl/xtensaelf.em (elf_xtensa_place_orphan): Remove "file"
|
|
|
|
|
param. Adjust place_orphan call.
|
|
|
|
|
(ld_build_required_section_dependence): Access bfd via section owner.
|
|
|
|
|
|
2005-11-16 08:32:54 +00:00
|
|
|
|
2005-11-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Add prev.
|
|
|
|
|
* ldlang.c (new_afile): Always init header.type.
|
|
|
|
|
(output_statement_newfunc): Set os.prev.
|
|
|
|
|
(output_prev_sec_find): Use os.prev.
|
|
|
|
|
(lang_enter_output_section_statement): Formatting.
|
|
|
|
|
(lang_final, lang_add_target, lang_add_fill): Likewise.
|
|
|
|
|
(lang_add_data, lang_add_reloc): Likewise.
|
|
|
|
|
(lang_add_attribute): Only alloc the header.
|
|
|
|
|
|
2005-11-16 07:17:20 +00:00
|
|
|
|
2005-11-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Forced Output Alignment): Specify that this is an
|
|
|
|
|
alignment increase, not an override.
|
|
|
|
|
* ldlang.c (init_os): Set output section alignment here..
|
|
|
|
|
(lang_add_section): ..rather than here.
|
|
|
|
|
(lang_size_sections_1): Consolidate alignment code. Warn if section
|
|
|
|
|
alignment affects start address when explicit address given.
|
|
|
|
|
|
2005-11-07 22:21:48 +00:00
|
|
|
|
2005-11-07 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate after modifying bfd/warning.m4.
|
|
|
|
|
|
2005-11-06 23:12:36 +00:00
|
|
|
|
2005-11-07 Olaf Hering <olh@suse.de>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Add \n to error message.
|
|
|
|
|
|
2005-11-04 13:26:53 +00:00
|
|
|
|
2005-11-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
|
|
|
|
|
(output_statement_newfunc): Rewrite.
|
|
|
|
|
(lang_output_section_find_1): Merge into..
|
|
|
|
|
(lang_output_section_find): ..here.
|
|
|
|
|
(lang_output_section_statement_lookup_1): Rewrite to handle
|
|
|
|
|
multiple sections with the same name.
|
|
|
|
|
(output_statement_table_init): Commonise error message.
|
|
|
|
|
(lang_init, open_output): Likewise.
|
|
|
|
|
|
2005-11-03 15:01:58 +00:00
|
|
|
|
2005-11-03 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
|
|
|
|
|
* scripttempl/armbpabi.sc: Make init/fini array consistent with
|
|
|
|
|
elf.sc.
|
|
|
|
|
* scripttempl/elf32sh-symbian.sc: Ditto.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Ditto.
|
|
|
|
|
|
2005-11-03 02:54:10 +00:00
|
|
|
|
2005-11-03 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Rearrange. Remove
|
|
|
|
|
memspec. Make "processed" a bitfield.
|
|
|
|
|
(lang_data_statement_type, lang_reloc_statement_type): Rename
|
|
|
|
|
output_vma to output_offset.
|
|
|
|
|
* ldlang.c (lang_output_section_statement_lookup_1): Init
|
|
|
|
|
all_input_readonly. Don't init memspec.
|
|
|
|
|
(init_os): Remove incorrect comment.
|
|
|
|
|
(print_data_statement, print_reloc_statement): Adjust for
|
|
|
|
|
lang_data_statement_type and lang_reloc_statement_type change.
|
|
|
|
|
(lang_size_sections_1, lang_add_reloc): Likewise.
|
|
|
|
|
* ldwrite.c (build_link_order): Likewise.
|
|
|
|
|
|
2005-10-30 18:08:52 +00:00
|
|
|
|
2005-10-30 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (help): Document "@FILE".
|
|
|
|
|
|
2005-10-30 17:40:28 +00:00
|
|
|
|
2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
|
|
|
|
* dep-in.sed: Replace " ./" with " ".
|
|
|
|
|
|
2005-10-25 17:40:19 +00:00
|
|
|
|
2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add support for Z80
|
|
|
|
|
* Makefile.in: Regenerated
|
|
|
|
|
* configure.tgt: Add z80-*-coff
|
|
|
|
|
* emulparams/z80.sh: New file.
|
|
|
|
|
* emultempl/z80.em: New file.
|
|
|
|
|
* scripttempl/z80.sc New file.
|
|
|
|
|
* NEWS: Mention this new support.
|
|
|
|
|
|
2005-10-25 02:20:17 +00:00
|
|
|
|
2005-10-25 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2005-10-24 23:07:12 +00:00
|
|
|
|
2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (--reduce-memory-overheads): Fix typo.
|
|
|
|
|
|
2005-10-24 01:40:58 +00:00
|
|
|
|
2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/1487
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
|
|
|
|
|
bfd_match_sections_by_type to match section types.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (init_os): Take the input section. Call
|
|
|
|
|
bfd_init_private_section_data if the input section isn't NULL.
|
|
|
|
|
(exp_init_os): Pass NULL to init_os.
|
|
|
|
|
(map_input_to_output_sections): Likewise.
|
|
|
|
|
(lang_add_section): Pass the input section to init_os.
|
|
|
|
|
|
2005-10-19 14:43:21 +00:00
|
|
|
|
2005-10-19 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
|
|
|
|
|
|
2005-10-15 14:57:55 +00:00
|
|
|
|
2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/1467
|
|
|
|
|
* emultempl/elf32.em: Include "elf-bfd.h".
|
|
|
|
|
(gld${EMULATION_NAME}_place_orphan): Check section type and
|
|
|
|
|
don't use section name for ELF input sections.
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document orphan section processing.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_output_section_find_by_flags): Match section
|
|
|
|
|
types by calling bfd_match_sections_by_type.
|
|
|
|
|
|
2005-10-13 17:29:57 +00:00
|
|
|
|
2005-10-13 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texino: Describe double-quoted string syntax for version
|
|
|
|
|
nodes.
|
|
|
|
|
* ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
|
|
|
|
|
* ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
|
|
|
|
|
Adjust calls to lang_new_vers_pattern to pass literal_p argument.
|
|
|
|
|
* ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
|
|
|
|
|
version nodes without a pattern.
|
|
|
|
|
(lang_new_vers_pattern): Add literal_p parameter.
|
|
|
|
|
(lang_do_version_exports_section): Pass it.
|
|
|
|
|
|
2005-10-13 00:57:43 +00:00
|
|
|
|
2005-10-12 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention @file.
|
|
|
|
|
|
2005-10-05 16:12:17 +00:00
|
|
|
|
2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/1396
|
|
|
|
|
* ldcref.c (check_refs): Accept bfd_boolean.
|
|
|
|
|
(check_local_sym_xref): Pass FALSE to check_refs.
|
|
|
|
|
(check_nocrossref): Pass TRUE to check_refs.
|
|
|
|
|
(check_refs_info): Add bfd_boolean.
|
|
|
|
|
(check_refs): Add bfd_boolean to check_refs_info.
|
|
|
|
|
(check_reloc_refs): Match relocations with proper symbols.
|
|
|
|
|
|
|
|
|
|
* ldmisc.c (vfinfo): Don't add extra ":\n".
|
|
|
|
|
|
2005-10-05 08:07:51 +00:00
|
|
|
|
2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
|
|
|
|
|
default entry symbol to ENTRY here.
|
|
|
|
|
* scripttempl/pe.sc: Not here.
|
|
|
|
|
|
2005-09-30 22:10:54 +00:00
|
|
|
|
2005-09-30 James E Wilson <wilson@specifix.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_startup): Add missing ": " to einfo call.
|
|
|
|
|
|
2005-09-30 18:59:46 +00:00
|
|
|
|
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* aclocal.m4: Likewise.
|
|
|
|
|
|
2005-09-30 17:45:54 +00:00
|
|
|
|
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (output_statement_hash_entry): New type.
|
|
|
|
|
(output_statement_table): New variable for hash table.
|
|
|
|
|
(output_statement_newfunc): New function.
|
|
|
|
|
(output_statement_table_init): Likewise.
|
|
|
|
|
(output_statement_table_free): Likewise.
|
|
|
|
|
(lang_init): Call output_statement_table_init.
|
|
|
|
|
(lang_finish): Renamed to ...
|
|
|
|
|
(lang_end): This.
|
|
|
|
|
(lang_process): Updated.
|
|
|
|
|
(lang_finish): New function.
|
|
|
|
|
(lang_output_section_find_1): Use hash table.
|
|
|
|
|
(lang_output_section_statement_lookup_1): Likewise.
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_finish): New.
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Call lang_finish.
|
|
|
|
|
|
2005-09-30 16:37:32 +00:00
|
|
|
|
2005-09-30 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Use expandargv.
|
|
|
|
|
|
2005-09-30 15:23:16 +00:00
|
|
|
|
2005-09-30 Catherine Moore <clm@cm00re.com>
|
2005-11-04 13:26:53 +00:00
|
|
|
|
|
2005-09-30 15:23:16 +00:00
|
|
|
|
* Makefile.am: Bfin support.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* aclocal.m4: Regenerated.
|
|
|
|
|
* configure.tgt: Bfin support.
|
|
|
|
|
* emulparams/bfin.sh: New file.
|
|
|
|
|
* emultempl/bfin.em: New file.
|
|
|
|
|
|
2005-09-30 11:42:05 +00:00
|
|
|
|
2005-09-30 Matthias Kurz <mk@baerlap.north.de>
|
|
|
|
|
|
|
|
|
|
* ld.h: Prevent the inclusion of <libintl.h> from the Solaris
|
|
|
|
|
version of <locale.h> when ENABLE_NLS is not defined.
|
|
|
|
|
|
2005-09-28 00:34:21 +00:00
|
|
|
|
2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (ALIGN): Document it as forcing output section
|
|
|
|
|
alignment.
|
|
|
|
|
|
|
|
|
|
* ldgram.y (ALIGN): Support it for forcing output section
|
|
|
|
|
alignment.
|
|
|
|
|
|
2005-09-19 23:17:47 +00:00
|
|
|
|
2005-09-20 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2005-09-20 03:00:53 +00:00
|
|
|
|
* ldlang.h (lang_output_section_statement_struct): Change type of
|
|
|
|
|
"processed" to bfd_boolean.
|
|
|
|
|
* ldexp.c (fold_name): Update references to os->processed.
|
|
|
|
|
* ldlang.c (lang_output_section_statement_lookup_1): Likewise.
|
|
|
|
|
(lang_size_sections_1): Likewise.
|
|
|
|
|
(lang_reset_memory_regions): Likewise.
|
|
|
|
|
|
2005-09-19 23:17:47 +00:00
|
|
|
|
PR ld/1353
|
|
|
|
|
* ldlang.c (lang_size_sections_1): Process addr_tree earlier,
|
|
|
|
|
so that unused output section statements affect dot.
|
|
|
|
|
|
2005-09-08 16:03:26 +00:00
|
|
|
|
2005-09-08 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document -z {no,}execstack, -z {no,}relro
|
|
|
|
|
and --eh-frame-hdr options.
|
|
|
|
|
|
2005-09-07 06:27:36 +00:00
|
|
|
|
2005-09-07 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
|
|
|
|
|
(exp_fold_tree_1): Print assert message only in final stage of
|
|
|
|
|
linking. Trigger assertion failure if expression cannot be
|
|
|
|
|
evaluated.
|
|
|
|
|
|
2005-09-07 05:01:53 +00:00
|
|
|
|
2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR ld/1263
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
|
|
|
|
|
--just-symbols on DSO.
|
|
|
|
|
|
2005-08-18 07:15:17 +00:00
|
|
|
|
2005-08-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Remove commented out defines.
|
|
|
|
|
|
2005-08-18 03:51:51 +00:00
|
|
|
|
2005-08-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2005-08-18 03:59:24 +00:00
|
|
|
|
* emulparams/a29k.sh: Delete.
|
|
|
|
|
* emulparams/ebmon29k.sh: Delete.
|
|
|
|
|
* emulparams/sa29200.sh: Delete.
|
2005-08-18 03:51:51 +00:00
|
|
|
|
* Makefile.am: Remove a29k support.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* ld.texinfo: Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-08-17 10:08:30 +00:00
|
|
|
|
2005-08-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (vers_defns): Don't lose pattern list before
|
|
|
|
|
extern NAME {}. Handle global, local and extern symbol names.
|
|
|
|
|
|
2005-08-17 05:13:13 +00:00
|
|
|
|
2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
|
|
|
|
|
|
|
|
|
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
|
|
|
|
|
Don't increment rel_count of .cranges here. Set rawsize of .cranges.
|
|
|
|
|
|
2005-08-10 16:46:30 +00:00
|
|
|
|
2005-08-10 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
|
|
|
|
|
before lang_size_sections.
|
|
|
|
|
|
2005-08-09 03:45:55 +00:00
|
|
|
|
2005-08-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
|
|
|
|
|
|
|
|
|
|
2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
|
2005-08-08 17:08:04 +00:00
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
|
|
|
|
|
Add rules to build these emulations.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt (msp430): Add the new variants to the
|
|
|
|
|
targ_extra_emuls list.
|
|
|
|
|
* emulparams/msp430all.sh: Add entries for the msp430x21xx
|
|
|
|
|
variants.
|
|
|
|
|
|
2005-08-05 13:52:13 +00:00
|
|
|
|
2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document PROVIDE_HIDDEN.
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
|
|
|
|
|
(exp_provide): Add and set hidden.
|
|
|
|
|
|
|
|
|
|
* ldexp.h (etree_type): Add hidden to assign.
|
|
|
|
|
|
|
|
|
|
* ldgram.y (PROVIDE_HIDDEN): New.
|
|
|
|
|
* ldlex.l (PROVIDE_HIDDEN): Likewise.
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
|
|
|
|
|
symbols.
|
|
|
|
|
|
2005-08-05 13:42:22 +00:00
|
|
|
|
2005-08-05 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf_x86_64.sh: Revert last change.
|
|
|
|
|
* scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
|
|
|
|
|
|
2005-08-05 04:29:57 +00:00
|
|
|
|
2005-08-05 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
|
|
|
|
|
OTHER_END_SYMBOLS.
|
|
|
|
|
* emulparams/armelf_linux.sh: Likewise.
|
|
|
|
|
* emulparams/armnto.sh: Likewise.
|
|
|
|
|
* emulparams/criself.sh: Likewise.
|
|
|
|
|
* emulparams/elf32mcore.sh: Likewise.
|
|
|
|
|
* emulparams/criself.sh (OTHER_SYMBOLS): Define.
|
|
|
|
|
* emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
|
|
|
|
|
(OTHER_END_SYMBOLS): Don't define.
|
|
|
|
|
* emulparams/elf32fr30.sh: Likewise.
|
|
|
|
|
* emulparams/elf64mmix.sh: Likewise.
|
|
|
|
|
* emulparams/hppa64linux.sh: Likewise.
|
|
|
|
|
* emulparams/m32relf.sh: Likewise.
|
|
|
|
|
* emulparams/vxworks.sh: Likewise.
|
|
|
|
|
* scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
|
|
|
|
|
(OTHER_BSS_END_SYMBOLS): Add.
|
|
|
|
|
(OTHER_END_SYMBOLS): Move before current end sym definitions.
|
|
|
|
|
(OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
|
|
|
|
|
* scripttempl/elf.sc: Likewise.
|
|
|
|
|
* scripttempl/elf32sh-symbian.sc: Likewise.
|
|
|
|
|
* scripttempl/elf_chaos.sc: Likewise.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Likewise.
|
|
|
|
|
* scripttempl/iq2000.sc: Likewise.
|
|
|
|
|
* scripttempl/xstormy16.sc: Likewise.
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
|
|
|
|
|
(REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
|
|
|
|
|
(REL_LARGE, LARGE_SECTIONS): Add.
|
|
|
|
|
* emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
|
|
|
|
|
(REL_LARGE): Define.
|
|
|
|
|
* emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
|
|
|
|
|
(LARGE_SECTIONS): Define.
|
|
|
|
|
* emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
|
|
|
|
|
(LARGE_SECTIONS): Define.
|
|
|
|
|
|
2005-08-04 06:22:14 +00:00
|
|
|
|
2005-08-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
|
|
|
|
|
* ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
|
|
|
|
|
(struct ld_emulation_xfer_struct): Remove do_assignments field.
|
|
|
|
|
* ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
|
|
|
|
|
* emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
|
|
|
|
|
(SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
|
|
|
|
|
* emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
|
|
|
|
|
* emultempl/armcoff.em: Likewise.
|
|
|
|
|
* emultempl/beos.em: Likewise.
|
|
|
|
|
* emultempl/generic.em: Likewise.
|
|
|
|
|
* emultempl/gld960.em: Likewise.
|
|
|
|
|
* emultempl/gld960c.em: Likewise.
|
|
|
|
|
* emultempl/linux.em: Likewise.
|
|
|
|
|
* emultempl/lnk960.em: Likewise.
|
|
|
|
|
* emultempl/m68kcoff.em: Likewise.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/sunos.em: Likewise.
|
|
|
|
|
* emultempl/ticoff.em: Likewise.
|
|
|
|
|
* emultempl/vanilla.em: Likewise.
|
|
|
|
|
* emultempl/elf32.em: Likewise.
|
|
|
|
|
(gld*_provide_bound_symbols): Delete.
|
|
|
|
|
(gld*_provide_init_fini_syms): Delete.
|
|
|
|
|
(gld*_before_allocation): Don't call ldemul_do_assignments.
|
|
|
|
|
* emultempl/ppc32elf.em (ppc_do_assignments): Delete.
|
|
|
|
|
(LDEMUL_DO_ASSIGNMENTS): Delete.
|
|
|
|
|
* scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
|
|
|
|
|
SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
|
|
|
|
|
|
2005-08-04 04:00:03 +00:00
|
|
|
|
2005-08-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (eelf32m32c.c): Fix dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-08-04 01:19:10 +00:00
|
|
|
|
2005-08-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
|
|
|
|
|
(finish_default): New function.
|
|
|
|
|
* ldemul.h (finish_default): Declare.
|
|
|
|
|
* emultempl/aix.em (gld*_before_allocation): Call
|
|
|
|
|
before_allocation_default rather than strip_excluded_output_sections.
|
|
|
|
|
(ld_*_emulation): Init finish field to finish_default.
|
|
|
|
|
* emultempl/armcoff.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/m68kcoff.em: Likewise.
|
|
|
|
|
* emultempl/mmo.em: Likewise.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em: Likewise.
|
|
|
|
|
* emultempl/sunos.em: Likewise.
|
|
|
|
|
* emultempl/ticoff.em: Likewise.
|
|
|
|
|
* emultempl/vanilla.em: Likewise.
|
|
|
|
|
|
2005-08-03 05:09:49 +00:00
|
|
|
|
2005-08-03 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (exp_init_os): Handle etree_provide.
|
|
|
|
|
* emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
|
|
|
|
|
(OTHER_BSS_END_SYMBOLS): ..this.
|
|
|
|
|
* emulparams/armelf_linux.sh: Likewise.
|
|
|
|
|
* emulparams/armnto.sh: Likewise.
|
|
|
|
|
* emulparams/criself.sh: Likewise.
|
|
|
|
|
* emulparams/crislinux.sh: Likewise.
|
|
|
|
|
* emulparams/elf32frv.sh: Likewise.
|
|
|
|
|
* emulparams/elf32mcore.sh: Likewise.
|
|
|
|
|
* emulparams/elf32ppc.sh: Likewise.
|
|
|
|
|
* emulparams/elf32ppclinux.sh: Likewise.
|
|
|
|
|
* emulparams/hppa64linux.sh: Likewise.
|
|
|
|
|
* scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
|
|
|
|
|
$OTHER_BSS_END_SYMBOLS.
|
|
|
|
|
* scripttempl/elf32sh-symbian.sc: Likewise.
|
|
|
|
|
* scripttempl/elf_chaos.sc: Likewise.
|
|
|
|
|
* scripttempl/iq2000.sc: Likewise.
|
|
|
|
|
* scripttempl/xstormy16.sc: Likewise.
|
|
|
|
|
* scripttempl/elf.sc: Likewise. Delete __bss_start comment.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Likewise.
|
|
|
|
|
|
2005-07-29 13:32:45 +00:00
|
|
|
|
2005-07-29 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Allow -shared and -static to be used together.
|
|
|
|
|
* ld.texinfo (-static): Mention that it is allowed with -shared.
|
|
|
|
|
|
2005-07-28 20:08:15 +00:00
|
|
|
|
2005-07-28 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
|
|
|
|
|
unary & address operator, as that breaks GCC's strict aliasing
|
|
|
|
|
rules.
|
|
|
|
|
|
2005-07-25 15:41:08 +00:00
|
|
|
|
2005-07-25 Jan Hubicka <jh@suse.cz>
|
|
|
|
|
H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Updated for large section support.
|
|
|
|
|
|
2005-07-22 10:34:30 +00:00
|
|
|
|
2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Remove i[3-7]86-*-rtemself*.
|
|
|
|
|
Remove sparc-*-rtemself*.
|
|
|
|
|
|
2005-07-21 07:59:10 +00:00
|
|
|
|
2005-07-21 Ben Elliston <bje@gnu.org>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (ldgram_want_filename): Remove unused static.
|
|
|
|
|
|
2005-07-20 19:33:18 +00:00
|
|
|
|
2005-07-20 DJ Delorie <dj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
|
|
|
|
|
(EXTRA_EM_FILE): New.
|
|
|
|
|
|
2005-07-19 21:41:03 +00:00
|
|
|
|
2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Reindent.
|
|
|
|
|
|
2005-07-19 12:43:19 +00:00
|
|
|
|
2005-07-19 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
|
|
|
|
|
to determine dynamic linker name.
|
|
|
|
|
|
2005-07-19 10:01:32 +00:00
|
|
|
|
2005-07-18 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Restore alpha ordering to list of arches.
|
|
|
|
|
|
2005-07-16 03:30:24 +00:00
|
|
|
|
2005-07-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
|
|
|
|
|
(gld*_before_allocation): Call ldemul_do_assignments rather than
|
|
|
|
|
gld*_provide_init_fini_syms directly.
|
|
|
|
|
* emultempl/ppc32elf.em (gld*_after_allocation): Delete.
|
|
|
|
|
(ppc_do_assignments): New function.
|
|
|
|
|
(LDEMUL_AFTER_ALLOCATION): Don't define.
|
|
|
|
|
(LDEMUL_DO_ASSIGNMENTS): Define.
|
|
|
|
|
|
2005-07-16 02:03:55 +00:00
|
|
|
|
2005-07-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
(emipsidt.c, emipsidtl.c): Depend on generic.em.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-07-15 12:19:15 +00:00
|
|
|
|
2005-07-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldemul.c (ldemul_do_assignments): New function.
|
|
|
|
|
(do_assignments_default): New function.
|
|
|
|
|
* ldemul.h (ldemul_do_assignments): Declare.
|
|
|
|
|
(do_assignments_default): Declare.
|
|
|
|
|
(struct ld_emulation_xfer_struct): Add do_assignments.
|
|
|
|
|
* ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
|
|
|
|
|
* emultempl/aix.em (ld_*_emulation): Init do_assignments field.
|
|
|
|
|
* emultempl/armcoff.em: Likewise.
|
|
|
|
|
* emultempl/beos.em: Likewise.
|
|
|
|
|
* emultempl/generic.em: Likewise.
|
|
|
|
|
* emultempl/gld960.em: Likewise.
|
|
|
|
|
* emultempl/gld960c.em: Likewise.
|
|
|
|
|
* emultempl/linux.em: Likewise.
|
|
|
|
|
* emultempl/lnk960.em: Likewise.
|
|
|
|
|
* emultempl/m68kcoff.em: Likewise.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/sunos.em: Likewise.
|
|
|
|
|
* emultempl/ticoff.em: Likewise.
|
|
|
|
|
* emultempl/vanilla.em: Likewise.
|
|
|
|
|
* emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
|
|
|
|
|
(gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
|
|
|
|
|
|
ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* configure.in: Add cases for Renesas m32c.
* configure: Regenerated.
bfd/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for m32c-*-elf (Renesas m32c and m16c).
* Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
(ALL_MACHINES_CFILES): Add cpu-m32c.c.
(BFD32_BACKENDS): Add elf32-m32c.lo.
(BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
(cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
* Makefile.in: Regenerated.
* archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
arch and mach codes.
(bfd_m32c_arch): New arch info object.
(bfd_archures_list): List bfd_m32c_arch.
* bfd-in2.h: Regenerated.
* config.bfd: Add case for the m32c.
* configure.in: Add case for the m32c.
* configure: Regenerated.
* cpu-m32c.c, elf32-m32c.c: New files.
* libbfd.h: Regenerated.
* targets.c (bfd_elf32_m32c_vec): Declare.
(_bfd_target_vector): List bfd_elf32_m32c_vec.
binutils/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* readelf.c: #include "elf/m32c.h"
(guess_is_rela, dump_relocations, get_machine_name): Add cases for
EM_M32C.
* Makefile.am (readelf.o): Update dependencies.
* Makefile.in: Regenerated.
cpu/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* m32c.cpu, m32c.opc: Machine description for the Renesas M32C.
gas/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C.
* Makefile.am (CPU_TYPES): List m32c.
(TARGET_CPU_CFILES): List config/tc-m32c.c.
(TARGET_CPU_HFILES): List config/tc-m32c.h.
* configure.in: Add case for m32c.
* configure.tgt: Add cases for m32c and m32c-*-elf.
* configure: Regenerated.
* config/tc-m32c.c, config/tc-m32c.h: New files.
* doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
* doc/Makefile.in: Regenerated.
* doc/all.texi: Set M32C.
* doc/as.texinfo: Add text for the M32C-specific options and line
comment characters, and refer to c-m32c.texi.
* doc/c-m32c.texi: New file.
include/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* dis-asm.h (print_insn_m32c): New declaration.
include/elf/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for Renesas M32C and M16C.
* common.h (EM_M32C): New machine number.
* m32c.h: New file.
ld/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C and M16C.
* Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
(eelf32m32c.c): New target.
* Makefile.in: Regenerated.
* configure.tgt: Add case for m32c-*-elf.
* emulparams/elf32m32c.sh: New file.
opcodes/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C and M16C.
* m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c: New.
* m32c-desc.h, m32c-opc.h: New.
* Makefile.am (HFILES): List m32c-desc.h and m32c-opc.h.
(CFILES): List m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c,
m32c-opc.c.
(ALL_MACHINES): List m32c-asm.lo, m32c-desc.lo, m32c-dis.lo,
m32c-ibld.lo, m32c-opc.lo.
(CLEANFILES): List stamp-m32c.
(M32C_DEPS): List stamp-m32c, if CGEN_MAINT.
(CGEN_CPUS): Add m32c.
(m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c)
(m32c-desc.h, m32c-opc.h): Depend on M32C_DEPS.
(m32c_opc_h): New variable.
(stamp-m32c, m32c-asm.lo, m32c-desc.lo, m32c-dis.lo, m32c-ibld.lo)
(m32c-opc.lo): New rules.
* Makefile.in: Regenerated.
* configure.in: Add case for bfd_m32c_arch.
* configure: Regenerated.
* disassemble.c (ARCH_m32c): New.
[ARCH_m32c]: #include "m32c-desc.h".
(disassembler) [ARCH_m32c]: Add case for bfd_arch_m32c.
(disassemble_init_for_target) [ARCH_m32c]: Same.
* cgen-ops.h, cgen-types.h: New files.
* Makefile.am (HFILES): List them.
* Makefile.in: Regenerated.
2005-07-14 22:52:28 +00:00
|
|
|
|
2005-07-14 Jim Blandy <jimb@redhat.com>
|
|
|
|
|
|
|
|
|
|
Add support for the Renesas M32C and M16C.
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
|
|
|
|
|
(eelf32m32c.c): New target.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* configure.tgt: Add case for m32c-*-elf.
|
|
|
|
|
* emulparams/elf32m32c.sh: New file.
|
|
|
|
|
|
2005-07-14 13:54:23 +00:00
|
|
|
|
2005-07-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (strip_excluded_output_sections): Don't call
|
|
|
|
|
bfd_gc_sections.
|
|
|
|
|
* emultempl/elf32.em (gld*_provide_bound_symbols): Move.
|
|
|
|
|
(gld*_provide_init_fini_syms): Move.
|
|
|
|
|
(gld*_before_allocation): Call the above from here..
|
|
|
|
|
(gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_finish): Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_finish): Likewise.
|
|
|
|
|
|
2005-07-11 07:43:53 +00:00
|
|
|
|
2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
|
|
|
|
|
i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
|
|
|
|
|
powerpcle-*-rtems*.
|
|
|
|
|
|
2005-07-10 01:33:13 +00:00
|
|
|
|
2005-07-09 Christopher Faylor <cgf@timesys.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
|
|
|
|
|
relocation by default.
|
|
|
|
|
(compute_dll_image_base): Avoid linking into cygwin dll address space.
|
|
|
|
|
|
2005-07-08 06:20:16 +00:00
|
|
|
|
2005-07-08 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (wild_sort): Formatting.
|
|
|
|
|
(strip_excluded_output_sections): Strip zero size sections here.
|
|
|
|
|
* emultempl/elf32.em (gld*_strip_empty_sections): Delete.
|
|
|
|
|
(gld*_finish): Don't call the above.
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_finish): Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_finish): Likewise.
|
|
|
|
|
|
2005-07-07 15:08:20 +00:00
|
|
|
|
2005-07-05 Paul Brook <paul@codesourcery.com>
|
2005-05-07 Paul Brook <paul@codesourcery.com>
bfd/
* config.bfd: Add separate case for ppc-vxworks.
* configure: Regenerate.
* configure.in: Include elf-vxworks.lo on ppc targets.
* elf-vxworks.c (elf_vxworks_final_write_processing): Handle
.rela.plt.unloaded.
* elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
(PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
(VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
(ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
(ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
(ppc_elf_create_got): Create .got.plt for VxWorks.
(ppc_elf_create_dynamic_sections): Create unloaded plt relocation
section for VxWorks.
(ppc_elf_select_plt_layout): Handle VxWorks plt format.
(allocate_got): VxWorks does not need a got header.
(allocate_dynrelocs): Handle VxWorks plt format.
(ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
VxWorks. Handle VxWorks plt/got.
(ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
(ppc_elf_vxworks_special_sections): New.
(ppc_elf_vxworks_link_hash_table_create,
ppc_elf_vxworks_add_symbol_hook,
elf_i386_vxworks_link_output_symbol_hook,
ppc_elf_vxworks_final_write_processing): New functions.
* targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
(_bfd_target_vector): Use it.
gas/
* config/tc-ppc.c (ppc_target_format): Add VxWorks.
gas/testsuite/
* gas/ppc/altivec.d: Match all powerpc target vecs.
* gas/ppc/booke.d: Ditto.
* gas/ppc/e500.d: Ditto.
ld/
* Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
(eelf32ppcvxworks.o): Add dependencies.
* Makefile.in: Regenerate.
* configure.tgt: Add entry for powerpc-vxworks.
* emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
* emulparams/elf32ppcvxworks.sh: New file.
* emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
(is_ppc_elf32_vec): New function.
(ppc_after_open, ppc_before_allocation,
gld${EMULATION_NAME}_after_allocation): Use it.
2005-07-05 13:25:56 +00:00
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
|
|
|
|
|
(eelf32ppcvxworks.o): Add dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Add entry for powerpc-vxworks.
|
|
|
|
|
* emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
|
|
|
|
|
* emulparams/elf32ppcvxworks.sh: New file.
|
|
|
|
|
* emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
|
|
|
|
|
(is_ppc_elf32_vec): New function.
|
|
|
|
|
(ppc_after_open, ppc_before_allocation,
|
|
|
|
|
gld${EMULATION_NAME}_after_allocation): Use it.
|
|
|
|
|
|
2005-07-05 12:17:55 +00:00
|
|
|
|
2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
|
|
|
|
|
* emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
|
|
|
|
|
|
2005-07-04 14:36:02 +00:00
|
|
|
|
2005-07-04 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
|
* emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
|
|
|
|
|
name.
|
|
|
|
|
|
2005-07-04 13:54:36 +00:00
|
|
|
|
2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
|
|
|
|
|
|
2005-07-04 04:04:19 +00:00
|
|
|
|
2005-07-04 Aurelien Jarno <aurel32@debian.org>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
|
|
|
|
|
|
2005-07-01 01:55:01 +00:00
|
|
|
|
2005-07-01 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
|
|
|
|
|
|
2005-06-30 00:54:06 +00:00
|
|
|
|
2005-06-30 Ben Elliston <bje@gnu.org>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (check-DEJAGNU): Don't search for expect.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-06-29 20:30:00 +00:00
|
|
|
|
2005-06-30 Ben Elliston <bje@gnu.org>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (EXPECT): Set to expect.
|
|
|
|
|
(RUNTEST): Likewise, set to runtest.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-06-16 09:46:10 +00:00
|
|
|
|
2005-06-16 Alexander Klimov <alserkli@inbox.ru>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em: Add quotes to avoid a null test
|
|
|
|
|
expression.
|
|
|
|
|
|
2005-06-12 18:38:39 +00:00
|
|
|
|
2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Command Line Options): Add @item for --hash-size.
|
|
|
|
|
|
2005-06-10 00:39:56 +00:00
|
|
|
|
2005-06-10 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempt/elf.sc (.bss): Align tail in a way that allows
|
|
|
|
|
empty section pruning.
|
|
|
|
|
|
2005-06-09 18:39:34 +00:00
|
|
|
|
2005-06-09 Steve Ellcey <sje@cup.hp.com>
|
|
|
|
|
|
|
|
|
|
* configure.in (AM_BINUTILS_WARNINGS): Add.
|
|
|
|
|
(BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
|
|
|
|
|
* ldmain.c: Ditto.
|
|
|
|
|
|
2005-06-09 02:59:57 +00:00
|
|
|
|
2005-06-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_unary <ALIGN_K>): Revert last change.
|
|
|
|
|
|
* ld.h (lang_phase_type): Move to..
* ldexp.h: ..here. Add lang_mark_phase_enum.
(node_type): Remove etree_undef and etree_unspec.
(exp_data_seg): Delete.
(struct ldexp_control, expld): New.
(invalid, exp_mark_used_section): Delete.
(exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
exp_get_abs_int): Update prototypes.
* ldexp.c (assigning_to_dot): Delete.
(expld): Define.
(make_abs): Operate directly on expld.result. Update all callers.
(new_abs): Likewise. Return void.
(new_rel_from_abs): Rename from new_rel_from_section.
(new_rel, new_rel_from_abs): Operate on expld.result and return void.
Update all callers.
(fold_unary): Operate on expld.result and return void. Remove
"current_section", "allocation_done", "dot", "dotp" and "mark_used"
params. Update all callers.
(fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
(fold_unary <ALIGN_K>): Ensure alignment is absolute.
(fold_unary <ABSOLUTE>): Use make_abs.
(fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
allocating_phase.
(fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
(fold_binary <'%','/'>): Don't error if marking.
(fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
marking.
(fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
error when marking.
(fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
(exp_fold_tree_1): Don't error when marking.
(exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
(exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
current section, instead check for NULL dotp.
(exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
source unless the symbol is referenced and undefined.
(exp_fold_tree): Remove "allocation_done" and "dot" params. Save
params to expld.
(exp_fold_tree_no_dot): Remove "current_section", "allocation_done
and "mark_used" params. Save params to expld. Update all callers.
(exp_assop): Do without temp var.
(exp_print_tree <etree_undef>): Delete code.
(exp_get_vma): Remove "allocation_done" param. Correct error return.
(exp_get_fill, exp_get_abs_int): Likewise.
(exp_get_value_int): Remove "allocation_done" param.
(exp_mark_used_section): Delete.
* ldgram.y (fill_exp): Update exp_get_fill call.
(origin_spec, length_spec): Update exp_get_vma call.
* ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
(lang_mark_used_section_1, lang_mark_used_section): Delete.
(strip_excluded_output_sections): Call one_lang_size_sections_pass in
marking mode. Merge old lang_mark_used_section code. Correct handling
of output sections with excluded input sections and data statements.
Don't drop non-zero sized sections. Don't zap os->bfd_section.
Do set SEC_EXCLUDE when appropriate.
(print_output_section_statement): Update for changed ldexp.c
interface.
(print_assignment, lang_size_sections_1): Likewise.
(lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
(lang_new_phdr, lang_record_phdrs): Likewise.
(lang_size_sections): Likewise.
(insert_pad): Use following statement if it is a pad, rather than
creating a new one.
(lang_size_sections_1 <lang_output_section_statement_enum>): Do
process ignored output section to set vma and lma, but don't
update dot for these sections. Don't error if marking.
(lang_size_sections_1 <lang_assignment_statement_enum>): Don't
update dot for ignored sections.
(lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
section with SEC_ALLOC.
(one_lang_size_sections_pass): New function.
(lang_size_sections): Remove first five params. Set expld.phase on
entry and exit. Use one_lang_size_sections_pass.
(lang_do_assignments): Remove all params. Update all callers.
(lang_reset_memory_regions): Clear os->processed for all output
section statements.
* ldlang.h (lang_do_assignments): Update prototype.
(lang_size_sections): Likewise.
(one_lang_size_sections_pass): Declare.
* pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
lang_size_sections and lang_do_assignments calls.
* emultempl/elf32.em (layout_sections_again): Likewise.
* emultempl/ppc64elf.em (ppc_before_allocation): Use
one_lang_size_sections_pass.
2005-06-09 02:05:47 +00:00
|
|
|
|
2005-06-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.h (lang_phase_type): Move to..
|
|
|
|
|
* ldexp.h: ..here. Add lang_mark_phase_enum.
|
|
|
|
|
(node_type): Remove etree_undef and etree_unspec.
|
|
|
|
|
(exp_data_seg): Delete.
|
|
|
|
|
(struct ldexp_control, expld): New.
|
|
|
|
|
(invalid, exp_mark_used_section): Delete.
|
|
|
|
|
(exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
|
|
|
|
|
exp_get_abs_int): Update prototypes.
|
|
|
|
|
* ldexp.c (assigning_to_dot): Delete.
|
|
|
|
|
(expld): Define.
|
|
|
|
|
(make_abs): Operate directly on expld.result. Update all callers.
|
|
|
|
|
(new_abs): Likewise. Return void.
|
|
|
|
|
(new_rel_from_abs): Rename from new_rel_from_section.
|
|
|
|
|
(new_rel, new_rel_from_abs): Operate on expld.result and return void.
|
|
|
|
|
Update all callers.
|
|
|
|
|
(fold_unary): Operate on expld.result and return void. Remove
|
|
|
|
|
"current_section", "allocation_done", "dot", "dotp" and "mark_used"
|
|
|
|
|
params. Update all callers.
|
|
|
|
|
(fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
|
|
|
|
|
(fold_unary <ALIGN_K>): Ensure alignment is absolute.
|
|
|
|
|
(fold_unary <ABSOLUTE>): Use make_abs.
|
|
|
|
|
(fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
|
|
|
|
|
allocating_phase.
|
|
|
|
|
(fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
|
|
|
|
|
(fold_binary <'%','/'>): Don't error if marking.
|
|
|
|
|
(fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
|
|
|
|
|
marking.
|
|
|
|
|
(fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
|
|
|
|
|
error when marking.
|
|
|
|
|
(fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
|
|
|
|
|
(exp_fold_tree_1): Don't error when marking.
|
|
|
|
|
(exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
|
|
|
|
|
(exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
|
|
|
|
|
current section, instead check for NULL dotp.
|
|
|
|
|
(exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
|
|
|
|
|
source unless the symbol is referenced and undefined.
|
|
|
|
|
(exp_fold_tree): Remove "allocation_done" and "dot" params. Save
|
|
|
|
|
params to expld.
|
|
|
|
|
(exp_fold_tree_no_dot): Remove "current_section", "allocation_done
|
|
|
|
|
and "mark_used" params. Save params to expld. Update all callers.
|
|
|
|
|
(exp_assop): Do without temp var.
|
|
|
|
|
(exp_print_tree <etree_undef>): Delete code.
|
|
|
|
|
(exp_get_vma): Remove "allocation_done" param. Correct error return.
|
|
|
|
|
(exp_get_fill, exp_get_abs_int): Likewise.
|
|
|
|
|
(exp_get_value_int): Remove "allocation_done" param.
|
|
|
|
|
(exp_mark_used_section): Delete.
|
|
|
|
|
* ldgram.y (fill_exp): Update exp_get_fill call.
|
|
|
|
|
(origin_spec, length_spec): Update exp_get_vma call.
|
|
|
|
|
* ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
|
|
|
|
|
(lang_mark_used_section_1, lang_mark_used_section): Delete.
|
|
|
|
|
(strip_excluded_output_sections): Call one_lang_size_sections_pass in
|
|
|
|
|
marking mode. Merge old lang_mark_used_section code. Correct handling
|
|
|
|
|
of output sections with excluded input sections and data statements.
|
|
|
|
|
Don't drop non-zero sized sections. Don't zap os->bfd_section.
|
|
|
|
|
Do set SEC_EXCLUDE when appropriate.
|
|
|
|
|
(print_output_section_statement): Update for changed ldexp.c
|
|
|
|
|
interface.
|
|
|
|
|
(print_assignment, lang_size_sections_1): Likewise.
|
|
|
|
|
(lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
|
|
|
|
|
(lang_new_phdr, lang_record_phdrs): Likewise.
|
|
|
|
|
(lang_size_sections): Likewise.
|
|
|
|
|
(insert_pad): Use following statement if it is a pad, rather than
|
|
|
|
|
creating a new one.
|
|
|
|
|
(lang_size_sections_1 <lang_output_section_statement_enum>): Do
|
|
|
|
|
process ignored output section to set vma and lma, but don't
|
|
|
|
|
update dot for these sections. Don't error if marking.
|
|
|
|
|
(lang_size_sections_1 <lang_assignment_statement_enum>): Don't
|
|
|
|
|
update dot for ignored sections.
|
|
|
|
|
(lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
|
|
|
|
|
section with SEC_ALLOC.
|
|
|
|
|
(one_lang_size_sections_pass): New function.
|
|
|
|
|
(lang_size_sections): Remove first five params. Set expld.phase on
|
|
|
|
|
entry and exit. Use one_lang_size_sections_pass.
|
|
|
|
|
(lang_do_assignments): Remove all params. Update all callers.
|
|
|
|
|
(lang_reset_memory_regions): Clear os->processed for all output
|
|
|
|
|
section statements.
|
|
|
|
|
* ldlang.h (lang_do_assignments): Update prototype.
|
|
|
|
|
(lang_size_sections): Likewise.
|
|
|
|
|
(one_lang_size_sections_pass): Declare.
|
|
|
|
|
* pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
|
|
|
|
|
lang_size_sections and lang_do_assignments calls.
|
|
|
|
|
* emultempl/elf32.em (layout_sections_again): Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_before_allocation): Use
|
|
|
|
|
one_lang_size_sections_pass.
|
|
|
|
|
|
2005-06-08 13:03:24 +00:00
|
|
|
|
2005-06-08 Aldy Hernandez <aldyh@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32ms1.sh: New.
|
|
|
|
|
|
2005-06-07 23:56:50 +00:00
|
|
|
|
2005-06-07 Eric Christopher <echristo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (eelf32ms1.c): Use tab.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-06-07 21:12:16 +00:00
|
|
|
|
2005-06-07 Aldy Hernandez <aldyh@redhat.com>
|
|
|
|
|
Michael Snyder <msnyder@redhat.com>
|
|
|
|
|
Stan Cox <scox@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Same.
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
|
|
|
|
|
(eelf32ms1.c): Add eelf32ms1.c rule.
|
|
|
|
|
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-06-06 12:59:59 +00:00
|
|
|
|
2005-06-06 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_before_allocation): Always run
|
|
|
|
|
ppc64_elf_edit_opd.
|
|
|
|
|
|
2005-06-05 15:28:36 +00:00
|
|
|
|
2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
|
|
|
|
|
section only if the symbol will be defined.
|
|
|
|
|
|
2005-06-04 14:40:21 +00:00
|
|
|
|
2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 992
|
|
|
|
|
* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
|
|
|
|
|
section for etree_assign, etree_provide and etree_provided.
|
|
|
|
|
Call fold_binary on etree_binary.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_mark_used_section_1): Handle load base.
|
|
|
|
|
|
2005-06-03 09:52:50 +00:00
|
|
|
|
2005-06-03 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (link_callbacks): Add einfo.
|
|
|
|
|
(add_archive_element): Use passed info, not link_info.
|
|
|
|
|
(constructor_callback): Likewise.
|
|
|
|
|
(reloc_overflow): Don't handle null bfd specially.
|
|
|
|
|
(reloc_dangerous, unattached_reloc): Likewise.
|
|
|
|
|
* ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
|
|
|
|
|
(vfinfo <C, D, G>): Handle null bfd. Wrap comments.
|
|
|
|
|
|
* ldexp.h (etree_value_type): Use "asection *" in place of
"struct lang_output_section_statement_struct *" for "section".
(exp_fold_tree): Likewise.
(exp_mark_used_section): Likewise.
* ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
exp_mark_used_section): Likewise for "current_section" param.
(make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
exp_get_abs_int): Adjust for above changes.
* ldlang.c (lang_mark_used_section_1, print_assignment,
lang_size_sections_1, lang_do_assignments_1): Likewise.
* ldexp.c (fold_name): Init entire result struct.
2005-06-02 03:08:41 +00:00
|
|
|
|
2005-06-02 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.h (etree_value_type): Use "asection *" in place of
|
|
|
|
|
"struct lang_output_section_statement_struct *" for "section".
|
|
|
|
|
(exp_fold_tree): Likewise.
|
|
|
|
|
(exp_mark_used_section): Likewise.
|
|
|
|
|
* ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
|
|
|
|
|
fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
|
|
|
|
|
exp_mark_used_section): Likewise for "current_section" param.
|
|
|
|
|
(make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
|
|
|
|
|
exp_get_abs_int): Adjust for above changes.
|
|
|
|
|
* ldlang.c (lang_mark_used_section_1, print_assignment,
|
|
|
|
|
lang_size_sections_1, lang_do_assignments_1): Likewise.
|
|
|
|
|
* ldexp.c (fold_name): Init entire result struct.
|
|
|
|
|
|
2005-06-01 19:26:25 +00:00
|
|
|
|
2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32btsmip.sh: Unset DATA_ADDR.
|
|
|
|
|
|
2005-06-01 04:04:19 +00:00
|
|
|
|
2005-05-31 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (entry_symbol_default): New file-scope global.
|
|
|
|
|
(lang_finish): Use it, not a hardwired "start".
|
|
|
|
|
(lang_default_entry): Set it.
|
|
|
|
|
* ldlang.h: Declare lang_default_entry.
|
|
|
|
|
* emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
|
|
|
|
|
not lang_add_entry, to override default entry point symbol.
|
|
|
|
|
|
2005-05-29 23:16:09 +00:00
|
|
|
|
2005-05-29 Richard Henderson <rth@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf64alpha.sh (PLT): New.
|
|
|
|
|
(TEXT_PLT): New.
|
|
|
|
|
* emultempl/alphaelf.em (disable_relaxation): New.
|
|
|
|
|
(limit_32bit): Rename from elf64alpha_32bit; update all users.
|
|
|
|
|
(elf64_alpha_use_secureplt): Declare.
|
|
|
|
|
(bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
|
|
|
|
|
(alpha_after_open): New.
|
|
|
|
|
(alpha_before_allocation): New.
|
|
|
|
|
(OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Include them.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Likewise.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Likewise.
|
|
|
|
|
(LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
|
|
|
|
|
* scripttempl/elf.sc (TEXT_PLT): New.
|
|
|
|
|
(PLT): Use it.
|
|
|
|
|
|
2005-05-26 22:23:15 +00:00
|
|
|
|
2005-05-27 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
|
|
|
|
|
|
2005-05-24 00:27:58 +00:00
|
|
|
|
2005-05-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc32elf.em (after_allocation): Don't call
|
|
|
|
|
ppc_elf_set_sdata_syms when relocatable.
|
|
|
|
|
|
2005-05-21 23:43:59 +00:00
|
|
|
|
2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ld.1): Revert the last 2 changes.
|
|
|
|
|
(info-recursive): Depend on ld.1.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2005-05-21 22:22:20 +00:00
|
|
|
|
2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ld.1): Depend on "info" instead of
|
|
|
|
|
"configdoc.texi ldver.texi".
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2005-05-21 21:31:13 +00:00
|
|
|
|
2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ld.1): Depend on "info".
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2005-05-19 23:49:52 +00:00
|
|
|
|
2005-05-19 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
include/elf:
* arm.h: Import complete list of official relocation names
and numbers from AAELF. Define FAKE_RELOCs for old names.
Remove a few old names no longer used anywhere.
bfd:
* elf32-arm.c: Wherever possible, use official reloc names
from AAELF.
(elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
(elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
(elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
(elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
(elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
(elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
Add many new relocations from AAELF.
(elf32_arm_howto_from_type): Update to match.
(elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
(elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
(elf32_arm_final_link_relocate): Add support for
R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
case entries redundant with default.
* reloc.c: Reorganize ARM relocations. Add Thumb
assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
* bfd-in2.h, libbfd.h: Regenerate.
opcodes:
* arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit
instructions. Adjust disassembly of some opcodes to match
unified syntax.
(thumb32_opcodes): New table.
(print_insn_thumb): Rename print_insn_thumb16; don't handle
two-halfword branches here.
(print_insn_thumb32): New function.
(print_insn): Choose among print_insn_arm, print_insn_thumb16,
and print_insn_thumb32. Be consistent about order of
halfwords when printing 32-bit instructions.
gas:
* hash.c (hash_lookup): Add len parameter. All callers changed.
(hash_find_n): New interface.
* hash.h: Prototype hash_find_n.
* sb.c: Include as.h.
(scrub_from_sb, sb_to_scrub, scrub_position): New statics.
(sb_scrub_and_add_sb): New interface.
* sb.h: Prototype sb_scrub_and_add_sb.
* input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
reference to BFD_RELOC_ARM_GOT12 which is never generated.
* config/tc-arm.c: Rewrite, adding Thumb-2 support.
gas/testsuite:
* gas/arm/arm.exp: Convert all existing "gas_test" tests to
"run_dump_test" tests. Run more tests unconditionally. Run new tests.
* gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s
* gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s
* gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s:
Adjust to work as a dump test.
* gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d
* gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d
* gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d:
New files.
* gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for
diagnostics that don't happen in the first pass anymore.
* gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l
* gas/arm/vfp-bad.l:
Update expected diagnostics.
* gas/arm/pic.d: Update expected reloc name.
* gas/arm/thumbv6.d: CPY no longer appears in disassembly.
* gas/arm/r15-bad.s: Avoid two-argument mul.
* gas/arm/req.s: Adjust comments.
* gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate
use of PC.
* gas/arm/macro-1.d, gas/arm/macro1.s
* gas/arm/t16-bad.l, gas/arm/t16-bad.s
* gas/arm/tcompat.d, gas/arm/tcompat.s
* gas/arm/tcompat2.d, gas/arm/tcompat2.s
* gas/arm/thumb32.d, gas/arm/thumb32.s
New test pair.
ld/testsuite:
* ld-arm/mixed-app.d: Adjust expected disassembly a little.
2005-05-18 05:40:12 +00:00
|
|
|
|
2005-05-17 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld-arm/mixed-app.d: Adjust expected disassembly a little.
|
|
|
|
|
|
2005-05-17 19:43:52 +00:00
|
|
|
|
2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ldver.texi): Don't use $<.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2005-05-17 19:41:29 +00:00
|
|
|
|
2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
|
|
|
|
|
$(srcdir) before $(BFDDIR)/doc.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2005-05-17 16:43:02 +00:00
|
|
|
|
2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 797
|
|
|
|
|
* ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
|
|
|
|
|
take take a bfd_boolean, mark_used. Ignore assert failure if
|
|
|
|
|
mark_used is TRUE.
|
|
|
|
|
(exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
|
|
|
|
|
(exp_fold_tree_no_dot): Updated to take a bfd_boolean,
|
|
|
|
|
mark_used and pass down.
|
|
|
|
|
(fold_unary): Likewise.
|
|
|
|
|
(fold_binary): Likewise.
|
|
|
|
|
(fold_trinary): Likewise.
|
|
|
|
|
(exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
|
|
|
|
|
(exp_trinop): Likewise.
|
|
|
|
|
(exp_unop): Likewise.
|
|
|
|
|
(exp_nameop): Likewise.
|
|
|
|
|
(exp_get_vma): Likewise.
|
|
|
|
|
(exp_get_fill): Likewise.
|
|
|
|
|
(exp_get_abs_int): Likewise.
|
|
|
|
|
(fold_name): Likewise. Set SEC_KEEP in output section flags.
|
|
|
|
|
(exp_mark_used_section): New.
|
|
|
|
|
|
|
|
|
|
* ldexp.h (exp_mark_used_section): New.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_output_section_statement_lookup_1): Set the
|
|
|
|
|
ignored field to FALSE.
|
|
|
|
|
(lang_mark_used_section_1): New.
|
|
|
|
|
(lang_mark_used_section): Call lang_mark_used_section_1.
|
|
|
|
|
(strip_excluded_output_sections): Call lang_mark_used_section
|
|
|
|
|
and check for unused sections.
|
|
|
|
|
(lang_size_sections_1): Skip an output section if it should
|
|
|
|
|
be ignored.
|
|
|
|
|
(lang_do_assignments_1): Likewise.
|
|
|
|
|
(lang_process): Don't call lang_mark_used_section here.
|
|
|
|
|
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Change
|
|
|
|
|
all_input_readonly to bitfield. Add ignored.
|
|
|
|
|
|
2005-05-17 15:16:55 +00:00
|
|
|
|
2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
|
|
|
|
|
Peter S. Mazinger" <ps.m@gmx.net>
|
|
|
|
|
|
include/elf:
* arm.h: Import complete list of official relocation names
and numbers from AAELF. Define FAKE_RELOCs for old names.
Remove a few old names no longer used anywhere.
bfd:
* elf32-arm.c: Wherever possible, use official reloc names
from AAELF.
(elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
(elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
(elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
(elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
(elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
(elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
Add many new relocations from AAELF.
(elf32_arm_howto_from_type): Update to match.
(elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
(elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
(elf32_arm_final_link_relocate): Add support for
R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
case entries redundant with default.
* reloc.c: Reorganize ARM relocations. Add Thumb
assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
* bfd-in2.h, libbfd.h: Regenerate.
opcodes:
* arm-dis.c (thumb_opcodes): Add disassembly for V6T2 16-bit
instructions. Adjust disassembly of some opcodes to match
unified syntax.
(thumb32_opcodes): New table.
(print_insn_thumb): Rename print_insn_thumb16; don't handle
two-halfword branches here.
(print_insn_thumb32): New function.
(print_insn): Choose among print_insn_arm, print_insn_thumb16,
and print_insn_thumb32. Be consistent about order of
halfwords when printing 32-bit instructions.
gas:
* hash.c (hash_lookup): Add len parameter. All callers changed.
(hash_find_n): New interface.
* hash.h: Prototype hash_find_n.
* sb.c: Include as.h.
(scrub_from_sb, sb_to_scrub, scrub_position): New statics.
(sb_scrub_and_add_sb): New interface.
* sb.h: Prototype sb_scrub_and_add_sb.
* input-scrub.c (input_scrub_include_sb): Use sb_scrub_and_add_sb.
* config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Remove
reference to BFD_RELOC_ARM_GOT12 which is never generated.
* config/tc-arm.c: Rewrite, adding Thumb-2 support.
gas/testsuite:
* gas/arm/arm.exp: Convert all existing "gas_test" tests to
"run_dump_test" tests. Run more tests unconditionally. Run new tests.
* gas/arm/arch4t.s, gas/arm/arch6zk.s, gas/arm/arm3.s, gas/arm/arm6.s
* gas/arm/arm7dm.s, gas/arm/bignum1.s, gas/arm/float.s
* gas/arm/immed.s, gas/arm/iwmmxt.s, gas/arm/offset.s, gas/arm/thumb.s:
Adjust to work as a dump test.
* gas/arm/arch4t.d, gas/arm/arch6zk.d, gas/arm/arm3.d, gas/arm/arm6.d
* gas/arm/arm7dm.d, gas/arm/bignum1.d, gas/arm/float.d
* gas/arm/immed.d, gas/arm/iwmmxt.d, gas/arm/offset.d, gas/arm/thumb.d:
New files.
* gas/arm/armv1-bad.l, gas/arm/armv1-bad.s: Remove tests for
diagnostics that don't happen in the first pass anymore.
* gas/arm/iwmmxt-bad.l, gas/arm/r15-bad.l, gas/arm/req.l
* gas/arm/vfp-bad.l:
Update expected diagnostics.
* gas/arm/pic.d: Update expected reloc name.
* gas/arm/thumbv6.d: CPY no longer appears in disassembly.
* gas/arm/r15-bad.s: Avoid two-argument mul.
* gas/arm/req.s: Adjust comments.
* gas/arm/maverick.d, gas/arm/maverick.s: Avoid inappropriate
use of PC.
* gas/arm/macro-1.d, gas/arm/macro1.s
* gas/arm/t16-bad.l, gas/arm/t16-bad.s
* gas/arm/tcompat.d, gas/arm/tcompat.s
* gas/arm/tcompat2.d, gas/arm/tcompat2.s
* gas/arm/thumb32.d, gas/arm/thumb32.s
New test pair.
ld/testsuite:
* ld-arm/mixed-app.d: Adjust expected disassembly a little.
2005-05-18 05:40:12 +00:00
|
|
|
|
* emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
|
|
|
|
|
* emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
|
2005-05-17 15:16:55 +00:00
|
|
|
|
|
2005-05-17 14:39:18 +00:00
|
|
|
|
2005-05-17 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (print_assignment): Do not rely upon a valid result
|
|
|
|
|
having a section associated with it.
|
|
|
|
|
|
2005-05-17 14:35:21 +00:00
|
|
|
|
2005-05-17 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
|
|
|
|
|
see if the same value is being used on the rhs as on the lhs.
|
|
|
|
|
(print_assignment): Call scan_for_self_assignment and if it
|
|
|
|
|
returns true, do no display the result of the computation but
|
|
|
|
|
instead just the final value of the symbol on the lhs.
|
|
|
|
|
* ld.texinfo: Document this behaviour and provide an example of
|
|
|
|
|
when it will happen.
|
|
|
|
|
|
2005-05-15 18:19:45 +00:00
|
|
|
|
2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (AM_MAKEINFOFLAGS): Define.
|
|
|
|
|
(TEXI2DVI): Define.
|
|
|
|
|
(ldver.texi): Depend on distributed files instead of built files.
|
|
|
|
|
(ld.info): Include $(srcdir) in the rule target. Remove actions.
|
|
|
|
|
(ld.dvi): Remove actions.
|
|
|
|
|
(MAINTAINERCLEANFILES): Add configdoc.texi.
|
|
|
|
|
(CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
|
|
|
|
|
(install-data-local): Renamed from install.
|
|
|
|
|
(Makefile): Remove explicit dependency.
|
|
|
|
|
* acinclude.m4: Remove obsolete code.
|
|
|
|
|
* configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
|
|
|
|
|
* Makefile.in, aclocal.m4, config.in, configure: Regenerated.
|
|
|
|
|
|
2005-05-12 00:31:22 +00:00
|
|
|
|
2005-05-11 Bob Wilson <bob.wilson@acm.org>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elfxtensa.sc: Sync up with elf.sc.
|
|
|
|
|
* emulparams/elf32xtensa.sh (PLT, GOT): Define.
|
|
|
|
|
|
2005-05-11 14:10:10 +00:00
|
|
|
|
2005-05-11 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldgram.y: Add SPECIAL token.
|
|
|
|
|
(sect_constraint): Handle SPECIAL.
|
|
|
|
|
* ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
|
|
|
|
|
(map_input_to_output_sections): Likewise.
|
|
|
|
|
* ldlex.l (SPECIAL): Define.
|
|
|
|
|
* emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
|
|
|
|
|
GOT, PLT, GOTPLT): Define.
|
|
|
|
|
* emultempl/ppc32elf.em (old_plt, old_got): New static vars.
|
|
|
|
|
(ppc_after_open): New function.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Document them.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle them.
|
|
|
|
|
(LDEMUL_AFTER_OPEN): Define.
|
|
|
|
|
* scripttempl/elf.sc (PLT): Don't override existing define.
|
|
|
|
|
(DATA_GOT, SDATA_GOT): Define and use to enable alternate got
|
|
|
|
|
placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
|
|
|
|
|
|
2005-05-10 02:27:38 +00:00
|
|
|
|
2005-05-10 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
|
|
|
|
|
(DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
|
|
|
|
|
(GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
|
|
|
|
|
DATA_SEGMENT_RELRO_END in script.
|
|
|
|
|
|
2005-05-10 01:07:30 +00:00
|
|
|
|
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
|
|
|
|
|
Don't use a removed section.
|
|
|
|
|
|
2005-05-10 01:06:04 +00:00
|
|
|
|
2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (reloc_overflow): Use output_bfd if the symbol
|
|
|
|
|
is defined in the ABS section.
|
|
|
|
|
|
2005-05-07 02:14:21 +00:00
|
|
|
|
2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
|
|
|
|
|
Put back !link_info.relocatable.
|
|
|
|
|
|
2005-05-06 15:40:24 +00:00
|
|
|
|
2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
2005-05-06 15:42:02 +00:00
|
|
|
|
PR 878
|
2005-05-06 15:40:24 +00:00
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
|
|
|
|
|
Just check link_info.executable.
|
|
|
|
|
|
2005-05-06 08:26:58 +00:00
|
|
|
|
2005-05-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Update the address and phone number of the FSF organization in
|
|
|
|
|
the GPL notices in the following files:
|
|
|
|
|
aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
|
|
|
|
|
ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
|
|
|
|
|
ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
|
|
|
|
|
ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
|
|
|
|
|
ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
|
|
|
|
|
sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
|
|
|
|
|
emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
|
|
|
|
|
emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
|
|
|
|
|
emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
|
|
|
|
|
emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
|
|
|
|
|
emultempl/lnk960.em, emultempl/m68hc1xelf.em,
|
|
|
|
|
emultempl/m68kcoff.em, emultempl/m68kelf.em,
|
|
|
|
|
emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
|
|
|
|
|
emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
|
|
|
|
|
emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
|
|
|
|
|
emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
|
|
|
|
|
emultempl/vanilla.em, emultempl/xtensaelf.em
|
|
|
|
|
|
2005-05-05 16:40:11 +00:00
|
|
|
|
2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Document the usage of __bss_start.
|
|
|
|
|
|
2005-05-05 14:37:27 +00:00
|
|
|
|
2005-05-05 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add eelf_i386_vxworks.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
|
|
|
|
|
* emulparams/elf_i386_vxworks.sh: New file.
|
|
|
|
|
* emulparams/vxworks.sh: New file.
|
|
|
|
|
* scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
|
|
|
|
|
|
2005-05-04 13:19:02 +00:00
|
|
|
|
2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
|
|
|
|
|
Call _bfd_elf_provide_section_bound_symbols.
|
|
|
|
|
|
2005-05-04 11:00:28 +00:00
|
|
|
|
2005-05-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldemul.c: Include bfdlink.h.
|
|
|
|
|
(ldemul_before_allocation): Assume before_allocation is non-zero.
|
|
|
|
|
(before_allocation_default): Call strip_excluded_output_sections.
|
|
|
|
|
* ldlang.c (stripped_excluded_sections): New variable.
|
|
|
|
|
(lang_add_section): Build input section list for each output
|
|
|
|
|
section, attached via map_head and map_tail pointers.
|
|
|
|
|
(strip_excluded_output_sections): Make global. Traverse the
|
|
|
|
|
input section lists to find which output sections can go. Clear
|
|
|
|
|
link_order pointers and set stripped_excluded_sections.
|
|
|
|
|
(lang_process): Call strip_excluded_output_sections.
|
|
|
|
|
* ldlang.h (strip_excluded_output_sections): Declare.
|
|
|
|
|
* ldwrite.c: Update throuhout for link_order_head -> map_head change.
|
|
|
|
|
* emultempl/aix.em (before_allocation): Call
|
|
|
|
|
strip_excluded_output_sections.
|
|
|
|
|
* emultempl/armcoff.em (before_allocation): Likewise.
|
|
|
|
|
* emultempl/beos.em (before_allocation): Likewise.
|
|
|
|
|
* emultempl/linux.em (before_allocation): Likewise.
|
|
|
|
|
* emultempl/pe.em (before_allocation): Likewise.
|
|
|
|
|
* emultempl/sunos.em (before_allocation): Likewise.
|
|
|
|
|
* emultempl/elf32.em (before_allocation): Likewise. Call
|
|
|
|
|
bfd_elf_size_dynsym_hash_dynstr too.
|
|
|
|
|
* emultempl/lnk960.em (lnk960_before_allocation): Delete.
|
|
|
|
|
(ld_lnk960): Use before_allocation_default.
|
|
|
|
|
|
2005-05-03 01:05:03 +00:00
|
|
|
|
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
|
|
|
|
|
Updated for bfd_section_list_remove change.
|
|
|
|
|
* ldlang.c (lang_insert_orphan): Likewise.
|
|
|
|
|
(strip_excluded_output_sections): Likewise.
|
|
|
|
|
(sort_sections_by_lma): New.
|
|
|
|
|
(lang_check_section_addresses): Sort the sections before
|
|
|
|
|
checking addresses.
|
|
|
|
|
|
2005-04-29 18:43:35 +00:00
|
|
|
|
2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Add h8300*-*-rtemscoff.
|
|
|
|
|
Switch h8300*-*-rtems* to elf.
|
|
|
|
|
|
2005-04-28 23:54:33 +00:00
|
|
|
|
2005-04-29 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (lang_memory_region_type): Make static.
|
|
|
|
|
(ldgram_want_filename): Likewise.
|
|
|
|
|
* ldemul.c (ld_emulation): Make static.
|
|
|
|
|
* ldfile.h (ldfile_find_command_file): Remove extern.
|
|
|
|
|
* ldfile.c (ldfile_find_command_file): Make static.
|
|
|
|
|
* ldlang.h (unique_section_list): Remove extern declaration.
|
|
|
|
|
* ldlang.c (unique_section_list): Make static.
|
|
|
|
|
* mri.h (symbol_truncate): Remove extern declaration.
|
|
|
|
|
* mri.c (symbol_truncate): Make static.
|
|
|
|
|
(order, only_load, address, alias): Likewise.
|
|
|
|
|
(alignment, subalignment): Likewise.
|
|
|
|
|
|
2005-04-28 02:41:40 +00:00
|
|
|
|
2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
|
|
|
|
|
Use the first SEC_ALLOC section which isn't SEC_READONLY or the
|
|
|
|
|
last SEC_ALLOC section if such a section doesn't exist.
|
|
|
|
|
|
2005-04-24 20:26:38 +00:00
|
|
|
|
2005-04-24 Mark Kettenis <kettenis@gnu.org>
|
|
|
|
|
|
|
|
|
|
* configure.host: Add *-*-openbsd support.
|
|
|
|
|
|
2005-04-15 16:37:47 +00:00
|
|
|
|
2005-04-15 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document --use-blx.
|
|
|
|
|
* emultempl/armelf.em (use_blx): New variable.
|
|
|
|
|
(arm_elf_create_output_section_statements): Communicate value of
|
|
|
|
|
use_blx to bfd.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add --use-blx option.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
|
|
|
|
|
|
2005-04-14 05:26:44 +00:00
|
|
|
|
2005-04-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
|
|
|
|
|
* configure.in: Include ../bfd/warning.m4 contents.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2005-04-12 02:50:28 +00:00
|
|
|
|
2005-04-12 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
(ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
|
2005-04-11 14:26:46 +00:00
|
|
|
|
2005-04-11 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
|
|
|
|
|
as_needed libs that were not needed.
|
|
|
|
|
(gld${EMULATION_NAME}_check_needed): Likewise.
|
|
|
|
|
|
2005-04-07 14:07:33 +00:00
|
|
|
|
2005-04-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
|
2005-05-11 14:10:10 +00:00
|
|
|
|
ldfile.h can use the lang_input_statement type.
|
2005-04-07 14:07:33 +00:00
|
|
|
|
|
2005-04-06 Jakub Jelinek <jakub@redhat.com>
* ldlang.c: Formatting.
(walk_wild_consider_section): Remember return value from wildcardp.
(is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
(wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
2005-04-06 Robert O'Callahan <rocallahan@novell.com>
* ld.h (lean_section_userdata_type): Remove.
(fat_section_userdata_type): Remove file field.
(SECTION_USERDATA_SIZE): Remove.
* ldlang.c (init_os): Eliminate initialization of unused
lean_section_userdata_type.
* ldlang.h (callback_t, walk_wild_section_handler_t): New
typedefs.
(struct lang_wild_statement_struct): Add walk_wild_section_handler
and handler_data fields.
* ldlang.c (callback_t): Removed.
(walk_wild_consider_section, walk_wild_section_general,
section_iterator_callback, find_section, is_simple_wild,
match_simple_wild, walk_wild_section_specs1_wild0,
walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
wild_spec_can_overlap, analyze_walk_wild_section_handler): New
functions.
(lang_add_wild): Call analyze_walk_wild_section_handler.
(walk_wild_section): Renamed to walk_wild_section_general and
created a wrapper function.
(section_iterator_callback_data): New typedef.
2005-04-06 15:33:03 +00:00
|
|
|
|
2005-04-06 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c: Formatting.
|
|
|
|
|
(walk_wild_consider_section): Remember return value from wildcardp.
|
|
|
|
|
(is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
|
|
|
|
|
(wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
|
|
|
|
|
|
|
|
|
|
2005-04-06 Robert O'Callahan <rocallahan@novell.com>
|
|
|
|
|
|
|
|
|
|
* ld.h (lean_section_userdata_type): Remove.
|
|
|
|
|
(fat_section_userdata_type): Remove file field.
|
|
|
|
|
(SECTION_USERDATA_SIZE): Remove.
|
|
|
|
|
* ldlang.c (init_os): Eliminate initialization of unused
|
|
|
|
|
lean_section_userdata_type.
|
|
|
|
|
|
|
|
|
|
* ldlang.h (callback_t, walk_wild_section_handler_t): New
|
|
|
|
|
typedefs.
|
|
|
|
|
(struct lang_wild_statement_struct): Add walk_wild_section_handler
|
|
|
|
|
and handler_data fields.
|
|
|
|
|
* ldlang.c (callback_t): Removed.
|
|
|
|
|
(walk_wild_consider_section, walk_wild_section_general,
|
|
|
|
|
section_iterator_callback, find_section, is_simple_wild,
|
|
|
|
|
match_simple_wild, walk_wild_section_specs1_wild0,
|
|
|
|
|
walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
|
|
|
|
|
walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
|
|
|
|
|
wild_spec_can_overlap, analyze_walk_wild_section_handler): New
|
|
|
|
|
functions.
|
|
|
|
|
(lang_add_wild): Call analyze_walk_wild_section_handler.
|
|
|
|
|
(walk_wild_section): Renamed to walk_wild_section_general and
|
|
|
|
|
created a wrapper function.
|
|
|
|
|
(section_iterator_callback_data): New typedef.
|
|
|
|
|
|
2005-04-04 11:27:16 +00:00
|
|
|
|
2005-04-04 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.in: Add a check for <unistd.h> providing a prototype
|
|
|
|
|
for getopt() which is compatible with the one in
|
|
|
|
|
include/getopt.h. If so then define HAVE_DECL_GETOPT.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* config.in (HAVE_DECL_GETOPT): Add.
|
|
|
|
|
* ldemul.c: Include config.h
|
|
|
|
|
* lexsup.c: Likewise.
|
|
|
|
|
* emultempl/elf32.sc: Likewise.
|
|
|
|
|
|
2005-03-29 11:07:38 +00:00
|
|
|
|
2005-03-29 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
|
|
|
|
|
New function, extracted from static void gld${EMULATION_NAME}_finish.
|
|
|
|
|
(gld${EMULATION_NAME}_strip_empty_sections): Likewise.
|
|
|
|
|
(gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em: Revert last change.
|
|
|
|
|
(ppc_layout_sections_again): Use
|
|
|
|
|
gld${EMULATION_NAME}_layout_sections_again.
|
|
|
|
|
(ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
|
|
|
|
|
gld${EMULATION_NAME}_strip_empty_sections and
|
|
|
|
|
gld${EMULATION_NAME}_provide_init_fini_syms.
|
|
|
|
|
* emultempl/hppaelf.em: Similarly.
|
|
|
|
|
|
2005-03-29 06:52:22 +00:00
|
|
|
|
2005-03-29 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
|
|
|
|
|
(ppc_finish): Don't call bfd_elf_discard_info.
|
|
|
|
|
* emultempl/hppaelf.em: Similarly.
|
|
|
|
|
|
2005-03-24 21:13:03 +00:00
|
|
|
|
2005-03-24 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/fr.po: Updated French translation.
|
|
|
|
|
|
2005-03-23 15:35:50 +00:00
|
|
|
|
2005-03-23 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.host: Accept any C library to accompany a GNU Linux
|
|
|
|
|
implementation, not just the GNU C library.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* emultempl/elf32.em: Likewise.
|
2005-03-29 11:07:38 +00:00
|
|
|
|
|
2005-03-23 04:14:46 +00:00
|
|
|
|
2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
|
|
|
|
|
(gld${EMULATION_NAME}_finish): Call
|
|
|
|
|
gld${EMULATION_NAME}_provide_bound_symbols to provide
|
|
|
|
|
__preinit_array_start, __preinit_array_end, __init_array_start,
|
|
|
|
|
__init_array_end, __fini_array_start and __fini_array_end.
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Don't provide __preinit_array_start,
|
|
|
|
|
__preinit_array_end, __init_array_start, __init_array_end,
|
|
|
|
|
__fini_array_start nor __fini_array_end.
|
|
|
|
|
|
2005-03-22 14:49:16 +00:00
|
|
|
|
2005-03-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
|
|
|
|
|
SEC_EXCLUDE on .gnu.warning sections.
|
|
|
|
|
|
2005-03-21 13:56:57 +00:00
|
|
|
|
2005-03-22 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
|
|
|
|
|
|
2005-03-21 13:23:15 +00:00
|
|
|
|
2005-03-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
|
|
|
|
|
function.
|
|
|
|
|
(LDEMUL_AFTER_ALLOCATION): Define.
|
|
|
|
|
|
2005-03-21 09:39:54 +00:00
|
|
|
|
2005-03-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_finish): Rename from
|
|
|
|
|
gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
|
|
|
|
|
(LDEMUL_FINISH): Update.
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
|
|
|
|
|
* emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
|
|
|
|
|
|
2005-03-18 16:55:44 +00:00
|
|
|
|
2005-03-18 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
|
|
|
|
|
.rel.fini_array.
|
|
|
|
|
(.rela.dyn): Add .rela.init_array, .rela.fini_array.
|
|
|
|
|
(SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
|
|
|
|
|
|
2005-03-18 15:56:27 +00:00
|
|
|
|
2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
|
|
|
|
|
bfd_section when removing unused empty output sections for
|
|
|
|
|
non-relocatable link.
|
|
|
|
|
|
2005-03-18 13:56:26 +00:00
|
|
|
|
2005-03-19 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_insert_orphan): Use old section_tail rather than
|
|
|
|
|
traversing the bfd section list to find pointer to new section.
|
|
|
|
|
|
2005-03-17 22:51:09 +00:00
|
|
|
|
2005-03-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
|
|
|
|
|
input sections into .sdata and .sbss output respectively.
|
|
|
|
|
|
2005-03-17 16:20:39 +00:00
|
|
|
|
2005-03-16 David Heine <dlheine@tensilica.com>
|
|
|
|
|
Bob Wilson <bob.wilson@acm.org>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (IGNORE_SECTION): Remove check for zero size.
|
|
|
|
|
(lang_check_section_addresses): Ignore zero size sections here.
|
|
|
|
|
|
2005-03-16 21:52:48 +00:00
|
|
|
|
2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
|
|
|
|
|
unused empty output sections for non-relocatable link.
|
|
|
|
|
|
|
|
|
|
* ld.h (args_type): Remove gc_sections.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_mark_used_section): New.
|
|
|
|
|
(lang_gc_sections): Use link_info.gc_sections instead of
|
|
|
|
|
command_line.gc_sections.
|
|
|
|
|
* ldmain.c (main): Likewise.
|
|
|
|
|
* lexsup.c (parse_args): Likewise.
|
|
|
|
|
* ldlang.c (lang_process): Call lang_mark_used_section.
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Initialize link_info.gc_sections to FALSE.
|
|
|
|
|
|
2005-03-16 16:17:14 +00:00
|
|
|
|
2005-03-16 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
2005-03-16 17:18:17 +00:00
|
|
|
|
* configure.in (werror): New switch: Add -Werror to the
|
2005-03-16 16:17:14 +00:00
|
|
|
|
compiler command line. Enabled by default. Disable via
|
2005-03-16 17:18:17 +00:00
|
|
|
|
--disable-werror.
|
2005-03-16 16:17:14 +00:00
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2005-03-16 02:41:28 +00:00
|
|
|
|
2005-03-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
|
|
|
|
|
(OTHER_RELRO_SECTIONS): Set this instead.
|
|
|
|
|
|
2005-03-15 17:49:15 +00:00
|
|
|
|
2005-03-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add cutoff for changes in 2.16 release.
|
|
|
|
|
|
2005-03-15 14:14:08 +00:00
|
|
|
|
2005-03-15 Mikkel Krautz <krautz@gmail.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (x86_64-elf): Add target.
|
|
|
|
|
|
2005-03-15 05:25:37 +00:00
|
|
|
|
2005-03-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* po/es.po: Commit new Spanish translation.
|
|
|
|
|
|
2005-03-14 12:29:13 +00:00
|
|
|
|
2005-03-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_fold_tree): Ensure return value is initialized.
|
|
|
|
|
Tidy etree_assert case.
|
|
|
|
|
|
2005-03-14 03:40:46 +00:00
|
|
|
|
2005-03-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* po/tr.po: Commit new Turkish translation.
|
|
|
|
|
|
2005-03-11 19:55:36 +00:00
|
|
|
|
2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Remove references to em68klynx.o and esparclynx.o.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
|
|
|
|
|
|
2005-03-07 13:56:29 +00:00
|
|
|
|
2005-03-07 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/fr.po: Updated translation.
|
|
|
|
|
|
2005-03-05 12:14:34 +00:00
|
|
|
|
2005-03-05 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2005-03-02 09:03:58 +00:00
|
|
|
|
2005-03-02 Jan Beulich <jbeulich@novell.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
|
|
|
|
|
* pe-dll.c (pe_dll_generate_implib): Likewise.
|
|
|
|
|
|
2005-02-24 20:11:05 +00:00
|
|
|
|
2005-02-24 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ldfile.c: Remove GNU960 conditional code.
|
|
|
|
|
* emultempl/gld960.em: Likewise.
|
|
|
|
|
* emultempl/gld960c.em: Likewise.
|
|
|
|
|
* emultempl/lnk960.em: Likewise.
|
|
|
|
|
|
2005-02-24 13:16:07 +00:00
|
|
|
|
2005-02-24 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/lnk960.em (lnk960_before_parse): Remove redundant
|
|
|
|
|
empty string from calls to concat.
|
|
|
|
|
|
|
|
|
|
2005-02-23 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/lnk960.em (lnk960_before_parse): Terminate list of
|
|
|
|
|
arguments passed to concat() with a NULL.
|
|
|
|
|
|
|
|
|
|
* emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
|
|
|
|
|
define types needed by ldfile.h
|
|
|
|
|
|
2005-02-23 12:30:48 +00:00
|
|
|
|
2005-02-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c: Warning fixes.
|
|
|
|
|
* emultempl/sunos.em: Likewise.
|
|
|
|
|
|
2005-02-22 18:35:32 +00:00
|
|
|
|
2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (section_already_linked): Don't call
|
|
|
|
|
bfd_section_already_linked for dynamic objects.
|
|
|
|
|
|
2005-02-22 13:00:26 +00:00
|
|
|
|
2005-02-22 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c: Warning fixes.
|
|
|
|
|
* ldwrite.c: Likewise.
|
|
|
|
|
* emultempl/elf32.em: Likewise.
|
|
|
|
|
|
2005-02-22 00:50:07 +00:00
|
|
|
|
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
|
|
|
|
|
tic54x input only.
|
|
|
|
|
(lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
|
|
|
|
|
and ECOFF output only.
|
|
|
|
|
|
2005-02-21 11:49:47 +00:00
|
|
|
|
2005-02-21 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2005-02-17 20:57:01 +00:00
|
|
|
|
2005-02-17 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (assigning_to_dot): New global flag.
|
|
|
|
|
(fold_name): If assigning_to_dot is true, object immediately to
|
|
|
|
|
an undefined symbol.
|
|
|
|
|
(exp_fold_tree): Set and clear assigning_to_dot around the
|
|
|
|
|
recursive call to exp_fold_tree to process the right-hand side
|
|
|
|
|
of an assignment to the location counter.
|
|
|
|
|
|
2005-02-17 13:24:59 +00:00
|
|
|
|
2005-02-17 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/armbpabi.sc: Add dummy name to version block.
|
|
|
|
|
|
2005-02-17 13:06:14 +00:00
|
|
|
|
2005-02-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (new_abs): Init new.str.
|
|
|
|
|
|
2005-02-16 07:49:26 +00:00
|
|
|
|
2005-02-15 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* configure.in (AC_CHECK_FUNCS): Add glob.
|
|
|
|
|
* configure: Regenerated.
|
|
|
|
|
* emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
|
|
|
|
|
not defined.
|
|
|
|
|
(gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
|
|
|
|
|
if HAVE_GLOB is not defined.
|
2005-02-17 20:57:01 +00:00
|
|
|
|
|
2005-02-16 05:10:02 +00:00
|
|
|
|
2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
|
|
|
|
|
lib_path if NATIVE is yes.
|
|
|
|
|
|
2005-02-16 02:20:13 +00:00
|
|
|
|
2005-02-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
|
|
|
|
|
an error creating fake bfd fatal.
|
|
|
|
|
(ppc_before_allocation): Continue on after errors.
|
|
|
|
|
(gld${EMULATION_NAME}_finish): Likewise.
|
|
|
|
|
|
2005-02-15 14:36:19 +00:00
|
|
|
|
2005-02-15 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
|
|
|
|
|
not declared. It is not used and its presence causes a compile
|
|
|
|
|
time warning.
|
2005-02-17 20:57:01 +00:00
|
|
|
|
|
2005-02-11 23:52:03 +00:00
|
|
|
|
2005-02-11 Zack Weinberg <zack@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
|
|
|
|
|
If st.st_ino is zero, do not treat the library as a duplicate.
|
|
|
|
|
|
2005-02-10 09:15:08 +00:00
|
|
|
|
2005-02-10 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
|
|
|
|
|
Set BFD_LINKER_CREATED on the stubs bfd.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_create_output_section_statements):
|
|
|
|
|
Likewise.
|
|
|
|
|
|
2005-02-10 05:49:21 +00:00
|
|
|
|
2005-02-08 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/armbpabi.sc (VERSION): Make special section symbols
|
2005-02-11 23:52:03 +00:00
|
|
|
|
local.
|
2005-02-10 05:49:21 +00:00
|
|
|
|
(Image$$ER_RO$$Base): Define whenever RELOCATING.
|
|
|
|
|
(Image$$ER_RO$$Limit): Likewise.
|
|
|
|
|
(SHT$$INIT_ARRAY$$Base): Likewise.
|
|
|
|
|
(SHT$$INIT_ARRAY$$Limit): Likeise.
|
|
|
|
|
|
2005-02-10 01:03:49 +00:00
|
|
|
|
2005-02-10 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/beos.em: Remove #if 0 and #if 1 blocks.
|
|
|
|
|
|
2005-02-08 19:54:27 +00:00
|
|
|
|
2005-02-08 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
|
|
|
|
|
to include o32 and n64 emulations.
|
|
|
|
|
(mips64*-*-linux-gnu*): Likewise.
|
|
|
|
|
|
2005-02-08 03:51:32 +00:00
|
|
|
|
2005-02-08 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (warning_callback, warning_find_reloc): Prepend
|
|
|
|
|
"warning: " to warning messages.
|
|
|
|
|
|
2005-02-03 14:12:54 +00:00
|
|
|
|
2005-02-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
|
|
|
|
|
look up symbol for etree_provide here.
|
|
|
|
|
|
2005-02-02 20:19:52 +00:00
|
|
|
|
2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
|
|
|
|
|
|
2005-02-01 17:31:01 +00:00
|
|
|
|
2005-02-01 Edward Welbourne <eddy@opera.com>
|
|
|
|
|
Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Source Code Reference): New node describing how to
|
|
|
|
|
access linker script defined variables from source code.
|
|
|
|
|
|
2005-02-01 01:11:27 +00:00
|
|
|
|
2005-02-01 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Clarify --as-needed operation.
|
|
|
|
|
|
2005-01-31 20:32:45 +00:00
|
|
|
|
2005-01-31 Andrew Cagney <cagney@gnu.org>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate to track ../gettext.m4.
|
|
|
|
|
|
2005-01-31 17:36:24 +00:00
|
|
|
|
2005-01-31 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldver.c (ldversion): Bump reported copyright date to 2005.
|
|
|
|
|
|
2005-01-31 17:18:51 +00:00
|
|
|
|
2005-01-31 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Remove obsolete targets m68k-lynxos and
|
|
|
|
|
sparc-lynxos.
|
|
|
|
|
|
2005-01-28 17:24:41 +00:00
|
|
|
|
2005-01-28 Julian Brown <julian@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (fix_v4bx): New variable.
|
|
|
|
|
(arm_elf_create_output_section_statements): Communicate fix_v4bx flag
|
|
|
|
|
value to bfd.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
|
2005-02-11 23:52:03 +00:00
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
|
2005-01-28 17:24:41 +00:00
|
|
|
|
* NEWS: Mention --fix-v4bx.
|
|
|
|
|
* ld.texinfo: Document --fix-v4bx.
|
|
|
|
|
|
2005-01-26 06:10:45 +00:00
|
|
|
|
2005-01-25 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
|
|
|
|
|
as to include .ARM.exidx$${Base,Limit}.
|
|
|
|
|
* ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
|
|
|
|
|
Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
|
|
|
|
|
Put .init_array, .fini_array, etc. into the read-only data
|
2005-02-11 23:52:03 +00:00
|
|
|
|
segment.
|
|
|
|
|
|
2005-01-25 01:40:04 +00:00
|
|
|
|
2005-01-25 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
|
|
|
|
|
(gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
|
|
|
|
|
only needed by an as-needed lib that didn't get linked.
|
|
|
|
|
|
2005-01-23 07:43:52 +00:00
|
|
|
|
2005-01-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
|
|
|
|
|
__DTOR_LIST__ description.
|
|
|
|
|
|
2005-01-23 05:36:37 +00:00
|
|
|
|
2005-01-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Location Counter <dot outside sections>): Document
|
|
|
|
|
effects of orphan section placement, and ". = ." workaround.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2005-01-22 18:13:16 +00:00
|
|
|
|
2005-01-22 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
|
|
|
|
|
* emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
|
|
|
|
|
|
2005-01-21 12:04:25 +00:00
|
|
|
|
2005-01-21 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (AS_NEEDED): New token.
|
|
|
|
|
(input_list): Handle AS_NEEDED ( input_list ).
|
|
|
|
|
* ldlex.l (AS_NEEDED): Add.
|
|
|
|
|
* ld.texinfo: Document AS_NEEDED ().
|
|
|
|
|
* NEWS: Mention AS_NEEDED ().
|
|
|
|
|
|
2005-01-21 04:15:59 +00:00
|
|
|
|
2005-01-21 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_reasonable_defaults): Remove.
|
|
|
|
|
(lang_process): Don't call lang_reasonable_defaults.
|
|
|
|
|
|
|
|
|
|
* ldexp.c (exp_assop): Remove #if 0'd code.
|
|
|
|
|
(exp_print_tree): Likewise.
|
|
|
|
|
* ldlang.c (lang_memory_region_lookup): Likewise.
|
|
|
|
|
(open_output): Likewise.
|
|
|
|
|
(lang_do_assignments_1): Likewise.
|
|
|
|
|
(lang_place_orphans): Likewise.
|
|
|
|
|
(lang_enter_output_section_statement): Likewise.
|
|
|
|
|
(lang_reasonable_defaults): Likewise.
|
|
|
|
|
* ldlang.h (struct lang_input_statement_struct): Likewise.
|
|
|
|
|
* mri.c (mri_draw_tree): Likewise.
|
|
|
|
|
(mri_load): Likewise.
|
|
|
|
|
* pe-dll.c (generate_reloc): Likewise.
|
|
|
|
|
(make_import_fixup_entry): Likewise.
|
|
|
|
|
(pe_as16): Likewise.
|
|
|
|
|
* emultempl/beos.em (set_pe_subsystem): Likewise.
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
|
|
|
|
|
|
2005-01-20 19:37:49 +00:00
|
|
|
|
2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
|
|
|
|
|
(earmelfb_linux_eabi.c): New target.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* configure.tgt (arm*b-*-linux-gnueabi): New target.
|
|
|
|
|
* emulparams/armelfb_linux_eabi.sh: New file.
|
|
|
|
|
|
2005-01-20 07:47:49 +00:00
|
|
|
|
2005-01-20 Nick Hudson <skrll@netbsd.org>
|
|
|
|
|
|
|
|
|
|
PR ld/676
|
|
|
|
|
* emultempl/hppaelf.em (hppaelf_create_output_section_statements):
|
|
|
|
|
Handle bfd_elf32_hppa_nbsd_vec.
|
|
|
|
|
|
2005-01-19 11:42:49 +00:00
|
|
|
|
2005-01-19 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.h (ld_sysroot): Change type to a constant string.
|
|
|
|
|
* ldmain.c (ld_sysroot): Likewise.
|
|
|
|
|
(get_relative_sysroot, get_sysroot): New functions, adding command-line
|
|
|
|
|
support for changing the sysroot.
|
|
|
|
|
(main): Call the new functions.
|
|
|
|
|
* lexsup.c (OPTION_SYSROOT): New.
|
|
|
|
|
(ld_options): Add --sysroot.
|
|
|
|
|
(parse_args): Add a dummy handler for it.
|
|
|
|
|
* ld.texinfo (--sysroot): Document.
|
|
|
|
|
* NEWS: Mention the new --sysroot option.
|
|
|
|
|
|
2005-01-18 08:51:54 +00:00
|
|
|
|
2005-01-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
|
|
|
|
|
(lang_place_orphans): Don't abort on just_syms_flag, instead call
|
|
|
|
|
bfd_link_just_syms.
|
|
|
|
|
|
2005-01-16 09:18:35 +00:00
|
|
|
|
2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* defilep.y (def_name, def_library): Combine into...
|
|
|
|
|
(def_image_name): New function. Strip name to basename,
|
|
|
|
|
with warning.
|
|
|
|
|
|
2005-01-12 22:12:24 +00:00
|
|
|
|
2005-01-12 Mark Kettenis <kettenis@gnu.org>
|
|
|
|
|
|
|
|
|
|
* configure.in: Be sure to invoke config.sub using the shell.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
|
2005-01-11 09:36:46 +00:00
|
|
|
|
2005-01-11 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* configure.host: Correct sed patterns for last change.
|
|
|
|
|
|
2005-01-10 15:45:00 +00:00
|
|
|
|
2005-01-10 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/609
|
|
|
|
|
* ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
|
|
|
|
|
to determine whether config.make_executable should be set to FALSE in
|
|
|
|
|
conjunction with config.fatal_warnings.
|
|
|
|
|
(info_msg, minfo, lfinof): Pass FALSE as the extra argument.
|
|
|
|
|
(einfo): Pass TRUE as the extra argument.
|
|
|
|
|
|
2005-01-10 14:57:32 +00:00
|
|
|
|
2005-01-10 Greg Schaffer <gschafer@zip.com.au>
|
|
|
|
|
|
|
|
|
|
* configure.host (linux targets): Use "${CC} -dumpspecs" instead
|
|
|
|
|
of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
|
|
|
|
|
(ia64-*-aix): Delete - this target is obsolete, and would be
|
|
|
|
|
broken by this patch.
|
|
|
|
|
|
2005-01-06 18:05:17 +00:00
|
|
|
|
2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
|
|
|
|
|
|
|
|
|
|
* configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
|
|
|
|
|
(sparc64-sun-solaris2*): New host.
|
|
|
|
|
|
2005-01-06 16:18:25 +00:00
|
|
|
|
2005-01-06 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefie.am: Add earmelf_vxworks.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Make arm-*-vxworks a separate case.
|
|
|
|
|
* emulparams/armelf_vxworks.sh: New function.
|
|
|
|
|
|
2005-01-06 09:03:56 +00:00
|
|
|
|
2005-01-06 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (no_multi_toc): New var.
|
|
|
|
|
(gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
|
|
|
|
|
(OPTION_NO_MULTI_TOC): Define.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
|
|
|
|
|
|
2005-01-05 16:03:23 +00:00
|
|
|
|
2005-01-05 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR binutils/614
|
|
|
|
|
* ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
|
2005-01-06 09:03:56 +00:00
|
|
|
|
Standard's specification for parsable error messages.
|
2005-01-05 16:03:23 +00:00
|
|
|
|
|
2005-01-04 15:16:25 +00:00
|
|
|
|
2005-01-04 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Correct dependency for earmsymbian.c.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-12-29 05:59:29 +00:00
|
|
|
|
2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (set_pe_subsystem): Change second arg to
|
|
|
|
|
lang_add_entry to FALSE.
|
|
|
|
|
|
2004-12-23 12:27:45 +00:00
|
|
|
|
2004-12-23 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 600
|
|
|
|
|
* emulparams/shelf.sh (.stack): Increase stack start address to
|
|
|
|
|
0x300000.
|
|
|
|
|
|
2004-12-20 15:16:06 +00:00
|
|
|
|
2004-12-20 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (main): Issue an error message if -static and -shared
|
|
|
|
|
are used together.
|
|
|
|
|
|
2004-12-17 15:50:02 +00:00
|
|
|
|
2004-12-17 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
|
|
|
|
|
* ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
|
|
|
|
|
* ldlang.c (lang_size_sections): Use them to avoid wasting virtual
|
|
|
|
|
address space at DATA_SEGMENT_ALIGN. Fix computation of expected
|
|
|
|
|
PT_GNU_RELRO segment end.
|
|
|
|
|
|
2004-12-16 16:02:59 +00:00
|
|
|
|
2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Add s390x-ibm-tpf support.
|
|
|
|
|
|
2004-12-16 15:40:36 +00:00
|
|
|
|
2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
|
|
|
|
|
|
|
|
|
|
* ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
|
|
|
|
|
BFD.
|
|
|
|
|
|
2004-12-07 12:29:41 +00:00
|
|
|
|
2004-12-07 Ben Elliston <bje@gnu.org>
|
|
|
|
|
|
|
|
|
|
* ldemul.h: Forward declare struct option.
|
|
|
|
|
|
2004-11-30 23:54:53 +00:00
|
|
|
|
2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* scripttempl/pe.sc (.data): Add .jcr subsection.
|
|
|
|
|
|
2004-11-30 17:45:54 +00:00
|
|
|
|
2004-11-30 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
|
|
|
|
|
|
2004-11-30 17:20:48 +00:00
|
|
|
|
2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Change LOCALEDIR to $(datadir)/share.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-11-26 09:42:04 +00:00
|
|
|
|
2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em: Add --subsystem:xbox as well as
|
|
|
|
|
--subsystem:%d.
|
|
|
|
|
* ld.texinfo: (ld_options): Document acceptance of subsystem xbox
|
|
|
|
|
and numeric subsystems.
|
|
|
|
|
|
2004-11-24 11:30:17 +00:00
|
|
|
|
2004-11-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name): Correct PR 338 fix.
|
|
|
|
|
|
2004-11-19 19:28:40 +00:00
|
|
|
|
2004-11-19 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
|
|
|
|
|
(earmelf_linux_eabi.c): New target.
|
|
|
|
|
* configure.tgt (arm*-*-linux-gnueabi): Handle it.
|
|
|
|
|
* emulparams/armelf_linux_eabi.sh: New file.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2004-11-19 09:38:04 +00:00
|
|
|
|
2004-11-19 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR 518
|
|
|
|
|
* ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
|
|
|
|
|
LENGTH fields in the MEMORY command, to explicitly state that
|
|
|
|
|
symbols cannot be used in their expressions.
|
|
|
|
|
|
2004-11-19 09:31:55 +00:00
|
|
|
|
2004-11-19 Jon Beniston <jon@beniston.com>
|
|
|
|
|
|
|
|
|
|
* ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
|
|
|
|
|
* ld/ldgram.y: Add ORIGIN and LENGTH expressions.
|
2005-01-06 09:03:56 +00:00
|
|
|
|
* ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
|
2004-11-19 09:31:55 +00:00
|
|
|
|
which return the length and origin of a memory.
|
|
|
|
|
* ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
|
|
|
|
|
* NEWS: Mention support for ORIGIN and LENGTH operators.
|
|
|
|
|
|
bfd/
* elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
(elf32_arm_plt_thumb_stub): New.
(struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
and plt_got_offset.
(elf32_arm_link_hash_traverse): Fix typo.
(elf32_arm_link_hash_table): Add obfd.
(elf32_arm_link_hash_newfunc): Initialize new fields.
(elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
(elf32_arm_link_hash_table_create): Initialize obfd.
(record_arm_to_thumb_glue): Mark the glue as a local ARM function.
(record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
(bfd_elf32_arm_get_bfd_for_interworking): Verify that the
interworking BFD is not dynamic.
(bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
not emit glue for PLT references.
(elf32_arm_final_link_relocate): Handle Thumb functions. Do not
emit glue for PLT references. Support the Thumb PLT prefix.
(elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
plt_thumb_refcount.
(elf32_arm_check_relocs): Likewise.
(elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
plt_thumb_refcount.
(allocate_dynrelocs): Handle Thumb PLT references.
(elf32_arm_finish_dynamic_symbol): Likewise.
(elf32_arm_symbol_processing): New function.
(elf_backend_symbol_processing): Define.
opcodes/
* arm-dis.c (WORD_ADDRESS): Define.
(print_insn): Use it. Correct big-endian end-of-section handling.
gas/testsuite/
* gas/arm/mapping.d: Expect F markers for Thumb code.
* gas/arm/unwind.d: Update big-endian pattern.
ld/
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
a dynamic object for stubs.
ld/testsuite/
* ld-arm/mixed-app.d, ld-arm/mixed-app.r, ld-arm/mixed-app.s,
ld-arm/mixed-app.sym, ld-arm/mixed-lib.d, ld-arm/mixed-lib.r,
ld-arm/mixed-lib.s, ld-arm/mixed-lib.sym, ld-arm/arm-dyn.ld,
ld-arm/arm-lib.ld: New files.
* ld-arm/arm-app-abs32.d, ld-arm/arm-app-abs32.r, ld-arm/arm-app.d,
ld-arm/arm-app.r, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r,
ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-static-app.d,
ld-arm/arm-static-app.r: Update for big-endian.
* ld-arm/arm-elf.exp: Run the new tests.
2004-11-17 17:50:28 +00:00
|
|
|
|
2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
|
|
|
|
|
a dynamic object for stubs.
|
|
|
|
|
|
2004-11-15 23:21:27 +00:00
|
|
|
|
2004-11-04 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document --default-imported-symver.
|
|
|
|
|
* ldmain.c (main): Set link_info.default_imported_symver.
|
|
|
|
|
* lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
|
|
|
|
|
(ld_options): Add --default-imported-symver.
|
|
|
|
|
(parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
|
|
|
|
|
|
2004-11-08 13:17:43 +00:00
|
|
|
|
2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
|
|
|
|
|
Vineet Sharma <vineets@noida.hcltech.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add entries for new maxq-coff target.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Add support for maxq.
|
|
|
|
|
* emulparams/maxqcoff.sh: New File.
|
|
|
|
|
* scripttempl/maxqcoff.sc: New linker script for target maxq.
|
|
|
|
|
* NEWS: Mention the new target.
|
|
|
|
|
|
./
* configure.in (arm-*-oabi*, thumb-*-oabi*): Remove.
* configure: Regenerated.
bfd/
* Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
elfarm-nabi with elf32-arm. Remove elfarm-oabi.
(elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
dependency.
* config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
to a new removed list. Remove normal configuration stanzas.
* configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
(bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
elfarm-nabi.lo with elf32-arm.lo.
(bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
* elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
* elf32-arm.h: Remove.
* elfarm-oabi.c: Remove.
* targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
and bfd_elf32_littlearm_oabi_vec.
* aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
gas/
* configure.in: Remove arm-*-oabi and thumb-*-oabi.
* config/tc-arm.c (target_oabi): Delete.
(md_apply_fix3, elf32_arm_target_format): Remove target_oabi checks.
(arm_opts): Remove moabi.
* doc/as.texinfo (Overview): Remove documentation of -moabi.
* doc/c-arm.texi (ARM Options): Likewise.
* configure: Regenerated.
ld/
* Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
(earmelf_oabi.c): Remove rule.
* configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
* emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
* Makefile.in: Regenerated.
2004-11-04 15:54:50 +00:00
|
|
|
|
2004-11-04 Daniel Jacobowitz <dan@debian.org>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
|
|
|
|
|
(earmelf_oabi.c): Remove rule.
|
|
|
|
|
* configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
|
|
|
|
|
* emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
|
2004-11-04 15:01:40 +00:00
|
|
|
|
2004-11-04 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
|
|
|
|
|
* emulparams/criself.sh (INIT_START): Remove emitted "push srp".
|
|
|
|
|
(FINI_START): Ditto.
|
|
|
|
|
(INIT_END): Remove emitted "jump [sp+]".
|
|
|
|
|
(FINI_END): Ditto.
|
|
|
|
|
|
2004-11-04 11:55:13 +00:00
|
|
|
|
2004-11-04 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
|
|
|
|
|
(no_opd_opt, no_toc_opt): New static vars.
|
|
|
|
|
(ppc_before_allocation): Don't edit opt if no_opd_opt. Call
|
|
|
|
|
ppc64_elf_edit_toc.
|
|
|
|
|
(OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Describe new options.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle them.
|
|
|
|
|
|
2004-10-27 15:53:21 +00:00
|
|
|
|
2004-10-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
|
|
|
|
|
parameter to invocation of lang_section_start.
|
|
|
|
|
* emultempl/aix.em (_handle_option): Likewise.
|
2004-11-04 11:55:13 +00:00
|
|
|
|
|
2004-10-27 15:53:21 +00:00
|
|
|
|
* Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
|
|
|
|
|
eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-10-27 06:57:43 +00:00
|
|
|
|
2004-10-26 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
|
|
|
|
|
__exidx_{start,end} when not relocating.
|
|
|
|
|
|
2004-10-26 18:41:52 +00:00
|
|
|
|
2004-10-25 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
|
|
|
|
|
* ldexp.h (segment_type): New type.
|
|
|
|
|
(segments): New variable.
|
|
|
|
|
* ldexp.c (segments): New variable.
|
|
|
|
|
(exp_print_token): Handle SEGMENT_START.
|
|
|
|
|
(fold_binary): Likewise.
|
|
|
|
|
* ldgram.y (SEGMENT_START): Declare it as a token.
|
|
|
|
|
(exp): Handle SEGMENT_START.
|
|
|
|
|
* ldlang.h (lang_address_statement_type): Add segment field.
|
|
|
|
|
(lang_section_start): Change prototype.
|
|
|
|
|
* ldlang.c (map_input_to_output_sections): Do not process section
|
|
|
|
|
assignments if a corresponding SEGMENT_START has already been
|
|
|
|
|
seen.
|
|
|
|
|
(lang_section_start): Add segment parameter.
|
|
|
|
|
* ldlex.l (SEGMENT_START): Add it.
|
|
|
|
|
* lexsup.c (seg_segment_start): New function.
|
|
|
|
|
(parse_args): Use it for -Tbss, -Tdata, and -Ttext.
|
|
|
|
|
* ld.texinfo (SEGMENT_START): Document it.
|
|
|
|
|
* emulparams/armsymbian.sh (EMBEDDED): Set it.
|
|
|
|
|
* scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
|
|
|
|
|
base addresses. Do not map relocations.
|
|
|
|
|
* NEWS: Mention SEGMENT_START.
|
|
|
|
|
|
2004-10-26 13:46:05 +00:00
|
|
|
|
2004-10-26 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document --default-symver.
|
|
|
|
|
* ldmain.c (main): Set link_info.create_default_symver.
|
|
|
|
|
* lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
|
|
|
|
|
(ld_options): Add default-symver.
|
|
|
|
|
(parse_args): Handle OPTION_DEFAULT_SYMVER.
|
|
|
|
|
|
2004-10-24 01:00:12 +00:00
|
|
|
|
2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (process_def_file): Don't export all symbols by default if
|
|
|
|
|
building a position-independent executable.
|
|
|
|
|
|
2004-10-21 15:28:33 +00:00
|
|
|
|
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 463
|
|
|
|
|
* ldmain.c (reloc_overflow): Accept a pointer to struct
|
|
|
|
|
bfd_link_hash_entry. Report symbol location for relocation
|
|
|
|
|
overflow.
|
|
|
|
|
|
2004-10-21 15:20:35 +00:00
|
|
|
|
2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* genscripts.sh (libpath.exp): Really generate for first
|
|
|
|
|
emulation only.
|
|
|
|
|
|
2004-10-19 20:07:32 +00:00
|
|
|
|
2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
|
|
|
|
|
comparison and replacement of filenames.
|
|
|
|
|
|
2004-10-19 15:44:58 +00:00
|
|
|
|
2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 459
|
|
|
|
|
* ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
|
|
|
|
|
option on linker script as the one for linker script.
|
|
|
|
|
|
2004-10-16 18:13:54 +00:00
|
|
|
|
2004-10-16 Daniel Jacobowitz <dan@debian.org>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
|
|
|
|
|
(check_excluded_libs): New.
|
|
|
|
|
(load_symbols): Call check_excluded_libs.
|
|
|
|
|
* ldlang.h (add_excluded_libs): New prototype.
|
|
|
|
|
* emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
|
|
|
|
|
(gld${EMULATION_NAME}_add_options): Add --exclude-libs.
|
|
|
|
|
(gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
|
|
|
|
|
* ld.texinfo (Command Line Variables): Document --exclude-libs.
|
|
|
|
|
(Options Specific to i386 PE Targets): Remove --exclude-libs.
|
|
|
|
|
|
2004-10-15 05:54:11 +00:00
|
|
|
|
2004-10-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2004-10-15 06:00:15 +00:00
|
|
|
|
* ldexp.c (exp_fold_tree): Don't immediately exit ld on a
|
|
|
|
|
failing link script assert.
|
|
|
|
|
|
2004-10-15 05:54:11 +00:00
|
|
|
|
* ldctor.c (ldctor_add_set_entry): Fix comment typo.
|
|
|
|
|
|
2004-10-14 17:00:16 +00:00
|
|
|
|
2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
PR 445
|
|
|
|
|
* emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
|
|
|
|
|
(SMALL_DATA_DTOR): Set.
|
|
|
|
|
* emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
|
|
|
|
|
(SMALL_DATA_DTOR): Unset.
|
|
|
|
|
* scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
|
|
|
|
|
after .data. If SMALL_DATA_DTOR is set, move .dtors after
|
|
|
|
|
.data.
|
|
|
|
|
|
2004-10-14 12:54:47 +00:00
|
|
|
|
2004-10-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 63
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Make "next" a
|
|
|
|
|
struct lang_output_section_statement_struct *.
|
|
|
|
|
(struct orphan_save): Move from elf32.em. Add "name" and "flags".
|
|
|
|
|
(lang_output_section_find_by_flags, lang_insert_orphan): Declare.
|
|
|
|
|
* ldlang.c (lang_output_section_find_1): Adjust for changed
|
|
|
|
|
output_section_statement "next".
|
|
|
|
|
(strip_excluded_output_sections): Likewise.
|
|
|
|
|
(lang_record_phdrs): Likewise.
|
|
|
|
|
(lang_output_section_find_by_flags): New function.
|
|
|
|
|
(output_prev_sec_find): Move from pe.em. Adjust iterator.
|
|
|
|
|
(lang_insert_orphan): New function. Tail end of elf32.em's
|
|
|
|
|
place_orphan merged with that from pe.em. Allow bfd_section to
|
|
|
|
|
be placed first. New heuristic for placing new output section
|
|
|
|
|
statement in existing script, and accompanying split of __start
|
|
|
|
|
symbol alignment into a separate assignment to dot.
|
|
|
|
|
(lang_add_section): Consistently use output->bfd_section rather than
|
|
|
|
|
an alias, section->output_section.
|
|
|
|
|
(map_input_to_output_sections): Rename overly long arg. Move
|
|
|
|
|
initialization of data_statement output section to here..
|
|
|
|
|
(lang_check_section_addresses): ..from here.
|
|
|
|
|
(print_assignment): Correct printing of etree_assert.
|
|
|
|
|
(print_all_symbols): Don't bomb if userdata is NULL.
|
|
|
|
|
(IGNORE_SECTION): Rearrange.
|
|
|
|
|
* emultempl/elf32.em (output_rel_find): Adjust interator.
|
|
|
|
|
(output_prev_sec_find): Delete.
|
|
|
|
|
(struct orphan_save): Delete.
|
|
|
|
|
(gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
|
|
|
|
|
flags without creating a duplicate output section statement.
|
|
|
|
|
Revise code holding history of various orphan section placements.
|
|
|
|
|
Allow orphan sections to place before script specified output
|
|
|
|
|
sections. Call lang_output_section_find_by_flags when placement
|
|
|
|
|
by name fails. Use lang_insert_orphan.
|
|
|
|
|
* emultempl/mmo.em (output_prev_sec_find): Delete.
|
|
|
|
|
(struct orphan_save): Delete.
|
|
|
|
|
(mmo_place_orphan): Revise code holding history of orphan placement.
|
|
|
|
|
Allow orphans to place before existing output sections. Use
|
|
|
|
|
lang_insert_orphan.
|
|
|
|
|
* emultempl/pe.em (output_prev_sec_find): Delete.
|
|
|
|
|
(struct orphan_save): Delete.
|
|
|
|
|
(gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
|
|
|
|
|
lang_insert_orphan.
|
|
|
|
|
|
2004-10-13 17:45:31 +00:00
|
|
|
|
2004-10-13 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
|
|
|
|
|
loadable segment.
|
|
|
|
|
|
2004-10-12 23:44:57 +00:00
|
|
|
|
2004-10-13 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 44
|
2004-10-13 02:28:01 +00:00
|
|
|
|
* ldcref.c (check_section_sym_xref): Delete.
|
|
|
|
|
(check_local_sym_xref): New function.
|
|
|
|
|
(check_nocrossrefs): Adjust call.
|
2004-10-12 23:44:57 +00:00
|
|
|
|
* emultempl/pe.em (struct orphan_save): Add os_tail.
|
|
|
|
|
(place_orphan): Backport assorted fixes from elf32.em.
|
|
|
|
|
|
2004-10-12 18:33:17 +00:00
|
|
|
|
2004-10-12 Bob Wilson <bob.wilson@acm.org>
|
|
|
|
|
|
|
|
|
|
* emultempl/xtensaelf.em: Use ISO C90 formatting.
|
|
|
|
|
|
2004-10-11 14:12:11 +00:00
|
|
|
|
2004-10-11 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
2004-10-11 14:42:30 +00:00
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
|
|
|
|
|
getline for portability.
|
|
|
|
|
|
2004-10-11 14:12:11 +00:00
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
|
|
|
|
|
(gld${EMULATION_NAME}_parse_ld_so_conf,
|
|
|
|
|
gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
|
|
|
|
|
(gld${EMULATION_NAME}_check_ld_so_conf): Use them.
|
|
|
|
|
|
2004-10-11 02:40:47 +00:00
|
|
|
|
2004-10-11 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 423
|
|
|
|
|
* ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
|
|
|
|
|
rejected when linking statically.
|
|
|
|
|
|
2004-10-08 13:55:11 +00:00
|
|
|
|
2004-10-08 Daniel Jacobowitz <dan@debian.org>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
|
|
|
|
|
|
bfd ChangeLog
* elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
(xtensa_default_isa): Global variable moved here from xtensa-isa.c.
(elf32xtensa_no_literal_movement): New global variable.
(elf_howto_table): Add entries for new relocations.
(elf_xtensa_reloc_type_lookup): Handle new relocations.
(property_table_compare): When addresses are equal, compare sizes and
various property flags.
(property_table_matches): New.
(xtensa_read_table_entries): Extend to read new property tables. Add
output_addr parameter to indicate that output addresses should be used.
Use bfd_get_section_limit.
(elf_xtensa_find_property_entry): New.
(elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
(elf_xtensa_check_relocs): Handle new relocations.
(elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
relocations. Use new xtensa-isa.h functions.
(build_encoding_error_message): Remove encode_result parameter. Add
new target_address parameter used to detect alignment errors.
(elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
error handling. Use new is_operand_relocation function.
(elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
Use underbar macro for error messages. Formatting.
(get_const16_opcode): New.
(get_l32r_opcode): Add a separate flag for initialization.
(get_relocation_opnd): Operand number is no longer explicit in the
relocation. Change to decode the opcode and analyze its operands.
(get_relocation_slot): New.
(get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
Use new xtensa-isa.h functions to handle multislot instructions.
(is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
(get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
check_loop_aligned, check_branch_target_aligned_address, narrowable,
widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
get_single_format, init_op_single_format_table): New.
(elf_xtensa_do_asm_simplify): Add error_message parameter and use it
instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
(contract_asm_expansion): Add error_message parameter and pass it to
elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
with R_XTENSA_SLOT0_OP.
(get_expanded_call_opcode): Extend to handle either L32R or CONST16
instructions. Use new xtensa-isa.h functions.
(r_reloc struct): Add new virtual_offset field.
(r_reloc_init): Add contents and content_length parameters. Set
virtual_offset field to zero. Add contents to target_offset field for
partial_inplace relocations.
(r_reloc_is_defined): Check for null.
(print_r_reloc): New debug function.
(source_reloc struct): Replace xtensa_operand field with pair of the
opcode and the operand position. Add is_abs_literal field.
(init_source_reloc): Specify operand by opcode/position pair. Set
is_abs_literal field.
(source_reloc_compare): When target_offsets are equal, compare other
fields to make sorting predictable.
(literal_value struct): Add is_abs_literal field.
(value_map_hash_table struct): Add has_last_loc and last_loc fields.
(init_literal_value): New.
(is_same_value): Replace with ...
(literal_value_equal): ... this function. Add comparisons of
virtual_offset and is_abs_literal fields.
(value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
failure. Initialize has_last_loc field.
(value_map_hash_table_delete): New.
(hash_literal_value): Rename to ...
(literal_value_hash): ... this. Include is_abs_literal flag and
virtual_offset field in the hash value.
(get_cached_value): Rename to ...
(value_map_get_cached_value): ... this. Update calls to
literal_value_hash and literal_value_equal.
(add_value_map): Check for allocation failure. Update calls to
value_map_get_cached_value and literal_value_hash.
(text_action, text_action_list, text_action_t): New types.
(find_fill_action, compute_removed_action_diff, adjust_fill_action,
text_action_add, text_action_add_literal, offset_with_removed_text,
offset_with_removed_text_before_fill, find_insn_action,
print_action_list, print_removed_literals): New.
(offset_with_removed_literals): Delete.
(xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
fix_array, fix_array_count, allocated_relocs, relocs_count, and
allocated_relocs_count fields.
(init_xtensa_relax_info): Initialize new fields.
(reloc_bfd_fix struct): Add new translated field.
(reloc_bfd_fix_init): Add translated parameter and use it to set the
translated field.
(fix_compare, cache_fix_array): New.
(get_bfd_fix): Remove fix_list parameter and get all relax_info for the
section via get_xtensa_relax_info. Use cache_fix_array to set up
sorted fix_array and use bsearch instead of linear search.
(section_cache_t): New struct.
(init_section_cache, section_cache_section, clear_section_cache): New.
(ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
(init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
extend_ebb_bounds_forward, extend_ebb_bounds_backward,
insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
New.
(retrieve_contents): Use bfd_get_section_limit.
(elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
to compute_removed_literals. Free value_map_hash_table when no longer
needed.
(analyze_relocations): Check is_relaxable_asm_section flag. Call
compute_text_actions for all sections.
(find_relaxable_sections): Mark sections as relaxable if they contain
ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
call. Increment relax_info src_count field only for appropriate
relocation types. Remove is_literal_section check.
(collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
r_reloc_init and find_associated_l32r_irel. Check
is_relaxable_asm_section flag. Handle L32R instructions with absolute
literals. Pass is_abs_literal flag to init_source_reloc.
(is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
CONST16 instructions. Adjust calls to r_reloc_init and
pcrel_reloc_fits. Handle weak symbols conservatively.
(find_associated_l32r_irel): Add bfd parameter and pass it to
is_l32r_relocation.
(compute_text_actions, compute_ebb_proposed_actions,
compute_ebb_actions, check_section_ebb_pcrels_fit,
check_section_ebb_reduces, text_action_add_proposed,
compute_fill_extra_space): New.
(remove_literals): Replace with ...
(compute_removed_literals): ... this function. Call
init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
Call xtensa_read_table_entries to get the property table. Skip
relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
is_removable_literal, remove_dead_literal, and
identify_literal_placement functions.
(get_irel_at_offset): Rewrite to use bsearch on sorted relocations
instead of linear search.
(is_removable_literal, remove_dead_literal,
identify_literal_placement): New.
(relocations_reach): Update check for literal not referenced by any
PC-relative relocations. Adjust call to pcrel_reloc_fits.
(coalesce_shared_literal, move_shared_literal): New.
(relax_section): Use bfd_get_section_limit. Call
translate_section_fixes. Update calls to r_reloc_init and
offset_with_removed_text. Check new is_relaxable_asm_section flag.
Add call to pin_internal_relocs. Add special handling for
R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
info to calculate new addend_displacement variable. Replace code for
deleting literals with more general code to perform the actions
determined by the action_list for the section.
(translate_section_fixes, translate_reloc_bfd_fix): New.
(translate_reloc): Check new is_relaxable_asm_section flag. Call
find_removed_literal only if is_operand_relocation. Update call to
offset_with_removed_text. Use new target_offset and removed_bytes
variables.
(move_literal): New.
(relax_property_section): Use bfd_get_section_limit. Set new
is_full_prop_section flag and handle new property tables. Update calls
to r_reloc_init and offset_with_removed_text. Check
is_relaxable_asm_section flag. Handle expansion of zero-sized
unreachable entries, with use of offset_with_removed_text_before_fill.
For relocatable links, combine entries only for literal tables.
(relax_section_symbols): Check is_relaxable_asm_section flag. Update
calls to offset_with_removed_text. Translate st_size field for
function symbols.
(do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
failure. Add contents parameter. Update call to get_bfd_fix. Update
call to r_reloc_init. Call _bfd_error_handler and return FALSE for
R_XTENSA_ASM_EXPAND relocs.
(do_fix_for_final_link): Add input_bfd and contents parameters. Update
call to get_bfd_fix. Include offset from contents for partial_inplace
relocations.
(is_reloc_sym_weak): New.
(pcrel_reloc_fits): Use new xtensa-isa.h functions.
(prop_sec_len): New.
(xtensa_is_property_section): Handle new property sections.
(is_literal_section): Delete.
(internal_reloc_compare): When r_offset matches, compare r_info and
r_addend to make sorting predictable.
(internal_reloc_matches): New.
(xtensa_get_property_section_name): Handle new property sections.
(xtensa_get_property_predef_flags): New.
(xtensa_callback_required_dependence): Use bfd_get_section_limit.
Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
* xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
(xtisa_errno, xtisa_error_msg): New variables.
(xtensa_isa_errno, xtensa_isa_error_msg): New.
(xtensa_insnbuf_alloc): Add error handling.
(xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
use xtensa_format_decode. Add error handling.
(xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
instruction length to find the number of bytes to copy.
(xtensa_isa_init): Add error handling. Replace calls to
xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
tables in the xtensa_modules structure.
(xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
xtensa_extend_isa): Delete.
(xtensa_isa_free): Change to only free lookup tables.
(opname_lookup_compare): Replace with ...
(xtensa_isa_name_compare): ... this function. Use strcasecmp.
(xtensa_insn_maxlength): Rename to ...
(xtensa_isa_maxlength): ... this.
(xtensa_insn_length): Delete.
(xtensa_insn_length_from_first_byte): Replace with ...
(xtensa_isa_length_from_chars): ... this function.
(xtensa_num_opcodes): Rename to ...
(xtensa_isa_num_opcodes): ... this.
(xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
xtensa_isa_num_regfiles, xtensa_isa_num_stages,
xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
xtensa_format_get_slot, xtensa_format_set_slot): New functions.
(xtensa_opcode_lookup): Add error handling.
(xtensa_decode_insn): Replace with ...
(xtensa_opcode_decode): ... this function, with new format and
slot parameters. Add error handling.
(xtensa_encode_insn): Replace with ...
(xtensa_opcode_encode): ... this function, which does the encoding via
one of the entries in the "encode_fns" array. Add error handling.
(xtensa_opcode_name): Add error handling.
(xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
xtensa_opcode_is_call): New.
(xtensa_num_operands): Replace with ...
(xtensa_opcode_num_operands): ... this function. Add error handling.
(xtensa_opcode_num_stateOperands,
xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
xtensa_opcode_funcUnit_use, xtensa_operand_name,
xtensa_operand_is_visible): New.
(xtensa_get_operand, xtensa_operand_kind): Delete.
(xtensa_operand_inout): Add error handling and special-case for
"sout" operands.
(xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
operate on one slot of an instruction. Added error handling.
(xtensa_operand_encode): Handle default operands with no encoding
functions. Check for success by comparing against decoded value.
Add error handling.
(xtensa_operand_decode): Handle default operands. Return decoded value
through argument pointer. Add error handling.
(xtensa_operand_is_register, xtensa_operand_regfile,
xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
(xtensa_operand_isPCRelative): Rename to ...
(xtensa_operand_is_PCrelative): ... this. Add error handling.
(xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
through argument pointer. Add error handling.
(xtensa_stateOperand_state, xtensa_stateOperand_inout,
xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
xtensa_regfile_lookup_shortname, xtensa_regfile_name,
xtensa_regfile_shortname, xtensa_regfile_view_parent,
xtensa_regfile_num_bits, xtensa_regfile_num_entries,
xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
xtensa_state_is_exported, xtensa_sysreg_lookup,
xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
xtensa_interface_num_bits, xtensa_interface_inout,
xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
* xtensa-modules.c: Rewrite to use new data structures.
* reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
* Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
* Makefile.in: Regenerate.
* bfd-in2.h: Likewise.
* libbfd.h: Likewise.
gas ChangeLog
* config/tc-xtensa.c (absolute_literals_supported): New global flag.
(UNREACHABLE_MAX_WIDTH): Define.
(XTENSA_FETCH_WIDTH): Delete.
(cur_vinsn, xtensa_fetch_width, xt_saved_debug_type, past_xtensa_end,
prefer_const16, prefer_l32r): New global variables.
(LIT4_SECTION_NAME): Define.
(lit4_state struct): Add lit4_seg_name and lit4_seg fields.
(XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
(frag_flags struct): New.
(xtensa_block_info struct): Move from tc-xtensa.h. Add flags field.
(subseg_map struct): Add cur_total_freq and cur_target_freq fields.
(bitfield, bit_is_set, set_bit, clear_bit): Define.
(MAX_FORMATS): Define.
(op_placement_info struct, op_placement_table): New.
(O_pltrel, O_hi16, O_lo16): Define.
(directiveE enum): Rename directive_generics to directive_transform.
Delete directive_relax. Add directive_schedule,
directive_absolute_literals, and directive_last_directive.
(directive_info): Rename "generics" to "transform". Delete "relax".
Add "schedule" and "absolute-literals".
(directive_state): Adjust entries to match changes in directive_info.
(xtensa_relax_statesE, RELAX_IMMED_MAXSTEPS): Move to tc-xtensa.h.
(xtensa_const16_opcode, xtensa_movi_opcode, xtensa_movi_n_opcode,
xtensa_l32r_opcode, xtensa_nop_opcode, xtensa_rsr_lcount_opcode): New.
(xtensa_j_opcode, xtensa_rsr_opcode): Delete.
(align_only_targets, software_a0_b_retw_interlock,
software_avoid_b_j_loop_end, maybe_has_b_j_loop_end,
software_avoid_short_loop, software_avoid_close_loop_end,
software_avoid_all_short_loops, specific_opcode): Delete.
(warn_unaligned_branch_targets): New.
(workaround_a0_b_retw, workaround_b_j_loop_end, workaround_short_loop,
workaround_close_loop_end, workaround_all_short_loops): Default FALSE.
(option_[no_]link_relax, option_[no_]transform,
option_[no_]absolute_literals, option_warn_unaligned_targets,
option_prefer_l32r, option_prefer_const16, option_target_hardware):
New enum values.
(option_[no_]align_only_targets, option_literal_section_name,
option_text_section_name, option_data_section_name,
option_bss_section_name, option_eb, option_el): Delete.
(md_longopts): Add entries for: [no-]transform, [no-]absolute-literals,
warn-unaligned-targets, prefer-l32r, prefer-const16, [no-]link-relax,
and target-hardware. Delete entries for [no-]target-align-only,
literal-section-name, text-section-name, data-section-name, and
bss-section-name.
(md_parse_option): Handle new options and remove old ones. Accept but
ignore [no-]density options. Warn for [no-]generics and [no-]relax
and treat them as [no-]transform.
(md_show_usage): Add new options and remove old ones.
(xtensa_setup_hw_workarounds): New.
(md_pseudo_table): Change "word" entry to use xtensa_elf_cons. Add
"long", "short", "loc" and "frequency" entries.
(use_generics): Rename to ...
(use_transform): ... this function. Add past_xtensa_end check.
(use_longcalls): Add past_xtensa_end check.
(code_density_available, can_relax): Delete.
(do_align_targets): New.
(get_directive): Accept dashes in directive names. Warn about
[no-]generics and [no-]relax directives and treat them as
[no-]transform.
(xtensa_begin_directive): Call md_flush_pending_output only for some
directives. Check for directives inside instruction bundles. Warn
about deprecated ".begin literal" usage. Warn and ignore [no-]density
directives. Handle new directives. Check generating_literals flag
for literal_prefix.
(xtensa_end_directive): Check for directives inside instruction
bundles. Warn and ignore [no-]density directives. Handle new
directives. Call xtensa_set_frag_assembly_state.
(xtensa_loc_directive_seen, xtensa_dwarf2_directive_loc,
xtensa_dwarf2_emit_insn): New.
(xtensa_literal_position): Call md_flush_pending_output. Do not check
use_literal_section flag.
(xtensa_literal_pseudo): Call md_flush_pending_output. Handle absolute
literals. Use xtensa_elf_cons to parse the expression.
(xtensa_literal_prefix): Do not check use_literal_section. Support
".lit4" sections for absolute literals. Change prefix convention to
replace ".text" (or ".t" in a linkonce section). No need to call
subseg_set.
(xtensa_frequency_pseudo, xtensa_elf_cons, xtensa_elf_suffix): New.
(expression_end): Handle closing braces and colons.
(PLT_SUFFIX, plt_suffix): Delete.
(expression_maybe_register): Use new xtensa-isa.h functions. Use
xtensa_elf_suffix instead of checking for plt suffix, and handle O_lo16
and O_hi16 expressions as well.
(tokenize_arguments): Handle closing braces and colons.
(parse_arguments): Use new xtensa-isa.h functions. Handle "invisible"
operands and paired register syntax.
(get_invisible_operands): New.
(xg_translate_sysreg_op): Handle new Xtensa LX RSR/WSR/XSR syntax. Use
new xtensa-isa.h functions.
(xtensa_translate_old_userreg_ops, xtensa_translate_zero_immed): New.
(xg_translate_idioms): Check if inside bundle. Use use_transform.
Handle new Xtensa LX RSR/WSR/XSR syntax. Remove code to widen density
instructions. Use xtensa_translate_zero_immed.
(operand_is_immed, operand_is_pcrel_label): Delete.
(get_relaxable_immed): Use new xtensa-isa.h functions.
(get_opcode_from_buf): Add slot parameter. Use new xtensa-isa.h
functions.
(xtensa_print_insn_table, print_vliw_insn): New.
(is_direct_call_opcode): Use new xtensa-isa.h functions.
(is_call_opcode, is_loop_opcode, is_conditional_branch_opcode,
is_branch_or_jump_opcode): Delete.
(is_movi_opcode, decode_reloc, encode_reloc, encode_alt_reloc): New.
(opnum_to_reloc, reloc_to_opnum): Delete.
(xtensa_insnbuf_set_operand, xtensa_insnbuf_get_operand): Use new
xtensa-isa.h functions. Operate on one slot of an instruction.
(xtensa_insnbuf_set_immediate_field, is_negatable_branch,
xg_get_insn_size): Delete.
(xg_get_build_instr_size): Use xg_get_single_size.
(xg_is_narrow_insn, xg_is_single_relaxable_insn): Update calls to
xg_build_widen_table. Use xg_get_single_size.
(xg_get_max_narrow_insn_size): Delete.
(xg_get_max_insn_widen_size, xg_get_max_insn_widen_literal_size,
xg_is_relaxable_insn): Update calls to xg_build_widen_table. Use
xg_get_single_size.
(xg_build_to_insn): Record the loc field. Handle OP_OPERAND_HI16U and
OP_OPERAND_LOW16U. Check xg_valid_literal_expression.
(xg_expand_to_stack, xg_expand_narrow): Update calls to
xg_build_widen_table. Use xg_get_single_size.
(xg_immeds_fit): Use new xtensa-isa.h functions. Update call to
xg_check_operand.
(xg_symbolic_immeds_fit): Likewise. Also handle O_lo16 and O_hi16, and
treat weak symbols conservatively.
(xg_check_operand): Use new xtensa-isa.h functions.
(is_dnrange): Delete.
(xg_assembly_relax): Inline previous calls to tinsn_copy.
(xg_finish_frag): Specify separate relax states for the frag and slot0.
(is_branch_jmp_to_next, xg_add_branch_and_loop_targets): Use new
xtensa-isa.h functions.
(xg_instruction_matches_option_term, xg_instruction_matches_or_options,
xg_instruction_matches_options): New.
(xg_instruction_matches_rule): Handle O_register expressions. Call
xg_instruction_matches_options.
(transition_rule_cmp): New.
(xg_instruction_match): Update call to xg_build_simplify_table.
(xg_build_token_insn): Record loc fields.
(xg_simplify_insn): Check is_specific_opcode field and
density_supported flag.
(xg_expand_assembly_insn): Skip checking code_density_available. Use
new xtensa-isa.h functions. Call use_transform instead of can_relax.
(xg_assemble_literal): Add error handling for O_big. Call
record_alignment. Handle O_pltrel.
(xg_valid_literal_expression): New.
(xg_assemble_literal_space): Add slot parameter. Remove call to
set_expr_symbol_offset. Add call to record_alignment. Update call to
xg_finish_frag.
(xg_emit_insn): Delete.
(xg_emit_insn_to_buf): Add format parameter. Update calls to
xg_add_opcode_fix and xtensa_insnbuf_to_chars.
(xg_add_opcode_fix): Change opcode parameter to tinsn and add format
and slot parameters. Handle new "alternate" relocations for absolute
literals and CONST16 instructions. Check for bad uses of O_lo16 and
O_hi16. Use new xtensa-isa.h functions.
(xg_assemble_tokens): Delete.
(is_register_writer): Use new xtensa-isa.h functions.
(is_bad_loopend_opcode): Check for xtensa_rsr_lcount_opcode instead of
old-style RSR from LCOUNT.
(next_frag_opcode): Delete.
(next_frag_opcode_is_loop, next_frag_format_size, frag_format_size,
update_next_frag_state): New.
(update_next_frag_nop_state): Delete.
(next_frag_pre_opcode_bytes): Use next_frag_opcode_is_loop.
(xtensa_mark_literal_pool_location): Check use_literal_section flag and
the state of the absolute-literals directive. Add calls to
record_alignment and xtensa_set_frag_assembly_state. Call
xtensa_switch_to_non_abs_literal_fragment instead of
xtensa_switch_to_literal_fragment.
(build_nop): New.
(assemble_nop): Use build_nop. Update call to xtensa_insnbuf_to_chars.
(get_expanded_loop_offset): Change check for undefined opcode to an
assertion.
(xtensa_set_frag_assembly_state, relaxable_section,
xtensa_find_unmarked_state_frags, xtensa_find_unaligned_branch_targets,
xtensa_find_unaligned_loops, xg_apply_tentative_value): New.
(md_begin): Update call to xtensa_isa_init. Initialize linkrelax to 1.
Set lit4_seg_name. Call xg_init_vinsn. Initialize new global opcodes.
Call init_op_placement_info_table and xtensa_set_frag_assembly_state.
(xtensa_init_fix_data): New.
(xtensa_frob_label): Reset label symbol to the current frag. Check
do_align_targets and generating_literals flag. Propagate frequency
info to new alignment frag. Call xtensa_set_frag_assembly_state.
(xtensa_unrecognized_line): New.
(xtensa_flush_pending_output): Check if inside a bundle. Add a call
to xtensa_set_frag_assembly_state.
(error_reset_cur_vinsn): New.
(md_assemble): Remove check for literal frag. Remove call to
istack_init. Call use_transform instead of use_generics. Parse
explicit instruction format specifiers. Move code for
a0_b_retw_interlock workaround to xg_assemble_vliw_tokens. Call
error_reset_cur_vinsn on errors. Add call to get_invisible_operands.
Add dwarf2_where call. Remote automatic alignment for ENTRY
instructions. Move call to xtensa_clear_insn_labels to the end.
Rearrange to handle bundles.
(xtensa_cons_fix_new): Delete.
(xtensa_handle_align): New.
(xtensa_frag_init): Call xtensa_set_frag_assembly_state. Remove
assignment to is_no_density field.
(md_pcrel_from): Use new xtensa-isa.h functions. Use decode_reloc
instead of reloc_to_opnum. Handle "alternate" relocations.
(xtensa_force_relocation, xtensa_check_inside_bundle,
xtensa_elf_section_change_hook): New.
(xtensa_symbol_new_hook): Delete.
(xtensa_fix_adjustable): Check for difference of symbols with an
offset. Check for external and weak symbols.
(md_apply_fix3): Remove cases for XTENSA_OP{0,1,2} relocs.
(md_estimate_size_before_relax): Return expansion for the first slot.
(tc_gen_reloc): Handle difference of symbols by producing
XTENSA_DIFF{8,16,32} relocs and by writing the value of the difference
into the output. Handle new XTENSA_SLOT*_OP relocs by storing the
tentative values into the output when linkrelax is set.
(XTENSA_PROP_SEC_NAME): Define.
(xtensa_post_relax_hook): Call xtensa_find_unmarked_state_frags.
Create literal tables only if using literal sections. Create new
property tables instead of old instruction tables. Check for unaligned
branch targets and loops.
(finish_vinsn, find_vinsn_conflicts, check_t1_t2_reads_and_writes,
new_resource_table, clear_resource_table, resize_resource_table,
resources_available, reserve_resources, release_resources,
opcode_funcUnit_use_unit, opcode_funcUnit_use_stage,
resources_conflict, xg_find_narrowest_format, relaxation_requirements,
bundle_single_op, emit_single_op, xg_assemble_vliw_tokens): New.
(xtensa_end): Call xtensa_flush_pending_output. Set past_xtensa_end
flag. Update checks for workaround options. Call
xtensa_mark_narrow_branches and xtensa_mark_zcl_first_insns.
(xtensa_cleanup_align_frags): Add special case for branch targets.
Check for and mark unreachable frags.
(xtensa_fix_target_frags): Remove use of align_only_targets flag.
Use RELAX_LOOP_END_BYTES in special case for negatable branch at the
end of a zero-overhead loop body.
(frag_can_negate_branch): Handle instructions with multiple slots.
Use new xtensa-isa.h functions
(xtensa_mark_narrow_branches, is_narrow_branch_guaranteed_in_range,
xtensa_mark_zcl_first_insns): New.
(xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags): Error if
transformations are disabled.
(next_instrs_are_b_retw): Use new xtensa-isa.h functions. Handle
multislot instructions.
(xtensa_fix_close_loop_end_frags, xtensa_fix_short_loop_frags):
Likewise. Also error if transformations are disabled.
(unrelaxed_frag_max_size): New.
(unrelaxed_frag_min_insn_count, unrelax_frag_has_b_j): Use new
xtensa-isa.h functions.
(xtensa_sanity_check, is_empty_loop, is_local_forward_loop): Use
xtensa_opcode_is_loop instead of is_loop_opcode.
(get_text_align_power): Replace as_fatal with assertion.
(get_text_align_fill_size): Iterate instead of using modulus when
use_nops is false.
(get_noop_aligned_address): Assert that this is for a machine-dependent
RELAX_ALIGN_NEXT_OPCODE frag. Use next_frag_opcode_is_loop,
xg_get_single_size, and frag_format_size.
(get_widen_aligned_address): Rename to ...
(get_aligned_diff): ... this function. Add max_diff parameter.
Remove handling of rs_align/rs_align_code frags. Use
next_frag_format_size, get_text_align_power, get_text_align_fill_size,
next_frag_opcode_is_loop, and xg_get_single_size. Compute max_diff
and pass it back to caller.
(xtensa_relax_frag): Use relax_frag_loop_align. Add code for new
RELAX_SLOTS, RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN,
RELAX_FILL_NOP, and RELAX_UNREACHABLE frag types. Check relax_seen.
(relax_frag_text_align): Rename to ...
(relax_frag_loop_align): ... this function. Assume loops can only be
in the first slot of an instruction.
(relax_frag_add_nop): Use assemble_nop instead of constructing an OR
instruction. Remove call to frag_wane.
(relax_frag_narrow): Rename to ...
(relax_frag_for_align): ... this function. Extend to handle
RELAX_FILL_NOP and RELAX_UNREACHABLE, as well as RELAX_SLOTS with
RELAX_NARROW for the first slot.
(find_address_of_next_align_frag, bytes_to_stretch): New.
(future_alignment_required): Use find_address_of_next_align_frag and
bytes_to_stretch. Look ahead to subsequent frags to make smarter
alignment decisions.
(relax_frag_immed): Add format, slot, and estimate_only parameters.
Check if transformations are enabled for b_j_loop_end workaround.
Use new xtensa-isa.h functions and handle multislot instructions.
Update call to xg_assembly_relax.
(md_convert_frag): Handle new RELAX_SLOTS, RELAX_UNREACHABLE,
RELAX_MAYBE_UNREACHABLE, RELAX_MAYBE_DESIRE_ALIGN, and RELAX_FILL_NOP
frag types.
(convert_frag_narrow): Add segP, format and slot parameters. Call
convert_frag_immed for branch instructions. Adjust calls to
tinsn_from_chars, tinsn_immed_from_frag, and xg_emit_insn_to_buf. Use
xg_get_single_size and xg_get_single_format.
(convert_frag_fill_nop): New.
(convert_frag_immed): Add format and slot parameters. Handle multislot
instructions and use new xtensa-isa.h functions. Update calls to
tinsn_immed_from_frag and xg_assembly_relax. Check if transformations
enabled for b_j_loop_end workaround. Use build_nop instead of
assemble_nop. Check is_specific_opcode flag. Check for unreachable
frags. Use xg_get_single_size. Handle O_pltrel.
(fix_new_exp_in_seg): Remove check for old plt flag.
(convert_frag_immed_finish_loop): Update calls to tinsn_from_chars and
xtensa_insnbuf_to_chars. Call tinsn_immed_from_frag. Change check
for loop opcode to an assertion. Mark all frags up to the end of the
loop as not transformable.
(get_last_insn_flags, set_last_insn_flags): Use get_subseg_info.
(get_subseg_info): New.
(xtensa_move_literals): Call xtensa_set_frag_assembly_state. Add null
check for dest_seg.
(xtensa_switch_to_literal_fragment): Rewrite to handle absolute
literals and use xtensa_switch_to_non_abs_literal_fragment otherwise.
(xtensa_switch_to_non_abs_literal_fragment): New.
(cache_literal_section): Add is_code parameter and pass it through to
retrieve_literal_seg.
(retrieve_literal_seg): Add is_code parameter and use it to set the
flags on the literal section. Handle case where head parameter is 0.
(get_frag_is_no_transform, set_frag_is_specific_opcode,
set_frag_is_no_transform): New.
(xtensa_create_property_segments): Add end_property_function parameter
and pass it through to add_xt_block_frags. Call bfd_get_section_flags
and skip SEC_DEBUGGING and !SEC_ALLOC sections.
(xtensa_create_xproperty_segments, section_has_xproperty): New.
(add_xt_block_frags): Add end_property_function parameter and call it
if it is non-zero. Call xtensa_frag_flags_init.
(xtensa_frag_flags_is_empty, xtensa_frag_flags_init,
get_frag_property_flags, frag_flags_to_number,
xtensa_frag_flags_combinable, xt_block_aligned_size,
xtensa_xt_block_combine, add_xt_prop_frags,
init_op_placement_info_table, opcode_fits_format_slot,
xg_get_single_size, xg_get_single_format): New.
(istack_push): Inline call to tinsn_copy.
(tinsn_copy): Delete.
(tinsn_has_invalid_symbolic_operands): Handle O_hi16 and O_lo16 and
CONST16 opcodes. Handle O_big, O_illegal, and O_absent.
(tinsn_has_complex_operands): Handle O_hi16 and O_lo16.
(tinsn_to_insnbuf): Use xg_get_single_format and new xtensa-isa.h
functions. Handle invisible operands.
(tinsn_to_slotbuf): New.
(tinsn_check_arguments): Use new xtensa-isa.h functions.
(tinsn_from_chars): Add slot parameter. Rewrite using xg_init_vinsn,
vinsn_from_chars, and xg_free_vinsn.
(tinsn_from_insnbuf): New.
(tinsn_immed_from_frag): Add slot parameter and handle multislot
instructions. Handle symbol differences.
(get_num_stack_text_bytes): Use xg_get_single_size.
(xg_init_vinsn, xg_clear_vinsn, vinsn_has_specific_opcodes,
xg_free_vinsn, vinsn_to_insnbuf, vinsn_from_chars, expr_is_register,
get_expr_register, set_expr_symbol_offset_diff): New.
* config/tc-xtensa.h (MAX_SLOTS): Define.
(xtensa_relax_statesE): Move from tc-xtensa.c. Add
RELAX_CHECK_ALIGN_NEXT_OPCODE, RELAX_MAYBE_DESIRE_ALIGN, RELAX_SLOTS,
RELAX_FILL_NOP, RELAX_UNREACHABLE, RELAX_MAYBE_UNREACHABLE, and
RELAX_NONE types.
(RELAX_IMMED_MAXSTEPS): Move from tc-xtensa.c.
(xtensa_frag_type struct): Add is_assembly_state_set,
use_absolute_literals, relax_seen, is_unreachable, is_specific_opcode,
is_align, is_text_align, alignment, and is_first_loop_insn fields.
Replace is_generics and is_relax fields by is_no_transform field.
Delete is_text and is_longcalls fields. Change text_expansion and
literal_expansion to arrays of MAX_SLOTS entries. Add arrays of
per-slot information: literal_frags, slot_subtypes, slot_symbols,
slot_sub_symbols, and slot_offsets. Add fr_prev field.
(xtensa_fix_data struct): New.
(xtensa_symfield_type struct): Delete plt field.
(xtensa_block_info struct): Move definition to tc-xtensa.h. Add
forward declaration here.
(xt_section_type enum): Delete xt_insn_sec. Add xt_prop_sec.
(XTENSA_SECTION_RENAME): Undefine.
(TC_FIX_TYPE, TC_INIT_FIX_DATA, TC_FORCE_RELOCATION, NO_PSEUDO_DOT,
tc_unrecognized_line, md_do_align, md_elf_section_change_hook,
HANDLE_ALIGN, TC_LINKRELAX_FIXUP, SUB_SEGMENT_ALIGN): Define.
(TC_CONS_FIX_NEW, tc_symbol_new_hook): Delete.
(unit_num_copies_func, opcode_num_units_func,
opcode_funcUnit_use_unit_func, opcode_funcUnit_use_stage_func): New.
(resource_table struct): New.
* config/xtensa-istack.h (MAX_INSN_ARGS): Increase from 6 to 10.
(TInsn struct): Add keep_wide, loc, fixup, record_fix, subtype,
literal_space, symbol, sub_symbol, offset, and literal_frag fields.
(tinsn_copy): Delete prototype.
(vliw_insn struct): New.
* config/xtensa-relax.c (insn_pattern_struct): Add options field.
(widen_spec_list): Add option conditions for density and boolean
instructions. Add expansions using CONST16 and conditions for using
CONST16 vs. L32R. Use new Xtensa LX RSR/WSR syntax. Add entries for
predicted branches.
(simplify_spec_list): Add option conditions for density instructions.
Add entry for NOP instruction.
(append_transition): Add cmp function pointer parameter and use it to
insert the new entry in order.
(operand_function_LOW16U, operand_function_HI16U): New.
(xg_has_userdef_op_fn, xg_apply_userdef_op_fn): Handle
OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
(enter_opname, split_string): Use xstrdup instead of strdup.
(init_insn_pattern): Initialize new options field.
(clear_req_or_option_list, clear_req_option_list,
clone_req_or_option_list, clone_req_option_list, parse_option_cond):
New.
(parse_insn_pattern): Parse option conditions.
(transition_applies): New.
(build_transition): Use new xtensa-isa.h functions. Fix incorrectly
swapped last arguments in calls to append_constant_value_condition.
Call clone_req_option_list. Add warning about invalid opcode.
Handle LOW16U and HI16U function names.
(build_transition_table): Add cmp parameter and use it in calls to
append_transition. Use new xtensa-isa.h functions. Check
transition_applies before adding entries.
(xg_build_widen_table, xg_build_simplify_table): Add cmp parameter and
pass it through to build_transition_table.
* config/xtensa-relax.h (ReqOrOptionList, ReqOrOption, ReqOptionList,
ReqOption, transition_cmp_fn): New types.
(OpType enum): Add OP_OPERAND_LOW16U and OP_OPERAND_HI16U.
(transition_rule struct): Add options field.
* doc/as.texinfo (Overview): Update Xtensa options.
* doc/c-xtensa.texi (Xtensa Options): Delete --[no-]density,
--[no-]relax, and --[no-]generics options. Update descriptions of
--text-section-literals and --[no-]longcalls. Add
--[no-]absolute-literals and --[no-]transform.
(Xtensa Syntax): Add description of syntax for FLIX instructions.
Remove use of "generic" and "specific" terminology for opcodes.
(Xtensa Registers): Generalize the syntax description to include
user-defined register files.
(Xtensa Automatic Alignment): Update.
(Xtensa Branch Relaxation): Mention limitation of unconditional jumps.
(Xtensa Call Relaxation): Linker can now remove most of the overhead.
(Xtensa Directives): Remove confusing rules about precedence.
(Density Directive, Relax Directive): Delete.
(Schedule Directive): New.
(Generics Directive): Rename to ...
(Transform Directive): ... this node.
(Literal Directive): Update for absolute literals. Missing
literal_position directive is now an error.
(Literal Position Directive): Update for absolute literals.
(Freeregs Directive): Delete.
(Absolute Literals Directive): New.
(Frame Directive): Minor editing.
* Makefile.am (DEPTC_xtensa_elf, DEPOBJ_xtensa_elf, DEP_xtensa_elf):
Update dependencies.
* Makefile.in: Regenerate.
gas/testsuite ChangeLog
* gas/xtensa/all.exp: Adjust expected error message for j_too_far.
Change entry_align test to expect an error.
* gas/xtensa/entry_misalign2.s: Use no-transform instead of
no-generics directives.
include ChangeLog
* xtensa-config.h (XSHAL_USE_ABSOLUTE_LITERALS,
XCHAL_HAVE_PREDICTED_BRANCHES, XCHAL_INST_FETCH_WIDTH): New.
(XCHAL_EXTRA_SA_SIZE, XCHAL_EXTRA_SA_ALIGN): Delete.
* xtensa-isa-internal.h (ISA_INTERFACE_VERSION): Delete.
(config_sturct struct): Delete.
(XTENSA_OPERAND_IS_REGISTER, XTENSA_OPERAND_IS_PCRELATIVE,
XTENSA_OPERAND_IS_INVISIBLE, XTENSA_OPERAND_IS_UNKNOWN,
XTENSA_OPCODE_IS_BRANCH, XTENSA_OPCODE_IS_JUMP,
XTENSA_OPCODE_IS_LOOP, XTENSA_OPCODE_IS_CALL,
XTENSA_STATE_IS_EXPORTED, XTENSA_INTERFACE_HAS_SIDE_EFFECT): Define.
(xtensa_format_encode_fn, xtensa_get_slot_fn, xtensa_set_slot_fn): New.
(xtensa_insn_decode_fn): Rename to ...
(xtensa_opcode_decode_fn): ... this.
(xtensa_immed_decode_fn, xtensa_immed_encode_fn, xtensa_do_reloc_fn,
xtensa_undo_reloc_fn): Update.
(xtensa_encoding_template_fn): Delete.
(xtensa_opcode_encode_fn, xtensa_format_decode_fn,
xtensa_length_decode_fn): New.
(xtensa_format_internal, xtensa_slot_internal): New types.
(xtensa_operand_internal): Delete operand_kind, inout, isPCRelative,
get_field, and set_field fields. Add name, field_id, regfile,
num_regs, and flags fields.
(xtensa_arg_internal): New type.
(xtensa_iclass_internal): Change operands field to array of
xtensa_arg_internal. Add num_stateOperands, stateOperands,
num_interfaceOperands, and interfaceOperands fields.
(xtensa_opcode_internal): Delete length, template, and iclass fields.
Add iclass_id, flags, encode_fns, num_funcUnit_uses, and funcUnit_uses.
(opname_lookup_entry): Delete.
(xtensa_regfile_internal, xtensa_interface_internal,
xtensa_funcUnit_internal, xtensa_state_internal,
xtensa_sysreg_internal, xtensa_lookup_entry): New.
(xtensa_isa_internal): Replace opcode_table field with opcodes field.
Change type of opname_lookup_table. Delete num_modules,
module_opcode_base, module_decode_fn, config, and has_density fields.
Add num_formats, formats, format_decode_fn, length_decode_fn,
num_slots, slots, num_fields, num_operands, operands, num_iclasses,
iclasses, num_regfiles, regfiles, num_states, states,
state_lookup_table, num_sysregs, sysregs, sysreg_lookup_table,
max_sysreg_num, sysreg_table, num_interfaces, interfaces,
interface_lookup_table, num_funcUnits, funcUnits and
funcUnit_lookup_table fields.
(xtensa_isa_module, xtensa_isa_modules): Delete.
(xtensa_isa_name_compare): New prototype.
(xtisa_errno, xtisa_error_msg): New.
* xtensa-isa.h (XTENSA_ISA_VERSION): Define.
(xtensa_isa): Change type.
(xtensa_operand): Delete.
(xtensa_format, xtensa_regfile, xtensa_state, xtensa_sysreg,
xtensa_interface, xtensa_funcUnit, xtensa_isa_status,
xtensa_funcUnit_use): New types.
(libisa_module_specifier): Delete.
(xtensa_isa_errno, xtensa_isa_error_msg): New prototypes.
(xtensa_insnbuf_free, xtensa_insnbuf_to_chars,
xtensa_insnbuf_from_chars): Update prototypes.
(xtensa_load_isa, xtensa_extend_isa, xtensa_default_isa,
xtensa_insn_maxlength, xtensa_num_opcodes, xtensa_decode_insn,
xtensa_encode_insn, xtensa_insn_length,
xtensa_insn_length_from_first_byte, xtensa_num_operands,
xtensa_operand_kind, xtensa_encode_result,
xtensa_operand_isPCRelative): Delete.
(xtensa_isa_init, xtensa_operand_inout, xtensa_operand_get_field,
xtensa_operand_set_field, xtensa_operand_encode,
xtensa_operand_decode, xtensa_operand_do_reloc,
xtensa_operand_undo_reloc): Update prototypes.
(xtensa_isa_maxlength, xtensa_isa_length_from_chars,
xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
xtensa_isa_num_opcodes, xtensa_isa_num_regfiles, xtensa_isa_num_states,
xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
xtensa_format_get_slot, xtensa_format_set_slot, xtensa_opcode_decode,
xtensa_opcode_encode, xtensa_opcode_is_branch, xtensa_opcode_is_jump,
xtensa_opcode_is_loop, xtensa_opcode_is_call,
xtensa_opcode_num_operands, xtensa_opcode_num_stateOperands,
xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
xtensa_opcode_funcUnit_use, xtensa_operand_name,
xtensa_operand_is_visible, xtensa_operand_is_register,
xtensa_operand_regfile, xtensa_operand_num_regs,
xtensa_operand_is_known_reg, xtensa_operand_is_PCrelative,
xtensa_stateOperand_state, xtensa_stateOperand_inout,
xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
xtensa_regfile_lookup_shortname, xtensa_regfile_name,
xtensa_regfile_shortname, xtensa_regfile_view_parent,
xtensa_regfile_num_bits, xtensa_regfile_num_entries,
xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
xtensa_state_is_exported, xtensa_sysreg_lookup,
xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
xtensa_interface_num_bits, xtensa_interface_inout,
xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New prototypes.
* elf/xtensa.h (R_XTENSA_DIFF8, R_XTENSA_DIFF16, R_XTENSA_DIFF32,
R_XTENSA_SLOT*_OP, R_XTENSA_SLOT*_ALT): New relocations.
(XTENSA_PROP_SEC_NAME): Define.
(property_table_entry): Add flags field.
(XTENSA_PROP_*, GET_XTENSA_PROP_*, SET_XTENSA_PROP_*): Define.
ld ChangeLog
* ld.texinfo (Xtensa): Describe new linker relaxation to optimize
assembler-generated longcall sequences. Describe new --size-opt
option.
* emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
* emultempl/xtensaelf.em (remove_section,
replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
elf_xtensa_after_open): New.
(OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
OPTION_NO_LITERAL_MOVEMENT): Define.
(elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
(PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
(PARSE_AND_LIST_OPTIONS): Add --size-opt.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
(LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
* scripttempl/elfxtensa.sc: Update with changes from elf.sc.
* Makefile.am (eelf32xtensa.c): Update dependencies.
* Makefile.in: Regenerate.
ld/testsuite ChangeLog
* ld-xtensa/lcall1.s: Use .literal directive.
* ld-xtensa/lcall2.s: Align function entry.
* ld-xtensa/coalesce2.s: Likewise.
opcodes ChangeLog
* xtensa-dis.c (state_names): Delete.
(fetch_data): Use xtensa_isa_maxlength.
(print_xtensa_operand): Replace operand parameter with opcode/operand
pair. Remove print_sr_name parameter. Use new xtensa-isa.h functions.
(print_insn_xtensa): Use new xtensa-isa.h functions. Handle multislot
instruction bundles. Use xmalloc instead of malloc.
2004-10-08 00:22:15 +00:00
|
|
|
|
2004-10-07 Bob Wilson <bob.wilson@acm.org>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Xtensa): Describe new linker relaxation to optimize
|
|
|
|
|
assembler-generated longcall sequences. Describe new --size-opt
|
|
|
|
|
option.
|
|
|
|
|
* emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
|
|
|
|
|
* emultempl/xtensaelf.em (remove_section,
|
|
|
|
|
replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
|
|
|
|
|
elf_xtensa_after_open): New.
|
|
|
|
|
(OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
|
|
|
|
|
OPTION_NO_LITERAL_MOVEMENT): Define.
|
|
|
|
|
(elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS): Add --size-opt.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
|
|
|
|
|
OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
|
|
|
|
|
(LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
|
|
|
|
|
* scripttempl/elfxtensa.sc: Update with changes from elf.sc.
|
|
|
|
|
* Makefile.am (eelf32xtensa.c): Update dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-10-07 14:45:24 +00:00
|
|
|
|
2004-10-07 Jeff Baker <jbaker@qnx.com>
|
2004-10-11 02:40:47 +00:00
|
|
|
|
|
2004-10-07 14:45:24 +00:00
|
|
|
|
* lexsup.c: Handle --warn-shared-textrel option.
|
|
|
|
|
(ld_options): Restore alpha sorting of options.
|
|
|
|
|
* ldmain.c (main): Initialise warn_shared_info field to FALSE.
|
|
|
|
|
* ld.texinfo: Add documentation for --warn-shared-textrel.
|
|
|
|
|
* NEWS: Added mention of --warn-shared-textrel option.
|
|
|
|
|
|
2004-10-05 14:39:40 +00:00
|
|
|
|
2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
|
2004-10-11 02:40:47 +00:00
|
|
|
|
|
2004-10-05 14:39:40 +00:00
|
|
|
|
* emultempl/crxelf.em (disable_relaxation): Add.
|
2004-10-11 02:40:47 +00:00
|
|
|
|
(crxelf_before_allocation): Enable --relax option by default.
|
2004-10-05 14:39:40 +00:00
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
|
|
|
|
|
|
2004-10-04 16:45:51 +00:00
|
|
|
|
2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
|
|
|
|
|
--sort-section name|alignment.
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
|
|
|
|
|
--sort-section name|alignment.
|
|
|
|
|
|
|
|
|
|
* ld.h (sort_type): New enum.
|
|
|
|
|
(wildcard_spec): Change the type of `sorted' to sort_type.
|
|
|
|
|
|
|
|
|
|
* ldgram.y (SORT): Removed.
|
|
|
|
|
(SORT_BY_NAME): Added.
|
|
|
|
|
(SORT_BY_ALIGNMENT): Added.
|
|
|
|
|
(wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
|
|
|
|
|
SORT_BY_ALIGNMENT.
|
|
|
|
|
(input_section_spec_no_keep): Updated `sorted'.
|
|
|
|
|
(statement): Replace SORT with SORT_BY_NAME.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (compare_section): New function to compare 2
|
|
|
|
|
sections with different sorting schemes.
|
|
|
|
|
(wild_sort): Updated. Use compare_section.
|
|
|
|
|
(update_wild_statements): New function.
|
|
|
|
|
(lang_process): Call update_wild_statements before
|
|
|
|
|
map_input_to_output_sections.
|
|
|
|
|
|
|
|
|
|
* ldlex.l (SORT_BY_NAME): New.
|
|
|
|
|
(SORT_BY_ALIGNMENT): New.
|
|
|
|
|
(SORT): Return SORT_BY_NAME.
|
|
|
|
|
|
|
|
|
|
* ldmain.c (sort_section): New. Defined.
|
|
|
|
|
(main): Initialize it to none.
|
|
|
|
|
|
|
|
|
|
* lexsup.c (option_values): Add OPTION_SORT_SECTION.
|
|
|
|
|
(ld_options): Add an entry for OPTION_SORT_SECTION.
|
|
|
|
|
(parse_args): Handle OPTION_SORT_SECTION.
|
|
|
|
|
|
|
|
|
|
* mri.c (mri_draw_tree): Updated `sorted'.
|
|
|
|
|
|
2004-10-04 13:41:15 +00:00
|
|
|
|
2004-10-04 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
|
|
|
|
|
* scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
|
|
|
|
|
argument.
|
|
|
|
|
(DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
|
|
|
|
|
and . as second argument.
|
|
|
|
|
(GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
|
|
|
|
|
* ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
|
|
|
|
|
(fold_binary): Add it here. Insert padding to make relro_end
|
|
|
|
|
COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
|
|
|
|
|
exp_dataseg_relro_adjust phase just use previously computed
|
|
|
|
|
exp_data_seg.base.
|
|
|
|
|
* ldlang.c (lang_size_sections): Set exp_data_seg.base for
|
|
|
|
|
relro_adjust here. Call lang_size_sections_1 once more if there
|
|
|
|
|
was too big padding at DATA_SEGMENT_RELRO_END.
|
|
|
|
|
* ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
|
|
|
|
|
|
2004-10-01 12:59:42 +00:00
|
|
|
|
2004-10-01 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh: Add unwinding table sections.
|
|
|
|
|
|
2004-09-30 17:19:19 +00:00
|
|
|
|
2004-09-30 Filip Navara <navaraf@reactos.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
|
|
|
|
|
correct base address for position independant executables.
|
|
|
|
|
* pe-dll.c (pe_dll_fill_sections): Don't mark position independant
|
|
|
|
|
executables as DLLs.
|
|
|
|
|
|
2004-09-30 17:03:53 +00:00
|
|
|
|
2004-09-30 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Document --target2=abs.
|
|
|
|
|
* emulparms/armsymbian.sh (TARGET2_TYPE): Set.
|
|
|
|
|
|
2004-09-29 16:46:00 +00:00
|
|
|
|
2004-09-29 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/xstormy16.sc: Only perform the assignments to the
|
|
|
|
|
ROM region when not performing a relocatable link. The ROM region
|
|
|
|
|
does not start at address 0, but the sections will.
|
|
|
|
|
* Makefile.am: Fix linker script dependency for the generation of
|
|
|
|
|
eelf32xstormy16.c.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-09-28 19:14:29 +00:00
|
|
|
|
2004-09-18 Filip Navara <navaraf@reactos.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
|
|
|
|
|
emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
|
|
|
|
|
emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
|
|
|
|
|
TARGET_PAGE_SIZE.
|
|
|
|
|
* scripttempl/pe.sc: Make the virtual address and file offset synced if
|
|
|
|
|
the alignment is lower than the target page size.
|
|
|
|
|
|
2004-09-28 15:00:45 +00:00
|
|
|
|
2004-09-27 Filip Navara <navaraf@reactos.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
|
|
|
|
|
def_file_parse to handle pe_def_file if NULL and prevent crash with
|
|
|
|
|
invalid .def files.
|
|
|
|
|
|
2004-09-26 23:42:30 +00:00
|
|
|
|
2004-09-27 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
|
|
|
|
|
--emit-stub-syms automatically when --emit-relocs.
|
|
|
|
|
|
2004-09-24 11:43:34 +00:00
|
|
|
|
2004-09-24 Paul Brook <paul@codeosurcery.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Keep .preinit_array, .init_array and
|
|
|
|
|
.fini_array sections.
|
|
|
|
|
|
2004-09-19 17:09:23 +00:00
|
|
|
|
2004-09-19 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
|
|
|
|
|
base so that relro end is suitably aligned.
|
|
|
|
|
|
2004-09-17 12:18:19 +00:00
|
|
|
|
2004-09-17 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Rename arm-specific section. Document --target*
|
|
|
|
|
* emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
|
|
|
|
|
* emulparams/armelf_linux.sh: Ditto.
|
|
|
|
|
* emulparams/armelf_nbsd.sh: Ditto.
|
|
|
|
|
* emultempl/armelf.em: Set default for TARGET2_TYPE.
|
|
|
|
|
(target2_type): New variable.
|
|
|
|
|
(arm_elf_before_allocation): Don't pass target1_type.
|
|
|
|
|
(arm_elf_create_output_section_statements): New function.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
|
|
|
|
|
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
|
|
|
|
|
* emultempl/armelf_oabi.em (_before_allocation): Remove extra
|
|
|
|
|
argument to bfd_elf32_arm_process_before_allocation.
|
|
|
|
|
|
2004-09-17 07:14:33 +00:00
|
|
|
|
2004-09-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name): Update u.undef.next refs.
|
|
|
|
|
* emultempl/pe.em: Likewise.
|
|
|
|
|
* emultempl/sunos.em: Likewise.
|
|
|
|
|
|
2004-09-17 06:15:39 +00:00
|
|
|
|
2004-09-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Run "make dep-am".
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* aclocal.m4: Regenerate.
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2004-09-16 16:27:00 +00:00
|
|
|
|
2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
|
|
|
|
|
|
2004-09-17 06:15:39 +00:00
|
|
|
|
* scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
|
|
|
|
|
(.fini): Likewise.
|
|
|
|
|
(.jcr): Likewise.
|
2004-09-16 16:27:00 +00:00
|
|
|
|
|
2004-09-16 12:49:56 +00:00
|
|
|
|
2004-09-16 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf_oabi.em (before_allocation): Add extra zero param
|
|
|
|
|
to bfd_elf32_arm_process_before_allocation call.
|
|
|
|
|
|
2004-09-13 14:14:32 +00:00
|
|
|
|
2004-09-13 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armsymbian.sh: Set TARGET1_IS_REL.
|
|
|
|
|
* emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
|
|
|
|
|
|
2004-09-07 17:00:59 +00:00
|
|
|
|
2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerated with autconfig 2.13.
|
|
|
|
|
|
2004-09-07 15:54:47 +00:00
|
|
|
|
2004-09-07 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
|
|
|
|
|
alignment before adjusting DATA_SEGMENT_RELRO_END.
|
|
|
|
|
|
2004-09-06 20:55:23 +00:00
|
|
|
|
2004-09-06 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armsymbian.sh: Use armbpabi script.
|
|
|
|
|
* scripttempl/armbpabi.sc: New script.
|
|
|
|
|
|
2004-09-03 17:15:44 +00:00
|
|
|
|
2004-09-02 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
|
|
|
|
|
(earmsymbian.c): New target.
|
|
|
|
|
* configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
|
|
|
|
|
* Makefile.in: Regenerated.
|
|
|
|
|
* aclocal.m4: Likewise.
|
|
|
|
|
* configure: Likewise.
|
|
|
|
|
* emulparams/armsymbian.sh: New file.
|
|
|
|
|
|
2004-09-03 14:31:41 +00:00
|
|
|
|
2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf32crx.sc: Edit file with comments.
|
|
|
|
|
(.init): Add new section.
|
|
|
|
|
(.fini): Likewise.
|
|
|
|
|
(.ctor): Control the linkage order.
|
|
|
|
|
(.dtor): Likewise.
|
|
|
|
|
|
2004-08-27 07:39:19 +00:00
|
|
|
|
2004-08-27 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (after_open): Do not assume that either bfd is
|
2004-09-17 06:15:39 +00:00
|
|
|
|
an archive.
|
2004-08-27 07:39:19 +00:00
|
|
|
|
|
2004-08-25 23:40:56 +00:00
|
|
|
|
2004-08-26 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_init): Don't compare with TRUE.
|
|
|
|
|
|
2004-08-25 12:54:15 +00:00
|
|
|
|
2004-08-25 Dmitry Diky <diwil@spec.ru>
|
|
|
|
|
|
|
|
|
|
* emulparams/msp430all.sh: Fix RAM sizes for all targets.
|
|
|
|
|
* scripttempl/elf32msp430.sc: Add .profiler section definition.
|
|
|
|
|
|
2004-08-25 06:11:43 +00:00
|
|
|
|
2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (wildcardp): Defined as a macro with strpbrk.
|
|
|
|
|
|
2004-08-19 18:11:42 +00:00
|
|
|
|
2004-08-19 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (arm*-*-symbianelf*): New target.
|
|
|
|
|
(arm*-*-eabi*): Likewise.
|
|
|
|
|
|
2004-08-19 07:47:25 +00:00
|
|
|
|
2004-08-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (non_overlapping_opd): New variable.
|
|
|
|
|
(ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
|
|
|
|
|
(OPTION_NON_OVERLAPPING_OPD): Define.
|
|
|
|
|
(PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
|
|
|
|
|
--non-overlapping-opd option.
|
|
|
|
|
|
2004-08-18 02:45:43 +00:00
|
|
|
|
2004-08-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 338
|
|
|
|
|
* ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
|
|
|
|
|
was already on the undefs list.
|
|
|
|
|
|
2004-08-17 12:33:59 +00:00
|
|
|
|
2004-08-17 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
|
|
|
|
|
prefix the symbol field too.
|
|
|
|
|
|
bfd/
* bfd.c (_bfd_default_error_handler): Handle %A and %B.
(bfd_archive_filename, bfd_get_section_ident): Delete.
* ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
bfd_archive_filename.
* elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
to warn about symbols in discarded sections. Use _bfd_error_handler.
* aout-adobe.c (aout_adobe_callback): See below.
* aout-cris.c (swap_ext_reloc_in): ..
* coff-arm.c (find_thumb_glue, find_arm_glue,
coff_arm_relocate_section, bfd_arm_process_before_allocation,
coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
coff_arm_copy_private_bfd_data): ..
* coff-i860.c (i860_reloc_processing): ..
* coff-mcore.c (mcore_coff_unsupported_reloc,
coff_mcore_relocate_section): ..
* coff-ppc.c (coff_ppc_relocate_section): ..
* coff-rs6000.c (xcoff_create_csect_from_smclas
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_swap_insns, sh_relocate_section): ..
* coff-tic54x.c (tic54x_reloc_processing): ..
* coff-tic80.c (coff_tic80_relocate_section): ..
* coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
* coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
coff_slurp_symbol_table, coff_classify_symbol,
coff_slurp_reloc_table): ..
* coffgen.c (_bfd_coff_read_string_table): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
_bfd_coff_generic_relocate_section): ..
* cpu-arm.c (bfd_arm_merge_machines): ..
* cpu-sh.c (sh_merge_bfd_arch): ..
* elf-hppa.h (elf_hppa_relocate_section): ..
* elf.c (bfd_elf_string_from_elf_section, setup_group,
_bfd_elf_setup_group_pointers, bfd_section_from_shdr,
assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
copy_private_bfd_data, _bfd_elf_validate_reloc): ..
* elf32-arm.h (find_thumb_glue, find_arm_glue,
bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
elf32_arm_relocate_section, elf32_arm_set_private_flags,
elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
* elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
cris_elf_merge_private_bfd_data
* elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
* elf32-gen.c (elf32_generic_link_add_symbols): ..
* elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
elf32_hppa_relocate_section): ..
* elf32-i370.c (i370_elf_merge_private_bfd_data,
i370_elf_check_relocs, i370_elf_relocate_section): ..
* elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
elf_i386_relocate_section): ..
* elf32-m32r.c (m32r_elf_relocate_section,
m32r_elf_merge_private_bfd_data): ..
* elf32-m68hc1x.c (m68hc12_add_stub,
_bfd_m68hc11_elf_merge_private_bfd_data): ..
* elf32-m68k.c (elf_m68k_relocate_section): ..
* elf32-mcore.c (mcore_elf_unsupported_reloc,
mcore_elf_relocate_section): ..
* elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
ppc_elf_check_relocs, ppc_elf_relocate_section,
ppc_elf_begin_write_processing): ..
* elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
elf_s390_relocate_section): ..
* elf32-sh-symbian.c (sh_symbian_import_as,
sh_symbian_process_embedded_commands,
sh_symbian_relocate_section): ..
* elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
sh_elf_merge_private_data): ..
* elf32-sparc.c (elf32_sparc_check_relocs,
elf32_sparc_relocate_section,
elf32_sparc_merge_private_bfd_data): ..
* elf32-v850.c (v850_elf_check_relocs,
v850_elf_merge_private_bfd_data): ..
* elf32-xtensa.c (elf_xtensa_check_relocs,
elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
* elf64-alpha.c (elf64_alpha_relax_with_lituse,
elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
* elf64-gen.c (elf64_generic_link_add_symbols): ..
* elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
ppc64_elf_check_relocs, ppc64_elf_edit_opd,
ppc64_elf_relocate_section): ..
* elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
elf_s390_relocate_section): ..
* elf64-sh64.c (sh_elf64_relocate_section): ..
* elf64-sparc.c (sparc64_elf_check_relocs,
sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
sparc64_elf_merge_private_bfd_data): ..
* elf64-x86-64.c (elf64_x86_64_check_relocs,
elf64_x86_64_relocate_section): ..
* elflink.c (_bfd_elf_add_default_symbol,
_bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
_bfd_elf_link_output_relocs, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_output_extsym,
elf_get_linked_section_vma, elf_fixup_link_order,
bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
* elfxx-ia64.c (elfNN_ia64_relax_section,
elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
* elfxx-mips.c (mips_elf_perform_relocation,
_bfd_mips_elf_check_relocs,
_bfd_mips_elf_merge_private_bfd_data): ..
* ieee.c (ieee_slurp_external_symbols): ..
* ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
* libbfd.c (_bfd_generic_verify_endian_match): ..
* linker.c (_bfd_generic_link_add_one_symbol,
_bfd_generic_section_already_linked): ..
* pdp11.c (translate_to_native_sym_flags): ..
* pe-mips.c (coff_pe_mips_relocate_section): ..
* peicode.h (pe_ILF_build_a_bfd): ..
* srec.c (srec_bad_byte): ..
* stabs.c (_bfd_link_section_stabs): ..
* xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
Replace all uses of bfd_archive_filename and bfd_get_section_ident
with corresponding %B and %A in _bfd_error_handler format string.
Replace occurrences of "fprintf (stderr," with _bfd_error_handler
calls to use %A and %B. Fix "against symbol .. from section" and
similar error messages. Combine multiple _bfd_error_handler calls
where they were separated due to bfd_archive_filename deficiencies.
* bfd-in2.h: Regenerate.
include/
* bfdlink.h (struct bfd_link_callbacks): Remove "error_handler".
(LD_DEFINITION_IN_DISCARDED_SECTION): Delete.
ld/
* ldmain.c (link_callbacks): Remove "error_handler".
* ldmisc.c: Include elf-bfd.h.
(vfinfo): Sort comment. Handle %A. Use %A instead of
bfd_get_section_indent.
(error_handler): Delete.
* ldmisc.h (error_handler): Delete declaration.
2004-08-13 03:16:01 +00:00
|
|
|
|
2004-08-13 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (link_callbacks): Remove "error_handler".
|
|
|
|
|
* ldmisc.c: Include elf-bfd.h.
|
|
|
|
|
(vfinfo): Sort comment. Handle %A. Use %A instead of
|
|
|
|
|
bfd_get_section_indent.
|
|
|
|
|
(error_handler): Delete.
|
|
|
|
|
* ldmisc.h (error_handler): Delete declaration.
|
|
|
|
|
|
2004-08-10 11:23:03 +00:00
|
|
|
|
2004-08-10 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
|
|
|
|
|
ppc64_elf_restore_symbols.
|
|
|
|
|
|
2004-08-09 06:48:37 +00:00
|
|
|
|
2004-08-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
|
|
|
|
|
.toc is too large on relocatable linking.
|
|
|
|
|
|
2004-08-09 03:14:12 +00:00
|
|
|
|
2004-08-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_after_open): Delete.
|
|
|
|
|
(LDEMUL_AFTER_OPEN): Don't define.
|
|
|
|
|
|
2004-08-02 20:03:41 +00:00
|
|
|
|
2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
|
|
|
|
|
|
2004-08-01 20:04:22 +00:00
|
|
|
|
2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elfm68hc12.sc: Align text, rodata and data section
|
|
|
|
|
on power of 2.
|
|
|
|
|
|
2004-07-29 03:48:13 +00:00
|
|
|
|
2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
|
|
|
|
|
|
2004-07-26 12:29:02 +00:00
|
|
|
|
2004-07-26 Dmitry Diky <diwil@spec.ru>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
|
|
|
|
|
msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
|
|
|
|
|
msp430xG439.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
* emulparams/msp430all.sh: Likewise.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-07-23 16:32:53 +00:00
|
|
|
|
2004-07-23 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (_place_orphan): Use an already existing
|
|
|
|
|
section name if that section does not have any flags set.
|
|
|
|
|
|
2004-07-21 15:42:58 +00:00
|
|
|
|
2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (already_linked_hash_entry): Removed.
|
|
|
|
|
(already_linked): Likewise.
|
|
|
|
|
(already_linked_table): Likewise.
|
|
|
|
|
(section_already_linked): Call bfd_section_already_linked.
|
|
|
|
|
(lang_process): Replace already_linked_table_init with
|
|
|
|
|
bfd_section_already_linked_table_init and check return. Replace
|
|
|
|
|
already_linked_table_free with bfd_section_already_linked_table_free.
|
|
|
|
|
|
2004-07-21 15:05:46 +00:00
|
|
|
|
2004-07-21 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (init_os): Make sure that the newly allocated userdata
|
|
|
|
|
structure is zeroed out.
|
|
|
|
|
|
2004-07-19 19:14:51 +00:00
|
|
|
|
2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention the new --add-needed/--no-add-needed and
|
|
|
|
|
--as-needed/--no-as-needed options.
|
|
|
|
|
|
2004-07-19 16:40:52 +00:00
|
|
|
|
2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
|
|
|
|
|
check the add_needed field.
|
|
|
|
|
(dt_needed): New struct.
|
|
|
|
|
(gld${EMULATION_NAME}_try_needed): Change the first argument
|
|
|
|
|
to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
|
|
|
|
|
bit in the file where the DT_NEEDED entry comes from.
|
|
|
|
|
(gld${EMULATION_NAME}_search_needed): Change the second
|
|
|
|
|
argument to a pointer to struct dt_needed.
|
|
|
|
|
(gld${EMULATION_NAME}_check_ld_so_conf): Updated.
|
|
|
|
|
(gld${EMULATION_NAME}_after_open): Likewise.
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Add --add-needed document.
|
|
|
|
|
* ldlang.c (new_afile): Set p->add_needed.
|
|
|
|
|
* ldlang.h (lang_input_statement_type): Add add_needed field.
|
|
|
|
|
* ldmain.h (add_needed): Declare.
|
|
|
|
|
* ldmain.c (add_needed): New global var.
|
|
|
|
|
* lexsup.c (option_values): Add OPTION_ADD_NEEDED and
|
|
|
|
|
OPTION_NO_ADD_NEEDED.
|
|
|
|
|
(ld_options): Likewise.
|
|
|
|
|
(parse_args): Handle them.
|
|
|
|
|
|
2004-07-13 18:56:38 +00:00
|
|
|
|
2004-07-13 Christof Petig <christof@petig-baender.de>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
|
|
|
|
|
for endian-ness of extracted addend.
|
|
|
|
|
|
2004-07-13 08:55:53 +00:00
|
|
|
|
2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (auto_export): Filter on just the import prefix,
|
|
|
|
|
"_imp_", not "_imp__".
|
|
|
|
|
|
2004-07-09 12:32:35 +00:00
|
|
|
|
2004-07-09 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
|
|
|
|
|
|
2004-07-07 17:28:53 +00:00
|
|
|
|
2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
|
|
|
|
|
(eelf32crx.c): New target.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Handle crx-*-elf*.
|
|
|
|
|
* emulparams/elf32crx.sh: New file.
|
|
|
|
|
* emultempl/crxelf.em: New file.
|
|
|
|
|
* scripttempl/elf32crx.sc: New file.
|
|
|
|
|
* NEWS: Mention new target.
|
|
|
|
|
|
2004-07-06 16:58:43 +00:00
|
|
|
|
2004-07-06 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am: Add eshlsymbian.c.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Add sh*-symbian-elf target.
|
|
|
|
|
* emulparams/shlsymbian.sh: New file. Configure the
|
|
|
|
|
sh-symbian-elf linker scripts.
|
|
|
|
|
* scripttemp/elf32sh-symbian.sc: New file. Linker script
|
|
|
|
|
template for the sh-symbian-elf target.
|
|
|
|
|
|
2004-07-05 20:00:13 +00:00
|
|
|
|
2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
|
|
|
|
|
|
|
|
|
* emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
|
|
|
|
|
* emulparams/hppalinux.sh: Likewise.
|
|
|
|
|
* scripttempl/elf.sc: Place .plt just before .got when .plt is in
|
|
|
|
|
data segment and PLT_BEFORE_GOT is defined.
|
|
|
|
|
|
2004-07-03 16:07:51 +00:00
|
|
|
|
2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (WIN32): Document PE weak symbols.
|
|
|
|
|
|
2004-07-02 11:25:54 +00:00
|
|
|
|
2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
|
|
|
|
|
|
|
|
|
* emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
|
|
|
|
|
|
2004-07-02 01:39:32 +00:00
|
|
|
|
2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
|
|
|
|
|
the section.
|
|
|
|
|
|
2004-06-29 14:13:47 +00:00
|
|
|
|
2004-06-29 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_reset_memory_regions): Save last relax pass section
|
|
|
|
|
size in rawsize.
|
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
2004-06-24 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (print_output_section_statement): Don't print size before
|
|
|
|
|
relaxation.
|
|
|
|
|
(IGNORE_SECTION): Remove bfd arg. Update all callers.
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_name): .. See below.
|
|
|
|
|
* ldlang.c (section_already_linked, print_output_section_statement,
|
|
|
|
|
print_input_section, insert_pad, size_input_section,
|
|
|
|
|
lang_check_section_addresses, lang_size_sections_1,
|
|
|
|
|
lang_size_sections, lang_do_assignments_1, lang_set_startof,
|
|
|
|
|
lang_one_common, lang_reset_memory_regions, lang_process,
|
|
|
|
|
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
|
|
|
|
|
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
|
|
|
|
|
* pe-dll.c (process_def_file, generate_reloc): ..
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
|
|
|
|
|
gld${EMULATION_NAME}_before_allocation): ..
|
|
|
|
|
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
|
|
|
|
|
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
|
|
|
|
|
sh64_elf_${EMULATION_NAME}_after_allocation): ..
|
|
|
|
|
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
|
|
|
|
|
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
|
|
|
|
|
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
|
|
|
|
|
"size" instead of "_raw_size" and "_cooked_size". Expand
|
|
|
|
|
bfd_section_size macro invocations.
|
|
|
|
|
|
2004-06-22 21:38:34 +00:00
|
|
|
|
2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
|
|
|
|
|
|
|
|
|
|
* ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
|
|
|
|
|
___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
|
|
|
|
|
___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
|
|
|
|
|
___crt_xt_end__.
|
|
|
|
|
(.tls): Define ___tls_start__ and ___tls_end__.
|
|
|
|
|
|
2004-06-21 14:45:42 +00:00
|
|
|
|
2004-06-21 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
|
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
2004-06-18 Adam Nemet <anemet@lnxw.com>
|
2004-06-18 16:13:13 +00:00
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
* configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
|
|
|
|
|
* configure: Regenerate.
|
2004-06-18 16:13:13 +00:00
|
|
|
|
|
2004-06-15 16:39:17 +00:00
|
|
|
|
2004-06-15 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
|
|
|
|
|
.gcc_except_table output sections lost accidentally with
|
|
|
|
|
-z relro patch.
|
|
|
|
|
|
2004-06-15 01:13:20 +00:00
|
|
|
|
2004-06-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldwrite.c (build_link_order): Use bfd_get_section_size
|
|
|
|
|
instead of bfd_get_section_size_before_reloc or _raw_size.
|
|
|
|
|
* pe-dll.c (process_def_file): Likewise.
|
|
|
|
|
|
2004-06-14 12:46:43 +00:00
|
|
|
|
2004-06-14 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
From Richard Wirth <r.wirth@wirthware.de>
|
|
|
|
|
* ldlang.c (lang_finish): Don't free lang_definedness_table.
|
|
|
|
|
|
2004-05-29 04:30:41 +00:00
|
|
|
|
2004-05-29 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
|
|
|
|
|
(lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
|
|
|
|
|
|
2004-05-28 05:42:30 +00:00
|
|
|
|
2004-05-28 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2004-05-28 10:34:18 +00:00
|
|
|
|
* ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
|
|
|
|
|
throughout file.
|
|
|
|
|
* lexsup.c: Formatting. Wrap long lines.
|
|
|
|
|
* ldwrite.c: Update copyright date.
|
|
|
|
|
|
2004-05-28 05:42:30 +00:00
|
|
|
|
* ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
|
|
|
|
|
(output_section_callback): Nor SEC_KEEP here.
|
|
|
|
|
(gc_section_callback): Twiddle SEC_EXCLUDE here.
|
|
|
|
|
(lang_gc_wild): Delete. Fold into..
|
|
|
|
|
(lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
|
|
|
|
|
collecting.
|
|
|
|
|
(lang_process): Always call lang_gc_sections.
|
|
|
|
|
(lang_place_orphans): Handle SEC_EXCLUDE sections.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
|
|
|
|
|
SEC_EXCLUDE code.
|
|
|
|
|
|
2004-05-27 05:53:36 +00:00
|
|
|
|
2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
|
|
|
|
|
SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
|
|
|
|
|
* ldlang.c (lang_add_section): Likewise.
|
|
|
|
|
|
2004-05-26 10:23:51 +00:00
|
|
|
|
2004-05-26 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
|
|
|
|
|
sections when doing a final link. Clear SEC_EXCLUDE when doing
|
|
|
|
|
a relocable link, except for SEC_DEBUGGING sections.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
|
|
|
|
|
same condition here to drop SEC_EXCLUDE orphan sections.
|
|
|
|
|
|
2004-05-25 06:33:51 +00:00
|
|
|
|
2004-05-25 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_process): Call bfd_merge_sections later, and
|
|
|
|
|
only when not a relocatable link.
|
|
|
|
|
(print_input_section): Handle SEC_EXCLUDE sections.
|
|
|
|
|
(size_input_section): Don't update dot on SEC_EXCLUDE sections.
|
|
|
|
|
(lang_do_assignments_1): Likewise.
|
|
|
|
|
* ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
|
|
|
|
|
* emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
|
|
|
|
|
* emultempl/hppaelf.em (build_section_lists): Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em (build_toc_list): Likewise.
|
|
|
|
|
(build_section_lists): Likewise.
|
|
|
|
|
|
2004-05-23 09:30:31 +00:00
|
|
|
|
2004-05-23 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Options): Fix typo in last change.
|
|
|
|
|
|
2004-05-21 15:38:04 +00:00
|
|
|
|
2004-05-21 Andy Chittenden <achittenden@bluearc.com>
|
|
|
|
|
|
|
|
|
|
* ld.h (ld_config_type): Add new field: hash_table_size.
|
|
|
|
|
* ldmain.c: Initialise the new field to zero. If it is non-zero
|
|
|
|
|
after parsing the linker's command line call
|
|
|
|
|
bfd_hash_set_default_size.
|
|
|
|
|
* lexsup.c (option_values): Add OPTION_HASH_SIZE.
|
|
|
|
|
(ld_options): Add hash-size.
|
|
|
|
|
(parse_args): Parse --hash-size option. Allow
|
|
|
|
|
--reduce-memory-overheads to set the default hash table size as
|
|
|
|
|
well.
|
|
|
|
|
* ld.texinfo: Document the new switch. Also mention that
|
|
|
|
|
--reduce-memory-overheads can affect the hash table size.
|
|
|
|
|
* NEWS: Mention the new feature.
|
|
|
|
|
|
2004-05-19 14:15:55 +00:00
|
|
|
|
2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new linker map file generation and the
|
|
|
|
|
--reduce-memory-overheads option.
|
|
|
|
|
* ld.texinfo: Document --reduce-memory-overheads option.
|
|
|
|
|
* ld.h (map_symbol_def): New struct.
|
|
|
|
|
(struct user_section_struct, section_userdata_type): Rename to:
|
|
|
|
|
(struct lean_user_section_struct, lean_section_userdata_type).
|
|
|
|
|
(struct fat_user_section_struct, fat_section_userdata_type): New.
|
|
|
|
|
(SECTION_USERDATA_SIZE): Define.
|
|
|
|
|
(args_type): New member reduce_memory_overheads.
|
|
|
|
|
* ldlang.c (map_obstack): New static variable.
|
|
|
|
|
(init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
|
|
|
|
|
(lang_map): Unless command_line.reduce_memory_overheads is set,
|
|
|
|
|
initialize lists of defined symbols for each section.
|
|
|
|
|
(print_input_section): Unless command_line.reduce_memory_overheads
|
|
|
|
|
is set, use print_all_symbols.
|
|
|
|
|
(init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
|
|
|
|
|
* ldmain.c (main): Initialize command_line.reduce_memory_overheads.
|
|
|
|
|
* lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
|
|
|
|
|
(ld_options): Add entry for --reduce-memory-overheads.
|
|
|
|
|
(parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
|
|
|
|
|
|
2004-05-19 14:01:14 +00:00
|
|
|
|
2004-05-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (sect_constraint): New.
|
|
|
|
|
(ONLY_IF_RO, ONLY_IF_RW): New tokens.
|
|
|
|
|
(section): Add sect_constraint. Pass additional argument
|
|
|
|
|
to lang_enter_output_section_statement.
|
|
|
|
|
* mri.c (mri_draw_tree): Pass additional argument to
|
|
|
|
|
lang_enter_output_section_statement.
|
|
|
|
|
* emultempl/pe.em (place_orphan): Likewise.
|
|
|
|
|
(output_prev_sec_find): Disregard output section statements with
|
|
|
|
|
constraint == -1.
|
|
|
|
|
* emultempl/mmo.em (output_prev_sec_find): Likewise.
|
|
|
|
|
(mmo_place_orphan): Pass additional argument to
|
|
|
|
|
lang_enter_output_section_statement.
|
|
|
|
|
* emultempl/elf32.em (output_prev_sec_find): Disregard output section
|
|
|
|
|
statements with constraint == -1.
|
|
|
|
|
(place_orphan): Pass additional argument to
|
|
|
|
|
lang_enter_output_section_statement.
|
|
|
|
|
* ldlang.c (lang_enter_overlay_section): Likewise.
|
|
|
|
|
(lang_output_section_find_1): New.
|
|
|
|
|
(lang_output_section_find): Use it.
|
|
|
|
|
(lang_output_section_statement_lookup_1): New.
|
|
|
|
|
(lang_output_section_statement_lookup): Use it.
|
|
|
|
|
(check_section_callback, check_input_sections): New.
|
|
|
|
|
(map_input_to_output_sections): Check if all input sections
|
|
|
|
|
are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
|
|
|
|
|
(strip_excluded_output_sections): Disregard output section statements
|
|
|
|
|
with constraint == -1.
|
|
|
|
|
(lang_record_phdrs): Likewise.
|
|
|
|
|
(lang_enter_output_section_statement): Add constraint argument.
|
|
|
|
|
Use lang_output_section_statement_lookup_1.
|
|
|
|
|
* ldlang.h (lang_output_section_statement_type): Add constraint
|
|
|
|
|
and all_input_readonly fields.
|
|
|
|
|
(lang_enter_output_section_statement): Adjust prototype.
|
|
|
|
|
* ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
|
|
|
|
|
* scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
|
|
|
|
|
segment if all input sections are readonly.
|
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
2004-05-19 Adam Nemet <anemet@lnxw.com>
|
2004-05-19 10:00:50 +00:00
|
|
|
|
|
|
|
|
|
* scripttempl/i386lynx.sc: Remove file.
|
|
|
|
|
|
2004-05-17 22:48:55 +00:00
|
|
|
|
2004-05-17 Bob Wilson <bob.wilson@acm.org>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Output Section Address): Correct subsection name.
|
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
2004-05-17 Adam Nemet <anemet@lnxw.com>
|
2004-05-17 19:50:16 +00:00
|
|
|
|
|
|
|
|
|
* configure.tgt (powerpc-*-lynxos* case): New case.
|
|
|
|
|
* configure.host (i[3-7]86-*-lynxos* case): Remove case.
|
|
|
|
|
* emulparams/ppclynx.sh: New file.
|
|
|
|
|
* emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add eppclynx.o
|
|
|
|
|
(ei386lynx.c): Update rule to LynxOS 4.0 ELF.
|
|
|
|
|
(eppclynx.c): New rule.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-05-13 14:12:27 +00:00
|
|
|
|
2004-05-13 Joel Sherrill <joel@oarcorp.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (or32-*-rtems*): Switch to elf and
|
|
|
|
|
support versioned targets.
|
|
|
|
|
|
2004-05-13 12:54:36 +00:00
|
|
|
|
2004-05-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/fr.po: Updated French translation.
|
|
|
|
|
|
2004-05-11 17:08:38 +00:00
|
|
|
|
2004-05-11 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* genscripts.sh: Generate -z combreloc -z now -z relro scripts
|
|
|
|
|
for binaries, -shared and -pie.
|
|
|
|
|
* emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
|
|
|
|
|
* emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
|
|
|
|
|
* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
|
|
|
|
|
(OTHER_RELRO_SECTIONS): ... this.
|
|
|
|
|
* ldlex.l (DATA_SEGMENT_RELRO_END): Add.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
|
|
|
|
|
-z relro and -z norelro.
|
|
|
|
|
(gld${EMULATION_NAME}_list_options): Add it to usage.
|
|
|
|
|
(gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
|
|
|
|
|
-z relro scripts when appropriate.
|
|
|
|
|
* scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
|
|
|
|
|
Create separate .got.plt section if SEPARATE_GOTPLT.
|
|
|
|
|
Move sections which are only written during relocation handling
|
|
|
|
|
to the beginning of RW segment. If NO_SMALL_DATA, move .got
|
|
|
|
|
before .data. Add DATA_SEGMENT_RELRO_END directive.
|
|
|
|
|
Include OTHER_RELRO_SECTIONS.
|
|
|
|
|
* ldgram.y (DATA_SEGMENT_RELRO_END): Add.
|
|
|
|
|
* ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
|
|
|
|
|
(fold_unary): Likewise.
|
|
|
|
|
(fold_binary): Handle -z relro.
|
|
|
|
|
* ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
|
|
|
|
|
exp_dataseg_relro_adjust phases. Add relro_end field.
|
|
|
|
|
* ldmain.c (main): Initialize link_info.relro to FALSE.
|
|
|
|
|
* ldlang.c (lang_size_sections): Handle -z relro.
|
|
|
|
|
|
2004-05-08 21:52:56 +00:00
|
|
|
|
2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
|
|
|
|
|
|
|
|
|
|
* scripttempl/avr.sc: Do not set LMA for "eeprom" section.
|
|
|
|
|
|
2004-05-07 15:21:27 +00:00
|
|
|
|
2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (print_padding_statement): Cast size_t to bfd_vma
|
|
|
|
|
before printing it with %W.
|
|
|
|
|
|
2004-05-07 15:17:58 +00:00
|
|
|
|
2004-05-07 Brian Ford <ford@vss.fsi.com>
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
DJ Delorie <dj@redhat.com>
|
2004-05-07 15:17:58 +00:00
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (real_flags): New static.
|
|
|
|
|
(OPTION_LARGE_ADDRESS_AWARE): New define.
|
|
|
|
|
(gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
|
|
|
|
|
(gld_${EMULATION_NAME}_list_options): Likewise.
|
|
|
|
|
(gld${EMULATION_NAME}_handle_option): Likewise.
|
|
|
|
|
(gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
|
|
|
|
|
* ld.texinfo: Document it.
|
|
|
|
|
* NEWS: Mention it.
|
|
|
|
|
|
2004-05-07 14:49:48 +00:00
|
|
|
|
2004-05-07 Brian Ford <ford@vss.fsi.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention DWARF 2 support for i386pe.
|
|
|
|
|
|
2004-05-06 02:46:54 +00:00
|
|
|
|
2004-05-05 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
|
|
|
|
|
elf32-frvfdpic.
|
|
|
|
|
|
2004-04-30 14:26:09 +00:00
|
|
|
|
2004-04-30 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (unique_section_p): Pass section parm, return true on
|
|
|
|
|
group sections.
|
|
|
|
|
(output_section_callback): Adjust.
|
|
|
|
|
* ldlang.h (unique_section_p): Update prototype.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
|
|
|
|
|
|
2004-04-30 11:49:45 +00:00
|
|
|
|
2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
|
|
|
|
|
|
bfd/
* section.c (struct sec): Rename "_cooked_size" to "size".
Rename "_raw_size" to "rawsize".
(STD_SECTION): Adjust comments.
(bfd_set_section_size, bfd_get_section_contents): Use size.
(bfd_malloc_and_get_section): New function.
* bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
* coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
Correctly free reloc and contents memory.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
and fake CIE now that we can shink section size to zero.
(_bfd_elf_write_section_eh_frame): Likewise..
* elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
* elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
_bfd_stab_section_offset. Use _bfd_elf_section_offset.
* stabs.c (_bfd_stab_section_offset_): Remove unused args and
unneeded indirection.
* elf.c (_bfd_elf_section_offset): .. and update call.
* libbfd-in.h (_bfd_stab_section_offset): Update prototype.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
Replace occurrences of "_raw_size" and "_cooked_size" in most places
with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
sections. Use "rawsize", if non-zero, for bfd_get_section_contents
calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
Similarly use "rawsize", if non-zero, in reloc functions to validate
reloc addresses. Use new bfd_malloc_and_get_section in most places
where bfd_get_section_contents was called. Expand all occurrences of
bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
grok_prstatus and similar functions to "size".
* aix386-core.c (aix386_core_file_p): ..
* aix5ppc-core.c (xcoff64_core_p): ..
* aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
aout_adobe_set_section_contents): ..
* aout-target.h (callback): ..
* aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
MY_bfd_final_link): ..
* aoutf1.h (sunos4_core_file_p): ..
* aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
final_link, aout_link_input_section): ..
* binary.c (binary_object_p, binary_canonicalize_symtab,
binary_set_section_contents): ..
* bout.c (b_out_callback, b_out_write_object_contents,
b_out_set_section_contents, b_out_bfd_relax_section,
b_out_bfd_get_relocated_section_contents): ..
* cisco-core.c (cisco_core_file_validate): ..
* coff-alpha.c (alpha_ecoff_object_p,
alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
* coff-arm.c (coff_arm_relocate_section,
bfd_arm_allocate_interworking_sections): ..
* coff-h8300.c (h8300_reloc16_extra_cases,
h8300_bfd_link_add_symbols): ..
* coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
* coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
ppc_bfd_coff_final_link): ..
* coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
* coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
sh_align_loads, sh_coff_get_relocated_section_contents): ..
* coff64-rs6000.c (xcoff64_write_object_contents,
xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
* coffcode.h (coff_compute_section_file_positions,
coff_write_object_contents): ..
* coffgen.c (make_a_section_from_file, coff_write_symbols,
coff_section_symbol, build_debug_section): ..
* cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
process_embedded_commands, _bfd_coff_link_input_bfd,
_bfd_coff_write_global_sym): ..
* cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
* cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
* dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
* dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
_bfd_dwarf2_find_nearest_line): ..
* ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
ecoff_compute_section_file_positions,
_bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
_bfd_elf_discard_section_eh_frame_hdr,
_bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
_bfd_elf_write_section_eh_frame,
_bfd_elf_write_section_eh_frame_hdr): ..
* elf-hppa.h (elf_hppa_sort_unwind): ..
* elf-m10200.c (mn10200_elf_relax_section,
mn10200_elf_relax_delete_bytes,
mn10200_elf_get_relocated_section_contents): ..
* elf-m10300.c (_bfd_mn10300_elf_create_got_section,
mn10300_elf_check_relocs, mn10300_elf_relax_section,
mn10300_elf_relax_delete_bytes,
mn10300_elf_get_relocated_section_contents,
_bfd_mn10300_elf_adjust_dynamic_symbol,
_bfd_mn10300_elf_discard_copies,
_bfd_mn10300_elf_size_dynamic_sections,
_bfd_mn10300_elf_finish_dynamic_sections): ..
* elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
_bfd_elf_make_section_from_phdr, elf_fake_sections,
bfd_elf_set_group_contents, map_sections_to_segments,
elf_sort_sections, assign_file_positions_for_segments,
SECTION_SIZE, copy_private_bfd_data,
_bfd_elf_get_dynamic_reloc_upper_bound,
_bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
_bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
_bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
* elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
bfd_elf32_arm_process_before_allocation,
elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
elf32_arm_write_section): ..
* elf32-cris.c (cris_elf_grok_prstatus,
elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
cris_elf_check_relocs, elf_cris_size_dynamic_sections,
elf_cris_discard_excess_dso_dynamics,
elf_cris_discard_excess_program_dynamics): ..
* elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
* elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
* elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
_frv_create_got_section, _frvfdpic_assign_plt_entries,
elf32_frvfdpic_size_dynamic_sections,
elf32_frvfdpic_modify_segment_map,
elf32_frvfdpic_finish_dynamic_sections): ..
* elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
elf32_h8_get_relocated_section_contents): ..
* elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
elf32_hppa_finish_dynamic_sections): ..
* elf32-i370.c (i370_elf_adjust_dynamic_symbol,
i370_elf_size_dynamic_sections, i370_elf_check_relocs,
i370_elf_finish_dynamic_sections): ..
* elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
allocate_dynrelocs, elf_i386_size_dynamic_sections,
elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
* elf32-ip2k.c (ip2k_is_switch_table_128,
ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
ip2k_relax_switch_table_256, ip2k_elf_relax_section,
adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
* elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
allocate_dynrelocs, m32r_elf_size_dynamic_sections,
m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
m32r_elf_get_relocated_section_contents): ..
* elf32-m68hc11.c (m68hc11_elf_build_one_stub,
m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
m68hc11_elf_relax_delete_bytes): ..
* elf32-m68hc12.c (m68hc12_elf_build_one_stub,
m68hc12_elf_size_one_stub): ..
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
* elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
* elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elf32-or32.c (or32_elf_consth_reloc): ..
* elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
elf_create_pointer_linker_section, ppc_elf_create_linker_section,
ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
allocate_dynrelocs, ppc_elf_size_dynamic_sections,
ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
ppc_elf_final_write_processing): ..
* elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
* elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
sh_elf_relax_delete_bytes, sh_elf_align_loads,
sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
* elf32-sh64-com.c (sh64_address_in_cranges,
sh64_get_contents_type): ..
* elf32-sh64.c (sh64_find_section_for_address,
sh64_elf_final_write_processing): ..
* elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
* elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
* elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
elf_vax_size_dynamic_sections, elf_vax_discard_copies,
elf_vax_instantiate_got_entries, elf_vax_relocate_section,
elf_vax_finish_dynamic_sections): ..
* elf32-xstormy16.c (xstormy16_elf_24_reloc,
xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
xstormy16_elf_finish_dynamic_sections): ..
* elf32-xtensa.c (xtensa_read_table_entries,
elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
get_relocation_opcode, retrieve_contents, find_relaxable_sections,
collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
relax_section, shrink_dynamic_reloc_sections, relax_property_section,
xtensa_callback_required_dependence): ..
* elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
* elf64-hppa.c (allocate_dynrel_entries,
elf64_hppa_size_dynamic_sections,
elf64_hppa_finish_dynamic_sections): ..
* elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
elf64_mips_grok_prstatus): ..
* elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
mmix_elf_relocate_section, mmix_elf_final_link,
mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
mmix_elf_relax_section, mmix_elf_get_section_contents): ..
* elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
ppc64_elf_build_stubs, ppc64_elf_relocate_section,
ppc64_elf_finish_dynamic_sections): ..
* elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
allocate_dynrelocs, elf_s390_size_dynamic_sections,
elf_s390_finish_dynamic_sections): ..
* elf64-sh64.c (sh_elf64_get_relocated_section_contents,
sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
sh64_elf64_finish_dynamic_sections): ..
* elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
sparc64_elf_finish_dynamic_symbol,
sparc64_elf_finish_dynamic_sections): ..
* elf64-x86-64.c (elf64_x86_64_grok_prstatus,
elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
elf64_x86_64_finish_dynamic_sections): ..
* elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
* elfcode.h (elf_slurp_reloc_table): ..
* elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
elf_finalize_dynstr, elf_link_add_object_symbols,
bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
* elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
elf32_mips_grok_prstatus): ..
* elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
elfNN_ia64_choose_gp, elfNN_ia64_final_link,
elfNN_ia64_finish_dynamic_sections): ..
* elfxx-mips.c (mips_elf_create_procedure_table,
mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
mips_elf_global_got_index, mips_elf_multi_got,
mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
mips_elf_allocate_dynamic_relocations,
mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
_bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
_bfd_mips_elf_always_size_sections,
_bfd_mips_elf_size_dynamic_sections,
_bfd_mips_elf_finish_dynamic_symbol,
_bfd_mips_elf_finish_dynamic_sections,
_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
_bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
_bfd_elf_mips_get_relocated_section_contents,
_bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
* hp300hpux.c (callback): ..
* hppabsd-core.c (make_bfd_asection): ..
* hpux-core.c (make_bfd_asection): ..
* i386linux.c (linux_link_create_dynamic_sections,
bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
* i386msdos.c (msdos_write_object_contents): ..
* i386os9k.c (os9k_callback, os9k_write_object_contents,
os9k_set_section_contents): ..
* ieee.c (parse_expression, ieee_slurp_external_symbols,
ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
ieee_write_section_part, do_with_relocs, do_as_repeat,
do_without_relocs, ieee_write_debug_part, init_for_output,
ieee_set_section_contents): ..
* ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
* irix-core.c (do_sections, make_bfd_asection): ..
* libaout.h (aout_section_merge_with_text_p): ..
* libbfd.c (_bfd_generic_get_section_contents,
_bfd_generic_get_section_contents_in_window): ..
* linker.c (default_indirect_link_order): ..
* lynx-core.c (make_bfd_asection): ..
* m68klinux.c (linux_link_create_dynamic_sections,
bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* mach-o.c (bfd_mach_o_make_bfd_section,
bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
bfd_mach_o_scan_read_segment): ..
* merge.c (_bfd_add_merge_section, record_section, merge_strings,
_bfd_merge_sections): ..
* mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
mmo_map_set_sizes, mmo_canonicalize_symtab,
mmo_internal_write_section, mmo_write_object_contents): ..
* netbsd-core.c (netbsd_core_file_p): ..
* nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
nlm_alpha_set_public_section): ..
* nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
* nlm32-sparc.c (nlm_sparc_write_import): ..
* nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
nlm_compute_section_file_positions): ..
* oasys.c (oasys_object_p, oasys_slurp_section_data,
oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
* opncls.c (get_debug_link_info): ..
* osf-core.c (make_bfd_asection): ..
* pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
final_link, aout_link_input_section): ..
* peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
* pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
* ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
* ptrace-core.c (ptrace_unix_core_file_p): ..
* reloc.c (bfd_perform_relocation, bfd_install_relocation,
_bfd_final_link_relocate, bfd_generic_relax_section,
bfd_generic_get_relocated_section_contents): ..
* reloc16.c (bfd_coff_reloc16_relax_section,
bfd_coff_reloc16_get_relocated_section_c): ..
* riscix.c (riscix_some_aout_object_p): ..
* rs6000-core.c (read_hdr, make_bfd_asection): ..
* sco5-core.c (make_bfd_asection): ..
* simple.c (bfd_simple_get_relocated_section_contents): ..
* som.c (som_object_setup, setup_sections, som_prep_headers,
som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
som_set_reloc_info, som_get_section_contents,
som_bfd_link_split_section): ..
* sparclinux.c (linux_link_create_dynamic_sections,
bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
* srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
* stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
_bfd_write_stab_strings, _bfd_stab_section_offset): ..
* sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
sunos_finish_dynamic_link): ..
* syms.c (_bfd_stab_section_find_nearest_line): ..
* tekhex.c (first_phase, tekhex_set_section_contents,
tekhex_write_object_contents): ..
* trad-core.c (trad_unix_core_file_p): ..
* versados.c (process_esd, process_otr, process_otr): ..
* vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
* vms-misc.c (add_new_contents): ..
* vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
* vms.c (vms_set_section_contents): ..
* xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
_bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
* xsym.c (bfd_sym_scan): .. See above.
binutils/
* objcopy.c (copy_section): Don't set _cooked_size.
include/
* bfdlink.h (struct bfd_link_order): Update comment.
ld/
* ldlang.c (print_output_section_statement): Don't print size before
relaxation.
(IGNORE_SECTION): Remove bfd arg. Update all callers.
* ldexp.c (fold_name): .. See below.
* ldlang.c (section_already_linked, print_output_section_statement,
print_input_section, insert_pad, size_input_section,
lang_check_section_addresses, lang_size_sections_1,
lang_size_sections, lang_do_assignments_1, lang_set_startof,
lang_one_common, lang_reset_memory_regions, lang_process,
lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
* ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
* pe-dll.c (process_def_file, generate_reloc): ..
* emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
gld${EMULATION_NAME}_before_allocation): ..
* emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
* emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
sh64_elf_${EMULATION_NAME}_after_allocation): ..
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
* emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
"size" instead of "_raw_size" and "_cooked_size". Expand
bfd_section_size macro invocations.
2004-06-24 04:46:28 +00:00
|
|
|
|
* ld.texinfo (--gc-sections): Remove restriction for
|
2004-04-30 11:49:45 +00:00
|
|
|
|
dynamic linking.
|
|
|
|
|
|
2004-04-29 16:40:20 +00:00
|
|
|
|
2004-04-29 Brian Ford <ford@vss.fsi.com>
|
|
|
|
|
|
|
|
|
|
* scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
|
|
|
|
|
for DWARF 2/3. Update stab section's syntax.
|
|
|
|
|
|
2004-04-29 13:05:49 +00:00
|
|
|
|
2004-04-29 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c: Revert changes accidentally committed 2004-03-08.
|
|
|
|
|
(fill_edata): Correct pointer arithmetic.
|
|
|
|
|
|
2004-04-21 20:52:31 +00:00
|
|
|
|
2004-04-21 Chris Demetriou <cgd@broadcom.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Remove MIPS --embedded-relocs documentation.
|
|
|
|
|
* emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
|
|
|
|
|
* emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
|
|
|
|
|
(EXTRA_EM_FILE): Use mipsecoff.em
|
|
|
|
|
* emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
|
|
|
|
|
(EXTRA_EM_FILE): Use mipsecoff.em
|
|
|
|
|
* emultempl/mipsecoff.em: Restructure to be included as an
|
|
|
|
|
extra emulation file.
|
|
|
|
|
(check_sections, gld${EMULATION_NAME}_after_open)
|
|
|
|
|
(gld${EMULATION_NAME}_after_allocation)
|
|
|
|
|
(gld${EMULATION_NAME}_get_script)
|
|
|
|
|
(ld_${EMULATION_NAME}_emulation): Remove
|
|
|
|
|
(gld${EMULATION_NAME}_before_parse): Rename to...
|
|
|
|
|
(mipsecoff_before_parse): This.
|
|
|
|
|
(LDEMUL_BEFORE_PARSE): Define.
|
|
|
|
|
* emultempl/mipself.em: Remove file.
|
|
|
|
|
* scripttempl/mips.sc (.rel.sdata): Do not include in output.
|
|
|
|
|
(__runtime_reloc_start, __runtime_reloc_stop): Stop providing
|
|
|
|
|
these symbols.
|
|
|
|
|
* Makefile.am: Remove dependencies on emultempl/mipself.em.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-04-21 10:47:13 +00:00
|
|
|
|
2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (synthesizing on H8/300): Information about linker
|
|
|
|
|
relaxation support for bit manipulation instructions and system
|
|
|
|
|
control instructions is added.
|
|
|
|
|
|
2004-04-21 10:04:02 +00:00
|
|
|
|
2004-04-21 Hans-Peter Nilsson <hp@axis.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention change in DEFINED semantics.
|
|
|
|
|
|
2004-04-21 07:15:05 +00:00
|
|
|
|
2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
|
|
|
|
|
|
|
|
|
|
* scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
|
|
|
|
|
(.data): Add KEEP for .gnu.linkonce.d.*personality*.
|
|
|
|
|
(.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
|
|
|
|
|
|
2004-04-21 06:08:47 +00:00
|
|
|
|
2004-04-21 Ben Elliston <bje@au.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Simple Example): Add missing punctuation.
|
|
|
|
|
|
2004-04-21 00:44:36 +00:00
|
|
|
|
2004-04-20 Chris Demetriou <cgd@broadcom.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Note that MIPS --embedded-relocs option is deprecated.
|
|
|
|
|
|
2004-04-19 07:35:12 +00:00
|
|
|
|
2004-04-19 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_do_assignments_1): Handle .tbss output section
|
|
|
|
|
specially.
|
|
|
|
|
|
2004-04-17 23:22:49 +00:00
|
|
|
|
2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* scriptempl/pe.sc: Put numbered .ctors.* after .ctors
|
|
|
|
|
with default priority. Likewise for dtors.
|
|
|
|
|
|
2004-04-11 04:07:46 +00:00
|
|
|
|
2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
|
|
|
|
|
|
|
|
|
* configure.host: Remove mips*-dec-bsd* target.
|
|
|
|
|
* configure.tgt: Likewise.
|
|
|
|
|
|
2004-04-08 14:52:44 +00:00
|
|
|
|
2004-04-08 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
|
|
|
|
|
* emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
|
|
|
|
|
* emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
|
|
|
|
|
* emultempl/irix.em: New file.
|
|
|
|
|
* Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
|
|
|
|
|
dependencies.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
|
2004-04-01 11:20:04 +00:00
|
|
|
|
2004-04-01 Paul Brook <paul@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/armelf.em (byteswap_code): Add.
|
|
|
|
|
(arm_elf_before_allocation): Pass extra parameter.
|
|
|
|
|
(PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
|
|
|
|
|
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
|
|
|
|
|
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
|
|
|
|
|
* emultempl/armelf_oabi.em: Pass extra parameter.
|
|
|
|
|
* ld.texinfo: Document --be8.
|
|
|
|
|
|
2004-03-30 20:02:04 +00:00
|
|
|
|
2004-03-30 Stan Shebs <shebs@apple.com>
|
|
|
|
|
|
|
|
|
|
Remove long-obsolete MPW support.
|
|
|
|
|
* mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
|
|
|
|
|
* Makefile.am (mpw): Remove file-presynthesizing actions.
|
|
|
|
|
* Makefile.in: Likewise.
|
|
|
|
|
* ldfile.c (slash): Remove MPW case.
|
|
|
|
|
* ldlex.l [MPW]: Remove unused definition.
|
|
|
|
|
|
2004-03-30 14:04:32 +00:00
|
|
|
|
2004-03-30 Galit Heller <Galit.Heller@nsc.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
|
|
|
|
|
(eelf32cr16c.c): New target.
|
|
|
|
|
* Makefile.in: Regenerate.
|
|
|
|
|
* configure.tgt: Handle cr16c-*-elf*.
|
|
|
|
|
* emulparams/elf32cr16c.sh: New file.
|
|
|
|
|
* scripttempl/elfcr16c.sc: Likewise
|
|
|
|
|
* NEWS: Mention support for new target.
|
|
|
|
|
|
2004-03-30 09:48:30 +00:00
|
|
|
|
2004-03-30 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* po/sv.po: Updated Swedish translation.
|
|
|
|
|
|
2004-03-27 10:58:35 +00:00
|
|
|
|
2004-03-27 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em: Update new bfd_elf_discard_info name.
|
|
|
|
|
* emultempl/hppaelf.em: Likewise.
|
|
|
|
|
* emultempl/ppc64elf.em: Likewise.
|
|
|
|
|
* emultempl/sh64elf.em: Likewise.
|
|
|
|
|
|
2004-03-25 12:48:45 +00:00
|
|
|
|
2004-03-25 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
|
|
|
|
|
size_dynamic_sections call.
|
|
|
|
|
|
2004-03-22 22:58:04 +00:00
|
|
|
|
2004-03-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
PR 51.
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
|
|
|
|
|
link_info.wrap_char.
|
|
|
|
|
|
2004-03-20 23:16:43 +00:00
|
|
|
|
2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
|
|
|
|
|
|
|
|
|
|
* lexsup.c (parse_args): Don't set unresolved_syms_in_objects
|
|
|
|
|
or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
|
|
|
|
|
|
2004-03-20 05:49:27 +00:00
|
|
|
|
2004-03-20 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
|
|
|
|
|
|
2004-03-19 07:06:35 +00:00
|
|
|
|
2004-03-19 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* po/ld.pot: Regenerate.
|
|
|
|
|
|
2004-03-18 12:50:20 +00:00
|
|
|
|
2004-03-18 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo: Add --as-needed doco.
|
|
|
|
|
* ldmain.c (as_needed): New global var.
|
|
|
|
|
* ldmain.h (as_needed): Declare.
|
|
|
|
|
* lexsup.c (option_values): Add OPTION_AS_NEEDED and
|
|
|
|
|
OPTION_NO_AS_NEEDED.
|
|
|
|
|
(ld_options): Likewise.
|
|
|
|
|
(parse_args): Handle them.
|
|
|
|
|
* ldlang.h (lang_input_statement_type): Add as_needed field.
|
|
|
|
|
* ldlang.c (new_afile): Set p->as_needed.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
|
|
|
|
|
(gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
|
|
|
|
|
(ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
|
|
|
|
|
|
|
|
|
|
* ldlang.c (open_input_bfds): Remove useless cast.
|
|
|
|
|
(lang_do_assignments_1): Likewise.
|
|
|
|
|
(lang_for_each_input_section): Delete.
|
|
|
|
|
|
2004-03-17 00:46:25 +00:00
|
|
|
|
2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
|
|
|
|
|
|
2004-03-08 11:33:59 +00:00
|
|
|
|
2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (pe_dll_generate_implib): Skip sections marked as
|
|
|
|
|
private when building implib.
|
|
|
|
|
|
2004-03-05 11:26:05 +00:00
|
|
|
|
2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_add_section): Don't force SEC_LOAD on
|
|
|
|
|
SEC_THREAD_LOCAL.
|
|
|
|
|
(IGNORE_SECTION): Ignore .tbss sections too.
|
|
|
|
|
(lang_size_sections_1): .tbss sections do not advance dot.
|
|
|
|
|
|
2004-03-01 17:33:36 +00:00
|
|
|
|
2004-03-01 Andreas Schwab <schwab@suse.de>
|
|
|
|
|
|
|
|
|
|
* ld.texinfo (Options): Fix example for --wrap.
|
|
|
|
|
|
2004-02-25 21:00:32 +00:00
|
|
|
|
2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (fill_edata): Check that exported_symbol_sections is
|
|
|
|
|
not NULL.
|
|
|
|
|
|
2004-02-23 19:41:53 +00:00
|
|
|
|
2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_check): Use %P, not %E, in error message.
|
|
|
|
|
|
2004-02-23 10:10:02 +00:00
|
|
|
|
2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.h (struct lang_output_section_state): Change processed
|
|
|
|
|
field's type.
|
|
|
|
|
* ldexp.c (check, invalid): Remove.
|
|
|
|
|
(fold_name): Move valid_p assignments. Create undefined symbol
|
|
|
|
|
when needed. Directly exampine section's processd flag.
|
|
|
|
|
* ldlang.c (lang_output_section_statement_lookup): Adjust
|
|
|
|
|
processed field init.
|
|
|
|
|
(lang_size_sections_1): Allow LOADADDR when determining section's
|
|
|
|
|
VMA. Adjust error message. Fold data statement's expr.
|
|
|
|
|
(lang_size_sections): Correctly increment lang_statement_iteration.
|
|
|
|
|
|
|
|
|
|
2004-02-23 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldexp.c (fold_tree): Follow indirect symbols.
|
2004-03-22 22:58:04 +00:00
|
|
|
|
|
2004-02-20 15:31:10 +00:00
|
|
|
|
2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (exp): Add two operand ALIGN.
|
|
|
|
|
* ldexp.c (fold_binary): Add ALIGN_K case.
|
|
|
|
|
* ld.texinfo (ALIGN): Document two operand version.
|
|
|
|
|
|
2004-02-19 14:08:31 +00:00
|
|
|
|
2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (map_input_to_output_sections): Initialize sections
|
|
|
|
|
mentioned in a data statement expression.
|
|
|
|
|
(lang_do_assignments_1): Add data statement's expression's
|
|
|
|
|
section's vma.
|
|
|
|
|
|
2004-02-18 16:37:21 +00:00
|
|
|
|
2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ldgram.y (statement_anywhere): Add assert rule.
|
|
|
|
|
* ldlang.c (exp_init_os): Add assert case.
|
|
|
|
|
|
2004-02-15 02:24:53 +00:00
|
|
|
|
2004-02-14 Andrew Cagney <cagney@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldmain.c (remove_output): Call bfd_cache_close.
|
|
|
|
|
|
2004-02-14 11:45:25 +00:00
|
|
|
|
2004-02-14 Richard Sandiford <rsandifo@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
|
|
|
|
|
.MIPS.content* and .MIPS.events* sections.
|
|
|
|
|
|
2004-02-09 18:06:20 +00:00
|
|
|
|
2004-02-09 Daniel Jacobowitz <drow@mvista.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
|
|
|
|
|
.note.gnu.arm.ident to after allocated sections. Mark its
|
|
|
|
|
address as 0.
|
|
|
|
|
|
2004-02-09 17:54:25 +00:00
|
|
|
|
2004-02-09 Daniel Jacobowitz <drow@mvista.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
|
|
|
|
|
* emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
|
|
|
|
|
* emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
|
|
|
|
|
* emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
|
|
|
|
|
* emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
|
|
|
|
|
|
2004-02-05 11:41:51 +00:00
|
|
|
|
2004-02-05 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (_after_open): Fix typo in previous delta.
|
|
|
|
|
|
2004-02-04 09:13:28 +00:00
|
|
|
|
2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
|
|
|
|
|
|
2004-01-28 13:31:30 +00:00
|
|
|
|
2004-01-28 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2004-01-28 13:42:26 +00:00
|
|
|
|
* genscripts.sh: Fix typo.
|
|
|
|
|
|
2004-01-28 13:31:30 +00:00
|
|
|
|
* genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
|
|
|
|
|
|
2004-01-24 16:29:40 +00:00
|
|
|
|
2004-01-24 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf64_ia64.sh: Put .rela.opd into
|
|
|
|
|
OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
|
|
|
|
|
|
2004-01-20 21:08:16 +00:00
|
|
|
|
2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
* pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
|
|
|
|
|
* ld.texinfo (--omagic): Note that writable text section
|
|
|
|
|
does not conform to published PE-COFF specs.
|
|
|
|
|
(--enable-auto-import): Likewise.
|
|
|
|
|
|
2004-01-15 12:38:19 +00:00
|
|
|
|
2004-01-15 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
|
|
|
|
|
|
2004-01-13 11:10:53 +00:00
|
|
|
|
2004-01-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
|
|
|
|
|
which if true will prevent the LMA region being used as a
|
|
|
|
|
replacement for a default VMA region.
|
2004-01-28 13:42:26 +00:00
|
|
|
|
(lang_leave_output_section_statement): Pass extra parameter.
|
|
|
|
|
(lang_leave_overlay): Likewise.
|
|
|
|
|
* ld.texinfo (Output Section LMA): Document that the LMA
|
2004-01-13 11:10:53 +00:00
|
|
|
|
region can be set to the VMA region if no VMA has been set.
|
|
|
|
|
* ldlang.h (struct lang_output_section_phdr_list): Create a
|
|
|
|
|
typedef for this type. Minor formatting fixes.
|
2004-01-28 13:42:26 +00:00
|
|
|
|
|
2004-01-13 08:24:20 +00:00
|
|
|
|
2004-01-13 Nick Clifton <nickc@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (lang_size_sections_1): If dot is advanced, then
|
|
|
|
|
assume that the section should be allocated.
|
|
|
|
|
|
2004-01-12 13:47:32 +00:00
|
|
|
|
2004-01-13 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
|
|
|
|
|
sections. Do ignore SEC_NEVER_LOAD sections.
|
|
|
|
|
(lang_size_sections_1): Remove test made redundant with the above.
|
|
|
|
|
|
2004-01-09 05:36:30 +00:00
|
|
|
|
2004-01-09 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
|
|
|
|
* emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
|
|
|
|
|
program_header_size.
|
|
|
|
|
|
2004-01-06 19:19:52 +00:00
|
|
|
|
2004-01-06 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
|
|
|
|
|
2003-11-28 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* emulparams/elf32frvfd.sh (EMBEDDED): Clear.
|
|
|
|
|
2003-11-05 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
|
|
|
|
|
(MAXPAGESIZE): Set to 64Kb.
|
|
|
|
|
(OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
|
|
|
|
|
__ROFIXUP_END__. Don't map .rofixup.got any more.
|
|
|
|
|
* emulparams/elf32frv.sh (NOP): Set.
|
|
|
|
|
2003-10-31 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* configure.tgt: Add frv-*-*linux*.
|
|
|
|
|
2003-09-30 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
|
|
|
|
|
(eelf32frvfd.c): New.
|
|
|
|
|
* configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
|
|
|
|
|
* emulparams/elf32frv.sh: Reverted previous two patches.
|
|
|
|
|
* emulparams/elf32frvfd.sh: New.
|
|
|
|
|
* Makefile.in: Rebuilt.
|
|
|
|
|
2003-09-18 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
|
|
|
|
|
.rofixup.got to .rofixup.
|
|
|
|
|
2003-09-15 Alexandre Oliva <aoliva@redhat.com>
|
|
|
|
|
* emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
|
|
|
|
|
(TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
|
|
|
|
|
|
2004-01-05 09:53:31 +00:00
|
|
|
|
2004-01-05 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
|
|
|
|
|
|
* emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
|
|
|
|
|
* emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
|
|
|
|
|
|
2004-01-03 11:09:07 +00:00
|
|
|
|
2004-01-03 Alan Modra <amodra@bigpond.net.au>
|
|
|
|
|
|
2004-01-03 12:39:07 +00:00
|
|
|
|
* ldexp.c (align_n): Make static.
|
|
|
|
|
* ldexp.h (align_n): Delete declaration.
|
|
|
|
|
* ldlang.h (lang_enter_output_section_statement): Remove
|
|
|
|
|
block_value param.
|
|
|
|
|
* ldlang.c (lang_enter_output_section_statement): Likewise.
|
|
|
|
|
(TO_ADDR, TO_SIZE): Define.
|
2004-01-03 12:49:29 +00:00
|
|
|
|
(opb_shift): New var.
|
2004-01-03 12:39:07 +00:00
|
|
|
|
(init_opb): New function.
|
|
|
|
|
(print_input_section): Call init_opb and use TO_ADDR.
|
|
|
|
|
(print_data_statement, print_reloc_statement): Likewise.
|
|
|
|
|
(print_padding_statement): Likewise.
|
2004-01-03 12:49:29 +00:00
|
|
|
|
(size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
|
2004-01-03 12:39:07 +00:00
|
|
|
|
(lang_check_section_addresses): Likewise.
|
|
|
|
|
(lang_size_sections_1): Likewise.
|
|
|
|
|
(lang_do_assignments_1): Likewise.
|
|
|
|
|
(lang_set_startof): Likewise.
|
2004-01-03 12:49:29 +00:00
|
|
|
|
(lang_one_common): Likewise. Combine power_of_two and opb_shift align.
|
2004-01-03 12:39:07 +00:00
|
|
|
|
(lang_process): Call init_opb.
|
2004-01-03 12:49:29 +00:00
|
|
|
|
(lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
|
2004-01-03 12:39:07 +00:00
|
|
|
|
(lang_enter_overlay_section): Adjust
|
|
|
|
|
lang_enter_output_section_statement call.
|
|
|
|
|
* ldgram.y: Likewise.
|
|
|
|
|
* mri.c (mri_draw_tree): Likewise.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
|
|
|
|
|
* emultempl/mmo.em (mmo_place_orphan): Likewise.
|
|
|
|
|
* emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
|
|
|
|
|
|
2004-01-03 11:09:07 +00:00
|
|
|
|
* ldfile.c (ldfile_set_output_arch): Add defarch param.
|
|
|
|
|
* ldfile.h (ldfile_set_output_arch): Ditto.
|
|
|
|
|
* emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
|
|
|
|
|
ldfile_set_output_arch.
|
|
|
|
|
* emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* ldgram.y: Adjust ldfile_set_output_arch call.
|
|
|
|
|
* emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/gld960c.em (gld960_set_output_arch): Ditto.
|
|
|
|
|
* emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
* emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
|
|
|
|
|
|
2004-01-02 16:37:12 +00:00
|
|
|
|
2004-01-02 Bernardo Innocenti <bernie@develer.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Add m68k-uClinux target.
|
2003-12-19 11:44:01 +00:00
|
|
|
|
|
2004-01-02 11:16:21 +00:00
|
|
|
|
For older changes see ChangeLog-0203
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
|
|
|
|
End:
|