Alan Modra
4a92cdb5fe
daily update
2005-12-10 23:00:06 +00:00
Alan Modra
5adcfd8b2c
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
...
to test for linking shared libs, not info->shared.
2005-12-10 03:31:03 +00:00
Alan Modra
3f4cf6e93b
daily update
2005-12-09 23:00:06 +00:00
Alan Modra
8ffca28b52
daily update
2005-12-08 23:00:06 +00:00
Alan Modra
0ba079102f
bfd/
...
* elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
(ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
(add_stub_sym): New function.
(allocate_dynrelocs): Call add_stub_sym.
(ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
when emit_stub_syms.
* elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
ld/
* 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:41:12 +00:00
Alan Modra
a7985d7382
* reloc.c (enum complain_overflow): Correct comments.
...
(bfd_check_overflow): Combine complain_overflow_bitfield and
complain_overflow_signed code.
(_bfd_relocate_contents): Likewise.
(bfd_howto_32): Use complain_overflow_dont.
* elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change.
* bfd-in2.h: Regenerate.
2005-12-08 11:05:36 +00:00
H.J. Lu
e424ecc89d
2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
...
* elf.c (assign_section_numbers): Remove extra code in the last
change.
2005-12-08 01:34:13 +00:00
Alan Modra
7b6792f929
daily update
2005-12-07 23:00:06 +00:00
H.J. Lu
f287603758
2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
...
Andreas Schwab <schwab@suse.de>
PR binutils/1991
* elf.c (assign_section_numbers): Always use the output section
when setting up sh_link for SHF_LINK_ORDER.
2005-12-07 19:21:44 +00:00
H.J. Lu
fe21a8fc74
bfd/
...
2005-12-07 Thiemo Seufer <ths@networkno.de>
H.J. Lu <hongjiu.lu@intel.com>
PR ld/1932
* bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
and hidden arguments.
* bfd.c (bfd_hide_symbol): Removed.
* bfd-in2.h: Regenerated.
* elflink.c (bfd_elf_record_link_assignment): Handle hidden
symbols which were provided by a linker script.
ld/
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-12-07 14:43:54 +00:00
Alan Modra
1ca81d7218
* cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
2005-12-06 12:10:26 +00:00
Alan Modra
b25748f8ec
daily update
2005-12-05 23:00:08 +00:00
Alan Modra
dd6bc494be
daily update
2005-12-04 23:00:05 +00:00
Mark Kettenis
927e625f4b
* elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel
...
pseudo-section. Make sure .reg section comes after the proc
section it's generated from.
2005-12-04 14:58:11 +00:00
Alan Modra
3b3d58c984
daily update
2005-12-03 23:00:06 +00:00
Alan Modra
31e069538d
daily update
2005-12-02 23:00:06 +00:00
Alan Modra
3fbcdf457f
daily update
2005-12-01 23:00:06 +00:00
Nick Clifton
8ce757c498
* elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check.
...
(m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug.
(m32r_elf_gc_sweep_hook): Likewise.
(m32r_elf_check_relocs): Likewise.
2005-12-01 04:48:13 +00:00
Alan Modra
3d56a4a3a9
daily update
2005-11-30 23:00:07 +00:00
Alan Modra
f0fa835c7d
daily update
2005-11-29 23:00:06 +00:00
Alan Modra
2f79d9fdde
daily update
2005-11-28 23:00:07 +00:00
Alan Modra
9cb19dbc99
daily update
2005-11-27 23:00:05 +00:00
Alan Modra
7f62185de1
daily update
2005-11-26 23:00:04 +00:00
Alan Modra
c736ea7144
daily update
2005-11-25 23:00:05 +00:00
Alan Modra
c71c70d2a7
daily update
2005-11-24 23:00:05 +00:00
Alan Modra
390fbbf109
bfd/
...
* elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
* libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
* libbfd.c (_bfd_generic_match_sections_by_type): Delete.
* targets.c (bfd_match_sections_by_type): Don't define.
(BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
* coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
* coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
ld/
* 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 06:02:08 +00:00
Alan Modra
597f736504
daily update
2005-11-23 23:00:05 +00:00
Daniel Jacobowitz
bad36eacda
bfd/
...
* elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
R_MIPS_PC16.
(mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
(bfd_elf32_bfd_reloc_type_lookup): Don't handle
BFD_RELOC_16_PCREL_S2.
* elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
R_MIPS_PC16.
(mips_elf64_howto_table_rela): Likewise.
(mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
(bfd_elf64_bfd_reloc_type_lookup): Don't handle
BFD_RELOC_16_PCREL_S2.
* elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
R_MIPS_PC16.
(elf_mips_howto_table_rela): Likewise.
(mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
(bfd_elf32_bfd_reloc_type_lookup): Don't handle
BFD_RELOC_16_PCREL_S2.
* elfxx-mips.c: Formatting fixes.
(mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
and R_MIPS_PC16 identically.
gas/
* config/tc-mips.c (append_insn): Handle BFD_RELOC_16_PCREL_S2.
(macro_build): Complain for invalid branch displacements.
(mips_validate_fix): Delete.
(md_apply_fix): Re-add pcrel support for branches. Use consistent
text for misaligned branch targets.
(tc_gen_reloc: Re-add pcrel support for branches. Handle strange
BFD pcrel processing. Remove error for unresolved branches.
* config/tc-mips.h (TC_VALIDATE_FIX, mips_validate_fix): Delete.
gas/testsuite/
* gas/mips/bge.d, gas/mips/bge.s, gas/mips/bgeu.d, gas/mips/bgeu.s,
gas/mips/blt.d, gas/mips/blt.s, gas/mips/bltu.d,
gas/mips/bltu.s: Reactivate external branch tests.
* gas/mips/branch-misc-2.d, gas/mips/branch-misc-2pic.d,
gas/mips/branch-misc-2-64.d, gas/mips/branch-misc-2pic-64.d: New
tests.
* gas/mips/branch-misc-2.l, gas/mips/branch-misc-2pic.l,
gas/testsuite/gas/mips/branch-misc-2pic.s: Remove.
* gas/mips/mips.exp: Adjust branch-misc-2 tests. Add 64-bit
variants.
2005-11-23 14:04:18 +00:00
Alan Modra
a14199dbd5
* elfcode.h (elf_object_p): Delay the setting of start_address
...
until we're sure the backend matches the binary.
2005-11-23 11:46:01 +00:00
Alan Modra
9f13add635
daily update
2005-11-22 23:00:05 +00:00
Alan Modra
0f7c2233d4
daily update
2005-11-21 23:00:05 +00:00
Alan Modra
6f794eaa27
daily update
2005-11-20 23:00:07 +00:00
Dave Anglin
f29ba31228
* som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
...
manner as bfd_decode_symclass.
2005-11-20 19:21:06 +00:00
Alan Modra
69d7c8d861
daily update
2005-11-19 23:00:06 +00:00
Alan Modra
8ed3a9967b
daily update
2005-11-18 23:00:05 +00:00
Alan Modra
220c76ddc0
* elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
...
on branches to same section.
2005-11-18 04:52:57 +00:00
Dave Anglin
d97a892405
* elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
...
hppa64-hp-hpux11.11.
(elf64_hppa_section_from_phdr): New function.
(elf_backend_section_from_phdr): Define.
2005-11-18 00:48:50 +00:00
Alan Modra
747f9e06fb
daily update
2005-11-17 23:00:05 +00:00
Alan Modra
f0f5a273a9
daily update
2005-11-16 23:00:06 +00:00
Alan Modra
8d91893412
daily update
2005-11-15 23:00:05 +00:00
Alan Modra
a7bfd147a2
daily update
2005-11-14 23:00:04 +00:00
Alan Modra
b9cb2ec353
daily update
2005-11-13 23:00:06 +00:00
Alan Modra
c57a5dde19
daily update
2005-11-12 23:00:05 +00:00
Alan Modra
a0616936ed
daily update
2005-11-11 23:00:04 +00:00
Nick Clifton
5e2b0d475e
PR 1150
...
* readelf.c (get_mips_symbol_other): New function.
(get_symbol_other): New function.
(process_symbol_table): Call get_symbol_other() to get a description of the
st_other field if it contains more information than just the visibility.
* elfxx-mips.c (mips_elf_calculate_relocation): Ignore an undefined symbol if
it is optional.
(_bfd_mips_elf_merge_symbol_attribute): Make sure that the optional flag is
merged as well as the visibility.
* elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype.
(elf_backend_merge_symbol_attribute): Define.
* mips.h (STO_OPTIONAL): Define.
(ELF_MIPS_IS_OPTIONAL): Define.
2005-11-11 11:06:34 +00:00
Alan Modra
6497ff9db7
daily update
2005-11-10 23:00:06 +00:00
Alan Modra
ce0e0862bf
daily update
2005-11-09 23:00:07 +00:00
Alan Modra
feba4fae34
daily update
2005-11-08 23:00:06 +00:00
Nathan Sidwell
6f84a2a649
bfd:
...
Add ms2.
* archures.c (bfd_mach_ms2): Define.
* cpu-ms1.c (arch_info_struct): Add ms2 stanza.
* elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
(ms1_elf_merge_private_bfd_data): Remove unused variables. Add
correct merging logic, with workaround.
(ms1_elf_print_private_bfd_data): Add ms2 case.
* reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
* libbfd.h: Regenerated.
* bfd-in2.h: Regenerated.
cpu:
Add ms2
* ms1.cpu (ms2, ms2bf): New architecture variant, cpu, machine and
model.
(f-uu8, f-uu1, f-imm16l, f-loopo, f-cb1sel, f-cb2sel, f-cb1incr,
f-cb2incr, f-rc3): New fields.
(LOOP): New instruction.
(JAL-HAZARD): New hazard.
(imm16o, loopsize, imm16l, rc3, cb1sel, cb2sel, cb1incr, cb2incr):
New operands.
(mul, muli, dbnz, iflush): Enable for ms2
(jal, reti): Has JAL-HAZARD.
(ldctxt, ldfb, stfb): Only ms1.
(fbcb): Only ms1,ms1-003.
(wfbinc, mefbinc, wfbincr, mwfbincr, fbcbincs, mfbcbincs,
fbcbincrs, mfbcbincrs): Enable for ms2.
(loop, loopu, dfbc, dwfb, fbwfb, dfbr): New ms2 insns.
* ms1.opc (parse_loopsize): New.
(parse_imm16): hi16/lo16 relocs are applicable to IMM16L.
(print_pcrel): New.
gas:
Add ms2.
* config/tc-ms1.c (ms1_mach_bitmask): Initialize to MS1.
(ms1_architectures): Add ms2.
(md_parse_option): Add ms2.
(md_show_usage): Add ms2.
(md_assemble): Add JAL_HAZARD detection logic.
(md_cgen_lookup_reloc): Add MS1_OPERAND_LOOPSIZE case.
* doc/c-ms1.texi: New.
* doc/all.texi: Add MS1.
* doc/Makefile.am (CPU_DOCS): Add c-ms1.texi.
* doc/Makefile.in: Rebuilt.
* doc/Makefile: Rebuilt.
gas/testsuite:
Add ms2.
* gas/ms1/allinsn.d: Adjust pcrel disassembly.
* gas/ms1/errors.exp: Fix target triplet.
* gas/ms1/ms1-16-003.d: Adjust pcrel disassembly.
* gas/ms1/ms1-16-003.s: Tweak label.
* gas/ms1/ms1.exp: Adjust target triplet. Add ms2 test.
* gas/ms1/ms2.d, gas/ms1/ms2.s: New.
* gas/ms1/relocs.d: Adjust expected machine name and pcrel
disassembly.
* gas/ms1/relocs.exp: Adjust target triplet.
include:
Add ms2.
* elf/ms1.h (EF_MS1_CPU_MS2): New.
opcodes:
Add ms2.
* ms1-asm.c, ms1-desc.c, ms1-desc.h, ms1-dis.c, ms1-ibld.c,
ms1-opc.c, ms1-opc.h: Regenerated.
2005-11-08 11:15:13 +00:00
Alan Modra
05c98237ea
daily update
2005-11-07 23:00:07 +00:00