OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
21 years ago* config/tc-vax.c (md_estimate_size_before_relax): Only try to
Jason Thorpe [Sat, 28 Sep 2002 20:01:43 +0000 (20:01 +0000)]
* config/tc-vax.c (md_estimate_size_before_relax): Only try to
convert undefined references to GOT32/PLT32 if PIC code is
requested.  Fix comment.

21 years ago * elf.c (map_sections_to_segments): Correct test for start of
Alan Modra [Sat, 28 Sep 2002 03:25:56 +0000 (03:25 +0000)]
* elf.c (map_sections_to_segments): Correct test for start of
writable section in the same page as end of read-only section.

21 years ago * configure.in (powerpc-*-darwin*): Don't configure BFD, TK, or the
Geoffrey Keating [Sat, 28 Sep 2002 01:44:34 +0000 (01:44 +0000)]
* configure.in (powerpc-*-darwin*): Don't configure BFD, TK, or the
things that depend on them.

21 years ago2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
Daniel Jacobowitz [Sat, 28 Sep 2002 00:41:27 +0000 (00:41 +0000)]
2002-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>

        * config/tc-sh.c (sh_force_relocation): Return 0 for
        some PC relative relocations when not relaxing.
        * testsuite/gas/sh/pcrel2.s: New.
        * testsuite/gas/sh/pcrel2.d: New.
        * testsuite/gas/sh/basic.exp: Add pcrel2 test.

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

21 years ago* gas/vax/elf-rel.[ds]: New test.
Jason Thorpe [Fri, 27 Sep 2002 23:36:01 +0000 (23:36 +0000)]
* gas/vax/elf-rel.[ds]: New test.
* gas/vax/quad.exp: Move contents to...
* gas/vax/vax.exp: ...here.  New file.

21 years ago* elf32-vax.c (elf_vax_check_relocs): Remove unused
Jason Thorpe [Fri, 27 Sep 2002 22:28:17 +0000 (22:28 +0000)]
* elf32-vax.c (elf_vax_check_relocs): Remove unused
local_got_refcounts usage.  Remove allocation of got slot.
(elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage.
Remove de-allocation of got slot.
(elf_vax_size_dynamic_section): Fix some indentation.  Add hash
traversal for elf_vax_instantiate_got_entries.  Allow empty .got
sections to be GC'ed.
(elf_vax_instantiate_got_entries): New function.
(elf_vax_relocate_section): Simplify R_VAX_GOT32 handling.  Remove
tests that are now handled by elf_vax_instantiate_got_entries.
Assert GOT entry falls within .got section size.  Remove redundant
comparisions.  Fix comments.

21 years agobfd/
Jakub Jelinek [Fri, 27 Sep 2002 19:29:18 +0000 (19:29 +0000)]
bfd/
* reloc.c: Add x86-64 TLS relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
relocs.  Add TLS relocs.
(x86_64_reloc_map): Add TLS relocs.
(elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
(struct elf64_x86_64_link_hash_entry): Add tls_type field.
(GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
(elf64_x86_64_hash_entry): Define.
(struct elf64_x86_64_obj_tdata): New.
(elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
(struct elf64_x86_64_link_hash_table): Add tls_ld_got.
(link_hash_newfunc): Initialize tls_type.
(elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
(elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
(elf64_x86_64_mkobject): New.
(elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
(elf64_x86_64_tls_transition): New.
(elf64_x86_64_check_relocs): Add r_type variable and use it.
Handle TLS relocs.
(elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
(allocate_dynrelocs): Allocate GOT space for TLS relocs.
(elf64_x86_64_size_dynamic_sections): Likewise.
(dtpoff_base, tpoff): New.
(elf64_x86_64_relocate_section): Handle TLS relocs.
(elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
entries.
(bfd_elf64_mkobject): Define.

* elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
DF_STATIC_TLS if shared.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
Define them if not BFD_ASSEMBLER.
(lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
@tlsld.
(md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
(tc_gen_reloc): Handle x86-64 TLS relocs.
include/
* elf/x86-64.h: Add TLS relocs.
ld/testsuite/
* lib/ld-lib.exp (run_ld_link_tests): Add.
* ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff,
file_contents): Remove.
(sh64tests): Add 6th field to the tests array.
* ld-i386/i386.exp (run_ld_link_tests): Remove.
* ld-x86-64/x86-64.exp: New.
* ld-x86-64/tlsbin.dd: New test.
* ld-x86-64/tlsbinpic.s: New test.
* ld-x86-64/tlsbin.rd: New test.
* ld-x86-64/tlsbin.s: New test.
* ld-x86-64/tlsbin.sd: New test.
* ld-x86-64/tlsbin.td: New test.
* ld-x86-64/tlslib.s: New test.
* ld-x86-64/tlspic1.s: New test.
* ld-x86-64/tlspic2.s: New test.
* ld-x86-64/tlspic.dd: New test.
* ld-x86-64/tlspic.rd: New test.
* ld-x86-64/tlspic.sd: New test.
* ld-x86-64/tlspic.td: New test.

21 years ago2002-09-27 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 27 Sep 2002 14:53:16 +0000 (14:53 +0000)]
2002-09-27  H.J. Lu <hjl@gnu.org>

* gas/mips/mips-jalx.s: Add ".p2align 4".
* gas/mips/mips16-jalx.s: Likewise.

* gas/mips/mips-jalx.d: Check nop.
* gas/mips/mips16-jalx.d: Likewise.

21 years ago * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
Alan Modra [Fri, 27 Sep 2002 04:38:47 +0000 (04:38 +0000)]
* config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
fixups to current or absolute section.

21 years agodaily update
Alan Modra [Fri, 27 Sep 2002 00:00:03 +0000 (00:00 +0000)]
daily update

21 years agoFix v850 .offset pseudo-op
Jim Wilson [Thu, 26 Sep 2002 22:04:19 +0000 (22:04 +0000)]
Fix v850 .offset pseudo-op
* config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
and frag_more.

21 years ago2002-09-26 Andrew Cagney <ac131313@redhat.com>
Andrew Cagney [Thu, 26 Sep 2002 19:40:29 +0000 (19:40 +0000)]
2002-09-26  Andrew Cagney  <ac131313@redhat.com>

* regs/: Delete directory.

21 years ago /gas/ChangeLog
Thiemo Seufer [Thu, 26 Sep 2002 09:56:35 +0000 (09:56 +0000)]
/gas/ChangeLog
* config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
capable configuration.
(macro_build): Check for MIPS16 capability, not for actual MIPS16 code
generation.
(mips_ip): Likewise.

/gas/testsuite/ChangeLog
* gas/mips/mips-jalx.d: New file, check jalx assembly.
* gas/mips/mips-jalx.s: Likewise.
* gas/mips/mips-no-jalx.l: Likewise.
* gas/mips/mips-no-jalx.s: Likewise.
* gas/mips/mips16-jalx.d: Likewise.
* gas/mips/mips16-jalx.s: Likewise.
* gas/mips/mips.exp: Add new tests.

/opcodes/ChangeLog:
* mips-dis.c (print_insn_mips): Always allow disassembly of
32-bit jalx opcode.

21 years ago * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
Thiemo Seufer [Thu, 26 Sep 2002 09:10:57 +0000 (09:10 +0000)]
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
empty relocation sections.

21 years ago * config/tc-mips.c (append_insn): Fix jump overflow check.
Thiemo Seufer [Thu, 26 Sep 2002 09:00:08 +0000 (09:00 +0000)]
* config/tc-mips.c (append_insn): Fix jump overflow check.
* gas/mips/jal-range.s: Fix jump overflow check.
* gas/mips/jal-range.l: Likewise.

21 years ago * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
Alan Modra [Thu, 26 Sep 2002 05:19:38 +0000 (05:19 +0000)]
* elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
(ppc64_elf_build_stubs): Build them here instead.

21 years ago2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Thu, 26 Sep 2002 04:25:16 +0000 (04:25 +0000)]
2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Make subsituted variables more autoconfy.
* Makefile.in: Regenerate.
* configure: Make seds more autoconfy.

21 years agodaily update
Alan Modra [Thu, 26 Sep 2002 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 25 Sep 2002 17:25:27 +0000 (17:25 +0000)]
2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Rewrite substituted lines to look autoconfy.
* Makefile.in: Regenerate.
* configure.in: Rewrite sed statements to look autoconfy.

21 years ago From "Anita Kulkarni" <AnitaK@kpit.com>
Daniel Jacobowitz [Wed, 25 Sep 2002 17:06:09 +0000 (17:06 +0000)]
    From "Anita Kulkarni" <AnitaK@kpit.com>
        * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
        sections.

21 years agoReally rebuild it this time. :sigh:
Nathanael Nerode [Wed, 25 Sep 2002 16:56:04 +0000 (16:56 +0000)]
Really rebuild it this time. :sigh:

21 years ago2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Wed, 25 Sep 2002 16:53:08 +0000 (16:53 +0000)]
2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
* Makefile.tpl: Autogenerate *-target-* lists, dependencies of
all-target-foo on configure-target-foo.
* Makefile.def: Ditto.
* Makefile.in: Rebuild.

21 years ago * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
Alan Modra [Wed, 25 Sep 2002 07:21:08 +0000 (07:21 +0000)]
* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
TARGET_PAGE_SIZE.
* scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
SEGMENT_SIZE alignment.
* emulparams/elf64ppc.sh (DATA_ADDR): Delete.
(SEGMENT_SIZE): Define.

21 years ago * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
Alan Modra [Wed, 25 Sep 2002 02:42:13 +0000 (02:42 +0000)]
* ldexp.c (fold_unary): New.  Split out from exp_fold_tree.
(fold_binary): Correct abs - non-abs case.
(fold_trinary): New.  Split out from exp_fold_tree.

21 years agodaily update
Alan Modra [Wed, 25 Sep 2002 00:00:09 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Tue, 24 Sep 2002 23:01:30 +0000 (23:01 +0000)]
2002-09-22  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: New file.
* Makefile.tpl: New file.
* Makefile.in: Generate from Makefile.tpl with 'autogen Makefile.def'.

* configure.in: Minor rearrangement.  Simplify tests.

21 years ago * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE
Jakub Jelinek [Tue, 24 Sep 2002 15:54:22 +0000 (15:54 +0000)]
* elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE
addend into r_addend, not *r_offset.
(elf32_sparc_finish_dynamic_symbol): Likewise.
* elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at
R_SPARC_RELATIVE's r_offset.

21 years agoUpdated German translation.
Nick Clifton [Tue, 24 Sep 2002 13:00:33 +0000 (13:00 +0000)]
Updated German translation.

21 years agoFix typo introduced with previous delta.
Nick Clifton [Tue, 24 Sep 2002 07:11:16 +0000 (07:11 +0000)]
Fix typo introduced with previous delta.

21 years ago * emulparams/elf64ppc.sh (DATA_ADDR): Define.
Alan Modra [Tue, 24 Sep 2002 04:02:03 +0000 (04:02 +0000)]
* emulparams/elf64ppc.sh (DATA_ADDR): Define.
* emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
for start of .data, instead align up to 256M boundary.
* scripttempl/aix.sc: Likewise.

21 years ago * config/tc-i386.c (process_operands): Warn about "lea" segment
Alan Modra [Tue, 24 Sep 2002 01:46:42 +0000 (01:46 +0000)]
* config/tc-i386.c (process_operands): Warn about "lea" segment
overrides.

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

21 years ago* configure.in (with_headers): Skip copy if value is "yes".
Jason Thorpe [Mon, 23 Sep 2002 23:36:54 +0000 (23:36 +0000)]
* configure.in (with_headers): Skip copy if value is "yes".
(with_libs): Likewise.

21 years agoAdd missing ChangeLog entry
Daniel Jacobowitz [Mon, 23 Sep 2002 21:29:27 +0000 (21:29 +0000)]
Add missing ChangeLog entry

21 years agoAdd LDM and STM instructions which are unpredictable because of their use of
Nick Clifton [Mon, 23 Sep 2002 16:46:33 +0000 (16:46 +0000)]
Add LDM and STM instructions which are unpredictable because of their use of
the writeback bit.

21 years agoUpdate to correctly decode (non-standard DWARF2) out-of-order address sequences.
Nick Clifton [Mon, 23 Sep 2002 16:13:52 +0000 (16:13 +0000)]
Update to correctly decode (non-standard DWARF2) out-of-order address sequences.

21 years agomerge from gcc
DJ Delorie [Mon, 23 Sep 2002 12:08:57 +0000 (12:08 +0000)]
merge from gcc

21 years ago* config.bfd: For DJGPP targets, match with any cpu and any machine.
DJ Delorie [Mon, 23 Sep 2002 11:59:34 +0000 (11:59 +0000)]
* config.bfd: For DJGPP targets, match with any cpu and any machine.

21 years ago* write.c: Delete set_segment_vma and prototype. Update all callers.
DJ Delorie [Mon, 23 Sep 2002 11:58:00 +0000 (11:58 +0000)]
* write.c: Delete set_segment_vma and prototype. Update all callers.

21 years ago* scripttempl/i386go32.sc: Handle bss unique sections.
DJ Delorie [Mon, 23 Sep 2002 11:36:15 +0000 (11:36 +0000)]
* scripttempl/i386go32.sc: Handle bss unique sections.

21 years ago * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
Alan Modra [Mon, 23 Sep 2002 10:52:03 +0000 (10:52 +0000)]
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
for discarded FDEs.  Remove redundant assignment.
* elflink.h (elf_bfd_discard_info): Save edited relocs.

21 years agodaily update
Alan Modra [Mon, 23 Sep 2002 00:00:09 +0000 (00:00 +0000)]
daily update

21 years ago2002-09-22 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 22 Sep 2002 22:32:49 +0000 (22:32 +0000)]
2002-09-22  H.J. Lu <hjl@gnu.org>

* elf64-alpha.c (elf64_alpha_merge_ind_symbols): Don't merge
the relocation count between different .reloc sections.

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

21 years ago2002-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Sat, 21 Sep 2002 16:35:47 +0000 (16:35 +0000)]
2002-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.in (*-*-netbsd*): Use noconfigdirs, not skipdirs.
* configure.in (sh*-*-pe*): Ditto.
* configure.in (mips*-*-pe*): Ditto.
* configure.in (*arm-wince-pe): Ditto.

21 years ago * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
Alan Modra [Sat, 21 Sep 2002 14:14:25 +0000 (14:14 +0000)]
* ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.

21 years ago * ld-undefined/undefined.exp: Adjust function test.
Alan Modra [Sat, 21 Sep 2002 14:14:00 +0000 (14:14 +0000)]
* ld-undefined/undefined.exp: Adjust function test.

21 years ago * Makefile.am: Run "make dep-am".
Alan Modra [Sat, 21 Sep 2002 10:49:05 +0000 (10:49 +0000)]
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.

21 years ago * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
Alan Modra [Sat, 21 Sep 2002 10:39:17 +0000 (10:39 +0000)]
* config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
S_IS_WEAK etc. with S_FORCE_RELOC call.  Correct comment.
Rename "fseg" to "sym_seg".
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.

21 years ago * elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and
Alan Modra [Sat, 21 Sep 2002 10:09:13 +0000 (10:09 +0000)]
* elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and
".sdata.*" for R_PPC_SDAREL16, ".sbss2*" and ".sdata2*" for
R_PPC_EMB_SDA2REL.  Similarly for R_PPC_EMB_SDA21 and
R_PPC_EMB_RELSDA.

21 years ago * elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount"
Alan Modra [Sat, 21 Sep 2002 09:59:19 +0000 (09:59 +0000)]
* elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount"
unsigned.  Move "symcount" assignment out of loop.
* Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.
* configure: Regenerate.
* po/SRC-POTFILES.in: Regnerate.

21 years agoFix UNPREDICATABLE use of writeback in LDM/STM instructions.
Nick Clifton [Sat, 21 Sep 2002 07:27:43 +0000 (07:27 +0000)]
Fix UNPREDICATABLE use of writeback in LDM/STM instructions.

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

21 years ago2002-09-20 Nathanael Nerode <neroden@doctor.moo.mud.org>
Nathanael Nerode [Fri, 20 Sep 2002 21:03:04 +0000 (21:03 +0000)]
2002-09-20  Nathanael Nerode  <neroden@doctor.moo.mud.org>

* configure.in: Rearrange.

21 years agoAllow CRFS and CRFD operands to accept CR register names
Nick Clifton [Fri, 20 Sep 2002 15:44:23 +0000 (15:44 +0000)]
Allow CRFS and CRFD operands to accept CR register names

21 years agosymbols.c (colon): Do not allow symbols to be created in the absolute section
Nick Clifton [Fri, 20 Sep 2002 14:47:14 +0000 (14:47 +0000)]
symbols.c (colon): Do not allow symbols to be created in the absolute section
if WORKING_DOT_WORD is not defined and new_broken_words would require a new
frag to be created.

21 years agomerge from gcc
DJ Delorie [Fri, 20 Sep 2002 13:45:20 +0000 (13:45 +0000)]
merge from gcc

21 years ago * ld-i386/i386.exp: Only run tests on ELF targets.
Alan Modra [Fri, 20 Sep 2002 07:57:08 +0000 (07:57 +0000)]
* ld-i386/i386.exp: Only run tests on ELF targets.

21 years ago(_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 for
Nick Clifton [Fri, 20 Sep 2002 07:28:54 +0000 (07:28 +0000)]
(_bfd_dwarf2_find_nearest_line): If address length is zero, set it to 8 for
(non-standard) 64-bit DWARF2 formats (e.g. IRIX64).

21 years agoDo not allow symbols to be created in the absolute section.
Nick Clifton [Fri, 20 Sep 2002 06:57:41 +0000 (06:57 +0000)]
Do not allow symbols to be created in the absolute section.

21 years ago2002-09-19 Jakub Jelinek <jakub@redhat.com>
H.J. Lu [Fri, 20 Sep 2002 05:54:41 +0000 (05:54 +0000)]
2002-09-19  Jakub Jelinek  <jakub@redhat.com>

* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word
even if generating R_PPC_RELATIVE reloc.
(ppc_elf_relocate_section): Make sure relocation is performed
if skip == -2.  Clear memory at r_offset when creating dynamic
relocation.

21 years ago * expr.c (expr): Simplify foo-foo here.
Alan Modra [Fri, 20 Sep 2002 00:58:39 +0000 (00:58 +0000)]
* expr.c (expr): Simplify foo-foo here.
(clean_up_expression): Remove O_subtract code.

21 years ago* libiberty.h (asprintf, vasprintf): Don't declare them if the
Alexandre Oliva [Fri, 20 Sep 2002 00:21:58 +0000 (00:21 +0000)]
* libiberty.h (asprintf, vasprintf): Don't declare them if the
corresponding HAVE_DECL_ macro is 1.

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

21 years ago * write.h (struct fix): Add fx_dot_value.
Alan Modra [Thu, 19 Sep 2002 23:51:35 +0000 (23:51 +0000)]
* write.h (struct fix): Add fx_dot_value.
(dot_value): Declare.
* write.c (dot_value): New var.
(fix_new_internal): Save dot_value as fx_dot_value.
* expr.c (expr): Update dot_value.

21 years agobfd/
Jakub Jelinek [Thu, 19 Sep 2002 19:01:18 +0000 (19:01 +0000)]
bfd/
* reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
BFD_RELOC_386_TLS_GOTIE): Add.
* bfd-in2.h, libbfd.h: Rebuilt.
* elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
and R_386_TLS_GOTIE.
(elf_i386_reloc_type_lookup): Handle it.
(struct elf_i386_link_hash_entry): Change tls_type type to unsigned
char instead of enum, change GOT_* into defines.
(GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
(elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
(elf_i386_check_relocs): Likewise.  Avoid crash if local symbol is
accessed both as normal and TLS symbol.  Move R_386_TLS_LDM and
R_386_PLT32 cases so that R_386_TLS_IE can fall through.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
tls_type is GOT_TLS_IE_BOTH.
(elf_i386_size_dynamic_sections): Likewise.
(elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
(elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
all 4 GOT_TLS_* TLS types.
gas/
* config/tc-i386.c (tc_i386_fix_adjustable): Handle
BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
(BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
if not defined.
(lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
(md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
BFD_RELOC_386_TLS_GOTIE.
gas/testsuite/
* gas/i386/tlspic.s: Add tests.
* gas/i386/tlspic.d: Regenerated.
* gas/i386/tlsnopic.s: Add tests.
* gas/i386/tlsnopic.d: Regenerated.
include/
* elf/i386.h (R_386_TLS_TPOFF, R_386_TLS_IE, R_386_TLS_GOTIE):
Define.
ld/testsuite/
* ld-i386/i386.exp: New.
* ld-i386/tlsbin.dd: New test.
* ld-i386/tlsbinpic.s: New test.
* ld-i386/tlsbin.rd: New test.
* ld-i386/tlsbin.s: New test.
* ld-i386/tlsbin.sd: New test.
* ld-i386/tlsbin.td: New test.
* ld-i386/tlslib.s: New test.
* ld-i386/tlsnopic1.s: New test.
* ld-i386/tlsnopic2.s: New test.
* ld-i386/tlsnopic.dd: New test.
* ld-i386/tlsnopic.rd: New test.
* ld-i386/tlsnopic.sd: New test.
* ld-i386/tlspic1.s: New test.
* ld-i386/tlspic2.s: New test.
* ld-i386/tlspic.dd: New test.
* ld-i386/tlspic.rd: New test.
* ld-i386/tlspic.sd: New test.
* ld-i386/tlspic.td: New test.

21 years agoUpdate email addresses for bugs and patches.
Nick Clifton [Thu, 19 Sep 2002 18:07:44 +0000 (18:07 +0000)]
Update email addresses for bugs and patches.

21 years agoWhen examining weak symbols, follow indirect links.
Nick Clifton [Thu, 19 Sep 2002 16:34:14 +0000 (16:34 +0000)]
When examining weak symbols, follow indirect links.

21 years ago * config/tc-alpha.c (md_pcrel_from): Only adjust special for
Richard Henderson [Thu, 19 Sep 2002 16:13:38 +0000 (16:13 +0000)]
    * config/tc-alpha.c (md_pcrel_from): Only adjust special for
        branch type relocs.
        (alpha_force_relocation): Don't special-case branch type relocs.

        * gas/alpha/elf-reloc-7.s: New.
        * gas/alpha/elf-reloc-7.d: New.
        * gas/alpha/alpha.exp: Run it.

21 years agoRemove (errant) trailing semicolon (;) from the extern "C" { } declaration.
Nick Clifton [Thu, 19 Sep 2002 15:48:16 +0000 (15:48 +0000)]
Remove (errant) trailing semicolon (;) from the extern "C" { } declaration.

21 years agoFix error reading ECOFF information: 'ioptMax' refers to the actual *size*
Nick Clifton [Thu, 19 Sep 2002 15:38:36 +0000 (15:38 +0000)]
Fix error reading ECOFF information: 'ioptMax' refers to the actual *size*
of the optimization symtab, not the number of entries.

21 years agoUpdate to correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
Nick Clifton [Thu, 19 Sep 2002 15:31:30 +0000 (15:31 +0000)]
Update to correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)

21 years ago(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.
Nick Clifton [Thu, 19 Sep 2002 14:59:51 +0000 (14:59 +0000)]
(elf32_arm_adjust_dynamic_symbol): Update ELF_LINK_HASH_NEEDS_PLT logic.

21 years agoHandle situation where architecture has not yet been selected.
Nick Clifton [Thu, 19 Sep 2002 14:52:15 +0000 (14:52 +0000)]
Handle situation where architecture has not yet been selected.

21 years agoFix the ChangeLog entry for my last commit.
Jakub Jelinek [Thu, 19 Sep 2002 11:38:22 +0000 (11:38 +0000)]
Fix the ChangeLog entry for my last commit.

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

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:45:29 +0000 (21:45 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/baddata1.s: New file.
        * gas/mips/baddata1.l: New file.
        * gas/mips/mips.exp: Run new test.

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:33:07 +0000 (21:33 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
        (IS_SEXT_16BIT_NUM): New macro.
        (macro_build_ldst_constoffset): New function, to build a set of
        instructions to do a load or store from a constant offset relative
        to a given register.
        (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
        .cprestore pseudo-op.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/mips-abi32-pic2.s: New file.
        * gas/mips/mips-abi32-pic2.d: New file.
        * gas/mips/mips.exp: Run new test.

[ plus, fixed date on prev. gas/testsuite/ChangeLog entry. ]

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 21:05:59 +0000 (21:05 +0000)]
[ gas/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.

[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/baddata1.s: New file.
        * gas/mips/baddata1.l: New file.
        * gas/mips/mips.exp: Run new test.

21 years ago[ gas/testsuite/ChangeLog ]
Chris Demetriou [Wed, 18 Sep 2002 20:50:47 +0000 (20:50 +0000)]
[ gas/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/branch-misc-1.d: New file.
        * gas/mips/branch-misc-1.s: New file.
        * gas/mips/branch-misc-2.s: New file.
        * gas/mips/branch-misc-2.d: New file.
        * gas/mips/mips.exp: Run new tests.

[ ld/testsuite/ChangeLog ]
2002-09-18  Chris Demetriou  <cgd@broadcom.com>

        * ld-mips-elf/branch-misc-1.d: New file.
        * ld-mips-elf/branch-misc-2.d: New file.
        * ld-mips-elf/mips-elf.exp: Run new tests.

21 years ago* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
Stan Cox [Wed, 18 Sep 2002 17:28:37 +0000 (17:28 +0000)]
* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.

21 years ago * elfcode.h (elf_slurp_reloc_table_from_section): Check
Daniel Jacobowitz [Wed, 18 Sep 2002 13:25:35 +0000 (13:25 +0000)]
    * elfcode.h (elf_slurp_reloc_table_from_section): Check
        correct relocation count.

21 years ago * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
Thiemo Seufer [Wed, 18 Sep 2002 08:02:22 +0000 (08:02 +0000)]
* config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.

21 years ago * bfd-in.h (bfd_get_dynamic_symcount): Define.
Daniel Jacobowitz [Wed, 18 Sep 2002 02:39:43 +0000 (02:39 +0000)]
    * bfd-in.h (bfd_get_dynamic_symcount): Define.
        * bfd.c (struct _bfd): Add dynsymcount.
        * bfd-in2.h: Regenerated.
        * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
        abfd->dynsymcount.
        * elfcode.h (elf_slurp_reloc_table_from_section): Check
        for overflow.

21 years ago * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
Stan Cox [Wed, 18 Sep 2002 02:25:19 +0000 (02:25 +0000)]
* tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
(macro): Likewise for la.  Likewise for ld.
(mips_after_parse_args): Make -xgot optional, not the default.
(md_apply_fix3): Allow composite relocation to set up gp.
(tc_gen_reloc): Allow relaxing for newabi.
Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.

21 years ago * emulparams/elf32bmipn32-defs.sh: New file.
Stan Cox [Wed, 18 Sep 2002 01:54:37 +0000 (01:54 +0000)]
* emulparams/elf32bmipn32-defs.sh: New file.
* emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
* emulparams/elf32btsmipn32.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.

21 years ago * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
Stan Cox [Wed, 18 Sep 2002 01:38:20 +0000 (01:38 +0000)]
* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
(mips_elf64_final_gp): Don't make up gp value.
* elfn32-mips.c (mips_elf_final_gp): Likewise.
* elfxx-mips.c (_bfd_mips_elf_final_link): Always create
.MIPS.options/.options section.

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

21 years ago2002-09-17 David O'Brien <obrien@FreeBSD.org>
David O'Brien [Tue, 17 Sep 2002 19:49:04 +0000 (19:49 +0000)]
2002-09-17  David O'Brien  <obrien@FreeBSD.org>
* elf32-i386-fbsd.c: Always label using the EI_OSABI method.
It is benign for FreeBSD < 4.1.  Minor reformatting.
* elf64-alpha-fbsd.c: Likewise.

Approved by:  Alan Modra <amodra@bigpond.net.au>
              Message-ID: <20020917182339.B14457@bubble.sa.bigpond.net.au>

21 years agoNote that an implemented BFD_RELOC_ARM_IMMEDIATE has been done.
Nick Clifton [Tue, 17 Sep 2002 19:23:00 +0000 (19:23 +0000)]
Note that an implemented BFD_RELOC_ARM_IMMEDIATE has been done.
Do not issue reloc number of unimplemented BFD_RELOC_ARM_IMMEDIATE and
BFD_RELOC_ARM_OFFSET_IMM relocs - their name is already in the error message
- plus remove them from the default case.
Warn about unpredictable behavior of LDM and STM instructions.

21 years ago * elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.
Jakub Jelinek [Tue, 17 Sep 2002 09:52:41 +0000 (09:52 +0000)]
* elf_i386_relocate_section (R_386_TLS_TPOFF32): Negate addend.

21 years ago * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:59:11 +0000 (08:59 +0000)]
* coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
* cpu-tic4x.c: Ditto.

21 years ago * elf64-alpha.c (alpha_elf_size_info): Make static.
Alan Modra [Tue, 17 Sep 2002 08:48:54 +0000 (08:48 +0000)]
* elf64-alpha.c (alpha_elf_size_info): Make static.

21 years ago2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
Thiemo Seufer [Tue, 17 Sep 2002 08:38:27 +0000 (08:38 +0000)]
2002-09-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

* gas/mips/jal-range.s: Check for jal overflows.
* gas/mips/jal-range.l: List file for it.
* gas/mips/mips.exp: Use it.

21 years ago * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:35:10 +0000 (08:35 +0000)]
* config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Convert functions to K&R format.

21 years ago * tic4x-dis.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:34:17 +0000 (08:34 +0000)]
* tic4x-dis.c: Add function declarations and ATTRIBUTE_UNUSED.
Convert functions to K&R format.

21 years ago * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
Alan Modra [Tue, 17 Sep 2002 08:33:12 +0000 (08:33 +0000)]
* coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
* cpu-tic4x.c: Ditto.

21 years ago * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
Thiemo Seufer [Tue, 17 Sep 2002 07:48:30 +0000 (07:48 +0000)]
* elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
duplicate define.

21 years ago * config/tc-mips.c (pdr_seg): Define only for ELF.
Thiemo Seufer [Tue, 17 Sep 2002 07:43:25 +0000 (07:43 +0000)]
* config/tc-mips.c (pdr_seg): Define only for ELF.
(s_change_section): Remove unused variable. Don't use for nonELF.