OSDN Git Service
Hans-Peter Nilsson [Tue, 26 Nov 2002 08:21:35 +0000 (08:21 +0000)]
* config/tc-cris.c (cris_relax_frag): Fix typo in comment.
(md_assemble): Don't pass on branches to constants as relaxable.
Tweak comment.
Hans-Peter Nilsson [Tue, 26 Nov 2002 08:19:09 +0000 (08:19 +0000)]
* gas/cris/rd-bcnst.d, gas/cris/rd-bcnst.d: New test.
Alan Modra [Mon, 25 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
DJ Delorie [Mon, 25 Nov 2002 21:15:41 +0000 (21:15 +0000)]
* gas/xstormy16/allinsn.d: Fix sdiv/sdivlh encodings.
DJ Delorie [Mon, 25 Nov 2002 21:15:04 +0000 (21:15 +0000)]
* xstormy16-opc.c: Regenerate.
Jim Wilson [Mon, 25 Nov 2002 19:59:29 +0000 (19:59 +0000)]
Patch from Kenneth Chen to fix brl disassembly.
* ia64-dis.c (print_insn_ia64): Correct handling of IA64_OPND_TGT64.
Svein Seldal [Mon, 25 Nov 2002 09:01:30 +0000 (09:01 +0000)]
* gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in direct
mode
Alan Modra [Sun, 24 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
DJ Delorie [Sun, 24 Nov 2002 15:59:22 +0000 (15:59 +0000)]
merge from gcc
Jason Thorpe [Sun, 24 Nov 2002 06:58:20 +0000 (06:58 +0000)]
* libiberty.h (basename): Add NetBSD to the list.
Alan Modra [Sat, 23 Nov 2002 23:00:03 +0000 (23:00 +0000)]
daily update
Nick Clifton [Sat, 23 Nov 2002 08:01:51 +0000 (08:01 +0000)]
Fix typo describing switch for hex format.
Alan Modra [Fri, 22 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
DJ Delorie [Fri, 22 Nov 2002 21:02:14 +0000 (21:02 +0000)]
merge from gcc
Alan Modra [Thu, 21 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
Alan Modra [Thu, 21 Nov 2002 21:37:06 +0000 (21:37 +0000)]
* ld-elf/elf.exp: Remove sec64k test.
* ld-elf/sec64k.exp: Reinstate.
Dave Anglin [Thu, 21 Nov 2002 19:06:28 +0000 (19:06 +0000)]
* config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
only if they have default visibility.
Richard Henderson [Thu, 21 Nov 2002 18:56:06 +0000 (18:56 +0000)]
* config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
S_IS_DEFINED test.
Richard Henderson [Thu, 21 Nov 2002 18:52:36 +0000 (18:52 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't overwrite the
arch's st_other bits when merging visibilities.
(elf_link_output_extsym): Tidy clearing of visibility field.
Alan Modra [Thu, 21 Nov 2002 13:30:31 +0000 (13:30 +0000)]
* ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.
* ld-elf/merge.s: New file.
* ld-elf/merge.d: New file.
* ld-elf/merge.ld: New file.
Alan Modra [Thu, 21 Nov 2002 13:11:33 +0000 (13:11 +0000)]
* coff-mcore.c (SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
Alan Modra [Thu, 21 Nov 2002 11:43:40 +0000 (11:43 +0000)]
* config/tc-mcore.c (mcore_pool_count): New function.
(mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
Klee Dienes [Thu, 21 Nov 2002 09:54:12 +0000 (09:54 +0000)]
2002-11-20 Klee Dienes <kdienes@apple.com>
* config/tc-mcore.c (md_begin): Use a const iterator. Don't
coalesce the name fields to use the same pointer.
* config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
the name fields to use the same pointer.
(get_specific): Check for opcodes with the same name using strcmp
as well as comparing the pointer.
Alan Modra [Wed, 20 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
Alexandre Oliva [Wed, 20 Nov 2002 18:17:04 +0000 (18:17 +0000)]
* elf.c (_bfd_elf_link_hash_table_init): Make sure
can_refcount is properly extended to the type of
init_refcount.
Alan Modra [Wed, 20 Nov 2002 12:56:01 +0000 (12:56 +0000)]
* write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
fx_subsy non-NULL.
DJ Delorie [Wed, 20 Nov 2002 03:15:10 +0000 (03:15 +0000)]
* xstormy16-desc.c: Regenerate.
* xstormy16-opc.c: Regenerate.
* xstormy16-opc.h: Regenerate.
DJ Delorie [Wed, 20 Nov 2002 03:14:47 +0000 (03:14 +0000)]
* gas/xstormy16/allinsn.sh: Add sdiv, divlh, and sdivlh.
* gas/xstormy16/allinsn.d: Regenerate.
* gas/xstormy16/allinsn.s: Regenerate.
Alan Modra [Wed, 20 Nov 2002 02:50:28 +0000 (02:50 +0000)]
move testsuite entries to the correct changelog
Richard Henderson [Wed, 20 Nov 2002 02:39:21 +0000 (02:39 +0000)]
* config/obj-elf.c (obj_elf_visibility): Overwrite only the
visibility portion of st_other.
Alan Modra [Wed, 20 Nov 2002 01:02:44 +0000 (01:02 +0000)]
* emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
Also move some changelog entries to where they belong.
Alan Modra [Tue, 19 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
Klee Dienes [Tue, 19 Nov 2002 22:56:42 +0000 (22:56 +0000)]
2002-11-19 Klee Dienes <kdienes@apple.com>
* config/tc-h8300.c (struct h8_instruction): New type, used to
wrap h8_opcodes with length, noperands, idx, and size fields
(computed at run-time).
(h8_instructions): New variable.
(md_begin): Allocate the storage for h8_instructions. Fill
h8_instructions with pointers to the appropriate opcode and the
correct value for the additional fields.
(clever_message): Update to use h8_instructions instead of
h8_opcodes.
(build_bytes): Ditto.
(get_specific): Ditto.
(md_assemble): Ditto.
Klee Dienes [Tue, 19 Nov 2002 22:56:14 +0000 (22:56 +0000)]
2002-11-19 Klee Dienes <kdienes@apple.com>
* h8300.h (h8_opcode): Remove 'noperands', 'idx', and 'size'
fields.
(h8_opcodes). Modify initializer and initializer macros to no
longer initialize the removed fields.
Alexandre Oliva [Tue, 19 Nov 2002 20:52:32 +0000 (20:52 +0000)]
* elfxx-mips.c (MIPS_RELOC_RELA_P): New macro.
(_bfd_mips_elf_relocate_section): Use it.
Alexandre Oliva [Tue, 19 Nov 2002 20:50:43 +0000 (20:50 +0000)]
* elfxx-mips.c (MNAME): New macro.
(_bfd_mips_elf_check_relocs): Use it.
(_bfd_mips_elf_discard_info): Likewise.
(_bfd_mips_elf_final_link): Likewise.
Martin Schwidefsky [Tue, 19 Nov 2002 14:58:54 +0000 (14:58 +0000)]
* config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
adjustments to symbols in merge sections.
Svein Seldal [Tue, 19 Nov 2002 11:59:12 +0000 (11:59 +0000)]
Fixed LDHI constraint
Alan Modra [Tue, 19 Nov 2002 07:32:28 +0000 (07:32 +0000)]
* config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
Alan Modra [Tue, 19 Nov 2002 06:32:35 +0000 (06:32 +0000)]
* elf64-ppc.c (ppc64_elf_edit_opd): When deleting relocs, adjust
rel_hdr.sh_size too.
Alan Modra [Mon, 18 Nov 2002 23:00:06 +0000 (23:00 +0000)]
daily update
Kevin Buettner [Mon, 18 Nov 2002 21:08:54 +0000 (21:08 +0000)]
Add support for 64-bit DWARF 2 formats to gas.
Alexandre Oliva [Mon, 18 Nov 2002 20:45:48 +0000 (20:45 +0000)]
* config/tc-mips.c (s_change_section): Make sure input buffer
is not accessed past the end. Don't hand
obj_elf_change_section a pointer into the input buffer.
Alexandre Oliva [Mon, 18 Nov 2002 20:41:03 +0000 (20:41 +0000)]
* config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
GOT_LO16 on NEWABI.
Klee Dienes [Mon, 18 Nov 2002 16:54:08 +0000 (16:54 +0000)]
2002-11-12 Klee Dienes <kdienes@apple.com>
* avr-dis.c: Include libiberty.h (for xmalloc).
(struct avr_opcodes_s): Remove 'bin_mask' field (it's
automatically computed in the init routine).
(AVR_INSN): No longer provide bin_mask field in initializer.
(avr_opcodes_s): Declare as const.
(print_insn_avr): Store the bin_mask field in a separate table
(allocated with xmalloc); iterate through it at the same time as
we iterate through the opcodes.
Klee Dienes [Mon, 18 Nov 2002 16:52:46 +0000 (16:52 +0000)]
2002-11-11 Klee Dienes <kdienes@apple.com>
* h8300.h (h8_opcode): Remove 'length' field.
(h8_opcodes): Mark as 'const' (both the declaration and
definition). Modify initializer and initializer macros to no
longer initialize the length field.
2002-11-11 Klee Dienes <kdienes@apple.com>
* h8300-dis.c: Include libiberty.h (for xmalloc).
(struct h8_instruction): New type, used to wrap h8_opcodes with a
length field (computed at run-time).
(h8_instructions): New variable.
(bfd_h8_disassemble_init): Allocate the storage for
h8_instructions. Fill h8_instructions with pointers to the
appropriate opcode and the correct value for the length field.
(bfd_h8_disassemble): Iterate through h8_instructions instead of
h8_opcodes.
Klee Dienes [Mon, 18 Nov 2002 16:50:05 +0000 (16:50 +0000)]
2002-11-18 Klee Dienes <kdienes@apple.com>
* arc.h (arc_ext_opcodes): Declare as extern.
(arc_ext_operands): Declare as extern.
* i860.h (i860_opcodes): Declare as const.
2002-11-18 Klee Dienes <kdienes@apple.com>
* arc-opc.c (arc_ext_opcodes): Define.
(arc_ext_operands): Define.
* i386-dis.c (Suffix3DNow): Declare as const.
* arm-opc.h (arm_opcodes): Declare as const.
(thumb_opcodes): Declare as const.
* h8500-opc.h (h8500_table): Declare as const.
(h8500_table): Use a NULL for the opcode in the terminator, so
that code testing (opcode->name) behaves correctly.
* mcore-opc.h (mcore_table): Declare as const.
* sh-opc.h (sh_table): Declare as const.
* w65-opc.h (optable): Declare as const.
* z8k-opc.h (z8k_table): Declare as const.
Klee Dienes [Mon, 18 Nov 2002 16:37:54 +0000 (16:37 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* Makefile.am (BFD32_LIBS): Add bfdwin.lo, bfdio.lo.
(BFD32_LIBS_CFILES): Add bfdwin.c, bfdio.c.
(BFD_H_FILES): Add bfdwin.c, bfdio.c.
(LIBBFD_H_FILES): Add bfdwin.c, bfdio.c.
Add dependencies for bfdwin.c, bfdio.c.
* bfd.c: Remove bfd_get_mtime, bfd_get_size.
* libbfd.c: Remove real_read, bfd_bread, _bfd_window_internal,
bfd_init_window, bfd_free_window, bfd_get_file_window, bfd_bwrite,
bfd_tell, bfd_flush, bfd_stat, bfd_seek.
* bfdio.c: New file. Contains real_read, bfd_bread, bfd_write,
bfd_tell, bfd_flush, bfd_stat, bfd_seek, bfd_ge_mtime,
bfd_get_size (moved from libbfd.c and bfd.c).
* bfdwin.c New file. Contains _bfd_window_internal,
bfd_init_window, bfd_free_window, bfd_get_file_window (moved from
libbfd.c and bfd.c).
* po/SRC-POTFILES.in: Regenerate.
* po/bfd.pot: Regenerate.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* aclocal.m4: Regenerate.
* Makefile.in: Regenerate.
* configure: Regenerate.
2002-11-16 Klee Dienes <kdienes@apple.com>
* Makefile.am (DOCFILES): Add bfdwin.texi, bfdio.texi.
(PROTOS): Add bfdio.p, bfdwin.p.
(SRCDOC): Add bfdio.c, bfdwin.c.
(SRCPROT): Add bfdio.c, bfdwin.c.
(SRCIPROT): Add bfdio.c, bfdwin.c.
(LIBBFD_H_DEP): Add bfdio.c, bfdwin.c.
(BFD_H_DEP): Add bfdio.c, bfdwin.c.
Add rules for bfdio.texi, bfdwin.text.
* bfd.texinfo: Include bfdio.texi.
Svein Seldal [Mon, 18 Nov 2002 14:00:44 +0000 (14:00 +0000)]
Fixups in ChangeLog entries which has been filed in the wrong place.
Svein Seldal [Mon, 18 Nov 2002 09:09:35 +0000 (09:09 +0000)]
* gas/config/tc-tic4x.c: Fixed proper commandline
parameters. Added support for new opcode-list format. General
error message fixups.
(c4x_inst_add): Reject insn not for our CPU
(md_begin): Added matrix for setting the proper opcode-level &
device-flags according to cpu type and revision. Rewrite the
opcode hasher.
(c4x_operand_parse): Fix opcode bug
(c4x_operands_match): New function argument. Added dry-run
mechanism, that is optional error generation. Added constraint 'i'
and 'j'.
(c4x_insn_check): Added new function for post-verification of the
generated insn.
(md_assemble): Check all opcodes before croaking because of an
argument mismatch. Need this to be able to fully support
ortogonally arguments.
(md_parse_options): Revised commandprompt swicthes and added new
ones.
(md_show_usage): Complete rewrite of printout.
* gas/testsuite/gas/tic4x/addressing.s: Fix bug in one insn
* gas/testsuite/gas/tic4x/addressing_c3x.d: Update thereafter
* gas/testsuite/gas/tic4x/addressing_c4x.d: Update thereafter
* gas/testsuite/gas/tic4x/allopcodes.S: Add support for new
opclass.h changes
* gas/testsuite/gas/tic4x/opclasses.h: Added testsuites for
the new enhanced opcodes.
* gas/testsuite/gas/tic4x/opcodes.s: Regenerate
* gas/testsuite/gas/tic4x/opcodes_c3x.d: Update from above
* gas/testsuite/gas/tic4x/opcodes_c4x.d: Update from above
* gas/testsuite/gas/tic4x/opcodes_new.d: Added new testsuite for
the enhanced and special insns.
* gas/testsuite/gas/tic4x/tic4x.exp: Added the opcodes_new testsuite
* include/opcode/tic4x.h: File reordering. Added enhanced opcodes.
* opcodes/tic4x-dis.c: Added support for enhanced and special
insn.
(c4x_print_op): Added insn class 'i' and 'j'
(c4x_hash_opcode_special): Add to support special insn
(c4x_hash_opcode): Update to support the new opcode-list
format. Add support for the new special insns.
(c4x_disassemble): New opcode-list support.
Svein Seldal [Mon, 18 Nov 2002 08:28:44 +0000 (08:28 +0000)]
TIC4X testcase commit
* binutils/testsuite/binutils-all/objcopy.exp: Disable tic4x
from test
* binutils/testsuite/binutils-all/objdump.exp: Setup proper
values for tic4x testcase
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
* gas/testsuite/gas/macros/macros.exp: Ditto
* gas/testsuite/gas/tic4x: New tic4x gas testsuite directory
* ld/testsuite/ld-scripts/script.exp: Setup for tic4x testcase
Alan Modra [Mon, 18 Nov 2002 00:33:01 +0000 (00:33 +0000)]
* bfd.c (bfd_preserve_save): Don't zero BFD_IN_MEMORY.
Alan Modra [Sun, 17 Nov 2002 23:00:03 +0000 (23:00 +0000)]
daily update
Alan Modra [Sat, 16 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
DJ Delorie [Sat, 16 Nov 2002 22:12:28 +0000 (22:12 +0000)]
merge whitespace tweaks from gcc
Klee Dienes [Sat, 16 Nov 2002 21:09:08 +0000 (21:09 +0000)]
Remove spurious ChangeLog addition.
Klee Dienes [Sat, 16 Nov 2002 18:43:03 +0000 (18:43 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* opcode/m88k.h (INSTAB): Remove 'next' field.
(instruction): Remove definition; replace with extern declaration
and mark as const.
W
Klee Dienes [Sat, 16 Nov 2002 18:42:12 +0000 (18:42 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k-dis.c: Include libiberty.h (for xmalloc).
(HASHTAB): New type, used to build instruction hash tables.
Contains a pointer to an INSTAB and a pointer to the next hash
chain entry.
(instructions): Move definition from m88k.h; remove initialization
of 'next' field.
(hashtable): Now an aray of pointer-to-HASHTAB, not INSTAB.
(printop): Mark pointer to OPSPEC as const.
(install): Remove; fold into init_disasm.
(m88kdis): Update to ihashtab_initialized to 1 after calling
init_disasm. entry_ptr now iterates through HASHTABs, not
INSTABs.
(init_disasm): Iterate through the instructions and add to
hashtable[].
Klee Dienes [Sat, 16 Nov 2002 18:34:52 +0000 (18:34 +0000)]
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k.h (INSTAB): Remove 'next' field.
(instruction): Remove definition; replace with extern declaration
and mark as const.
2002-11-16 Klee Dienes <kdienes@apple.com>
* m88k-dis.c: (HASHTAB): New type, used to build instruction hash tables.
Contains a pointer to an INSTAB and a pointer to the next hash
chain entry.
(instructions): Move definition from m88k.h; remove initialization
of 'next' field.
(hashtable): Now an aray of pointer-to-HASHTAB, not INSTAB.
(printop): Mark pointer to OPSPEC as const.
(install): Remove; fold into init_disasm.
(m88kdis): Update to ihashtab_initialized to 1 after calling init_disasm.
entry_ptr now iterates through HASHTABs, not INSTABs.
(init_disasm): Iterate through the instructions and add to hashtable[].
Jakub Jelinek [Sat, 16 Nov 2002 12:39:57 +0000 (12:39 +0000)]
* md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
used with arguments in traditional C' warnings.
Svein Seldal [Sat, 16 Nov 2002 12:23:23 +0000 (12:23 +0000)]
* gas/config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
(c4x_operands_match): Added check for 8-bits LDF insn. Give
warning when using constant direct bigger than 2^16. Add the new
arguments.
* include/opcode/tic4x.h: Major rewrite of entire file. Define
instruction classes, and put each instruction into a class.
* opcodes/tic4x-dis.c: (c4x_print_op): Add support for the new
argument format. Fix bug in 'N' register printer.
Alan Modra [Fri, 15 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
Nick Clifton [Fri, 15 Nov 2002 11:18:49 +0000 (11:18 +0000)]
Fix h8300 relaxation.
Klee Dienes [Fri, 15 Nov 2002 08:38:38 +0000 (08:38 +0000)]
2002-11-15 Klee Dienes <kdienes@apple.com>
* pef.c (bfd_pef_convert_architecture): Move declaration
ARCH_POWERPC and ARCH_M68K to the start of the function.
Alan Modra [Thu, 14 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
DJ Delorie [Thu, 14 Nov 2002 22:42:36 +0000 (22:42 +0000)]
* Makefile.tpl: syntactic cleanup
Nick Clifton [Thu, 14 Nov 2002 18:03:17 +0000 (18:03 +0000)]
Add --enable-auto-import extension.
Nick Clifton [Thu, 14 Nov 2002 14:38:39 +0000 (14:38 +0000)]
Handle binaries with corrupt section or segment headers
Svein Seldal [Thu, 14 Nov 2002 11:02:30 +0000 (11:02 +0000)]
* coff-tic4x.c (tic4x_howto_table): Formatting fixup
Hans-Peter Nilsson [Thu, 14 Nov 2002 01:32:28 +0000 (01:32 +0000)]
* elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs):
For bpo_gregs_section->contents, allocate _raw_size, not
_cooked_size.
Alan Modra [Wed, 13 Nov 2002 23:00:05 +0000 (23:00 +0000)]
daily update
Alan Modra [Wed, 13 Nov 2002 01:45:42 +0000 (01:45 +0000)]
* config.bfd: Add entries for powerpc-*-darwin and cousins.
Alan Modra [Tue, 12 Nov 2002 23:25:42 +0000 (23:25 +0000)]
Missed commit in last change.
Alan Modra [Tue, 12 Nov 2002 23:00:04 +0000 (23:00 +0000)]
daily update
H.J. Lu [Tue, 12 Nov 2002 22:49:45 +0000 (22:49 +0000)]
2002-11-13 H.J. Lu <hjl@gnu.org>
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
Alan Modra [Tue, 12 Nov 2002 15:44:24 +0000 (15:44 +0000)]
* bfd.c (struct bfd_preserve): New.
(bfd_preserve_save): New function.
(bfd_preserve_restore): Ditto.
(bfd_preserve_finish): Ditto.
* bfd-in2.h: Regenerate.
* mach-o.c: Formatting.
(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
(bfd_mach_o_core_p): Ditto.
(bfd_mach_o_scan): Pass in mdata.
* mach-o.h (bfd_mach_o_scan): Update prototype.
* pef.c: Formatting.
(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
(bfd_pef_xlib_object_p): Ditto.
(bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
* pef.h (bfd_pef_scan): Update prototype.
* xsym.c: Formatting, K&R fixes.
(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
(bfd_sym_scan): New function split out from bfd_sym_object_p.
* xsym.h (bfd_sym_scan): Declare.
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
Alan Modra [Tue, 12 Nov 2002 11:31:43 +0000 (11:31 +0000)]
* ldlang.c (lang_add_section): Discard debugging sections that have
been marked SEC_EXCLUDE.
Nick Clifton [Tue, 12 Nov 2002 10:08:25 +0000 (10:08 +0000)]
Add new/updated Danish translations
Alan Modra [Tue, 12 Nov 2002 07:56:38 +0000 (07:56 +0000)]
* emultempl/ppc64elf.em (ppc_before_allocation): New function.
(LDEMUL_BEFORE_ALLOCATION): Define.
(gld${EMULATION_NAME}_finish): Run discard_info for relocatable
linking.
* emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
Alan Modra [Tue, 12 Nov 2002 07:55:43 +0000 (07:55 +0000)]
* elflink.h (elf_link_add_object_symbols): Optimize stabs for
relocatable link too.
(elf_link_input_bfd): When emitting relocs, adjust offsets for
eh_frame and stab sections. Zap deleted relocs.
(elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
(elf_bfd_discard_info): Run for relocatable link too.
* elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
Handle ld -r case.
(ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
* elf64-ppc.h (ppc64_elf_edit_opd): Declare.
Alan Modra [Tue, 12 Nov 2002 07:35:26 +0000 (07:35 +0000)]
* elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
(struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
(struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
(enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
(struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
(struct elf_link_hash_table): Add eh_info.
(struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
(_bfd_elf_discard_section_eh_frame): Update prototype.
(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_write_section_eh_frame_hdr): Likewise.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
param. Get "hdr_info" from link hash table.
(_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
header section from link hash table. Save header section to elf_tdata.
(_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
header section from link hash table. Don't alloc hdr_info. Clear
hdr_sec instead of setting "strip".
(_bfd_elf_eh_frame_section_offset): Formatting.
(_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
Get header section from link hash table.
(_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
Get header section from link hash table.
* elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
(get_program_header_size): Likewise.
(_bfd_elf_section_offset): Formatting.
* elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
section pointer in link hash table.
(elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
and _bfd_elf_write_section_eh_frame calls. Update comment about
eh_frame entries.
(elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
_bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
* po/SRC-POTFILES.in: Regenerate.
Alan Modra [Tue, 12 Nov 2002 06:21:05 +0000 (06:21 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
relocs for discarded FDEs. Remove dead code.
(_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
* elflink.h (elf_bfd_discard_info): Don't save edited relocs.
Tidy conditions under which stabs are edited. Formatting.
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from discarded relocs.
* elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
section adjustments after testing magic values.
Alan Modra [Tue, 12 Nov 2002 04:04:13 +0000 (04:04 +0000)]
* gas/ppc/booke.d: Adjust output for corrected condition reg.
Alan Modra [Tue, 12 Nov 2002 04:03:31 +0000 (04:03 +0000)]
* ppc-dis.c (print_insn_powerpc): Correct condition register display.
Christopher Faylor [Tue, 12 Nov 2002 03:48:43 +0000 (03:48 +0000)]
* configure.tgt (LIB_PATH): Default to searching w32api directory under cygwin.
Alan Modra [Mon, 11 Nov 2002 23:42:29 +0000 (23:42 +0000)]
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
references to large plt symbols.
Alan Modra [Mon, 11 Nov 2002 23:19:03 +0000 (23:19 +0000)]
* mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
looking for an unused section name.
Alan Modra [Mon, 11 Nov 2002 23:15:38 +0000 (23:15 +0000)]
* rddbg.c (read_section_stabs_debugging_info): Also recognize
LC_SYMTAB.stab/LC_SYMTAB.stabstr as a valid pair of sections.
Alan Modra [Mon, 11 Nov 2002 23:01:15 +0000 (23:01 +0000)]
daily update
Christopher Faylor [Mon, 11 Nov 2002 21:16:28 +0000 (21:16 +0000)]
* pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list of
restricted auto-export libs.
Christopher Faylor [Mon, 11 Nov 2002 17:42:36 +0000 (17:42 +0000)]
* pe-dll.c (autofilter_liblist): Generalize library names to catch more
creative library naming instances like, e.g., libstdc++-2.a.
Christopher Faylor [Mon, 11 Nov 2002 17:21:33 +0000 (17:21 +0000)]
* configure.in: Use .gdbinit under Cygwin.
* configure: Regenerate.
Christopher Faylor [Mon, 11 Nov 2002 17:11:53 +0000 (17:11 +0000)]
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if STRICT_PE_FORMAT.
Christopher Faylor [Mon, 11 Nov 2002 16:53:19 +0000 (16:53 +0000)]
* MAINTAINERS: Reinstate DJ Delorie as COFF maintainer. Drop COFF from cgf
maintainership.
Christopher Faylor [Mon, 11 Nov 2002 16:06:50 +0000 (16:06 +0000)]
* MAINTAINERS: Replace DJ Delorie as PE/COFF maintainer.
Svein Seldal [Mon, 11 Nov 2002 14:58:49 +0000 (14:58 +0000)]
* Makefile.am: Added tic4x dependecy
* Makefile.in: Regenerate
Svein Seldal [Mon, 11 Nov 2002 14:29:01 +0000 (14:29 +0000)]
gas tic4x target enhancements (long list - see gas/ChangeLog and
include/ChangeLog)
Hans-Peter Nilsson [Mon, 11 Nov 2002 10:16:57 +0000 (10:16 +0000)]
* ld-elf/sec64k.exp: New test.
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
to a source file starting with "/".
Hans-Peter Nilsson [Mon, 11 Nov 2002 08:42:52 +0000 (08:42 +0000)]
* macro.c (get_any_string): Correct logic for not going beyond end
of in->ptr[].
Stan Shebs [Mon, 11 Nov 2002 05:38:51 +0000 (05:38 +0000)]
Retire common MPW configury bits.
* mpw-mh-mpw: Remove.
* mpw: Remove directory along with all of its files.