OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
21 years agodaily update
Alan Modra [Mon, 21 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agodaily update
Alan Modra [Sun, 20 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-19 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 19 Oct 2002 17:13:58 +0000 (17:13 +0000)]
2002-10-19  H.J. Lu <hjl@gnu.org>

* elflink.h (elf_link_add_object_symbols): Correctly handle
DT_RPATH and DT_RUNPATH.
:VS: ----------------------------------------------------------------------

21 years ago* elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.
Mark Kettenis [Sat, 19 Oct 2002 13:52:58 +0000 (13:52 +0000)]
* elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.

21 years ago* config/tc-mips.c (md_begin): Add $fcc registers to the symbol
Alexandre Oliva [Sat, 19 Oct 2002 00:37:50 +0000 (00:37 +0000)]
* config/tc-mips.c (md_begin): Add $fcc registers to the symbol
table as register names.

21 years agodaily update
Alan Modra [Sat, 19 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
Martin Schwidefsky [Fri, 18 Oct 2002 07:30:06 +0000 (07:30 +0000)]
* config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
for option -m31.

21 years ago * expr.c (operand): Add support for n.nn flonums.
Alan Modra [Fri, 18 Oct 2002 01:56:39 +0000 (01:56 +0000)]
* expr.c (operand): Add support for n.nn flonums.

21 years agodaily update
Alan Modra [Fri, 18 Oct 2002 00:09:45 +0000 (00:09 +0000)]
daily update

21 years ago* emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
Alexandre Oliva [Thu, 17 Oct 2002 21:54:44 +0000 (21:54 +0000)]
* emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
(GENERATE_SHLIB_SCRIPT): Set to yes.
(EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
* emulparams/elf32bmipn32.sh: here.
(GENERATE_SHLIB_SCRIPT): Deleted as redundant.
* emulparams/elf32btsmipn32.sh: Delete redundant unsets.
* emulparams/elf64bmip-defs.sh: New file.  Extend
elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
* emulparams/elf64bmip.sh: Bring in definitions from
elf64bmip-defs.sh.
(ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
settings.
(WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
* emulparams/elf64btsmip.sh: Bring in definitions from
elf64bmip-defs.sh.
(ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
(EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.

21 years ago * elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code
Denis Chertykov [Thu, 17 Oct 2002 18:27:01 +0000 (18:27 +0000)]
* elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code
for ip2k port.

21 years ago * elfxx-target.h (USE_REL): Don't define as 1.
Alan Modra [Thu, 17 Oct 2002 02:59:15 +0000 (02:59 +0000)]
* elfxx-target.h (USE_REL): Don't define as 1.
* elf32-arm.h (USE_REL): Provide a default define of 0.
Use #if rather than #ifdef when testing USE_REL.
* elf32-m32r.c: Likewise.

* elf32-arc.c (USE_REL): Define as 1.
* elf32-d10v.c (USE_REL): Likewise.
* elf32-m32r.c (USE_REL): Likewise.
* elf32-m68hc11.c (USE_REL): Likewise.
* elf32-m68hc12.c (USE_REL): Likewise.
* elf32-or32.c (USE_REL): Likewise.
* elfarm-nabi.c (USE_REL): Likewise.

21 years ago * itbl-parse.y (entry): Provide empty action.
Alan Modra [Thu, 17 Oct 2002 01:29:36 +0000 (01:29 +0000)]
* itbl-parse.y (entry): Provide empty action.

21 years agodaily update
Alan Modra [Thu, 17 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago * config.bfd (s390-*-linux*): Add targ64_selvecs.
Jakub Jelinek [Wed, 16 Oct 2002 19:54:54 +0000 (19:54 +0000)]
* config.bfd (s390-*-linux*): Add targ64_selvecs.
(s390x-*-linux*): Add targ_selvecs.

* config.table: Use mh-s390pic for s390x too.

* configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
(s390-*-linux*): Add elf64_s390 emulation if want64.
* emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
genscript.sh changes.
* emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
* emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.

21 years agomerge from gcc
DJ Delorie [Wed, 16 Oct 2002 13:47:35 +0000 (13:47 +0000)]
merge from gcc

21 years ago * configure.in (BFDVER_H): Set and subst.
Alan Modra [Wed, 16 Oct 2002 13:27:04 +0000 (13:27 +0000)]
* configure.in (BFDVER_H): Set and subst.
* dep-in.sed: Replace bfdver.h with $(BFDVER_H).
* Makefile.am: Run "make dep-am".
(BFDVER_H): Define.
* configure: Regenerate.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

21 years ago * Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
Alan Modra [Wed, 16 Oct 2002 08:39:38 +0000 (08:39 +0000)]
* Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
elf32-i386-fbsd.lo, elf32-i386qnx.lo, elf32-ppcqnx.lo,
elf32-sh-lin.lo, elf32-sh64-lin.lo, elf32-sh-nbsd.lo,
elf32-sh64-nbsd.lo, elf32-shqnx.lo.  Add elf32-qnx.lo.
(BFD32_BACKENDS_CFILES): Likewise for corresponding C files.
(BFD64_BACKENDS): Remove elf64-sh64-lin.lo, elf64-sh64-nbsd.lo.
(BFD64_BACKENDS_CFILES): Likewise for corresponding C files.
(SOURCE_HFILES): Add elf32-qnx.h.
(BUILD_HFILES): Add bfdver.h.
Run "make dep-am".
* Makefile.in: Regenerate.
* configure.in Update bfd vector dependencies.
* configure: Regenerate.
* elf32-i386-fbsd.c: Delete.  Move code to elf32-i386.c.
* elf32-i386qnx.c: Likewise.
* elf32-ppcqnx.c: Delete.  Move code to elf32-ppc.c.
* elf32-sh-nbsd.c: Delete.  Move code to elf32-sh.c.
* elf32-sh-lin.c: Likewise.
* elf32-shqnx.c: Likewise.
* elf32-sh64-lin.c: Delete.  Move code to elf32-sh64.c.
* elf32-sh64-nbsd.c: Likewise.
* elf64-sh64-lin.c: Delete.  Move code to elf64-sh64.c.
* elf64-sh64-nbsd.c: Likewise.
* elfarmqnx-nabi.c: Delete.  Move code to elfarm-nabi.c.
* elf32-arm.h (ELF_MAXPAGESIZE): Always define.
* elf32-i386.c: Remove ELF_ARCH and ELF32_I386_C_INCLUDED tests.
* elf32-ppc.c: Remove ELF32_PPC_C_INCLUDED tests.
* elf32-qnx.h (elf_backend_set_nonloadable_filepos): Always define.
(elf_backend_is_contained_by_filepos): Likewise.
(elf_backend_copy_private_bfd_data_p): Likewise.
Globalize and move functions to..
* elf32-qnx.c: ..here.  New file.
* elf32-sh.c: Remove ELF_ARCH and ELF32_SH_C_INCLUDED tests.  Don't
emit target vectors when INCLUDE_SHMEDIA.
* elf32-sh64.c: Remove ELF_ARCH test.  Move TARGET_* etc. defines to
end of file.
* elf64-sh64.c: Remove ELF_ARCH test.
* elfarm-nabi.c: Remove ELFARM_NABI_C_INCLUDED test.
* po/BLD-POTFILES.in: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

21 years ago * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
Alan Modra [Wed, 16 Oct 2002 00:57:39 +0000 (00:57 +0000)]
* elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
loaded with --just-symbols.

21 years ago * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define.
Alan Modra [Wed, 16 Oct 2002 00:56:41 +0000 (00:56 +0000)]
* elf32-i386qnx.c (TARGET_LITTLE_NAME): Define.
* elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
* elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
* elfarmqnx-nabi.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.

21 years agodaily update
Alan Modra [Wed, 16 Oct 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years ago * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd.
Richard Henderson [Tue, 15 Oct 2002 17:14:51 +0000 (17:14 +0000)]
    * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd.
        (BFD64_BACKENDS_CFILES): Likewise.
        * configure.in (bfd_elf64_alpha_freebsd_vec): Use elf64-alpha.
        * elf64-alpha-fbsd.c: Remove file, move code ...
        * elf64-alpha.c: ... here.
        * Makefile.in, configure: Rebuild.

21 years ago * bucomm.c (list_supported_targets): Use bfd_target_list.
Alan Modra [Tue, 15 Oct 2002 11:34:01 +0000 (11:34 +0000)]
* bucomm.c (list_supported_targets): Use bfd_target_list.

21 years ago * objcopy.c (copy_file): Report ambiguous bfd_object matches, and
Alan Modra [Tue, 15 Oct 2002 05:10:48 +0000 (05:10 +0000)]
* objcopy.c (copy_file): Report ambiguous bfd_object matches, and
other object errors in preference to bfd_core errors.

21 years ago * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
Alan Modra [Tue, 15 Oct 2002 02:20:53 +0000 (02:20 +0000)]
* config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
(MD_APPLY_SYM_VALUE): Define for PE too.

21 years ago * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment
Richard Henderson [Tue, 15 Oct 2002 01:07:52 +0000 (01:07 +0000)]
    * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment
        VALUE, not ADDEND.

21 years ago * ldlang.c (load_symbols): Revert last change.
Alan Modra [Tue, 15 Oct 2002 00:09:02 +0000 (00:09 +0000)]
* ldlang.c (load_symbols): Revert last change.

21 years agodaily update
Alan Modra [Tue, 15 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago * ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.
Stephane Carrez [Mon, 14 Oct 2002 21:20:16 +0000 (21:20 +0000)]
* ld-m68hc11/m68hc11.exp: Specific tests for 68HC11/68HC12.
* ld-m68hc11/adj-jump.d: New test for linker relaxation.
* ld-m68hc11/adj-jump.s: Likewise.
* ld-m68hc11/adj-brset.s: Likewise.
* ld-m68hc11/adj-brset.d: Likewise.
* ld-m68hc11/relax-direct.s: Likewise.
* ld-m68hc11/relax-direct.d: Likewise.
* ld-m68hc11/relax-group.s: Likewise.
* ld-m68hc11/relax-group.d: Likewise.
* ld-m68hc11/bug-1403.d: Likewise.
* ld-m68hc11/bug-1403.s: Likewise.

21 years ago* elf32-sh.c (elf_sh_link_hash_entry): Replace
Stephen Clarke [Mon, 14 Oct 2002 19:29:54 +0000 (19:29 +0000)]
* elf32-sh.c (elf_sh_link_hash_entry): Replace
datalabel_got_offset with union of datalabel_got
offset and refcount.
(sh_elf_link_hash_newfunc): Initialize datalabel_got.refcount.
(allocate_dynrelocs): Delete unnecessary code for
STT_DATALABEL type.  Create entry in got for
datalabel version of symbol if datalabel_got.refcount > 0.
(sh_elf_relocate_section): Use datalabel_got union.
(sh_elf_gc_sweep_hook): Pull common code to initialize
h and eh out of switch statement.  Declare seen_stt_datalabel.
Initialize it.  Decrement datalabel_got.refcount for
got relocs when seen_stt_datalabel is true.
Decrement local_got_refcounts entry for datalabel got relocs
of local symbols.
(sh_elf_copy_indirect_symbol): Copy datalabel_got field over.
(sh_elf_check_relocs): Declare seen_stt_datalabel.
Initialize it.  When seen_stt_datalabel is true, increment
datalabel_got refcount rather than got.refcount.
(sh_elf_finish_dynamic_symbol): Create relocs to
initialize got entry for datalabel version of symbol.

21 years agold-sh/ld-r-1.d: Disable for sh64*-*-linux*.
Stephen Clarke [Mon, 14 Oct 2002 18:45:03 +0000 (18:45 +0000)]
ld-sh/ld-r-1.d: Disable for sh64*-*-linux*.
* ld-sh/sh64/sh64.exp: Likewise.
* ld-sh/sh.exp: Disable relaxing tests for sh64*-*-linux*.
* ld-sh/sh64/abi32.sd: Adjust expected output to include
sh64*-*-linux* formats too.
* ld-sh/sh64/relax.exp: Add emul32 variable to hold target
emulation, and set it appropriately for sh*-*-linux*.
* ld-sh/sh64/relfail.exp: Add variables to hold target
emulation, output format, start symbol, and whether target
supports 64-bit ABI.  Set appropriately for sh*-*-linux*.

21 years ago * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
Alan Modra [Mon, 14 Oct 2002 13:08:19 +0000 (13:08 +0000)]
* ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
just_syms_flag.
(lang_reasonable_defaults): Don't compare against false.
(size_input_section): Likewise.
(lang_size_sections_1): Likewise.
(lang_do_assignments): Likewise.
(lang_add_output): Likewise.

21 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Mon, 14 Oct 2002 12:09:18 +0000 (12:09 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* ldver.c: #include "bfdver.h".

21 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Mon, 14 Oct 2002 12:08:47 +0000 (12:08 +0000)]
* Makefile.am: Run "make dep-am".
(CPU_OBJ_VALID): sh64 coff is invalid.
* as.c: #include "bfdver.h".
* Makefile.in: Regenerate.
* config.in: Regenerate.

21 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Mon, 14 Oct 2002 12:07:58 +0000 (12:07 +0000)]
* Makefile.am: Run "make dep-am".
* objdump.c: #include "bfdver.h".
* version.c: Likewise.
* Makefile.in: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* po/POTFILES.in: Regenerate.

21 years ago * Makefile.in: Regenerate.
Alan Modra [Mon, 14 Oct 2002 12:06:23 +0000 (12:06 +0000)]
* Makefile.in: Regenerate.

21 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Mon, 14 Oct 2002 12:06:04 +0000 (12:06 +0000)]
* Makefile.am: Run "make dep-am".
(BFD_H_FILES): Remove version.h.
* bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move..
* version.h: ..to here.
* configure.in (bfd_version_date): Remove.
(AC_OUTPUT): Make bfdver.h from version.h.
* bfd.c: #include "bfdver.h".
* vms-hdr.c: Likewise.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* po/SRC-POTFILES.in: Regenerate.

21 years ago * config/tc-v850.c (CHECK_): Remove token pasting operator.
Alan Modra [Mon, 14 Oct 2002 11:28:57 +0000 (11:28 +0000)]
* config/tc-v850.c (CHECK_): Remove token pasting operator.

21 years ago * cgen.h: Test __BFD_H_SEEN__ rather than BFD_VERSION_DATE.
Alan Modra [Mon, 14 Oct 2002 10:55:14 +0000 (10:55 +0000)]
* cgen.h: Test __BFD_H_SEEN__ rather than BFD_VERSION_DATE.

21 years ago * configure.in (mips64vr-elf, mips64vrel-elf): New config.
Richard Sandiford [Mon, 14 Oct 2002 06:59:06 +0000 (06:59 +0000)]
* configure.in (mips64vr-elf, mips64vrel-elf): New config.
* configure: Regenerate.

21 years ago * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
Alan Modra [Mon, 14 Oct 2002 05:16:42 +0000 (05:16 +0000)]
* archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64,
bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64,
bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850,
bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8,
bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple,
bfd_mach_ia64_elf64, bfd_mach_ia64_elf32,
bfd_mach_ip2022, bfd_mach_ip2022ext,
bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber.
* bfd-in2.h: Regenerate.

21 years ago * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
Kaz Kojima [Mon, 14 Oct 2002 02:12:36 +0000 (02:12 +0000)]
* config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
endian vector to targ_selvecs.

21 years agodaily update
Alan Modra [Mon, 14 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago* config/tc-mips.c (s_gpdword): New function.
Alexandre Oliva [Sun, 13 Oct 2002 21:22:49 +0000 (21:22 +0000)]
* config/tc-mips.c (s_gpdword): New function.
(mips_pseudo_table): Add .gpdword.
(mips_need_elf_addend_fixup): never for NEWABI.
(md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
GPREL32 as done.
(s_cpadd): Generate .cpadd on NEWABI.

21 years ago* elfxx-mips.c (mips_elf_calculate_relocation): Take
Alexandre Oliva [Sun, 13 Oct 2002 21:22:31 +0000 (21:22 +0000)]
* elfxx-mips.c (mips_elf_calculate_relocation): Take
save_addend argument.  Don't apply the 32-bit mask to a
GPREL32 value if it's to be used in another relocation.  Don't
use forced-check computation of local_p to decide whether to
add gp0 to GPREL16 value.  Don't use only the lowest 16 bits
of the addend of a non-in-place GPREL16 relocation.
(_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
mips_elf_calculate_relocation().

21 years ago * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
Stephane Carrez [Sun, 13 Oct 2002 09:29:35 +0000 (09:29 +0000)]
* scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
.finiN section.
* scripttempl/elfm68hc12.sc: Likewise.

21 years ago * m68hc11-dis.c (print_insn): Treat bitmask and branch operands
Stephane Carrez [Sun, 13 Oct 2002 09:01:54 +0000 (09:01 +0000)]
* m68hc11-dis.c (print_insn): Treat bitmask and branch operands
at the end.

21 years agodaily update
Alan Modra [Sun, 13 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-12 H.J. Lu (hjl@gnu.org)
H.J. Lu [Sat, 12 Oct 2002 15:40:13 +0000 (15:40 +0000)]
2002-10-12  H.J. Lu  (hjl@gnu.org)

* ld-discard/extern.d: Remove $srcdir/$subdir/.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
* ld-linkonce/zeroehl32.d: Likewise.
* ld-selective/keepdot.d: Likewise.
* ld-selective/keepdot0.d: Likewise.

21 years ago * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
Stephane Carrez [Sat, 12 Oct 2002 14:00:55 +0000 (14:00 +0000)]
* elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
with symbols in other sections if we relaxed something;  the sections
output offsets must be re-computed before.

21 years ago * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
Stephane Carrez [Sat, 12 Oct 2002 13:35:25 +0000 (13:35 +0000)]
* elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
handling to use Elf_Internal_Sym.
(m68hc11_elf_relax_delete_bytes): Likewise.

21 years ago * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
Alan Modra [Sat, 12 Oct 2002 10:23:17 +0000 (10:23 +0000)]
* config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.

21 years ago* gas/mips/mips.exp: Don't xfail relax.
Alexandre Oliva [Sat, 12 Oct 2002 05:26:56 +0000 (05:26 +0000)]
* gas/mips/mips.exp: Don't xfail relax.
* gas/mips/relax.s: Increase coverage.
* gas/mips/relax.d: Add expected output.  Use relax.l for as stderr.
* gas/mips/relax.l: New file.

21 years ago* config/tc-mips.h (mips_relax_frag): Take segment as argument.
Alexandre Oliva [Sat, 12 Oct 2002 05:23:33 +0000 (05:23 +0000)]
* config/tc-mips.h (mips_relax_frag): Take segment as argument.
(md_relax_frag): Adjust macro.
* config/tc-mips.c (mips_relax_branch): New variable.
(RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
(RELAX_MIPS16_P): Adjust.
(append_insn): Emit branch to non-constant in a frag_var if
branch-relaxation is desirable and possible.
(OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
(OPTION_ELF_BASE): Adjust.
(md_parse_option): Handle new options.
(md_apply_fix3): Update comment on EMBEDDED_PIC conditional
branch relaxation.
(relaxed_branch_length): New function.
(md_estimate_size_before_relax): Handle branch frags.
(mips_relax_frag): Likewise.
(md_convert_frag): Handle branch frags.  Warn if branch is
relaxed.

21 years agodaily update
Alan Modra [Sat, 12 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago * ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
Kaz Kojima [Fri, 11 Oct 2002 14:44:55 +0000 (14:44 +0000)]
* ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
of linker to the file tmpdir/*-dso.so.
* ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New.
* ld-sh/tlsbin-0-dso.d: New.
* ld-sh/tlsbin-1.d: New.
* ld-sh/tlsbin-2.d: New.
* ld-sh/tlsbin-3.d: New.
* ld-sh/tlsbin-4.d: New.
* ld-sh/tlspic1.s, ld-sh/tlspic2.s: New.
* ld-sh/tlspic-1.d: New.
* ld-sh/tlspic-2.d: New.
* ld-sh/tlspic-3.d: New.
* ld-sh/tlspic-4.d: New.

21 years ago * gas/sh/tlsd.s, gas/sh/tlsd.d: New.
Kaz Kojima [Fri, 11 Oct 2002 14:42:51 +0000 (14:42 +0000)]
* gas/sh/tlsd.s, gas/sh/tlsd.d: New.
* gas/sh/tlsnopic.s, gas/sh/tlsnopic.d: New.
* gas/sh/tlspic.s, gas/sh/tlspic.d: New.
* gas/sh/basic.exp: Add new tests.

21 years ago * sh.h: Add SH TLS relocs.
Kaz Kojima [Fri, 11 Oct 2002 14:36:03 +0000 (14:36 +0000)]
* sh.h: Add SH TLS relocs.

21 years ago * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
Kaz Kojima [Fri, 11 Oct 2002 14:34:46 +0000 (14:34 +0000)]
* config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
emitted.
(md_apply_fix3): Add TLS relocs.
(sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
@DTPOFF.

21 years ago * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
Kaz Kojima [Fri, 11 Oct 2002 14:32:03 +0000 (14:32 +0000)]
* elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
sh_elf_object_p, dtpoff_base): New functions.
(sh_elf_howto_table): Add TLS relocs.
(sh_reloc_map): Likewise.
(sh_elf_info_to_howto): Support TLS relocs.
(elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
(sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
New macros.
(sh_elf_obj_tdata): New.
(elf_sh_link_hash_table): Add tls_ldm_got.
(sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
(allocate_dynrelocs): Support TLS relocs.
(sh_elf_size_dynamic_sections): Likewise.
(sh_elf_relocate_section): Support TLS relocs.  Don't try to find
.rela.got section when found already.  Return false after printing
error about unresolvable relocation.
(sh_elf_gc_sweep_hook): Support TLS relocs.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
* reloc.c: Add SH TLS relocs.
* libbfd.h: Regenerate.

21 years ago * bfd-in2.h: Regenerate.
Kaz Kojima [Fri, 11 Oct 2002 14:28:29 +0000 (14:28 +0000)]
* bfd-in2.h: Regenerate.

21 years ago * Makefile.am: Run dep-am.
Daniel Jacobowitz [Fri, 11 Oct 2002 13:53:33 +0000 (13:53 +0000)]
    * Makefile.am: Run dep-am.
        (BFD32_LIBS): Add simple.lo.
        (BFD32_LIBS_CFILES): Add simple.c.
        * Makefile.in: Regenerated.
        * bfd-in2.h: Regenerated.
        * simple.c: New file.

21 years ago * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.
Daniel Jacobowitz [Fri, 11 Oct 2002 13:52:53 +0000 (13:52 +0000)]
    * Makefile.am (BFD_H_DEP): Add simple.c and linker.c.
        * Makefile.in: Regenerated.

21 years ago * elf64-ppc.c (edit_opd): Correct local sym adjustment.
Alan Modra [Fri, 11 Oct 2002 12:59:06 +0000 (12:59 +0000)]
* elf64-ppc.c (edit_opd): Correct local sym adjustment.

21 years ago * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
Alan Modra [Fri, 11 Oct 2002 08:59:24 +0000 (08:59 +0000)]
* pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.

21 years agoFix numerous occurrences of
Alan Modra [Fri, 11 Oct 2002 08:33:11 +0000 (08:33 +0000)]
Fix numerous occurrences of
warning: dereferencing type-punned pointer will break strict-aliasing rules

21 years ago * ldgram.y (memory_spec): Provide empty action.
Alan Modra [Fri, 11 Oct 2002 07:39:07 +0000 (07:39 +0000)]
* ldgram.y (memory_spec): Provide empty action.
(section <NAME>): Likewise.

21 years ago * elf64-ppc.c (edit_opd): Only zero opd syms when function is
Alan Modra [Fri, 11 Oct 2002 04:36:13 +0000 (04:36 +0000)]
* elf64-ppc.c (edit_opd): Only zero opd syms when function is
completely removed.

21 years ago * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
Alan Modra [Fri, 11 Oct 2002 00:25:32 +0000 (00:25 +0000)]
* config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
(md_estimate_size_before_relax): Likewise for 8 bit branches.

21 years agodaily update
Alan Modra [Fri, 11 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update

21 years ago* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
Stephen Clarke [Thu, 10 Oct 2002 21:45:14 +0000 (21:45 +0000)]
* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
Correct mistake in calculation of address of .got.
* elf64-sh64.c (elf_sh64_pic_plt_entry_be,
elf_sh64_pic_plt_entry_le): Likewise.

21 years ago * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
Jakub Jelinek [Thu, 10 Oct 2002 15:59:10 +0000 (15:59 +0000)]
* ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
they have OUTPUT_FORMAT not matching actual output format.
* ldlang.c (lang_get_output_target): New function.
(open_output): Use it.
* ldlang.h (lang_get_output_target): New prototype.

21 years ago * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
Joern Rennecke [Thu, 10 Oct 2002 13:37:32 +0000 (13:37 +0000)]
* config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.

21 years ago * ld-i386/combreloc.s: New test.
Jakub Jelinek [Thu, 10 Oct 2002 07:49:11 +0000 (07:49 +0000)]
* ld-i386/combreloc.s: New test.
* ld-i386/combreloc.d: New test.
* ld-i386/i386.exp (i386tests): Add it.

21 years ago * ld-i386/i386.exp (reloc): Turn off combreloc.
Alan Modra [Thu, 10 Oct 2002 02:53:17 +0000 (02:53 +0000)]
* ld-i386/i386.exp (reloc): Turn off combreloc.
* ld-i386/reloc.d: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-powerpc/reloc.d: Likewise.

21 years ago * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
Alan Modra [Thu, 10 Oct 2002 02:52:27 +0000 (02:52 +0000)]
* emultempl/elf32.em (output_rel_find): Prefer .rel script sections
when orphan is .rel, .rela when orphan is .rela.
(gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
first.  Remove outsecname var.

21 years agodaily update
Alan Modra [Thu, 10 Oct 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years ago* gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
Stephen Clarke [Wed, 9 Oct 2002 19:40:42 +0000 (19:40 +0000)]
* gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
lsb in SHmedia code addresses.
* gas/sh/basic.exp: Force SHcompact for sh64*-*-linux* to enable
recognition of SH-1/2/3/4 instructions.
(proc do_fp): Do not run dsp tests for sh64*-*-linux*.
* gas/sh/sh64/abi-32.d: Adjust expected output to include
sh64*-*-linux* formats too.
* gas/sh/sh64/abi-64.d, gas/sh/sh64/basic-1.d,
gas/sh/sh64/case-1.d, gas/sh/sh64/case-noexp-1.d,
gas/sh/sh64/crange1-1.d, gas/sh/sh64/crange1-2.d,
gas/sh/sh64/crange2-1.d, gas/sh/sh64/crange2-2.d,
sh/sh64/crange2-noexp-1.d, gas/sh/sh64/crange3-1.d,
gas/sh/sh64/crange4-1.d, gas/sh/sh64/crange5-1.d,
gas/sh/sh64/creg-1.d, gas/sh/sh64/creg-2.d, gas/sh/sh64/datal-2.d,
gas/sh/sh64/datal32-1.d, gas/sh/sh64/datal32-3.d,
gas/sh/sh64/datal64-1.d, gas/sh/sh64/datal64-3.d,
gas/sh/sh64/endian-1.d, gas/sh/sh64/endian-2.d,
gas/sh/sh64/err-noexp-cmd1.s, gas/sh/sh64/immexpr32-1.d,
gas/sh/sh64/immexpr32-2.d, gas/sh/sh64/immexpr64-1.d,
gas/sh/sh64/immexpr64-2.d, gas/sh/sh64/lineno.d,
gas/sh/sh64/localcom-1.d, gas/sh/sh64/mix-1.d,
gas/sh/sh64/mix-noexp-1.d, gas/sh/sh64/movi-3.d,
gas/sh/sh64/movi32-1.d, gas/sh/sh64/movi32-2.d,
gas/sh/sh64/movi32-noexp-2.d, gas/sh/sh64/movi64-1.d,
gas/sh/sh64/movi64-2.d, gas/sh/sh64/movi64-3.d,
gas/sh/sh64/movi64-noexp-2.d, gas/sh/sh64/pt-1.d,
gas/sh/sh64/pt-noexp-1.d, gas/sh/sh64/pt32-1.d,
gas/sh/sh64/pt32-noexp-2.d, gas/sh/sh64/pt64-1.d,
gas/sh/sh64/pt64-32-1.d, gas/sh/sh64/pt64-32-2.d,
gas/sh/sh64/pt64-noexp-2.d, gas/sh/sh64/ptc32-1.d,
gas/sh/sh64/ptc32-noexp-1.d, gas/sh/sh64/ptc64-1.d,
gas/sh/sh64/ptc64-32-1.d, gas/sh/sh64/ptc64-noexp-1.d,
gas/sh/sh64/ptext32-1.d, gas/sh/sh64/ptext32-noexp-1.d,
gas/sh/sh64/ptext64-1.d, gas/sh/sh64/ptext64-32-1.d,
gas/sh/sh64/ptext64-noexp-1.d, gas/sh/sh64/rel32-1.d,
gas/sh/sh64/rel32-2.d, gas/sh/sh64/rel32-3.d,
gas/sh/sh64/rel32-4.d, gas/sh/sh64/rel32-5.d,
gas/sh/sh64/rel64-1.d, gas/sh/sh64/rel64-2.d,
gas/sh/sh64/rel64-3.d, gas/sh/sh64/rel64-4.d,
gas/sh/sh64/rel64-5.d, gas/sh/sh64/relax-1.d,
gas/sh/sh64/relax-2.d, gas/sh/sh64/relax-3.d,
gas/sh/sh64/shift32-1.d, gas/sh/sh64/shift32-3.d,
gas/sh/sh64/shift32-noexp-3.d, gas/sh/sh64/shift64-1.d,
gas/sh/sh64/shift64-2.d, gas/sh/sh64/shift64-3.d,
gas/sh/sh64/shift64-noexp-3.d, gas/sh/sh64/syntax-1.d,
gas/sh/sh64/syntax-2.d, gas/sh/sh64/ua32-1.d,
gas/sh/sh64/ua64-1.d: Likewise.

21 years ago* Makefile.am: Add eshelf32_linux.o and
Stephen Clarke [Wed, 9 Oct 2002 19:09:59 +0000 (19:09 +0000)]
* Makefile.am: Add eshelf32_linux.o and
eshlelf32_linux.o, new emulations for sh64 Linux.
* Makefile.in: Regenerate.
* configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
* emulparams/shelf32_linux.sh: New file.
* emulparams/shlelf32_linux.sh: New file.

21 years ago* config/tc-sh64.c (sh64_target_format): Add support for sh64
Stephen Clarke [Wed, 9 Oct 2002 19:07:43 +0000 (19:07 +0000)]
* config/tc-sh64.c (sh64_target_format): Add support for sh64
Linux environment.

21 years ago* Makefile.am: Add entries for elf32-sh64-lin.c and
Stephen Clarke [Wed, 9 Oct 2002 19:03:57 +0000 (19:03 +0000)]
* Makefile.am: Add entries for elf32-sh64-lin.c and
elf64-sh64-lin.c. Regenerate.
* Makefile.in: Regenerate.
* config.bfd:  Change sh64eb-*-linux* and sh64-*-linux*
to use sh64 vectors rather than sh vectors.
* configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
* configure: Regenerate.
* elf32-sh64-lin.c: New file.
* elf64-sh64-lin.c: New file.
* targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.

21 years ago * readelf.c (display_debug_info): Ignore empty .rela.debug_info
Daniel Jacobowitz [Wed, 9 Oct 2002 13:44:27 +0000 (13:44 +0000)]
    * readelf.c (display_debug_info): Ignore empty .rela.debug_info
        sections.  Allow relocations against the absolute symbol.  Don't
        use the value in compunit.cu_abbrev_offset if we found a RELA
        relocation.

21 years agodaily update
Alan Modra [Wed, 9 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2002-10-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 8 Oct 2002 20:12:45 +0000 (20:12 +0000)]
2002-10-08  H.J. Lu <hjl@gnu.org>

* ldlang.c (lang_file_exist): Removed.
(new_afile): Revert the last change.
* ldlang.h (lang_file_exist): Removed.
* lexsup.c (parse_args): Revert the last change.

21 years ago2002-10-08 H.J. Lu <hjl@gnu.org>
H.J. Lu [Tue, 8 Oct 2002 16:11:07 +0000 (16:11 +0000)]
2002-10-08  H.J. Lu <hjl@gnu.org>

* elf32-i386.c (elf_i386_relocate_section): Re-arrange the
IE->LE transition for R_386_TLS_IE.

21 years ago * elf64-ppc.c (edit_opd): Correct test for discarded sections.
Alan Modra [Tue, 8 Oct 2002 09:51:09 +0000 (09:51 +0000)]
* elf64-ppc.c (edit_opd): Correct test for discarded sections.

21 years agodaily update
Alan Modra [Tue, 8 Oct 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years agoRead in dynamic symbols if no ordinary ones are available.
Nick Clifton [Mon, 7 Oct 2002 17:25:08 +0000 (17:25 +0000)]
Read in dynamic symbols if no ordinary ones are available.

21 years agoAdd tic4x target.
Nick Clifton [Mon, 7 Oct 2002 16:40:56 +0000 (16:40 +0000)]
Add tic4x target.

21 years agoDon't re-export auto-import symbols.
Nick Clifton [Mon, 7 Oct 2002 16:36:11 +0000 (16:36 +0000)]
Don't re-export auto-import symbols.

21 years agoDon't mark relocations in excluded sections.
Nick Clifton [Mon, 7 Oct 2002 16:27:39 +0000 (16:27 +0000)]
Don't mark relocations in excluded sections.

21 years agoAbort if the filename to be added matches the linker output filename.
Nick Clifton [Mon, 7 Oct 2002 16:08:21 +0000 (16:08 +0000)]
Abort if the filename to be added matches the linker output filename.

21 years ago * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
Alan Modra [Mon, 7 Oct 2002 00:14:28 +0000 (00:14 +0000)]
* elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
code.

21 years ago * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
Alan Modra [Mon, 7 Oct 2002 00:06:01 +0000 (00:06 +0000)]
* elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.

21 years agodaily update
Alan Modra [Mon, 7 Oct 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years agomerge from gcc
DJ Delorie [Sun, 6 Oct 2002 20:21:01 +0000 (20:21 +0000)]
merge from gcc

21 years ago * opncls.c: Formatting.
Alan Modra [Sun, 6 Oct 2002 09:03:06 +0000 (09:03 +0000)]
* opncls.c: Formatting.
(_bfd_new_bfd): Use a smaller section hash table.

21 years agodaily update
Alan Modra [Sun, 6 Oct 2002 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago* elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
Alexandre Oliva [Sat, 5 Oct 2002 11:18:13 +0000 (11:18 +0000)]
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
of the other two relocations packed with a REL32 to NONE.

21 years agodaily update
Alan Modra [Sat, 5 Oct 2002 00:00:04 +0000 (00:00 +0000)]
daily update