OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
21 years ago * elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
Jakub Jelinek [Mon, 10 Feb 2003 13:22:12 +0000 (13:22 +0000)]
* elf32-s390.c (elf_s390_size_dynamic_sections): Set relocs to TRUE
even if there is just non-empty .rela.plt.

21 years agoAdd function to set machine number based on flags in header.
Nick Clifton [Mon, 10 Feb 2003 11:21:19 +0000 (11:21 +0000)]
Add function to set machine number based on flags in header.

21 years agoAdd support for marking ARM ELF binaries as support the Cirrus EP9312 Maverick
Nick Clifton [Mon, 10 Feb 2003 10:44:48 +0000 (10:44 +0000)]
Add support for marking ARM ELF binaries as support the Cirrus EP9312 Maverick
floating point co-processor.

21 years ago * elf64-ppc.c: Rename assorted occurrences of tls_type and similar
Alan Modra [Sun, 9 Feb 2003 23:17:57 +0000 (23:17 +0000)]
* elf64-ppc.c: Rename assorted occurrences of tls_type and similar
variables, structure fields or function params to tls_mask or
similar to better reflect usage.
(struct got_entry): Comment.
(struct ppc_link_hash_entry):  Expand comment, and renumber TLS_*.
(get_tls_mask): Rename from get_tls_type.

21 years agodaily update
Alan Modra [Sun, 9 Feb 2003 23:00:15 +0000 (23:00 +0000)]
daily update

21 years ago * ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
Alan Modra [Sun, 9 Feb 2003 04:37:04 +0000 (04:37 +0000)]
* ld-powerpc/tlslib.s: Give .__tls_get_addr function type.
* ld-powerpc/tlsexe.d: Update for changed handling of (invalid) ld var
in dynamic lib.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsexetoc.t: Likewise.

21 years ago * emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.
Alan Modra [Sun, 9 Feb 2003 04:36:44 +0000 (04:36 +0000)]
* emultempl/ppc64elf.em: Add "no-tls-optimize" option and support code.

21 years ago * elf64-ppc.c (TLS_GD_LD): Don't define..
Alan Modra [Sun, 9 Feb 2003 04:36:23 +0000 (04:36 +0000)]
* elf64-ppc.c (TLS_GD_LD): Don't define..
(TLS_GD): ..define this instead and update all uses.
(TLS_TPRELGD): Define.
(ppc64_elf_link_hash_table_create): Tweak initialization of
init_refcount and init_offset.
(ppc64_elf_check_relocs): Add one extra element to t_symndx array.
Mark second slot of GD or LD toc entries.
(get_tls_type): Return an int.  Distinguish toc GD and LD entries
from other tls types.
(ppc64_elf_tls_setup): New function, split out from..
(ppc64_elf_tls_optimize): ..here.  Don't optimize when symbols are
defined in a dynamic object.  Fix LD optimization.  Don't set TLS_TPREL
on GD->IE optimization, use TLS_TPRELGD instead.  Use get_tls_type
return value to properly decide whether toc GD and LD entries can
optimize away __tls_get_addr call.  Check next reloc after DTPMOD64
to determine GD or LD rather than looking at TLS_LD flag.  Don't
attempt to adjust got entry tls_type here..
(allocate_dynrelocs): ..instead, adjust got entry tls_type here, and
look for possible merges.
(ppc64_elf_size_dynamic_sections): Adjust local got entries for
optimization.
(ppc64_elf_size_stubs): Tweak __tls_get_addr fudge.
(ppc64_elf_relocate_section): Rename some vars to better reflect usage.
Make use of return value from get_tls_type to properly detect GD and
LD optimizations.  Split tlsld/gd hi/ha from lo/ds case.  Don't
handle tls_get_addr removal when looking at REL24 relocs, do it when
looking at the previous reloc.  Check reloc after DTPMOD64 to determine
GD or LD.
* elf64-ppc.h (ppc64_elf_tls_setup): Declare.

21 years agodaily update
Alan Modra [Sat, 8 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agogas/
Richard Sandiford [Sat, 8 Feb 2003 17:05:55 +0000 (17:05 +0000)]
gas/
* config/tc-mips.c (reloc_needs_lo_p): New function.
(fixup_has_matching_lo_p): New function.
(append_insn): Use reloc_needs_lo_p to check whether a relocation
might need a matching %lo().  Reuse the head of mips_hi_fixup_list
if that fixup already has a matching %lo().  Don't call frag_wane here.
(macro): Call frag_wane here if the last unmatched hi was in the
current frag.
(pic_need_relax): New function, split out from...
(md_estimate_size_before_relax): ...here.
(mips_frob_file): Use reloc_needs_lo_p.  Use pic_need_relax to test
whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.

gas/testsuite/
* gas/mips/rel12.[sd], gas/mips/rel13.[sd]: New tests.
* gas/mips/mips.exp: Run them.

21 years ago * elf32-hppa.c (group_sections): Don't share a stub section if
Alan Modra [Sat, 8 Feb 2003 08:18:41 +0000 (08:18 +0000)]
* elf32-hppa.c (group_sections): Don't share a stub section if
stubs are for a large section.

21 years ago * elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
Alan Modra [Sat, 8 Feb 2003 01:10:30 +0000 (01:10 +0000)]
* elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
stubs if !stubs_always_before_branch.

21 years agodaily update
Alan Modra [Fri, 7 Feb 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago * hppaelf.em (group_size): Change default to -1.
Dave Anglin [Fri, 7 Feb 2003 15:55:49 +0000 (15:55 +0000)]
* hppaelf.em (group_size): Change default to -1.

21 years agoAdd duplicate entry for no-pipeline-knowledge. This will prevent the getopt
Nick Clifton [Fri, 7 Feb 2003 15:32:22 +0000 (15:32 +0000)]
Add duplicate entry for no-pipeline-knowledge.  This will prevent the getopt
package from thinking that there are any shorter abbreviations for
--no-pipeline-knowledge.

21 years ago * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
Richard Sandiford [Fri, 7 Feb 2003 15:06:33 +0000 (15:06 +0000)]
* config/tc-mips.c (my_getSmallExpression): Rework bracket handling.

testsuite/
* gas/mips/expr1.[sd]: New test.
* gas/mips/mips.exp: Run it.

21 years agoGenerate an error message if a section cannot be found for a symbol.
Nick Clifton [Fri, 7 Feb 2003 14:27:59 +0000 (14:27 +0000)]
Generate an error message if a section cannot be found for a symbol.

21 years ago * genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
Jakub Jelinek [Fri, 7 Feb 2003 14:21:03 +0000 (14:21 +0000)]
* genscripts.sh (LIB_PATH): Don't append LIBPATH_SUFFIX to paths
which already have it.  Avoid duplicates.

21 years ago * elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
Jakub Jelinek [Fri, 7 Feb 2003 09:30:33 +0000 (09:30 +0000)]
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
local_got_entries is NULL.

21 years ago * elf-eh-frame.c (get_DW_EH_PE_signed): Define.
Andreas Schwab [Thu, 6 Feb 2003 23:01:04 +0000 (23:01 +0000)]
* elf-eh-frame.c (get_DW_EH_PE_signed): Define.
(read_value): Add parameter is_signed, use signed extraction if
the value is signed.
(_bfd_elf_write_section_eh_frame): Pass signed flag of the
encoding to read_value.

21 years agodaily update
Alan Modra [Thu, 6 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agoSource Navigator is now on sourceforge...
Keith Seitz [Thu, 6 Feb 2003 20:36:19 +0000 (20:36 +0000)]
Source Navigator is now on sourceforge...

        * Makefile.def: Remove "snavigator", "grep", and "db" modules.
        * Makefile.tpl: Remove "all-snavigator" and "all-grep".
        * Makefile.in: Regenerated.
        * configure.in: Remove all traces of snavigator, db, and grep.
        * configure: Regenerated.

21 years ago * emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
Jakub Jelinek [Thu, 6 Feb 2003 14:45:04 +0000 (14:45 +0000)]
* emulparams/elf64_s390.sh (LIBPATH_SUFFIX): Set to 64.
* emulparams/elf_x86_64.sh (LIBPATH_SUFFIX): Likewise.
* emulparams/elf64_sparc.sh (LIBPATH_SUFFIX): Set instead of suffix.

21 years ago * gas/i386/x86-64-opcode.s: More tests for x86-64 MOVD opcodes.
Alan Modra [Thu, 6 Feb 2003 01:49:39 +0000 (01:49 +0000)]
* gas/i386/x86-64-opcode.s: More tests for x86-64 MOVD opcodes.
* gas/i386/x86-64-opcode.d: Adjust to suit.

21 years ago * i386-dis.c (dq_mode, Edq): Define.
Alan Modra [Thu, 6 Feb 2003 01:48:41 +0000 (01:48 +0000)]
* i386-dis.c (dq_mode, Edq): Define.
(dis386_twobyte): Correct movd operands.
(OP_E): Handle dq_mode case.

21 years ago * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
Alan Modra [Thu, 6 Feb 2003 01:24:17 +0000 (01:24 +0000)]
* config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
x@toc+off works.

21 years agodaily update
Alan Modra [Wed, 5 Feb 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
Alan Modra [Wed, 5 Feb 2003 15:49:04 +0000 (15:49 +0000)]
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy got and
plt info when called to transfer weak sym info.

21 years agodaily update
Alan Modra [Tue, 4 Feb 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years agonew ppc64 tls tests
Alan Modra [Tue, 4 Feb 2003 14:52:11 +0000 (14:52 +0000)]
new ppc64 tls tests

21 years ago * emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
Alan Modra [Tue, 4 Feb 2003 14:51:35 +0000 (14:51 +0000)]
* emultempl/ppc64elf.em (ppc_before_allocation): Size sections then
call ppc64_elf_tls_optimize.

21 years ago * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
Alan Modra [Tue, 4 Feb 2003 14:51:13 +0000 (14:51 +0000)]
* config/tc-ppc.c (mapping): Handle new TLS reloc specs.
(ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
accept x@got+off etc.
(md_assemble): Handle TLS relocs.
(ppc_force_relocation): Force for all TLS relocs.
(ppc_fix_adjustable): Likewise.
(md_apply_fix3): Handle TLS relocs.

21 years ago * reloc.c: Add PPC and PPC64 TLS relocs.
Alan Modra [Tue, 4 Feb 2003 14:50:50 +0000 (14:50 +0000)]
* reloc.c: Add PPC and PPC64 TLS relocs.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf64-ppc.c (TP_OFFSET, DTP_OFFSET): Declare.
(ppc64_elf_howto_raw): Add TLS howto's.  Adjust R_PPC64_NONE to be
against a 32 bit field.
(ppc64_elf_reloc_type_lookup): Handle TLS relocs.
(_ppc64_elf_section_data): Add t_symndx and comments.
(ppc64_elf_section_data): Use elf_section_data macro.
(ppc64_elf_new_section_hook): American spelling.
(struct got_entry, struct plt_entry): New.
(MUST_BE_DYN_RELOC): Rename from IS_ABSOLUTE_RELOC.
(struct ppc_stub_hash_entry): Add "addend" field.
(struct ppc_link_hash_entry): Add "tls_type".
(TLS_TLS, TLS_GD_LD, TLS_LD, TLS_TPREL, TLS_DTPREL,
TLS_EXPLICIT): Define.
(struct ppc_link_hash_table): Add tls_sec, tls_get_addr, tlsld_got.
(link_hash_newfunc): Init new fields.
(ppc64_elf_link_hash_table_create): Likewise.  Set init_relcount and
init_offset to NULL.
(ppc64_elf_copy_indirect_symbol): Copy got and plt info.  Don't call
_bfd_elf_link_hash_copy_indirect, rather insert relevant code from
there.
(update_local_sym_info, update_plt_info): New functions.
(ppc64_elf_check_relocs): Use them.  Handle TLS relocs.  Adjust GOT
handling to use got.glist rather than got.refcount.  Likewise for PLT.
(ppc64_elf_gc_sweep_hook): Handle TLS relocs, new GOT and PLT lists.
(func_desc_adjust): Adjust for new PLT list.
(ppc64_elf_adjust_dynamic_symbol): Likewise.
(get_sym_h, get_tls_type): New functions.
(ppc64_elf_edit_opd): Remove unused variable.  Use get_sym_h.
(ppc64_elf_tls_optimize): New function.
(allocate_dynrelocs): Adjust for new PLT and GOT lists.  Allocate
TLS relocs.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc_type_of_stub): Adjust for new PLT list.
(ppc_build_one_stub): Likewise.
(ppc64_elf_size_stubs): Likewise.  Use get_sym_h.  Treat __tls_get_addr
calls specially.
(ppc64_elf_relocate_section): Adjust for new GOT and PLT lists.  Handle
TLS relocs.  Report local syms using bfd_elf_local_sym_name.  Don't
init GOT entries that have a reloc.  Generate GOT relocs here..
(ppc64_elf_finish_dynamic_symbol): ..not here.  Adjust for PLT list.
* elf64-ppc.h (ppc64_elf_tls_optimize): Declare.

21 years ago * ppc.h: Add TLS relocs. Format.
Alan Modra [Tue, 4 Feb 2003 14:48:36 +0000 (14:48 +0000)]
* ppc.h: Add TLS relocs.  Format.
* ppc64.h: Likewise.

21 years ago * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
Andreas Schwab [Tue, 4 Feb 2003 14:31:04 +0000 (14:31 +0000)]
* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
long and use %ld in printf format.

21 years ago * elf32-m68k.c (elf_m68k_hash_entry): Define.
Andreas Schwab [Tue, 4 Feb 2003 13:23:40 +0000 (13:23 +0000)]
* elf32-m68k.c (elf_m68k_hash_entry): Define.
(elf_m68k_link_hash_traverse): Remove.
(elf_m68k_link_hash_newfunc): Use struct bfd_hash_entry and
elf_m68k_hash_entry instead of struct elf_m68k_link_hash_entry to
reduce casting.
(elf_m68k_check_relocs): Use elf_m68k_hash_entry instead of
casting.
(elf_m68k_size_dynamic_sections): Use elf_link_hash_traverse
instead of elf_m68k_link_hash_traverse.
(elf_m68k_discard_copies): Change first parameter to pointer to
struct elf_link_hash_entry and use elf_m68k_hash_entry when struct
elf_m68k_link_hash_entry is needed.

21 years ago * elf-bfd.h (struct got_entry, struct plt_entry): Forward declare.
Alan Modra [Tue, 4 Feb 2003 12:49:57 +0000 (12:49 +0000)]
* elf-bfd.h (struct got_entry, struct plt_entry): Forward declare.
(struct elf_link_hash_entry): Add "glist" and "plist" fields to
"got" union, and declare as gotplt_union.  Use gotplt_uinion for
"plt" field.
(struct elf_link_hash_table): Make "init_refcount" a gotplt_union.
Add "init_offset" field.
(struct elf_obj_tdata <local_got>): Add "struct got_entry **" to union.
(elf_local_got_ents): Declare.
* elf.c (_bfd_elf_link_hash_newfunc): Adjust initialization of "got"
and "plt".
(_bfd_elf_link_hash_hide_symbol): Use "init_offset".
(_bfd_elf_link_hash_table_init): Set "init_offset".
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set init_refcount
from init_offset.
(elf_adjust_dynamic_symbol): Set plt and got offsets using init_offset.

* elf.c (bfd_elf_local_sym_name): Split out from..
(group_signature): ..here.
* elf-bfd.h (bfd_elf_local_sym_name): Declare.

21 years agobfd
Alan Modra [Tue, 4 Feb 2003 12:34:08 +0000 (12:34 +0000)]
bfd
* elf-bfd.h (enum elf_link_info_type): Remove.
(struct bfd_elf_section_data): Move sec_info_type, use_rela_p fields
to struct sec.  Remove linkonce_p field.
(elf_linkonce_p): Delete.
(elf_discarded_section): Update for sec_info_type change.
* section.c (struct sec): Add sec_info_type, use_rela_p, has_tls_reloc,
flag11, flag12, flag13, flag14, flag15, flag16, flag20, flag24.
(ELF_INFO_TYPE_NONE): Define.
(ELF_INFO_TYPE_STABS): Define.
(ELF_INFO_TYPE_MERGE): Define.
(ELF_INFO_TYPE_EH_FRAME): Define.
(ELF_INFO_TYPE_JUST_SYMS): Define.
(STD_SECTION): Update struct sec initializer.
* ecoff.c (bfd_debug_section): Likewise.
* elf.c: Likewise.  Update occurrences of sec_info_type and use_rela_p.
* elflink.h: Likewise.
* elf-eh-frame.c: Likewise.
* elf64-alpha.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
* bfd-in2.h: Regenerate.

* elf32-sparc.c (sec_do_relax): Use elf_section_data macro rather than
referring to used_by_bfd.
* elf64-sparc.c (sec_do_relax): Likewise.
* elf64-mmix.c (mmix_elf_section_data): Likewise.
* elfxx-mips.c (mips_elf_section_data): Likewise.
* ieee.c (ieee_slurp_section_data): Use ieee_per_section macro.
(ieee_get_section_contents): Likewise.
(ieee_new_section_hook): Formatting.
(ieee_canonicalize_reloc): Remove commented out code.
* mmo.c (mmo_section_data): Define.  Use throughout file.
* oasys.c (oasys_get_section_contents): Use oasys_per_section macro.

gas
* config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.

21 years agomerge from gcc
DJ Delorie [Tue, 4 Feb 2003 02:13:39 +0000 (02:13 +0000)]
merge from gcc

21 years ago * gas/cris/rd-dw2-1.d: Adjust for dwarf2 directory table change.
Hans-Peter Nilsson [Tue, 4 Feb 2003 00:01:53 +0000 (00:01 +0000)]
* gas/cris/rd-dw2-1.d: Adjust for dwarf2 directory table change.

21 years agodaily update
Alan Modra [Mon, 3 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
Daniel Jacobowitz [Mon, 3 Feb 2003 17:47:23 +0000 (17:47 +0000)]
* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
outside of GNU/Linux conditional.

21 years agodaily update
Alan Modra [Sun, 2 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agogas/
Richard Sandiford [Sun, 2 Feb 2003 19:37:20 +0000 (19:37 +0000)]
gas/
* config/tc-mips.c (enum small_ex_type): Remove.
(imm_unmatched_hi): Remove.
(md_assemble): Remove use of imm_unmatched_hi.  Remove the last
argument from calls to append_insn.
(append_insn): Remove unmatched_hi parameter; check reloc_type[0]
instead.
(macro_build): Update append_insn calls.
(mips16_macro_build, macro_build_lui): Likewise.
(mips_ip): Rework handling of small expressions.  Move explicit
relocation handling into my_getSmallExpression.  Assume that the
value of 'o' operands is zero if there is only one bracketed
expression left.
(percent_op): Make constant.  Record the BFD relocation code
associated with each operator.
(my_getSmallParser, my_getPercentOp): Remove.
(parse_relocation): New function.
(my_getSamllExpression): Rework.  Fill in relocations here
rather than in mips_ip.

gas/testsuite
* gas/mips/elf-rel8.[sd], gas/mips/elf-rel9.[sd],
gas/mips/elf-rel10.[sd], gas/mips/elf-rel11.[sd]: New tests.
* gas/mips/mips.exp: Run elf-rel8 and elf-rel9 for all elf
targets.  Run elf-rel10 and elf-rel11 for NewABI targets.

21 years agodaily update
Alan Modra [Sat, 1 Feb 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agodaily update
Alan Modra [Fri, 31 Jan 2003 23:59:42 +0000 (23:59 +0000)]
daily update

21 years ago * hppa.h (ldwa, ldda): Add ordered opcodes.
Dave Anglin [Fri, 31 Jan 2003 21:24:32 +0000 (21:24 +0000)]
    * hppa.h (ldwa, ldda): Add ordered opcodes.

21 years ago2003-01-31 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Fri, 31 Jan 2003 19:09:32 +0000 (19:09 +0000)]
2003-01-31  Frank Ch. Eigler  <fche@redhat.com>

* Makefile.tpl (all-sid): Add libiberty/bfd/opcodes dependencies.
* Makefile.in: Regenerated.

21 years agobfd_follow_gnu_debuglink: New function. Follow the pointer contained inside a
Nick Clifton [Fri, 31 Jan 2003 10:04:16 +0000 (10:04 +0000)]
bfd_follow_gnu_debuglink: New function.  Follow the pointer contained inside a
.gnu_debuglink section.

21 years agodaily update
Alan Modra [Thu, 30 Jan 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Thu, 30 Jan 2003 20:00:42 +0000 (20:00 +0000)]
merge from gcc

21 years ago* config.if: Copy from GCC.
Alexandre Oliva [Thu, 30 Jan 2003 11:59:17 +0000 (11:59 +0000)]
* config.if: Copy from GCC.

21 years agodaily update
Alan Modra [Wed, 29 Jan 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago(print_insn_sparc): When examining values added in to rs1, make sure that
Nick Clifton [Wed, 29 Jan 2003 12:51:57 +0000 (12:51 +0000)]
(print_insn_sparc): When examining values added in to rs1, make sure that
there are previous instructions.

21 years agoline_comment_chars: Add '#'. This makes the assembler's handling of
Nick Clifton [Wed, 29 Jan 2003 10:05:52 +0000 (10:05 +0000)]
line_comment_chars: Add '#'.  This makes the assembler's handling of
# <linenum> "<filename>" directives work.

21 years ago* elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
Alexandre Oliva [Wed, 29 Jan 2003 08:29:34 +0000 (08:29 +0000)]
* elfxx-mips.c (mips_elf_got_entry_hash): Don't dereference
entry->abfd when it's NULL.

21 years agodaily update
Alan Modra [Tue, 28 Jan 2003 23:00:04 +0000 (23:00 +0000)]
daily update

21 years ago* Makefile.in (all-subdir, check-subdir, installcheck-subdir)
Alexandre Oliva [Tue, 28 Jan 2003 21:53:39 +0000 (21:53 +0000)]
* Makefile.in (all-subdir, check-subdir, installcheck-subdir)
(info-subdir, install-info-subdir, clean-info-subdir)
(dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
(clean-subdir, distclean-subdir, maintainer-clean-subdir):
Pass $(FLAGS_TO_PASS).

21 years ago * readelf.c (dump_relocations): Reorder the r_info field for
Richard Sandiford [Tue, 28 Jan 2003 12:51:07 +0000 (12:51 +0000)]
* readelf.c (dump_relocations): Reorder the r_info field for
little-endian mips elf64.  Move #ifdef BFD64 to cover the new code.

21 years agoAdd code to prevent importing a dll multiple times.
Nick Clifton [Tue, 28 Jan 2003 11:39:43 +0000 (11:39 +0000)]
Add code to prevent importing a dll multiple times.

21 years agoAdd code to create and use directory tables.
Nick Clifton [Tue, 28 Jan 2003 11:20:36 +0000 (11:20 +0000)]
Add code to create and use directory tables.

21 years agoReplace occurences of 'tolower' with 'TOLOWER'.
Nick Clifton [Tue, 28 Jan 2003 11:02:40 +0000 (11:02 +0000)]
Replace occurences of 'tolower' with 'TOLOWER'.

21 years agoPatch from David Mosberger.
Jim Wilson [Tue, 28 Jan 2003 03:24:12 +0000 (03:24 +0000)]
Patch from David Mosberger.
* config/tc-ia64.c (dot_vframesp): Correct error message.
(dot_vframepsp): Ditto.

21 years ago* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
Alexandre Oliva [Tue, 28 Jan 2003 01:46:13 +0000 (01:46 +0000)]
* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
/`$$CC -print-multi-os-directory`.

21 years agoRemove duplicate date line
Alexandre Oliva [Tue, 28 Jan 2003 00:19:13 +0000 (00:19 +0000)]
Remove duplicate date line

21 years ago* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
Alexandre Oliva [Tue, 28 Jan 2003 00:18:45 +0000 (00:18 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Handle
_bfd_elf_section_offset returning -2 the same way as -1.

21 years ago* ld-mips-elf/multi-got-1.d: New.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:53 +0000 (00:01 +0000)]
* ld-mips-elf/multi-got-1.d: New.
* ld-mips-elf/multi-got-1-1.s: New.
* ld-mips-elf/multi-got-1-2.s: New.
* ld-mips-elf/mips-elf.exp (elf): mips*-*-irix* is elf.
Run multi-got-1.

21 years ago* elfxx-mips.c (mips_elf_multi_got): New function.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:27 +0000 (00:01 +0000)]
* elfxx-mips.c (mips_elf_multi_got): New function.
(struct mips_got_entry): Make symndx and gotidx signed.  Moved
addend into union along with address and link hash entry.
(struct mips_got_info): Added bfd2got and next.
(struct mips_elf_hash_sort_data): Added max_unref_got_dynindx.
(mips_elf_got_section, mips_elf_create_got_section): Use
SEC_EXCLUDE bit to tell whether we really need the got
section.  Take boolean arguments to disregard an excluded
section, or to create it as excluded.  Adjust all callers.
Use mips_elf_got_section all over.
(mips_elf_local_got_index, mips_elf_got_page,
mips_elf_got16_entry): Take input bfd as argument, and pass it
on to mips_elf_create_local_got_entry.
(mips_elf_global_got_index, mips_elf_create_local_got_entry):
Take input bfd as argument, and manage entries in the
appropriate GOT.
(mips_elf_got_offset_from_index): Take input bfd as argument,
and use it to adjust the GP offset of the bfd.
(mips_elf_sort_hash_table, mips_elf_sort_hash_table_f): Move
unreferenced GOT entries of global symbols to the end.
(mips_elf_record_global_got_symbol): Take input bfd as
argument.  Add entries to the master GOT hash table.
(struct mips_elf_bfd2got_hash): New.
(struct mips_elf_got_per_bfd_arg): New.
(struct mips_elf_set_global_got_offset_arg): New.
(mips_elf_hash_bfd_vma, mips_elf_multi_got_entry_hash,
mips_elf_multi_got_entry_eq, mips_elf_bfd2got_entry_hash,
mips_elf_bfd2got_entry_eq, mips_elf_make_got_per_bfd,
mips_elf_merge_gots, mips_elf_set_global_got_offset,
mips_elf_resolve_final_got_entry,
mips_elf_resolve_final_got_entries, mips_elf_adjust_gp,
mips_elf_got_for_ibfd): New functions.
(ELF_MIPS_GP_OFFSET): Don't depend on SGI_COMPAT.
(MIPS_ELF_GOT_MAX_SIZE): New macro.
(STUB_LW): Generate 64-bit stub regardless of SGI_COMPAT.
(mips_elf_got_entry_hash): Take new fields into account.  Use
mips_elf_hash_bfd_vma.
(mips_elf_got_entry_eq): Take new fields into account.
(mips_elf_create_got_section): Initialize new fields.
(mips_elf_calculate_relocation): Pass input_bfd to functions
that now take it.  Adjust gp for the input_bfd.
(mips_elf_allocate_dynamic_relocation,
mips_elf_create_dynamic_relocation,
_bfd_mips_elf_create_dynamic_sections): Use...
(mips_elf_rel_dyn_section): New function.  Borrow code from...
(_bfd_mips_elf_check_relocs): Pass input_bfd to functions that
now take it.  Create the got section if needed, even if
excluded, before recording a global got symbol.  Move some
code to...
(mips_elf_record_local_got_symbol): New fn.
(_bfd_mips_elf_size_dynamic_sections): Disable combreloc.
Compute multi-got global entries offsets.  Move GOT code to...
(_bfd_mips_elf_always_size_sections): Call mips_elf_multi_got
if the GOT is too big.
(_bfd_mips_elf_finish_dynamic_symbol): Set got entry of
undefweak symbol to zero.  Generate dynamic relocations for
non-primary GOT entries for global symbols.
(_bfd_mips_elf_finish_dynamic_sections): Handle multi-got
case.  Generate dynamic relocations for local got entries.
Sort dynamic relocations on N64 too, using...
(sort_dynamic_relocs_64): New fns.
(_bfd_mips_elf_hide_symbol): Adjust multi-got counters.
(_bfd_mips_elf_merge_private_bfd_data): Ignore EF_MIPS_XGOT.

21 years ago* mips.h (EF_MIPS_XGOT): Define.
Alexandre Oliva [Tue, 28 Jan 2003 00:01:08 +0000 (00:01 +0000)]
* mips.h (EF_MIPS_XGOT): Define.

21 years ago* bfd.c (struct _bfd): Added id field.
Alexandre Oliva [Mon, 27 Jan 2003 23:40:39 +0000 (23:40 +0000)]
* bfd.c (struct _bfd): Added id field.
* opncls.c (_bfd_id_counter): New static variable.
(_bfd_new_bfd): Use it.
* bfd-in2.h: Rebuilt.

21 years ago* gas/mips/n32-consec.d: New.
Alexandre Oliva [Mon, 27 Jan 2003 23:01:55 +0000 (23:01 +0000)]
* gas/mips/n32-consec.d: New.
* gas/mips/n32-consec.s: New.
* gas/mips/mips.exp (run_list_test_arches): Run it on irix6 and
mips64*-linux* systems.

21 years agodaily update
Alan Modra [Mon, 27 Jan 2003 23:00:05 +0000 (23:00 +0000)]
daily update

21 years ago* configure.in (em): Set to irix on all Irix systems.
Alexandre Oliva [Mon, 27 Jan 2003 22:45:58 +0000 (22:45 +0000)]
* configure.in (em): Set to irix on all Irix systems.
* configure: Rebuilt.
* config/te-irix.h: New file.
* config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
whether to use Irix-specific 64-bit format.

21 years ago* configure.in: Revert 24Jan change.
Alexandre Oliva [Mon, 27 Jan 2003 19:47:23 +0000 (19:47 +0000)]
* configure.in:  Revert 24Jan change.
* configure:  Regenerate.

21 years ago * Avoid designated initializers.
Martin Schwidefsky [Mon, 27 Jan 2003 08:44:21 +0000 (08:44 +0000)]
* Avoid designated initializers.

21 years agoinclude/
Daniel Jacobowitz [Sun, 26 Jan 2003 07:33:29 +0000 (07:33 +0000)]
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.
libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.

21 years ago * elf32-sparc.c (bfd_elf32_new_section_hook): Define.
Alan Modra [Sat, 25 Jan 2003 08:20:38 +0000 (08:20 +0000)]
* elf32-sparc.c (bfd_elf32_new_section_hook): Define.

21 years agomerge from gcc
DJ Delorie [Sat, 25 Jan 2003 00:23:30 +0000 (00:23 +0000)]
merge from gcc

21 years agobfd/
Jakub Jelinek [Fri, 24 Jan 2003 23:44:45 +0000 (23:44 +0000)]
bfd/
* elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs.
(elf32_sparc_rev32_howto): New variable.
(sparc_reloc_map): Add TLS relocs.
(elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto):
Handle REV32.
(sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject):
New functions.
(struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry,
struct elf32_sparc_link_hash_table):
New structures.
(elf32_sparc_tdata, elf32_sparc_local_got_tls_type,
elf32_sparc_hash_table): Define.
(link_hash_newfunc, elf32_sparc_link_hash_table_create,
create_got_section, elf32_sparc_create_dynamic_sections,
elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New
functions.
(elf32_sparc_check_relocs): Handle TLS relocs.  Add dynamic reloc
reference counting.
(elf32_sparc_gc_sweep_hook): Likewise.
(elf32_sparc_adjust_dynamic_symbol): Likewise.
(elf32_sparc_size_dynamic_sections): Likewise.
(elf32_sparc_relocate_section): Likewise.
(allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff):
New functions.
(elf32_sparc_object_p): Allocate backend private object data.
(bfd_elf32_bfd_link_hash_table_create,
elf_backend_copy_indirect_symbol, bfd_elf32_mkobject,
elf_backend_can_refcount): Define.
(elf_backend_create_dynamic_sections): Define to
elf32_sparc_create_dynamic_sections.
* reloc.c: Add SPARC TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs.
(sparc_reloc_map): Likewise.
gas/
* config/tc-sparc.c (sparc_ip): Handle TLS % operators.
(tc_gen_reloc): Handle TLS relocs.
(sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
* config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
relocs.
* config/obj-elf.c (obj_elf_section_word): Handle tls.
(obj_elf_type): Handle tls_object.
include/
* elf/sparc.h: Add TLS relocs.  Move R_SPARC_REV32 to 252.
ld/testsuite/
* ld-sparc/sparc.exp: New.
* ld-sparc/tlsg32.s: New test.
* ld-sparc/tlsg32.sd: Likewise.
* ld-sparc/tlsg64.s: Likewise.
* ld-sparc/tlsg64.sd: Likewise.
* ld-sparc/tlslib.s: Likewise.
* ld-sparc/tlsnopic.s: Likewise.
* ld-sparc/tlspic.s: Likewise.
* ld-sparc/tlssunbin32.dd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin32.s: Likewise.
* ld-sparc/tlssunbin32.sd: Likewise.
* ld-sparc/tlssunbin32.td: Likewise.
* ld-sparc/tlssunbin64.dd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunbin64.s: Likewise.
* ld-sparc/tlssunbin64.sd: Likewise.
* ld-sparc/tlssunbin64.td: Likewise.
* ld-sparc/tlssunbinpic32.s: Likewise.
* ld-sparc/tlssunbinpic64.s: Likewise.
* ld-sparc/tlssunnopic32.dd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic32.s: Likewise.
* ld-sparc/tlssunnopic32.sd: Likewise.
* ld-sparc/tlssunnopic64.dd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunnopic64.s: Likewise.
* ld-sparc/tlssunnopic64.sd: Likewise.
* ld-sparc/tlssunpic32.dd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic32.s: Likewise.
* ld-sparc/tlssunpic32.sd: Likewise.
* ld-sparc/tlssunpic32.td: Likewise.
* ld-sparc/tlssunpic64.dd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-sparc/tlssunpic64.s: Likewise.
* ld-sparc/tlssunpic64.sd: Likewise.
* ld-sparc/tlssunpic64.td: Likewise.

21 years agodaily update
Alan Modra [Fri, 24 Jan 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Fri, 24 Jan 2003 21:31:35 +0000 (21:31 +0000)]
merge from gcc

21 years ago * ld-s390/s390.exp: New file.
Martin Schwidefsky [Fri, 24 Jan 2003 17:20:25 +0000 (17:20 +0000)]
* ld-s390/s390.exp: New file.
* ld-s390/tlsbin_64.dd: New file.
* ld-s390/tlsbin_64.rd: New file.
* ld-s390/tlsbin_64.s: New file.
* ld-s390/tlsbin_64.sd: New file.
* ld-s390/tlsbin_64.td: New file.
* ld-s390/tlsbin.dd: New file.
* ld-s390/tlsbinpic_64.s: New file.
* ld-s390/tlsbinpic.s: New file.
* ld-s390/tlsbin.rd: New file.
* ld-s390/tlsbin.s: New file.
* ld-s390/tlsbin.sd: New file.
* ld-s390/tlsbin.td: New file.
* ld-s390/tlslib_64.s: New file.
* ld-s390/tlslib.s: New file.
* ld-s390/tlspic1_64.s: New file.
* ld-s390/tlspic1.s: New file.
* ld-s390/tlspic2_64.s: New file.
* ld-s390/tlspic2.s: New file.
* ld-s390/tlspic_64.dd: New file.
* ld-s390/tlspic_64.rd: New file.
* ld-s390/tlspic_64.sd: New file.
* ld-s390/tlspic_64.td: New file.
* ld-s390/tlspic.dd: New file.
* ld-s390/tlspic.rd: New file.
* ld-s390/tlspic.sd: New file.
* ld-s390/tlspic.td: New file.

21 years ago * s390.h: Add s390 TLS relocations.
Martin Schwidefsky [Fri, 24 Jan 2003 17:15:29 +0000 (17:15 +0000)]
* s390.h: Add s390 TLS relocations.

21 years ago * config/tc-s390.c (s390_tls_suffix): New function.
Martin Schwidefsky [Fri, 24 Jan 2003 17:14:25 +0000 (17:14 +0000)]
* config/tc-s390.c (s390_tls_suffix): New function.
(elf_suffix_type): Add suffix enums for TLS relocations.
(s390_elf_suffix): Add suffix strings for TLS relocations.
(s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
bfd relocations.
(md_gather_operands): Map new instruction operand/elf suffix
combinations for TLS to bfd relocations.
(tc_s390_fix_adjustable): Add new TLS relocations.
(tc_s390_force_relocation): Likewise.
(md_apply_fix3): Likewise.

21 years ago * bfd-in2.h: Regenerate.
Martin Schwidefsky [Fri, 24 Jan 2003 17:12:42 +0000 (17:12 +0000)]
* bfd-in2.h: Regenerate.
* elf32-s390.c (elf_s390_mkobject, elf_s390_tls_transition,
s390_tls_reloc, dtpoff_base, tpoff, invalid_tls_insn): New functions.
(elf_howto_table): Add TLS relocs.
(elf_s390_reloc_type_lookup): Likewise.
(elf_s390_link_hash_entry): Add tls_type.
(elf_s390_hash_entry, elf_s390_obj_tdata, elf_s390_local_got_tls_type):
New macros.
(elf_s390_link_hash_table): Add tls_ldm_got.
(link_hash_newfunc): Initialize tls_type.
(elf_s390_link_hash_table_create): Initialize refcount of tls_ldm_got.
(elf_s390_copy_indirect_symbol): Copy tls_type information.
(elf_s390_check_relocs): Support TLS relocs.
(elf_s390_gc_sweep_hook): Likewise.
(allocate_dynrelocs): Likewise.
(elf_s390_size_dynamic_sections): Likewise.
(elf_s390_relocate_section): Likewise.
(elf_s390_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject): Define for TLS.
* elf64-s390.c: Same changes as for elf32-s390.c.
* libbfd.h: Regenerate.
* reloc.c: Add s390 TLS relocations.

21 years ago Fix name of --enable-install-libbfd switch.
Nick Clifton [Fri, 24 Jan 2003 16:50:24 +0000 (16:50 +0000)]
 Fix name of --enable-install-libbfd switch.

21 years agoUpdate copyright date
Alan Modra [Fri, 24 Jan 2003 01:12:30 +0000 (01:12 +0000)]
Update copyright date

21 years agoNo, really this time.
Nathanael Nerode [Fri, 24 Jan 2003 00:39:51 +0000 (00:39 +0000)]
No, really this time.

21 years ago * config/tc-hppa.h (DIFF_EXPR_OK): Define.
Alan Modra [Thu, 23 Jan 2003 23:17:57 +0000 (23:17 +0000)]
* config/tc-hppa.h (DIFF_EXPR_OK): Define.
(MD_APPLY_SYM_VALUE): Move.

21 years agodaily update
Alan Modra [Thu, 23 Jan 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years ago * ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
Alan Modra [Thu, 23 Jan 2003 22:37:21 +0000 (22:37 +0000)]
* ld-alpha/tlsbin.sd: Cope with truncated address in data dumps.
* ld-alpha/tlsbin.td: Likewise.
* ld-alpha/tlsbinr.sd: Likewise.

21 years ago2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Thu, 23 Jan 2003 22:33:55 +0000 (22:33 +0000)]
2003-01-23  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.in: Revert previous change.
* configure: Regenerate.

21 years ago2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Thu, 23 Jan 2003 19:55:19 +0000 (19:55 +0000)]
2003-01-23  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.in: Make rda native-only.
* configure: Regenerate.

21 years agoAdd SH2E support
Nick Clifton [Thu, 23 Jan 2003 18:50:57 +0000 (18:50 +0000)]
Add SH2E support

21 years ago * gas/s390/reloc.s: Add test for PLT reloc against locally defined
Martin Schwidefsky [Thu, 23 Jan 2003 17:34:38 +0000 (17:34 +0000)]
* gas/s390/reloc.s: Add test for PLT reloc against locally defined
but global function.
* gas/s390/reloc.d: Likewise.
* gas/s390/reloc64.s: Likewise.
* gas/s390/reloc64.d: Likewise.

21 years ago * symbols.c (S_FORCE_RELOC): Add "strict" param.
Alan Modra [Thu, 23 Jan 2003 12:51:05 +0000 (12:51 +0000)]
* symbols.c (S_FORCE_RELOC): Add "strict" param.
* symbols.h (S_FORCE_RELOC): Likewise.
* config/obj-aout.h (S_FORCE_RELOC): Likewise.
* config/obj-bout.h (S_FORCE_RELOC): Likewise.
* config/obj-coff.h (S_FORCE_RELOC): Likewise.
* config/obj-ieee.h (S_FORCE_RELOC): Likewise.
* config/obj-vms.h (S_FORCE_RELOC): Likewise.
* write.c (generic_force_reloc): New function.
(TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
(TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
(adjust_reloc_syms): Adjust S_FORCE_RELOC call.
* as.h (generic_force_reloc): Declare.
* doc/internals.texi (S_FORCE_RELOC): Update.
(TC_FORCE_RELOCATION_SUB_SAME): Update.

* config/tc-alpha.c (alpha_force_relocation): Adjust to use
generic_force_reloc.
(alpha_fix_adjustable): Likewise.
* config/tc-arm.c (arm_force_relocation): Likewise.
* config/tc-cris.c (md_cris_force_relocation): Likewise.
* config/tc-frv.c (frv_force_relocation): Likewise.
* config/tc-i386.c (md_apply_fix3): Likewise.
* config/tc-ia64.c (ia64_force_relocation): Likewise.
* config/tc-ip2k.c (ip2k_force_relocation): Likewise.
* config/tc-m32r.c (m32r_force_relocation): Likewise.
* config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
* config/tc-mcore.c (mcore_force_relocation): Likewise.
* config/tc-mips.c (mips_force_relocation): Likewise.
* config/tc-mmix.c (mmix_force_relocation): Likewise.
* config/tc-ppc.c (ppc_force_relocation): Likewise.
* config/tc-s390.c (tc_s390_force_relocation): Likewise.
* config/tc-sh.c (sh_force_relocation): Likewise.
(md_pcrel_from_section): Likewise.
* config/tc-sparc.c (tc_gen_reloc): Likewise.
* config/tc-v850.c (v850_force_relocation): Likewise.
* config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
* config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
* config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
* config/tc-sparc.h (tc_fix_adjustable): Likewise.

* config/tc-d10v.c (d10v_force_relocation): Delete.
* config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-dlx.c (md_dlx_force_relocation): Delete.
* config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-fr30.c (fr30_force_relocation): Delete.
* config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-mn10300.c (mn10300_force_relocation): Delete.
* config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
(TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
* config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
* config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
* config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
* config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
* config/tc-openrisc.c (openrisc_force_relocation): Delete.
* config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
* config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
* config/tc-i386.c (i386_force_relocation): Delete.
* config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
BFD_ASSEMBLER.
(EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
* config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
* config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
S_FORCE_RELOC.
(TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
* config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.

21 years agoinclude/elf/ChangeLog
Alan Modra [Thu, 23 Jan 2003 11:51:35 +0000 (11:51 +0000)]
include/elf/ChangeLog
* sh.h: Split out various bits to bfd/elf32-sh64.h.

include/opcode/ChangeLog
* m68hc11.h (cpu6812s): Define.

bfd/ChangeLog
* elf-bfd.h (struct bfd_elf_section_data): Remove tdata.  Change
dynindx to an int.  Rearrange for better packing.
* elf.c (_bfd_elf_new_section_hook): Don't alloc if already done.
* elf32-mips.c (bfd_elf32_new_section_hook): Define.
* elf32-sh64.h: New.  Split out from include/elf/sh.h.
(struct _sh64_elf_section_data): New struct.
(sh64_elf_section_data): Don't dereference sh64_info (was tdata).
* elf32-sh64-com.c: Include elf32-sh64.h.
* elf32-sh64.c: Likewise.
(sh64_elf_new_section_hook): New function.
(bfd_elf32_new_section_hook): Define.
(sh64_elf_fake_sections): Adjust for sh64_elf_section_data change.
(sh64_bfd_elf_copy_private_section_data): Likewise.
(sh64_elf_final_write_processing): Likewise.
* elf32-sparc.c (struct elf32_sparc_section_data): New.
(elf32_sparc_new_section_hook): New function.
(SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
(sec_do_relax): Define.
(elf32_sparc_relax_section): Adjust to use sec_do_relax.
(elf32_sparc_relocate_section): Likewise.
* elf64-mips.c (bfd_elf64_new_section_hook): Define.
* elf64-mmix.c (struct _mmix_elf_section_data): New.
(mmix_elf_section_data): Define.  Use throughout file.
(mmix_elf_new_section_hook): New function.
(bfd_elf64_new_section_hook): Define.
* elf64-ppc.c (struct _ppc64_elf_section_data): New.
(ppc64_elf_section_data): Define.  Use throughout.
(ppc64_elf_new_section_hook): New function.
(bfd_elf64_new_section_hook): Define.
* elf64-sparc.c (struct sparc64_elf_section_data): New.
(sparc64_elf_new_section_hook): New function.
(SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete.
(sec_do_relax): Define.
(sparc64_elf_relax_section): Adjust to use sec_do_relax.
(sparc64_elf_relocate_section): Likewise.
(bfd_elf64_new_section_hook): Define.
* elfn32-mips.c (bfd_elf32_new_section_hook): Define.
* elfxx-mips.c (struct _mips_elf_section_data): New.
(mips_elf_section_data): Define.  Use throughout.
(_bfd_mips_elf_new_section_hook): New function.
(mips_elf_create_got_section): Don't alloc used_by_bfd.
* elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare.
* elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

opcodes/ChangeLog
* sh64-dis.c: Include elf32-sh64.h.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

gas/ChangeLog
* config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
sh64_elf_section_data.
* config/tc-sh64.h: Include elf32-sh64.h.
* config/tc-m68hc11.c: Don't include stdio.h.
(md_show_usage): Fix missing continuation.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

ld/ChangeLog
* emultempl/sh64elf.em: Include elf32-sh64.h.
(sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed
sh64_elf_section_data.
(sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.

21 years agoRemove an extra "i" in --dll-search-prefix.
Nick Clifton [Thu, 23 Jan 2003 09:30:44 +0000 (09:30 +0000)]
Remove an extra "i" in --dll-search-prefix.
Move a cross-80th-column-margin "an" to the next line.

21 years agodaily update
Alan Modra [Wed, 22 Jan 2003 23:00:06 +0000 (23:00 +0000)]
daily update

21 years agoInclude fopen-bin.h not fopen-same.h for mingw32 hosts.
Nick Clifton [Wed, 22 Jan 2003 10:10:25 +0000 (10:10 +0000)]
Include fopen-bin.h not fopen-same.h for mingw32 hosts.