Thiemo Seufer
9ee72ff122
* config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
...
OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
command line switch conforming to gcc conventions.
* doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
2002-05-30 23:38:19 +00:00
Thiemo Seufer
438c16b875
* config/tc-mips.c (macro_build_jalr): New Function.
...
(md_begin): NewABI uses big GOTs.
(macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
(load_address): Add some NewABI PIC support.
(macro): Likewise.
(md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
(tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
2002-05-30 23:32:47 +00:00
Kevin Buettner
ee8ff470c4
Make safe_read_memory_integer() return non-zero result when successful.
2002-05-30 22:41:24 +00:00
Richard Henderson
1c5cec28bb
* doc/c-alpha.texi: Add docs for tls relocations.
2002-05-30 22:34:41 +00:00
Thiemo Seufer
f7ea7ef2ee
* config/tc-mips.c (load_address): Use mips_gp_register instead
...
of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
instead.
(macro): Use mips_gp_register instead of hardcoded value.
2002-05-30 22:29:20 +00:00
Richard Henderson
3765b1be13
include/elf/
...
* alpha.h (R_ALPHA_TLSGD, R_ALPHA_TLSLDM, R_ALPHA_DTPMOD64,
R_ALPHA_GOTDTPREL, R_ALPHA_DTPREL64, R_ALPHA_DTPRELHI,
R_ALPHA_DTPRELLO, R_ALPHA_DTPREL16, R_ALPHA_GOTTPREL, R_ALPHA_TPREL64,
R_ALPHA_TPRELHI, R_ALPHA_TPRELLO, R_ALPHA_TPREL16): New.
bfd/
* elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
(ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
(ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
(struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
(struct alpha_elf_obj_tdata): Rename total_got_entries and
n_local_got_entries to total_got_size and local_got_size.
(elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
(alpha_got_entry_size): New.
(elf64_alpha_relax_with_lituse): Use it.
(elf64_alpha_relax_without_lituse): Likewise.
(MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
(get_got_entry): New.
(elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
(elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
(elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
(elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
(elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
(elf64_alpha_calc_got_offsets): Likewise.
(alpha_dynamic_entries_for_reloc): New.
(elf64_alpha_calc_dynrel_sizes): Use it.
(elf64_alpha_size_dynamic_sections): Likewise.
(elf64_alpha_relocate_section): Handle TLS relocations.
* reloc.c: Add Alpha TLS relocations.
* bfd-in2.h, libbfd.h: Rebuild.
gas/
* expr.h (operatorT): Add O_md17..O_md32.
* config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
O_tprelhi, O_tprello, O_tprel): New.
(USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
(DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
(LITUSE_TLSGD, LITUSE_TLSLDM): New.
(struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
(md_apply_fix3): Handle TLS relocations.
(alpha_force_relocation, alpha_fix_adjustable): Likewise.
(alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
associated TLS reloc. Check lituse_tls relocs match up.
(emit_insn): Handle TLS relocations.
(ldX_op): Remove.
gas/testsuite/
* gas/alpha/elf-tls-1.s, gas/alpha/elf-tls-1.d: New.
* gas/alpha/elf-tls-2.s, gas/alpha/elf-tls-1.l: New.
* gas/alpha/elf-tls-3.s, gas/alpha/elf-tls-1.l: New.
* gas/alpha/alpha.exp: Run them.
2002-05-30 22:01:38 +00:00
Richard Henderson
0085b5a8ab
* ld-bootstrap/bootstrap.exp: Test --relax.
2002-05-30 21:39:41 +00:00
Thiemo Seufer
def2e0dd82
* config/tc-mips.c (mips_gprel_offset): New variable.
...
(s_gpvalue): Use it.
2002-05-30 21:06:14 +00:00
Michael Chastain
258093ca1e
2002-05-30 Michael Chastain <mec@shout.net>
...
From Benjamin Kosnik <bkoz@redhat.com>
* gdb.c++/m-static.cc: New file.
* gdb.c++/m-static.exp: New file.
2002-05-30 19:09:47 +00:00
Tom Rix
8ade06a814
d10v fixes.
2002-05-30 16:16:30 +00:00
Tom Rix
8c2784a5a4
Some d10v gas tests.
2002-05-30 16:12:23 +00:00
Tom Rix
c20129930b
Fix for invalid conflict warning.
2002-05-30 15:25:37 +00:00
DJ Delorie
d7a97a9b1c
* lf.c (lf_print__gnu_copyleft): Convert multiline strings to
...
compatible format.
* gen-idecode.c (print_run_until_stop_body): Likewise.
* gen-model.c (gen_model_c): Likewise.
2002-05-30 15:07:06 +00:00
Nick Clifton
5e226794ca
Remove double printed import table lines; add Bound-To comment.
2002-05-30 11:06:10 +00:00
Jason Thorpe
37020578cf
* NEWS: Add entry for VAX ELF support.
2002-05-30 02:58:04 +00:00
Jason Thorpe
a360218174
* configure.in (vax-*-netbsd*): Don't build gas for this
...
platform.
2002-05-30 02:47:47 +00:00
Jason Thorpe
ab68f3e06f
2002-05-29 Matt Thomas <matt@3am-software.com>
...
Jason Thorpe <thorpej@wasabisystems.com>
* Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
(eelf32vax.c)
(evaxnbsd.c): New rules.
* Makefile.in: Regenerate.
* configure.tgt (vax-*-netbsdelf*)
(vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* emulparams/elf32vax.sh: New file.
* emulparams/vaxnbsd.sh: New file.
2002-05-30 02:40:03 +00:00
Jason Thorpe
90ace9e95d
2002-05-29 Matt Thomas <matt@3am-software.com>
...
* Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
(BFD32_BACKENDS_CFILES): Add elf32-vax.c.
(elf32-vax.lo): New rule.
* Makefile.in: Regenerate.
* configure.in (bfd_elf32_vax_vec)
(vaxnetbsd_vec): New vectors.
* configure: Regenerate.
* config.bfd (vax-*-netbsdelf*)
(vax-*-netbsdaout*)
(vax-*-netbsd*): New targets.
* elf32-vax.c: New file.
* reloc.c: Add VAX relocations.
* bfd-in2.h: Regenerate.
* targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
2002-05-30 02:14:13 +00:00
Jason Thorpe
0a850e40e6
2002-05-29 Matt Thomas <matt@3am-software.com>
...
* vax.h: New file
2002-05-30 01:43:48 +00:00
Jason Thorpe
357edbbc0e
Fix typo in previous entry.
2002-05-30 01:31:03 +00:00
Jason Thorpe
7b112f9c0c
* Makefile.in (ppc_tdep_h): Define.
...
(ppc-linux-nat.o)
(ppc-linux-tdep.o)
(rs6000-tdep.o): Use $(ppc_tdep_h).
(ppc-sysv-tdep.o)
(ppcnbsd-nat.o)
(ppcnbsd-tdep.o): New dependency lists.
* ppc-tdep.h: Use generic OS ABI framework.
* ppc-linux-tdep.c (_initialize_ppc_linux_tdep,
ppc_linux_init_abi): New functions.
(ppc_sysv_abi_broken_use_struct_convention)
(ppc_sysv_abi_use_struct_convention)
(ppc_sysv_abi_push_arguments): Move to...
* ppc-sysv-tdep.c: ...here.
* ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
* rs6000-tdep.c (process_note_abi_tag_sections)
(get_elfosabi): Remove.
(rs6000_gdbarch_init): Use generic OS ABI framework.
(rs6000_dump_tdep): New function.
(_initialize_rs6000_tdep): Use gdbarch_register.
* config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
* config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
* config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
of ppc-linux-tdep.o.
* config/powerpc/nbsd.mt (TDEPFILES): Likewise.
* config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
* config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
* config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
* config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
* config/powerpc/vxworks.mt (TDEPFILES): Likewise.
2002-05-30 01:21:53 +00:00
Ben Elliston
d79e4ea30e
* MAINTAINERS: Add self as M68k maintainer.
2002-05-30 01:14:21 +00:00
Jim Blandy
480dd42ac5
* macroscope.c (default_macro_scope): Put `void' in empty argument
...
list.
2002-05-30 00:02:03 +00:00
gdbadmin
36cee77011
*** empty log message ***
2002-05-30 00:00:05 +00:00
Jason Thorpe
4a253e8176
* config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
...
and bfd_elf32_bigarm_vec to targ_selvecs.
2002-05-29 21:10:18 +00:00
Christopher Faylor
6e7c73dd85
* peXXigen.c (pe_print_idata): Fix seg faults on printing import tables with
...
auto-imported symbols.
2002-05-29 20:06:28 +00:00
Nick Clifton
5aa682b2e0
Set the FSR and FAR registers if a Data Abort is detected.
2002-05-29 19:01:36 +00:00
Andrew Cagney
4182591fce
* Makefile.in (arch-utils.o): Add $(sim_regno_h).
...
* arch-utils.c: Include "sim-regno.h".
* gdbarch.sh: Don't include "sim-regno.h".
* gdbarch.h, gdbarch.c: Regenerate.
* sim-regno.h (legacy_register_sim_regno): Move declaration from
here.
* arch-utils.h (legacy_register_sim_regno): To here.
* remote-sim.c (legacy_register_sim_regno): Move function from
here.
* arch-utils.c (legacy_register_sim_regno): To here.
2002-05-29 16:39:56 +00:00
Nick Clifton
8afb0e028c
Fix genreation of arm <->thumb glue stubs by ensuring that they are in the last section linked.
2002-05-29 16:03:04 +00:00
Nick Clifton
a95653f53e
Move declaration and initialisation of saw_line and saw_func out of for loop.
...
(Actual patch accidentally checked in yesterday!)
2002-05-29 08:46:58 +00:00
Alan Modra
195fe6367d
* binutils-all/objcopy.exp (strip_test_with_saving_a_symbol):
...
Revert 2001-11-15. Instead allow `D main'.
2002-05-29 05:00:33 +00:00
Alan Modra
7cdc5bba78
* elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
...
(bfd_elf64_get_symbol_info): Define.
* elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
2002-05-29 05:00:01 +00:00
Michael Snyder
241264c6a6
2002-05-28 Michael Snyder <msnyder@redhat.com>
...
* gdb.base/call-ar-st.exp: Allow for reduced floating point
precision.
2002-05-29 02:23:20 +00:00
Andrew Cagney
8238d0bfe4
* sim-regno.h: New file.
...
* Makefile.in (sim_regno_h): Define.
(d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
* remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
(legacy_register_sim_regno): New function.
(one2one_register_sim_regno): New function.
(gdbsim_fetch_register): Rewrite.
(gdbsim_store_register): Only store a register when
REGISTER_SIM_REGNO is valid.
* d10v-tdep.c: Include "sim-regno.h".
(d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
(d10v_ts3_register_sim_regno): Ditto.
* gdbarch.sh: Include "sim-regno.h".
(REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.h (default_register_sim_regno): Delete declaration.
* arch-utils.c (default_register_sim_regno): Delete function.
2002-05-29 01:51:17 +00:00
Alan Modra
4c7aad1c75
* cpu-h8300.c: Make default h8300 machine first in machine list.
2002-05-29 00:58:46 +00:00
gdbadmin
73e311e847
*** empty log message ***
2002-05-29 00:00:06 +00:00
Alan Modra
69ed25ef57
daily update
2002-05-29 00:00:05 +00:00
Marek Michalkiewicz
c95f53ae88
2002-05-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
...
* configure.in (noconfigdirs): Don't compile libiberty, libstdcxx
and libgcj for AVR.
2002-05-28 20:06:27 +00:00
Thiemo Seufer
c99147661e
* config/tc-mips.c: Replace GP in comments by $gp.
...
(mips_big_got): Initialize.
(mips_trap): Initialize.
(load_address): Use mips_gp_register instead of hardcoded value.
Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
(macro): Use mips_gp_register instead of hardcoded value.
(macro2): Change load_address calls.
(md_pcrel_from): Comment formatting.
(s_cpload): Use mips_gp_register instead of hardcoded value.
(s_cprestore): Likewise. Comment formatting.
(s_gpword): Fix data type.
(s_cpadd): Use mips_gp_register instead of hardcoded value.
(nopic_need_relax): Replace GP in comments by $gp.
(mips_elf_final_processing): Better comment.
2002-05-28 19:23:09 +00:00
Jason Thorpe
485721b1e7
* ppcnbsd-nat.c: Rewrite.
...
* ppcnbsd-tdep.c: New file.
* ppcnbsd-tdep.h: New file.
* config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
solib.o, and solib-svr4.o.
* config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
nbsd-tdep.o, and corelow.o.
2002-05-28 18:43:08 +00:00
Nick Clifton
1d7c105379
Add DLX target
2002-05-28 17:56:42 +00:00
Elena Zannoni
1aa5e64f43
2002-05-28 Elena Zannoni <ezannoni@redhat.com>
...
* interp.c (sim_create_inferior): Add comment.
From Alan Matsuoka <alanm@redhat.com>:
From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
* simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
(OP_4401): Output "mvf0t" instead of "mf0t".
(OP_460B): Do not output a flag register.
(OP_4609): Do not output a flag register.
2002-05-28 15:49:52 +00:00
Andrew Cagney
697f244d5b
* MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
...
`tr' and `sed'. Mention that `broken' targets are not expected to
build.
2002-05-28 15:16:34 +00:00
Nick Clifton
5221660204
Add noew about DLX contribution.
2002-05-28 14:20:42 +00:00
Nick Clifton
d172d4ba03
Add DLX target
2002-05-28 14:08:47 +00:00
Hans-Peter Nilsson
69de2f8959
* ld-cris/libdso-2.d: Tweak for combreloc now default on.
2002-05-28 01:44:46 +00:00
Alan Modra
8cf23aec33
daily update
2002-05-28 00:26:27 +00:00
gdbadmin
eaf666985c
*** empty log message ***
2002-05-28 00:00:33 +00:00
Michael Chastain
71ea1be0a8
2002-05-27 Michael Chastain <mec@shout.net>
...
From Benjamin Kosnik <bkoz@redhat.com>
* gdb.c++/m-data.cc: New file.
* gdb.c++/m-data.exp: New file.
2002-05-27 21:46:52 +00:00
Michael Chastain
9bba8c8f34
2002-05-27 Michael Chastain <mec@shout.net>
...
From Benjamin Kosnik <bkoz@redhat.com>
* gdb.c++/try_catch.cc: New file.
* gdb.c++/try_catch.exp: New file.
2002-05-27 20:07:25 +00:00