Bob Wilson
a77dc2cc26
bfd/
...
* elf32-xtensa.c (elf_xtensa_action_discarded): New.
(elf_backend_action_discarded): Define.
ld/
* emultempl/xtensaelf.em (is_inconsistent_linkonce_section): Check
for linkonce XCC exception tables (".e" and ".h").
2006-10-12 21:56:19 +00:00
Alan Modra
ea5f55e401
daily update
2006-10-11 23:59:20 +00:00
Bob Wilson
bf1747ded8
* elf32-xtensa.c (elf_xtensa_relocate_section): Return after
...
unresolvable relocation error.
(elf_xtensa_finish_dynamic_symbol): Set value of undefined, weak
symbols to zero.
2006-10-11 22:16:50 +00:00
Alan Modra
9b7d037ce6
daily update
2006-10-10 23:59:19 +00:00
Bob Wilson
ba05963f0d
bfd/
...
* elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG
for PIE executables.
ld/
* emulparams/elf32xtensa.sh (GENERATE_PIE_SCRIPT): Enable.
2006-10-10 20:57:37 +00:00
Alan Modra
ea399549dd
daily update
2006-10-09 23:59:20 +00:00
Alan Modra
7a67da2284
daily update
2006-10-08 23:59:20 +00:00
Alan Modra
6b9e9c7bd4
daily update
2006-10-07 23:59:22 +00:00
Alan Modra
5f9bb8779e
daily update
2006-10-06 23:59:23 +00:00
Alan Modra
7ccad82788
daily update
2006-10-05 23:59:26 +00:00
Alan Modra
8a23b8cafa
daily update
2006-10-04 23:59:24 +00:00
Alan Modra
dce1c5e35e
daily update
2006-10-03 23:59:25 +00:00
Jakub Jelinek
ac685e6adf
* elf-bfd.h (struct eh_cie_fde): Add set_loc pointer.
...
* elf-eh-frame.c (skip_cfa_op): Fix handling of DW_CFA_advance_loc.
Handle DW_CFA_{remember,restore}_state, DW_CFA_GNU_window_save,
DW_CFA_val_{offset{,_sf},expression}.
(skip_non_nops): Record number of DW_CFA_set_loc ops.
(_bfd_elf_discard_section_eh_frame): Require skip_non_nops recognizes
all ops. If there are any DW_CFA_set_loc ops and they are pcrel
or going to be pcrel, compute set_loc array.
(_bfd_elf_eh_frame_section_offset): If make_relative, kill relocations
against DW_CFA_set_loc operands.
(_bfd_elf_write_section_eh_frame): Handle DW_CFA_set_loc adjusting.
* ld-elf/eh4.d: New test.
* ld-elf/eh4.s: New file.
* ld-elf/eh4a.s: New file.
2006-10-03 13:15:39 +00:00
Alan Modra
9f1bed8bb1
daily update
2006-10-03 00:24:33 +00:00
Kazu Hirata
cd7be95be2
* elflink.c (_bfd_elf_merge_symbol): Discard references to TLS
...
symbols from the --just-syms file.
2006-10-02 22:52:19 +00:00
Alan Modra
df0e400d77
daily update
2006-10-01 23:59:32 +00:00
Alan Modra
23eb7e01cf
* elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for
...
existence of PLT.
2006-10-01 13:59:21 +00:00
Alan Modra
d309ba91cc
daily update
2006-09-30 23:59:31 +00:00
Alan Modra
0158021b03
daily update
2006-09-29 23:59:31 +00:00
H.J. Lu
4dba4b2419
2006-09-29 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/3283
* elf64-x86-64.c (elf64_x86_64_relocate_section): Don't ignore
relocation overflow on branches to undefweaks.
2006-09-29 13:24:11 +00:00
Alan Modra
3bb0c887b3
Regenerate.
2006-09-29 08:05:35 +00:00
Danny Smith
14952a5bc9
PR 3276
...
* pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
alignment for .data$, .rdata$ and .text$ sections so that sse
and sse2 code will work for linkonce sections too.
* pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2006-09-29 03:33:56 +00:00
Alan Modra
db700e70ee
daily update
2006-09-28 23:59:32 +00:00
Alan Modra
07adf1816d
* elflink.c (_bfd_elf_gc_mark_hook): New function.
...
* elf-bfd.h (_bfd_elf_gc_mark_hook): Declare.
* elfxx-target.h (elf_backend_gc_mark_hook): Default to above.
* elf-m10300.c (mn10300_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
* elf32-arm.c (elf32_arm_gc_mark_hook): Likewise.
* elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
* elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
* elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
* elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
* elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
* elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
* elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
* elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf32-score.c (_bfd_score_elf_gc_mark_hook): Likewise.
* elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
* elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
* elf32-xtensa.c (elf_xtensa_gc_mark_hook): Likewise.
* elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
* elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
* elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Likewise.
* elf32-bfin.c (bfin_gc_mark_hook): Likewise.
(bfinfdpic_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define for elf32-bfinfdpic.
* elf32-d10v.c (elf32_d10v_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(elf32_d10v_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-fr30.c (fr30_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(fr30_elf_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-frv.c (elf32_frv_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(elf32_frv_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-iq2000.c (iq2000_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(iq2000_elf_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Use
_bfd_elf_gc_mark_hook.
(openrisc_elf_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-v850.c (v850_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(v850_elf_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Use
_bfd_elf_gc_mark_hook.
(xstormy16_elf_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf64-sh64.c (sh_elf64_gc_mark_hook): Use _bfd_elf_gc_mark_hook.
(sh_elf64_gc_sweep_hook): Delete.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-avr.c (elf32_avr_gc_mark_hook): Delete.
(elf32_avr_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-cr16c.c (elf32_cr16c_gc_mark_hook): Delete.
(elf32_cr16c_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-crx.c (elf32_crx_gc_mark_hook): Delete.
(elf32_crx_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-h8300.c (elf32_h8_gc_mark_hook): Delete.
(elf32_h8_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-ip2k.c (ip2k_elf_gc_mark_hook): Delete.
(ip2k_elf_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-m32c.c (m32c_elf_gc_mark_hook, m32c_elf_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-m68hc11.c (elf_backend_gc_mark_hook): Don't define.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-m68hc12.c (elf_backend_gc_mark_hook): Don't define.
(elf_backend_gc_sweep_hook): Don't define.
* elf32-m68hc1x.c (elf32_m68hc11_gc_mark_hook): Delete.
(elf32_m68hc11_gc_sweep_hook): Delete.
* elf32-m68hc1x.h (elf32_m68hc11_gc_mark_hook): Delete.
(elf32_m68hc11_gc_sweep_hook): Delete.
* elf32-msp430.c (elf32_msp430_gc_mark_hook): Delete.
(elf32_msp430_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
* elf32-mt.c (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook): Delete.
(elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define.
2006-09-28 13:27:33 +00:00
Nick Clifton
ea9986ff00
* bfd-in.h (CONST_STRNCPY) : Delete.
...
(LITSTRCPY) : New.
(LITMEMCPY) : New.
* bfd-in2.h : Regenerate.
* elflink.c (bfd_elf_gc_sections) : Use LITMEMCPY. Don't manually calculate string lengths.
* nlmcode.h (nlm_swap_auxiliary_headers_in) : Use LITMEMCPY.
* nlmconv.c (main) : Use LITMEMCPY.
* prdbg.c (tg_class_static_member) : Use LITSTRCPY.
2006-09-28 12:59:25 +00:00
Alan Modra
9af8283e8f
daily update
2006-09-27 23:59:36 +00:00
H.J. Lu
49c13adb16
bfd/
...
2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3223
PR ld/3267
* elf.c (assign_file_positions_for_non_load_sections): Don't
warn zero size allocated sections.
ld/
2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3223
PR ld/3267
* ld.texinfo: Updated Output Section Discarding.
* ldlang.h (lang_output_section_statement_type): Add
section_relative_symbol.
* ldlang.c (strip_excluded_output_sections): Don't strip a
section with a symbol relative to it.
(lang_size_sections_1): Mark if an output section has a symbol
symbol relative to it.
ld/testsuite/
2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3223
PR ld/3267
* ld-scripts/empty-address-1.d: New file.
* ld-scripts/empty-address-1.s: Likewise.
* ld-scripts/empty-address-1.t: Likewise.
* ld-scripts/empty-address-2.s: Likewise.
* ld-scripts/empty-address-2a.d: Likewise.
* ld-scripts/empty-address-2a.t: Likewise.
* ld-scripts/empty-address-2b.d: Likewise.
* ld-scripts/empty-address-2b.t: Likewise.
* ld-scripts/empty-address-3.s: Likewise.
* ld-scripts/empty-address-3a.d: Likewise.
* ld-scripts/empty-address-3a.t: Likewise.
* ld-scripts/empty-address-3b.d: Likewise.
* ld-scripts/empty-address-3b.t: Likewise.
* ld-scripts/empty-address-3c.d: Likewise.
* ld-scripts/empty-address-3c.t: Likewise.
* ld-scripts/empty-address.exp: Likewise.
2006-09-27 04:18:16 +00:00
Alan Modra
f36b9bcd93
* elf32-score.c (_bfd_score_elf_relocate_section): Move assignment
...
to "name" so that compiler realizes it is never uninitialized.
Use bfd_elf_sym_name.
2006-09-27 04:07:57 +00:00
Alan Modra
583fbeb9d7
daily update
2006-09-26 23:59:33 +00:00
H.J. Lu
41f8ce693c
2006-09-26 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/3262
* elf.c (rewrite_elf_program_header): Use bfd_zalloc instead of
bfd_alloc to allocate segment map.
(copy_elf_program_header): Likewise.
2006-09-26 19:11:03 +00:00
Joseph Myers
2d447fcaa9
bfd/
...
2006-09-26 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Ian Lance Taylor <ian@wasabisystems.com>
Ben Elliston <bje@wasabisystems.com>
* archures.c: Add definition for bfd_mach_arm_iWMMXt2.
* cpu-arm.c (processors): Add bfd_mach_arm_iWMMXt2.
(arch_info_struct, bfd_arm_update_notes): Likewise.
(architectures): Likewise.
(bfd_arm_merge_machines): Check for iWMMXt2.
* bfd-in2.h: Rebuild.
gas/
2006-09-26 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Ian Lance Taylor <ian@wasabisystems.com>
Ben Elliston <bje@wasabisystems.com>
* config/tc-arm.c (arm_cext_iwmmxt2): New.
(enum operand_parse_code): New code OP_RIWR_I32z.
(parse_operands): Handle OP_RIWR_I32z.
(do_iwmmxt_wmerge): New function.
(do_iwmmxt_wldstd): Handle iwmmxt2 case where second operand is
a register.
(do_iwmmxt_wrwrwr_or_imm5): New function.
(insns): Mark instructions as RIWR_I32z as appropriate.
Also add torvsc<b,h,w>, wabs<b,h,w>, wabsdiff<b,h,w>,
waddbhus<l,m>, waddhc, waddwc, waddsubhx, wavg4{r}, wmaddu{x,n},
wmadds{x,n}, wmerge, wmiaxy{n}, wmiawxy{n}, wmul<sm,um>{r},
wmulw<um,sm,l>{r}, wqmiaxy{n}, wqmulm{r}, wqmulwm{r}, wsubaddhx.
(md_begin): Handle IWMMXT2.
(arm_cpus): Add iwmmxt2.
(arm_extensions): Likewise.
(arm_archs): Likewise.
gas/testsuite/
2006-09-26 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Ian Lance Taylor <ian@wasabisystems.com>
Ben Elliston <bje@wasabisystems.com>
* gas/arm/iwmmxt2.s: New file.
* gas/arm/iwmmxt2.d: New file.
include/opcode/
2006-09-26 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Ian Lance Taylor <ian@wasabisystems.com>
Ben Elliston <bje@wasabisystems.com>
* arm.h (ARM_CEXT_IWMMXT2, ARM_ARCH_IWMMXT2): Define.
opcodes/
2006-09-26 Mark Shinwell <shinwell@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
Ian Lance Taylor <ian@wasabisystems.com>
Ben Elliston <bje@wasabisystems.com>
* arm-dis.c (coprocessor_opcodes): The X-qualifier to WMADD may
only be used with the default multiply-add operation, so if N is
set, don't bother printing X. Add new iwmmxt instructions.
(IWMMXT_INSN_COUNT): Update.
(iwmmxt_wwssnames): Qualify "wwss" names at index 2, 6, 10 and 14
with a 'c' suffix.
(print_insn_coprocessor): Check for iWMMXt2. Handle format
specifiers 'r', 'i'.
2006-09-26 12:04:45 +00:00
Alan Modra
d6e16033ea
daily update
2006-09-25 23:59:35 +00:00
Alan Modra
420fa6d5e8
daily update
2006-09-24 23:59:35 +00:00
H.J. Lu
4b18151054
Fix entry of fix for PR 3181.
2006-09-24 16:24:10 +00:00
H.J. Lu
65fe5dd6ac
2006-09-24 H.J. Lu <hongjiu.lu@intel.com>
...
* configure: Regenerated.
2006-09-24 14:57:44 +00:00
Alan Modra
9c3278f1a5
daily update
2006-09-23 23:59:36 +00:00
Alan Modra
12ca03642a
daily update
2006-09-22 23:59:39 +00:00
Alan Modra
8384fb8f0c
* elfcode.h (elf_swap_symbol_in): Return bfd_boolean. Don't abort
...
on error.
* elf-bfd.h (elf_size_info <swap_symbol_in>): Adjust decl.
(bfd_elf32_swap_symbol_in, bfd_elf64_swap_symbol_in): Likewise.
* elf.c (bfd_elf_get_elf_syms): Test return of swap_symbol_in,
and report error.
* elf32-arm.c (elf32_arm_swap_symbol_in): Return bfd_boolean.
2006-09-22 13:16:45 +00:00
Alan Modra
b20f5d47cd
daily update
2006-09-21 23:59:38 +00:00
Alan Modra
263d69c3ec
daily update
2006-09-20 23:59:40 +00:00
Martin Schwidefsky
36c10a8ff3
* elf32-s390.c (elf_s390_relocate_section): Remove check for code
...
section in LD to LE linker relaxation for R_390_TLS_LDO32.
* elf64-s390.c (elf_s390_relocate_section): Likewise for
R_390_TLS_LDO64.
2006-09-20 14:38:17 +00:00
Nick Clifton
99ad839030
Add x86_64-mingw64 target
2006-09-20 11:35:11 +00:00
Alan Modra
288ded3830
daily update
2006-09-19 23:59:41 +00:00
Alan Modra
5e43b9eb05
daily update
2006-09-18 23:59:42 +00:00
Alan Modra
805c66223c
daily update
2006-09-17 23:59:41 +00:00
Hans-Peter Nilsson
60ff4dc4b5
* elf.c (special_sections_s): Revert last STRING_COMMA_LEN change
...
for .stabstr entry, explain why.
2006-09-17 18:57:43 +00:00
Nick Clifton
faa4097754
Fix typo in use of CONST_STRNEQ
2006-09-17 14:38:51 +00:00
Alan Modra
7421a730ce
* dwarf2.c (concat_filename): Apply DW_AT_comp_dir if dir table
...
entry isn't absolute.
2006-09-17 02:44:38 +00:00
Alan Modra
db98495956
daily update
2006-09-16 23:59:43 +00:00
Nick Clifton
1c0d3aa6ae
Add support for Score target.
2006-09-16 23:51:50 +00:00