Paul Brook
eb043451b1
bfd/
...
* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
(bfd_elf32_arm_process_before_allocation): Update prototype.
* bfd-in2.h: Regenerate.
* bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
(elf32_arm_link_hash_table_create): Set it.
(bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
(bfd_elf32_arm_set_target_relocs): New function.
(arm_real_reloc_type): New function.
(elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
(elf32_arm_gc_sweep_hook): Ditto.
(elf32_arm_check_relocs): Ditto.
(elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
* elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
R_ARM_GOT_TARGET2.
(elf32_arm_got_prel): New variable.
(elf32_arm_howto_from_type): New function.
(elf32_arm_info_to_howto): Use it.
(elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
BFD_RELOC_ARM_TARGET2.
* libbfd.h: Regenerate.
* reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
gas/
* config/tc-arm.c (s_arm_rel31): New funciton.
(md_pseudo_table): Add .rel31.
(md_apply_fix3): Handle BFD_RELOC_ARM_TARGET2,
BFD_RELOC_32_PCREL and BFD_RELOC_ARM_PREL31.
(tc_gen_reloc): Handle BFD_RELOC_ARM_PREL31 and BFD_RELOC_ARM_TARGET2.
(arm_fix_adjustable): Return 0 for BFD_RELOC_ARM_TARGET2.
(arm_parse_reloc): Add (target2).
gas/testsuite/
* gas/arm/pic.s: Add (target2).
* gas/arm/pic.d: Ditto.
include/
* elf/arm.h: Remove R_ARM_STKCHK and R_ARM_THM_STKCHK.
Add R_ARM_TARGET2, R_ARM_PREL31, R_ARM_GOT_ABS, R_ARM_GOT_PREL,
R_ARM_GOT_BREL12, R_ARM_GOTOFF12 and R_ARM_GOTRELAX.
ld/
* ld.texinfo: Rename arm-specific section. Document --target*
* emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
* emulparams/armelf_linux.sh: Ditto.
* emulparams/armelf_nbsd.sh: Ditto.
* emultempl/armelf.em: Set default for TARGET2_TYPE.
(target2_type): New variable.
(arm_elf_before_allocation): Don't pass target1_type.
(arm_elf_create_output_section_statements): New function.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
(PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
(LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
* emultempl/armelf_oabi.em (_before_allocation): Remove extra
argument to bfd_elf32_arm_process_before_allocation.
ld/testsuite/
* ld-arm/arm-target1-{abs,rel}.d}: New files.
* ld-arm/arm-target1.s: New file.
* ld-arm/arm-target2-{,got-}rel.d: New files.
* ld-arm/arm-target2.s: New file.
* ld-arm/arm-rel31.d: New files.
* ld-arm/arm-rel31.s: New files.
* ld-arm/arm.ld: New file.
* ld-arm/arm-elf.exp: Add new tests.
2004-09-17 12:35:00 +00:00
Alan Modra
8ea2b00f7f
* Makefile.am: Run "make dep-am".
...
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
* po/POTFILES.in: Regenerate.
* po/gas.pot: Regenerate.
2004-09-17 06:17:47 +00:00
Hans-Peter Nilsson
7e1792e018
* config/tc-mmix.c [!LLONG_MIN]: Correct #elsif to #elif.
...
[!LLONG_MAX]: Ditto.
2004-09-14 20:00:26 +00:00
Paul Brook
9c50426849
bfd/
...
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
prototype.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
(elf32_arm_link_hash_table_create): Set target1_is_rel.
(bfd_elf32_arm_process_before_allocation): Ditto.
(elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
(elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
* elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
* reloc.c: Ditto.
gas/
* config/tc-arm.c: Rename RELABS to TARGET1.
gas/testsuite/
* gas/arm/pic.d: Rename RELABS to TARGET1.
* gas/arm/pic.s: Ditto.
include/
* elf/arm.h: Rename RELABS to TARGET1.
ld/
* emulparams/armsymbian.sh: Set TARGET1_IS_REL.
* emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2004-09-13 14:14:32 +00:00
Alan Modra
2159ac21e2
* messages.c (as_internal_value_out_of_range): Cast values passed
...
to as_bad_where or as_warn_where to proper type.
2004-09-13 00:49:16 +00:00
Marek Michalkiewicz
23794b24aa
* gas/config/tc-avr.c: Add support for
...
atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
* include/opcode/avr.h: Add support for
atmega48, atmega88, atmega168, attiny13, attiny2313, at90can128.
2004-09-11 13:15:05 +00:00
Alan Modra
e9fad6911f
* dw2gencfi.c (select_cie_for_fde): When separating CIE out
...
from FDE, treat a CFI_escape as we do a DW_CFA_advance_loc.
2004-09-09 13:32:46 +00:00
Paul Brook
10b016c223
* config/obj-elf.c (obj_elf_section_type): Handle init_array,
...
fini_array and preinit_array section types.
* config/tc-ia64.c (ia64_elf_section_type): Remove init_array
and fini_array.
* doc/as.texinfo: Document extra section types.
2004-09-08 20:52:49 +00:00
Mark Mitchell
e5a52504a5
* config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
...
* configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
(bfd_elf32_littlearm_symbian_vec): Likewise.
* configure: Regenerated.
* elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
* elf32-arm.h (PLT_HEADER_SIZE): Do not define.
(PLT_ENTRY_SIZE): Likewise.
(bfd_vma_elf32_arm_symbian_plt_entry): New
variable.
(elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
and symbian_p.
(create_got_section): Don't create sections when generating BPABI
objects.
(elf32_arm_create_dynamic_sections): Tidy.
(elf32_arm_link_hash_table_create): Set plt_header_size,
plt_entry_size, and symbian_p.
(elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
generating BPABI objects.
(allocate_dynrelocs): Use htab->plt_header_size, not
PLT_HEADER_SIZE. Do not add to .got.plt when
generating BPABI objects.
(elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
* elfarm-nabi.c: Add SymbianOS target vectors.
* elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
(_bfd_elf_link_create_dynamic_sections): Likewise.
* elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
(elfNN_bed): Use it.
* targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
(bfd_elf32_littlearm_symbian_vec): Likewise.
(_bfd_target_vector): Add them.
* Makefile.am (TARG_ENV_HFILES): Add te-symbian.h.
* Makefile.in: Regenerated.
* configure.in: Set em for arm*-*-symbianelf*.
* configure: Regenerated.
* config/tc-arm.c (elf32_arm_target_format): Use Symbian target
vectors when appropriate.
* config/te-symbian.h: New file.
* Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
(earmsymbian.c): New target.
* configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
* Makefile.in: Regenerated.
* aclocal.m4: Likewise.
* configure: Likewise.
* emulparams/armsymbian.sh: New file.
2004-09-03 17:15:44 +00:00
Nick Clifton
42851540ac
Add LD and GAS testsuites for CRX port.
...
Fix several crx bugs.
2004-09-03 14:31:41 +00:00
Richard Earnshaw
1ff4677c0b
* doc/c-arm.texi (ARM Options): Document canonical names of CPUs.
2004-09-01 16:34:29 +00:00
Richard Earnshaw
8783612fe2
* tc-arm.c (arm_cpus, arm_fpus): Allow <cpu>-s as well as <cpu>s
...
for synthesizable cores.
2004-09-01 16:16:44 +00:00
Nick Clifton
b18c562e39
Apply Dmitry Diky's patches to add relaxation to msp430.
2004-08-25 12:54:15 +00:00
Nick Clifton
8f94ae4da3
* as.c (std_shortopts): Allow -g to take an optional argument.
...
(parse_args): Pass any switch starting with -g on to the backend for parsing.
2004-08-24 11:58:27 +00:00
Mark Mitchell
e51dace860
* configure.in (arm*-*-symbianelf*): New target.
...
(arm*-*-eabi*): Likewise.
* configure: Regenerated.
2004-08-19 18:11:00 +00:00
Thiemo Seufer
f7870c8d99
* config/tc-mips.c (append_insn): Handle delay slots in branch likely
...
correctly.
2004-08-18 15:58:12 +00:00
Jakub Jelinek
d6afba4b7d
* config/tc-ia64.c (start_unwind_section): Add linkonce_empty
...
argument, don't do anything if current section is not
.gnu.linkonce.t.* and linkonce_empty is set.
(generate_unwind_image, dot_endp): Adjust callers, call
start_unwind_section (*, 1) if nothing will be put into the
section.
2004-08-18 09:51:29 +00:00
Nick Clifton
329e276daf
Add support for a -g switch to GAS
2004-08-17 12:19:58 +00:00
Nick Clifton
2766e5e41b
(macro_set_alternate): Use ISO C90 formatting.
2004-08-16 08:34:28 +00:00
Nick Clifton
4101eec8eb
Sort architecture based tables alphabetically.
2004-08-16 08:25:44 +00:00
Alan Modra
80f846b670
* config/tc-ppc.c (tc_ppc_regname_to_dw2regnum <regnames>): Replace
...
{ "cc", 68 }, with { "cr", 70 }.
2004-08-16 03:04:47 +00:00
Nick Clifton
caa32fe507
Add and handle new --alternate command line option.
2004-08-13 19:53:52 +00:00
Mark Mitchell
b2221023d3
* expr.c (operand): Handle the "~", "-", and "!" operators applied
...
to bignums.
* gas/arm/bignum1.s: New test.
* gas/arm/arm.exp: Run it.
2004-08-11 02:11:58 +00:00
Paul Brook
db6579d415
bfd/
...
* elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
(elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
* reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
and BFD_RELOC_ARM_SBREL32.
* bfd-in2.h, bbfd.h: Regenerate.
gas/
* config/tc-arm.c (md_apply_fix3, tc_gen_reloc, arm_parse_reloc):
Handle new relocations.
* include/elf/arm.h (elf_arm_reloc_type): Add new EABI relocations.
gas/testsuite/
* gas/arm/pic.s,d: Test RELABS and SBREL relocations.
2004-08-06 16:18:11 +00:00
Bob Wilson
e750405d4b
* write.c (relax_segment): Use was_address instead of address when
...
setting fr_fix field for align frag due to backwards .org.
2004-08-05 16:55:00 +00:00
Alexandre Oliva
1d70c7fb83
include/elf/ChangeLog:
...
Introduce SH2a support.
2004-02-18 Corinna Vinschen <vinschen@redhat.com>
* sh.h (EF_SH2A_NOFPU): New.
2003-12-01 Michael Snyder <msnyder@redhat.com>
* sh.h (EF_SH2A): New.
bfd/ChangeLog:
Introduce SH2a support.
2004-02-18 Corinna Vinschen <vinschen@redhat.com>
* archures.c (bfd_mach_sh2a_nofpu): New.
* bfd-in2.h: Rebuilt.
* cpu-sh.c (SH2A_NOFPU_NEXT): New.
(arch_info_struct): Add sh2a_nofpu.
* elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
2003-12-29 DJ Delorie <dj@redhat.com>
* reloc.c: Add relocs for sh2a.
* bfd-in2.h: Regenerate.
* libbfd.hh: Regenerate.
2003-12-01 Michael Snyder <msnyder@redhat.com>
* archures.c (bfd_mach_sh2a): New.
* bfd-in2.h: Rebuilt.
* cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
(SH2A_NEXT): New.
(arch_info_struct): Add sh2a.
* elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
binutils/ChangeLog:
* readelf.c (get_machine_flags <EM_SH>): Handle EF_SH2A and
EF_SH2A_NOFPU.
gas/ChangeLog:
Introduce SH2a support.
2004-02-24 Corinna Vinschen <vinschen@redhat.com>
* config/tc-sh.c (get_specific): Change arch_sh2a_up to
arch_sh2a_nofpu_up.
2004-02-24 Corinna Vinschen <vinschen@redhat.com>
* config/tc-sh.c (md_parse_option): Add sh2a-nofpu ISA handling.
2004-02-20 Corinna Vinschen <vinschen@redhat.com>
* config/tc-sh.c (sh_elf_final_processing): Move sh2a recognition
to end of conditional expression.
2004-02-20 Corinna Vinschen <vinschen@redhat.com>
* config/tc-sh.c: Add sh2a-nofpu support.
2003-12-29 DJ Delorie <dj@redhat.com>
* tc-sh.c: Add sh2a support.
(parse_reg): Add tbr.
(parse_at): Support @@(disp,tbr).
(get_specific): Support sh2a opcodes.
(insert4): New, for 4 byte relocs.
(build_Mytes): Support sh2a opcodes.
(md_apply_fix3_Mytes): Support sh2a opcodes.
2003-12-02 Michael Snyder <msnyder@redhat.com>
* config/tc-sh.c (md_parse_option): Handle sh2a.
(sh_elf_final_processing): Ditto.
gas/testsuite/ChangeLog:
2003-12-30 DJ Delorie <dj@redhat.com>
* gas/sh/sh2a.s: New.
* gas/sh/sh2a.d: New.
* gas/sh/basic.exp: Add it.
2004-07-29 05:17:41 +00:00
Jason Thorpe
e7fbc2bf98
bfd:
...
* config.bfd (hppa*-*-netbsd*): Set targ_defvec to
bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
to targ_selvecs.
* configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
* configure: Regenerate.
* elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
case that accepts OSABI=NetBSD and OSABI=SysV.
(elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
the base of .got or .data (if .got does not exist).
(elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
set OSABI=NetBSD.
(TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
(TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
* targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
(_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
gas:
* config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
for TE_NetBSD.
ld:
* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2004-07-29 03:48:13 +00:00
H.J. Lu
406f8ff91f
Remove the leading space.
2004-07-27 14:44:24 +00:00
Alan Modra
9232bbb040
* config/tc-ppc.c (ppc_frob_file_before_adjust): Warn if .toc too big.
...
(ppc_arch): Expand comment.
2004-07-27 13:56:55 +00:00
Nick Clifton
670ec21de9
Add CRX insns: pushx, popx
...
Add support to GAS for expressions which are the difference of two symbols
2004-07-27 11:37:12 +00:00
H.J. Lu
38ce5b1191
bfd/
...
2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (bfd_elf_section_data): Add a pointer for the
linked-to section.
(elf_linked_to_section): New.
* elf.c (assign_section_numbers): Set up sh_link for
SHF_LINK_ORDER.
* elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
to sh_link for SHT_IA_64_UNWIND sections.
gas/
2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-ia64.c (start_unwind_section): Set the linked-to
section.
(ia64_elf_section_change_hook): Set the linked-to section for
SHT_IA_64_UNWIND.
2004-07-26 21:01:15 +00:00
Nick Clifton
c05e9f04ff
Add new subtargets: msp430x1610, msp430x1611, msp430x1612, msp430x415,
...
msp430x417, msp430xG437, msp430xG438, msp430xG439.
2004-07-26 12:29:02 +00:00
Daniel Jacobowitz
e9863d7f64
* doc/as.texinfo (Section, PushSection): Correct documentation
...
for ELF.
2004-07-26 03:34:35 +00:00
Nick Clifton
543613e933
For DefaultSize instructions, don't guess a 'q' suffix if the instruction
...
doesn't support it.
2004-07-21 18:18:04 +00:00
Nick Clifton
20f0a1fc7d
Corrections for x86_64 assembly.
2004-07-21 16:09:43 +00:00
Maciej W. Rozycki
01a3f561ab
* config/tc-mips.c (append_insn): Handle constant expressions with
...
no associated relocation.
(mips_ip): Cancel the expression after use for the Q format
specifier.
(parse_relocation): Return no relocation for unsupported
operators.
(my_getSmallExpression): Return no relocation if no relocation
operators are used.
2004-07-20 17:55:02 +00:00
Dave Anglin
e12904d27f
* config/obj-som.c (adjust_stab_sections): Add prototype.
...
(obj_som_compiler, obj_som_version, obj_som_copyright,
adjust_stab_sections): Add ATTRIBUTE_UNUSED to unused arguments.
* config/tc-hppa.c (update_subspace): Likewise.
(is_defined_subspace): Amplify comment.
* config/obj-som.h (som_frob_file): Add prototype.
2004-07-20 03:07:08 +00:00
H.J. Lu
90c1602c0f
2004-07-19 Christopher Faylor <cgf@timesys.com>
...
H.J. Lu <hongjiu.lu@intel.com>
* subsegs.c (section_symbol): Don't create a new segment when
existing segment is undefined.
2004-07-19 19:15:43 +00:00
Richard Earnshaw
f263249b3d
* config/tc-arm.c: Include include/opcode/arm.h.
...
(ARM_EXT_*, ARM_ARCH_*, ARM_ANY, ARM_ALL, COPROC_ANY): Delete.
(FPU_FPA_EXT_* FPU_VFP_EXT_*, FPU_ANY, FPU_NONE, FPU_MAVERICK): Delete.
(FPU_ARCH_*): Delete.
* Makefile.am: Update dependencies.
* Makefile.in: Regenerate.
2004-07-16 22:12:26 +00:00
Nick Clifton
152c65b9ca
Accept armbe as a big-endian arm configuration.
2004-07-15 16:26:41 +00:00
Nick Clifton
0477af35bf
Add support for & | << >> ~ arithmetic operators in Intel mode
2004-07-13 17:31:15 +00:00
Andreas Schwab
313023579a
* config/tc-m68k.c: Convert to C90. Remove redundant
...
declarations. Indentation fixup.
[M68KCOFF]: Include "obj-coff.h" instead of declaring
obj_coff_section ourselves.
2004-07-11 15:20:30 +00:00
Jim Wilson
549f748d67
Make -meb/-mel options work.
...
* config/tc-ia64.c (default_big_endian): New.
(dot_byteorder, md_begin): Use it.
(md_parse_option): Set it.
2004-07-09 23:21:54 +00:00
Nick Clifton
1a320fbbe5
Rename sh-symbian-elf toolchain to sh-*-symbianelf
2004-07-09 12:32:35 +00:00
Richard Sandiford
de7e685213
* config/tc-mips.c (mips_fix_adjustable): If the full addend is
...
going to be split into more than one in-place addend, return 0
for relocations against mergeable sections. Associate comments
with code.
2004-07-08 15:39:43 +00:00
Nick Clifton
1fe1f39c06
Add new port: crx-elf
2004-07-07 17:28:53 +00:00
Nick Clifton
85fbca6a4f
Add support for sh-symbian-elf target
2004-07-06 16:58:43 +00:00
Nick Clifton
e7bd9ea00e
(output_file_create): Report the target format chosen when bfd_openw reports
...
that it is invalid.
2004-07-06 16:42:04 +00:00
Nick Clifton
d98956497e
(coff_pseudo_table): Only define the weak pseudo for BFD based assemblers.
2004-07-06 15:30:26 +00:00
Joern Rennecke
871ec89609
2004-06-30 Andrew Stubbs <andrew.stubbs@superh.com>
...
bfd:
* elf32-sh.c: Include ../opcodes/sh-opc.h .
* Makefile.am: Ran make dep-am .
* Makefile.in: Ran make dep-in .
gas:
* config/tc-sh.c (md_assemble): Change isspace to ISSPACE.
(md_parse_option): Remove redundant -isa testing.
Make bfd_arch variable const.
(md_show_usage): Make bfd_arch variable const.
2004-07-05 13:35:44 +00:00