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
Steve Ellcey
49c96104aa
* warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
...
if compiler is not GCC.
* configure: Regenerate
2005-11-07 22:14:12 +00:00
Steve Ellcey
76f703bfeb
* configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
2005-11-07 21:55:14 +00:00
Alan Modra
a6c44b3307
daily update
2005-11-06 23:00:06 +00:00
Alan Modra
72427426f7
daily update
2005-11-05 23:00:06 +00:00
Alan Modra
bc557b992b
daily update
2005-11-04 23:00:07 +00:00
Alan Modra
a3a1086b81
daily update
2005-11-03 23:00:05 +00:00
Daniel Jacobowitz
2e6f4fae07
* configure.in: Check for fopen64.
...
* libbfd-in.h (real_fopen): New prototype.
* configure, config.in, libbfd.h: Regenerated.
* bfdio.c (real_fopen): New function.
* opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
* cache.c (bfd_open_file): Likewise.
2005-11-03 16:06:11 +00:00
Thiemo Seufer
6ece8836a6
* elfxx-mips.c (mips_elf_calculate_relocation): Handle only
...
forced local symbols here.
(mips_elf_create_dynamic_relocation): Likewise.
(_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
2005-11-03 11:45:14 +00:00
Alan Modra
3a800eb947
* elf.c (elf_fake_sections): When calculating tbss size, just use
...
the last link_order.
(assign_file_positions_for_segments): Likewise.
* elflink.c (bfd_elf_final_link): Likewise.
(elf_reloc_link_order): Correct comment.
2005-11-03 02:53:38 +00:00
Alan Modra
9c68e8c556
daily update
2005-11-02 23:00:05 +00:00
Alan Modra
8a3cdac711
daily update
2005-11-01 23:00:04 +00:00
Alan Modra
966972ec70
PR ld/1775
...
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
parentheses.
2005-11-01 22:57:23 +00:00
Alan Modra
e43168cce0
daily update
2005-10-31 23:00:05 +00:00
Alan Modra
5bf8685ce9
daily update
2005-10-30 23:00:06 +00:00
H.J. Lu
be69087561
2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
...
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerated.
* dep-in.sed: Replace " ./" with " ".
2005-10-29 23:47:42 +00:00
H.J. Lu
9b8181460d
2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
...
* hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
define.
* osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
* sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
if SCO5_CORE is defined.
2005-10-29 23:00:12 +00:00
Alan Modra
6906ad7f1f
daily update
2005-10-29 23:00:06 +00:00
Mark Kettenis
62d8ad4fd4
* Makefile.am: Run "make dep-am".
...
* Makefile.in: Regenerate.
2005-10-29 21:16:20 +00:00
Alan Modra
93ab6b05c3
daily update
2005-10-29 00:00:05 +00:00
Joel Brobecker
e9adafe3f3
From Eric Botcazou <botcazou@adacore.com>
...
* coffcode.h (coff_compute_section_file_positions): Fix small
error in preprocessor directives.
2005-10-28 16:25:48 +00:00
Joel Brobecker
cc429f578c
Mostly from Eric Botcazou <botcazou@adacore.com>
...
* rs6000-core.c: ANSIfy all function definitions.
Add missing function prototypes.
(ptr_to_uint): New type.
(rs6000coff_core_p): Use it as intermediate step in casts.
(rs6000coff_core_file_matches_executable_p): Likewise.
* xcoff-target.h (rs6000coff_core_p): Fix prototype.
(rs6000coff_core_file_matches_executable_p): Likewise.
2005-10-28 16:24:35 +00:00
H.J. Lu
74d26813fe
2005-10-28 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/1472
* aoutx.h (NAME (aout, machine_type)): Handle
bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa,
bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a
and bfd_mach_sparc_v9b.
2005-10-28 13:50:57 +00:00
Hans-Peter Nilsson
b2efcd3652
PR ld/1567
...
* elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
complain_on_overflow field to complain_overflow_dont.
2005-10-28 00:29:44 +00:00
Alan Modra
aa49a487e3
daily update
2005-10-28 00:00:07 +00:00
Alan Modra
95560129db
PR 973
...
* cache.c (enum cache_flag): New.
(close_one): Save file mtime.
(bfd_cache_lookup): Add flag arg, adjust all users.
(bfd_cache_lookup_worker): Likewise.
(cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
not open.
(cache_bflush): Similarly, and return success of file not open.
(cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
(cache_bstat): Use CACHE_NO_SEEK_ERROR.
2005-10-27 05:31:16 +00:00
Alan Modra
182a009999
* bfdwin.c (bfd_get_file_window): Seek into file in place of
...
using bfd_cache_lookup.
2005-10-27 04:06:35 +00:00
Alan Modra
d00967c705
* cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
...
(bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise.
* libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete.
* libbfd.h: Regenerate.
2005-10-27 03:36:57 +00:00
Alan Modra
b677b8c0b9
* hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat.
...
* sco5-core.c (sco5_core_file_p): Likewise.
* trad-core.c (trad_unix_core_file_p): Likewise.
2005-10-27 03:35:30 +00:00
Alan Modra
d0fdd288c7
* cache.c: Reorganize file to avoid forward reference.
2005-10-27 03:22:13 +00:00
Alan Modra
2ca673f687
daily update
2005-10-27 00:00:05 +00:00
Alan Modra
3dff57e847
* cache.c (bfd_cache_lookup_worker): Don't abort on failing to
...
reopen file.
(cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on
bfd_cache_lookup failure.
(cache_bread, cache_bwrite): Return 0 on the same.
* bfdwin.c (bfd_get_file_window): Likewise.
* hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
* sco5-core.c (sco5_core_file_p): Likewise.
* trad-core.c (trad_unix_core_file_p): Likewise.
2005-10-26 12:17:42 +00:00
Alan Modra
d53e85d8ff
* cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
...
rather than bfd_perror. Print file name. Internationalise.
2005-10-26 07:38:25 +00:00
Alan Modra
5c91cdfb25
* cache.c (bfd_open_file): Set bfd_error_system_call on failure
...
to open file.
(bfd_cache_lookup_worker): Remove check that file pos is in
unsigned long range. Print system error before aborting.
2005-10-26 04:29:53 +00:00
Alan Modra
11ddad1b0b
daily update
2005-10-26 00:00:05 +00:00
Nick Clifton
3c9b82baee
Add support for the Z80 processor family
2005-10-25 17:40:19 +00:00
Alan Modra
fcfa13d2b2
PR ld/1540
...
* elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to
elf_backend_data with pointer to bfd_link_info.
(_bfd_elf_link_hash_copy_indirect): Likewise.
* elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle
direct and indirect symbols both having dynamic link info.
* elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise.
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
* elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
* elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
* elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
* elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
* elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol.
* elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype.
* elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
2005-10-25 16:19:08 +00:00
Alan Modra
3caac5b897
Regenerate
2005-10-25 02:20:17 +00:00
Alan Modra
cc722a42f4
daily update
2005-10-25 00:00:07 +00:00
Jie Zhang
9ba4c44513
bfd/
...
* elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
warning.
gas/
* Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h.
(EXTRA_DIST): Add bfin-parse.h and bfin-lex.c.
* Makefile.in: Regenerate.
* config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h.
* config/tc-bfin.c (md_chars_to_number): Change the type of first
argument from unsigned char * to char * to remove signedness warnings.
2005-10-24 16:31:22 +00:00
Jie Zhang
f470759536
* elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
...
(bfin_imm16_reloc): Always add in the addend. Don't fetch existing
contents from section.
(bfin_relocate_section): Rework so as to not call special_functions.
Handle the relocation stack here. Treat pcrel24 relocs specially.
2005-10-24 14:25:13 +00:00