Alan Modra
19f567f268
daily update
2006-11-13 22:58:48 +00:00
Daniel Jacobowitz
d504ffc851
bfd/
...
* bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
prototype.
(bfd_elf32_arm_set_byteswap_code): New prototype.
* bfd-in2.h: Regenerate.
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take
byteswap_code as an argument. Revert 2006-11-01 change.
(bfd_elf32_arm_set_byteswap_code): New.
(elf32_arm_size_dynamic_sections): Call
bfd_elf32_arm_process_before_allocation.
ld/
* emultempl/armelf.em (arm_elf_before_allocation): Only call
bfd_elf32_arm_process_before_allocation if no dynamic sections.
2006-11-13 20:39:21 +00:00
Alan Modra
677059afb4
daily update
2006-11-12 22:58:49 +00:00
Alan Modra
0664753622
daily update
2006-11-11 22:58:50 +00:00
Alan Modra
5c1c05aecb
daily update
2006-11-10 22:58:51 +00:00
Thiemo Seufer
73ca250004
* config.bfd (mips*el-sde-elf*, mips*-sde-elf*): Drop ECOFF support
...
for SDE configs.
2006-11-10 14:37:33 +00:00
Nick Clifton
0285182bf2
* config.bfd: Move previously obsoleted targets to the REMOVED list.
...
Add maxq-*-coff to the obsolete list.
2006-11-10 07:53:33 +00:00
Nick Clifton
d66dff9480
* pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".".
...
* pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise.
* coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before.
* gas/arm/undefined.d: Run test on Windows CE.
* gas/arm/undefined_coff.d: Don't run test on Windows CE.
2006-11-10 07:35:20 +00:00
Alan Modra
18abb17182
daily update
2006-11-09 22:58:52 +00:00
Alan Modra
cba94f9ccb
daily update
2006-11-08 22:58:53 +00:00
Alan Modra
3181e5dc7c
daily update
2006-11-07 22:58:54 +00:00
Daniel Jacobowitz
f2a9dd69a9
* elf32-arm.c (find_thumb_glue): Add ERROR_MESSAGE argument; set it
...
on error.
(find_arm_glue): Likewise.
(elf32_thumb_to_arm_stub, elf32_arm_create_thumb_stub)
(elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate): Add
ERROR_MESSAGE argument and pass it through.
(elf32_arm_to_thumb_export_stub): Update.
(elf32_arm_relocate_section): Use ERROR_MESSAGE and reloc_dangerous.
2006-11-07 14:57:45 +00:00
Alan Modra
7c8fe5c480
* elf64-ppc.c (enum _ppc64_sec_type): New.
...
(struct _ppc64_elf_section_data): Move "t_symndx" into opd union,
and rename fields. Add sec_type and has_14bit_branch.
(struct ppc_link_hash_table): Remove has_14bit_branch.
(get_opd_info, get_tls_mask, ppc64_elf_edit_opd): Adjust.
(ppc64_elf_relocate_section): Likewise.
(ppc64_elf_check_relocs): Likewise. Set per-section has_14bit_branch.
(ppc64_elf_size_stubs): Don't set default group size here.
(group_sections): Instead do so here, and group sections using
their individual requirements.
2006-11-07 03:34:52 +00:00
Alan Modra
b3fac117e3
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Remove "has_dotsym"
...
and union.
(struct ppc_link_hash_entry): Add "next_dot_sym".
(struct ppc_link_hash_table): Add "dot_syms".
(link_hash_newfunc): Make list of syms starting with a dot.
(ppc_get_stub_entry, adjust_opd_syms): Adjust.
(ppc64_elf_add_symbol_hook): Don't set has_dotsym.
(struct add_symbol_adjust_data): Delete.
(add_symbol_adjust): Simplify params and return.
(ppc64_elf_check_directives): Just process the "dot_syms" lists,
not all syms.
2006-11-07 03:24:13 +00:00
Alan Modra
fd034a2f3f
daily update
2006-11-06 22:58:55 +00:00
Alan Modra
c996113b94
daily update
2006-11-05 22:58:55 +00:00
Alan Modra
583b392675
daily update
2006-11-04 22:58:57 +00:00
Alan Modra
e5bab8fed6
daily update
2006-11-03 22:58:59 +00:00
Daniel Jacobowitz
b1e24c0220
bfd/
...
* libbfd-in.h (_bfd_clear_contents): New prototype.
* reloc.c (_bfd_clear_contents): New.
* libbfd.h: Regenerated.
* elf32-arm.c (elf32_arm_final_link_relocate): Use
_bfd_clear_contents.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to
zero for discarded symbols.
* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
ld/testsuite/
* ld-discard/zero-rel.d, ld-discard/zero-rel.s: New files.
2006-11-03 00:58:10 +00:00
Alan Modra
22d55fa78f
daily update
2006-11-02 22:59:00 +00:00
Thiemo Seufer
b9d58d7191
[ bfd/ChangeLog ]
...
* elf-bfd.h (local_call_stubs): New member.
* elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros.
(mips_elf_calculate_relocation): Handle local mips16 call stubs.
(mips16_stub_section_p): Rename from mips_elf_stub_section_p, use
the new stub macros.
(_bfd_mips_elf_check_relocs): Handle call stubs for code which
mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark
used stubs with SEC_KEEP. Use the new stub macros.
[ gas/testsuite/ChangeLog ]
* gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New
testcase.
* gas/mips/mips.exp: Run new testcase.
[ ld/testsuite/ChangeLog ]
* ld-mips-elf/mips16-intermix-1.s, ld-mips-elf/mips16-intermix-2.s,
ld-mips-elf/mips16-intermix.d: New testcase.
* ld-mips-elf/mips-elf.exp (mips16_intermix_test): Run new testcases.
2006-11-02 15:20:31 +00:00
Alan Modra
15d2668a28
daily update
2006-11-01 22:58:59 +00:00
Daniel Jacobowitz
74b08499dd
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Correct
...
check for PLT usage.
2006-11-01 20:00:25 +00:00
Daniel Jacobowitz
3110dbc9c3
* elfxx-mips.c (mips_elf_merge_gots): Always use maxcnt.
2006-11-01 16:07:46 +00:00
Alan Modra
babcc35ed1
daily update
2006-10-31 22:59:01 +00:00
Alan Modra
a39f33461a
* elf.c (elfcore_write_note): Pad note descriptor to 4-byte
...
boundary. Tidy. Comment.
2006-10-31 02:36:18 +00:00
H.J. Lu
c0f0068602
bfd/
...
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* elf-bfd.h (elf_obj_tdata): Add symbuf.
(_bfd_elf_section_already_linked): Add struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(bfd_elf_match_symbols_in_sections): Likewise.
* elf.c (assign_section_numbers): Updated to add
struct bfd_link_info *.
(bfd_elf_match_symbols_in_sections): Updated. Cache symbol
buffer if info->reduce_memory_overheads is false.
* elflink.c (match_group_member): Updated to add
struct bfd_link_info *.
(_bfd_elf_check_kept_section): Likewise.
(elf_link_input_bfd): Likewise.
(_bfd_elf_section_already_linked): Likewise.
(bfd_elf_final_link): Free symbol buffer if
info->reduce_memory_overheads is false.
* libbfd-in.h (_bfd_nolink_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* libbfd.h: Regenerated.
* linker.c (bfd_section_already_linked): Add
struct bfd_link_info *.
(_bfd_generic_section_already_linked): Likewise.
* targets.c (bfd_target): Add struct bfd_link_info * to
_section_already_linked.
* bfd-in2.h: Regenerated.
include/
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* bfdlink.h (bfd_link_info): Add reduce_memory_overheads.
ld/
2006-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3111
* ld.h (args_type): Remove reduce_memory_overheads.
* ldlang.c (lang_map): Updated.
(section_already_linked): Likewise.
(print_input_section): Likewise.
* ldmain.c (main): Likewise.
* lexsup.c (parse_args): Likewise.
2006-10-30 23:25:51 +00:00
Alan Modra
5147198ffd
daily update
2006-10-30 22:59:02 +00:00
Alan Modra
b52149c8e0
* bfd-in2.h: Regenerate.
2006-10-30 07:44:11 +00:00
Alan Modra
ffda70fc2e
* bfd.c (bfd_error_type): Add bfd_error_on_input.
...
(input_bfd, input_error): New static vars.
(bfd_set_error): Handle bfd_error_on_input.
(bfd_errmsg): Likewise.
(bfd_perror): Simplify.
* archive.c (_bfd_write_archive_contents): Report errors on input.
2006-10-30 07:41:17 +00:00
Alan Modra
017657f056
* elf.c (elfcore_write_note): Pad to 4-byte boundary.
2006-10-29 23:49:37 +00:00
Alan Modra
b12e747eaf
daily update
2006-10-29 22:59:02 +00:00
Alan Modra
e125309b4a
daily update
2006-10-28 22:59:03 +00:00
Richard Sandiford
165b93e775
include/elf/
...
* mips.h (R_MIPS_GLOB_DAT): Define
(R_MIPS_max): Bump by 1.
bfd/
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
* elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
(elf_mips_howto_table_rela): Likewise.
* elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
(mips_elf64_howto_table_rela): Likewise.
2006-10-28 10:13:49 +00:00
Alan Modra
b2f4b03332
daily update
2006-10-27 23:59:04 +00:00
H.J. Lu
d270463e93
2006-10-26 H.J. Lu <hongjiu.lu@intel.com>
...
* elf.c (_bfd_elf_init_private_section_data): Assert output
section ELF type instead of check if it is SHT_NULL. Copy
OS/PROC specific flags from input section to output section.
2006-10-27 04:15:50 +00:00
Alan Modra
a14a5de357
bfd/
...
* section.c (SEC_KEEP): Update comment.
* bfd-in2.h: Regenerate.
* elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections.
* merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections.
* stabs.c (_bfd_discard_section_stabs): Likewise.
(_bfd_link_section_stabs): Likewise. Simplify abs_section check.
ld/
* ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP
sections have been discarded.
(lang_do_version_exports_section): Set SEC_KEEP on export section.
* emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning
sections.
2006-10-27 03:22:09 +00:00
Alan Modra
43501e81c2
daily update
2006-10-26 23:59:04 +00:00
Ben Elliston
49a184f6ad
* reloc.c (_bfd_relocate_contents): Remove explicit case 0.
2006-10-26 00:22:52 +00:00
Ben Elliston
761c7f08ff
* elf.c (bfd_section_from_shdr): Remove extraneous breaks.
...
* targets.c (find_target): Remove extraneous break.
2006-10-26 00:14:39 +00:00
Ben Elliston
0b85353719
* coff-maxq.c (coff_maxq20_reloc): Remove unused variable `howto'.
...
(struct maxq_reloc_map): Unused; remove.
(maxq_reloc_map): Likewise.
(maxq_reloc_type_lookup): Remove loop over maxq_reloc_map.
2006-10-26 00:10:43 +00:00
Ben Elliston
23fe95776c
* elf.c (bfd_elf_set_dyn_lib_class): Change second argument type
...
from int to enum dynamic_lib_link_class lib_class.
* bfd-in.h (bfd_elf_set_dyn_lib_class): Likewise.
* bfd-in2.h: Regenerate.
2006-10-26 00:01:31 +00:00
Alan Modra
fb14255e6e
daily update
2006-10-25 23:59:05 +00:00
Alan Modra
e9f5312993
New Cell SPU port.
2006-10-25 06:49:21 +00:00
Alan Modra
3576fbfc01
daily update
2006-10-24 23:59:05 +00:00
Alan Modra
db53f616e3
daily update
2006-10-23 23:59:09 +00:00
Alan Modra
05bf94229c
* elf64-ppc.c (ppc64_elf_edit_opd): Clarify comment.
2006-10-23 03:20:56 +00:00
Alan Modra
9838404fe5
* elf32-score.c: Formatting.
...
(elf_backend_omit_section_dynsym): Define.
(score_elf_create_dynamic_relocation): Remove code copied from mips.
Don't use section syms in dynamic relocs. Remove unused param.
(score_elf_final_link_relocate): Remove unused param.
2006-10-23 02:41:11 +00:00
Alan Modra
720194edb0
* linker.c (fix_syms): Choose best of previous and next
...
section based on section flags and vma.
2006-10-23 02:35:38 +00:00
Alan Modra
04648a5bd8
daily update
2006-10-22 23:59:13 +00:00
Kaz Kojima
dc84ceef3a
* elf32-sh64.c (sh64_elf_merge_symbol_attribute): Do merging
...
only when the non visibility part of st_other is non-zero.
* elf64-sh64.c (sh64_elf64_merge_symbol_attribute): Likewise.
2006-10-22 01:02:38 +00:00
Alan Modra
47ec7fa07c
daily update
2006-10-21 23:59:12 +00:00
Alan Modra
43ca6d2845
daily update
2006-10-20 23:59:12 +00:00
Richard Sandiford
f6f62d6fe6
bfd/
...
* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't extend
PT_DYNAMIC on GNU/Linux targets.
2006-10-20 07:59:44 +00:00
Richard Sandiford
bcfdf036c8
bfd/
...
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the
size of .rel.dyn reflect the value of DT_RELSZ.
ld/testsuite/
* ld-mips-elf/multi-got-1.d: Remove trailing R_MIPS_NONE entries.
* ld-mips-elf/tls-multi-got-1.got: Likewise.
* ld-mips-elf/tls-multi-got-1.r: Likewise.
2006-10-20 07:58:17 +00:00
Richard Sandiford
98c904a864
bfd/
...
* elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate
a PT_NULL header for dynamic objects.
(_bfd_mips_elf_modify_segment_map): Add it.
ld/testsuite/
* ld-mips-elf/multi-got-1.d: Do not expect a particular address
for DT_HASH.
* ld-mips-elf/rel32-o32.d: Bump addresses by 0x20 to account for
the extra program header.
* ld-mips-elf/rel32-n32.d: Likewise.
* ld-mips-elf/tlslib-o32.got: Likewise.
* ld-mips-elf/tlslib-o32-hidden.got: Likewise.
* ld-mips-elf/tlslib-o32-ver.got: Likewise.
* ld-mips-elf/tls-multi-got-1.got: Likewise.
* ld-mips-elf/tls-multi-got-1.r: Likewise.
* ld-mips-elf/rel64.d: Bump addresses by 0x30 to account for the
extra program header.
* ld-mips-elf/tlsdyn-o32.d: Reduce the GOT offset by 32 to account
for the extra program header, and thus the shorter gap between the
text and data segments.
* ld-mips-elf/tlsdyn-o32-1.d: Likewise.
* ld-mips-elf/tlsdyn-o32-2.d: Likewise.
* ld-mips-elf/tlsdyn-o32-3.d: Likewise.
* ld-mips-elf/tlsdyn-o32.got: Bump GOT text addresses by 0x20
to account for the extra program header.
* ld-mips-elf/tlsdyn-o32-1.got: Likewise.
* ld-mips-elf/tlsdyn-o32-2.got: Likewise.
* ld-mips-elf/tlsdyn-o32-3.got: Likewise.
2006-10-20 07:57:03 +00:00
Alan Modra
b77195b320
daily update
2006-10-19 23:59:15 +00:00
Nick Clifton
b354976135
Fix score bugs
2006-10-19 15:47:34 +00:00
Richard Sandiford
6870500c04
bfd/
...
* elfxx-mips.c (sort_dynamic_relocs): Sort relocations against the
same symbol by increasing r_offset.
(sort_dynamic_relocs_64): Likewise. Fix comparisons between very
large and very small symbol indexes.
ld/testsuite/
* ld-mips-elf/tlslib-o32-hidden.got: Sort relocations against the
same symbol in order of increasing r_offset.
* ld-mips-elf/tls-multi-got-1.got: Likewise.
* ld-mips-elf/tls-hidden3.r: Likewise.
* ld-mips-elf/tls-hidden4.r: Likewise.
2006-10-19 13:47:10 +00:00
Richard Sandiford
6a4837657a
bfd/
...
* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG
and DT_MIPS_RLD_MAP tags for position-independent executables.
Do not add DT_DEBUG to shared libraries for any MIPS target.
ld/testsuite/
* ld-mips-elf/multi-got-1.d: Remove DT_DEBUG tag. Do not require
a specific file offset for .dynamic. Reduce DT_HASH by 8 to account
for removed tag.
* ld-mips-elf/tls-multi-got-1.r: Likewise. Also reduce DT_REL by 8.
Reduce PLTGOT and symbol values by 16 to account for the removed tag.
* ld-mips-elf/textrel-1.d: Remove DT_DEBUG tag.
* ld-mips-elf/rel32-n32.d: Reduce addresses by 16 to account for
removed DT_DEBUG tag.
* ld-mips-elf/rel64.d: Likewise.
* ld-mips-elf/tls-multi-got-1.got: Likewise.
* ld-mips-elf/tlslib-o32-hidden.got: Likewise.
2006-10-19 13:42:17 +00:00
H.J. Lu
92b7c7b6e9
bfd/
...
2006-10-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3290
* elflink.c (elf_link_add_object_symbols): Hide definitions in
debug sections.
ld/testsuite/
2006-10-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3290
* ld-elf/dummy.c: New file.
* ld-elf/dwarf.exp: Likewise.
* ld-elf/dwarf1.c: Likewise.
* ld-elf/dwarf1.h: Likewise.
* ld-elf/dwarf1.out: Likewise.
* ld-elf/dwarf1main.c: Likewise.
2006-10-19 02:40:14 +00:00
Alan Modra
2f4754876f
bfd/
...
* elf32-arm.c (bfd_elf32_arm_allocate_interworking_sect): Check,
don't set, glue section size.
(record_arm_to_thumb_glue): Set glue section size here.
(record_thumb_to_arm_glue): Likewise.
(bfd_elf32_arm_add_glue_sections_to_bfd): Formatting.
(bfd_elf32_arm_process_before_allocation): Ignore exluded sections.
ld/
* emultempl/armelf.em (arm_elf_before_allocation): Run
gld${EMULATION_NAME}_before_allocation later.
* ldlang.c (lang_size_sections_1): Revert 2006-09-15 change.
2006-10-19 02:10:41 +00:00
Alan Modra
cd53e41363
daily update
2006-10-18 23:59:13 +00:00
Mike Frysinger
71a75f6f15
2006-10-18 Roy Marples <uberlord@gentoo.org>
...
* bfd/elf64-sparc.c: Add FreeBSD support.
(elf64_sparc_fbsd_post_process_headers): New function.
* bfd/targets.c (_bfd_target_vector): Add bfd_elf64_sparc_freebsd_vec.
* bfd/config.bfd (sparc64-*-freebsd*): Set targ_defvec to bfd_elf64_sparc_freebsd_vec.
* bfd/configure.in: Add entry for bfd_elf64_sparc_freebsd_vec.
* bfd/configure: Regenerate.
* gas/config/tc-sparc.c (md_parse_option): Treat any target starting with elf32-sparc
as a viable target for the -32 switch and any target starting with elf64-sparc as a
viable target for the -64 switch.
(sparc_target_format): For 64-bit ELF flavoured output use ELF_TARGET_FORMAT64
while for 32-bit ELF flavoured output use ELF_TARGET_FORMAT.
* gas/config/tc-sparc.h (ELF_TARGET_FORMAT, ELF_TARGET_FORMAT64): Define.
* ld/emulparams/elf64_sparc_fbsd.sh (OUTPUT_FORMAT): Define as elf64-sparc-freebsd.
2006-10-18 23:58:52 +00:00
Mark Shinwell
92f5d02b57
* elf32-arm.c (elf32_arm_final_link_relocate): Add support for
...
R_ARM_MOVW_BREL_NC, R_ARM_MOVW_BREL, R_ARM_MOVT_BREL,
R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVW_BREL and
R_ARM_THM_MOVT_BREL relocations.
2006-10-18 15:34:50 +00:00
Alan Modra
e5cf2424ae
daily update
2006-10-17 23:59:14 +00:00
Mark Shinwell
e95de06338
bfd/
...
* elf32-arm.c (elf32_arm_howto_table_1): Change offset for
R_THM_CALL to 25 and remove FIXME comment.
(using_thumb2): New function.
(elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding.
include/
* elf/arm.h: Define TAG_CPU_ARCH_* constants.
ld/testsuite/
* ld-arm/arm-elf.exp: Add thumb1-bl, thumb2-bl,
thumb2-bl-as-thumb1-bad and thumb2-bl-bad tests.
* ld-arm/thumb1-bl.d: New.
* ld-arm/thumb1-bl.s: New.
* ld-arm/thumb2-bl-as-thumb1-bad.d: New.
* ld-arm/thumb2-bl-as-thumb1-bad.s: New.
* ld-arm/thumb2-bl-bad.d: New.
* ld-arm/thumb2-bl-bad.s: New.
* ld-arm/thumb2-bl.d: New.
* ld-arm/thumb2-bl.s: New.
2006-10-17 15:46:21 +00:00
Mark Shinwell
bb224fc379
* elf32-arm.c (elf32_arm_final_link_relocate): Add cases
...
for R_ARM_ABS32_NOI and R_ARM_REL32_NOI.
(elf32_arm_gc_sweep_hook): Likewise.
(elf32_arm_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
2006-10-17 14:49:51 +00:00
Alan Modra
74541ad4c0
bfd/
...
* elf-bfd.h (struct elf_link_hash_table): Reorder. Add
text_index_section and data_index_section.
(struct elf_backend_data): Add elf_backend_init_index_section.
(_bfd_elf_init_1_index_section): Declare.
(_bfd_elf_init_2_index_sections): Declare.
* elfxx-target.h (elf_backend_init_index_section): Define.
(elfNN_bed): Init new field.
* elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls
section and text_index_section plus data_index_section.
(_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections.
(_bfd_elf_init_1_index_section): New function.
(_bfd_elf_init_2_index_sections): New function.
(bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section.
(elf_link_input_bfd): When emitting relocs, use text_index_section
and data_index_section for removed sections.
* elf-m10300.c (elf_backend_omit_section_dynsym): Define.
* elf32-i386.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-xstormy16.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-sh64.c: Likewise.
* elfxx-ia64.c: Likewise.
* elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section
and data_index_section sym for relocs against sections with no dynamic
section sym.
(elf_backend_init_index_section): Define.
* elf32-cris.c: Similarly.
* elf32-hppa.c: Similarly.
* elf32-i370.c: Similarly.
* elf32-m68k.c: Similarly.
* elf32-mips.c: Similarly.
* elf32-ppc.c: Similarly.
* elf32-s390.c: Similarly.
* elf32-sparc.c: Similarly.
* elf32-vax.c: Similarly.
* elf64-mips.c: Similarly.
* elf64-ppc.c: Similarly.
* elf64-s390.c: Similarly.
* elf64-sparc.c: Similarly.
* elf64-x86-64.c: Similarly.
* elfn32-mips.c: Similarly.
* elfxx-mips.c: Similarly.
* elfxx-sparc.c: Similarly.
* linker.c (fix_syms): Base symbols in removed sections on
previous section in preference to using absolute section.
ld/
* ldlang.c (strip_excluded_output_sections): Do strip sections
that define syms, but don't ignore them.
* ld.texinfo (Output Section Discarding): Revise.
* emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Always call
finish_default.
ld/testsuite/
Update for section sym changes.
2006-10-17 13:41:49 +00:00
Alan Modra
b24feb0695
daily update
2006-10-16 23:59:13 +00:00
Andreas Schwab
c26620e342
* elfxx-ia64.c (addend_compare): Properly compute return value.
2006-10-16 17:21:44 +00:00
Alan Modra
f0c9511123
daily update
2006-10-15 23:59:14 +00:00
H.J. Lu
3ba7113878
2006-10-15 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/3314
* elf.c (assign_file_positions_for_non_load_sections): Don't
page align empty SHF_ALLOC sections.
2006-10-15 14:22:13 +00:00
Alan Modra
9436902388
daily update
2006-10-14 23:59:18 +00:00
Alan Modra
462d6fd48f
daily update
2006-10-13 23:59:16 +00:00
Jakub Jelinek
7eeb1be681
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
...
.plt sh_entsize to 0 if plt header size isn't multiple of
plt entry size or for 32-bit which adds a nop insn at the
end of the .plt section.
2006-10-13 21:03:40 +00:00
Alan Modra
d0d6691428
daily update
2006-10-12 23:59:17 +00:00
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
Nick Clifton
0112cd268b
* bfd-in.h (STRING_AND_COMMA): New macro. Takes one constant string as its
...
argument and emits the string followed by a comma and then the length of
the string.
(CONST_STRNEQ): New macro. Checks to see if a variable string has a constant
string as its initial characters.
(CONST_STRNCPY): New macro. Copies a constant string to the start of a
variable string.
* bfd-in2.h: Regenerate.
* <remainign files>: Make use of the new macros.
2006-09-16 18:12:17 +00:00
Alan Modra
519548ba38
daily update
2006-09-15 23:59:44 +00:00
Alan Modra
3a296a7340
daily update
2006-09-14 23:59:47 +00:00
Alan Modra
30288845d6
PR 3182
...
* elf.c (_bfd_elf_copy_private_header_data): Fix group members
that have had their SHT_GROUP section removed.
* objcopy.c (group_signature): New function, split out from..
(setup_section): ..here.
(is_strip_section): Return true for SHT_GROUP sections that are
going to lose their group signature symbol.
2006-09-14 12:11:33 +00:00
Alan Modra
2591496328
daily update
2006-09-13 23:59:49 +00:00
Alan Modra
2a605a9e83
daily update
2006-09-12 23:59:45 +00:00
H.J. Lu
41198d0cfa
bfd/
...
2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3197
* elflink.c (elf_link_output_extsym): Compute bucket only if
needed.
ld/testsuite/
2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3197
* ld-elf/hash.d: New test.
2006-09-12 22:10:31 +00:00
Alan Modra
7aa46699e6
daily update
2006-09-12 01:34:11 +00:00
Alan Modra
2a319aca60
daily update
2006-09-10 23:59:51 +00:00
H.J. Lu
168dd6670b
2006-09-10 H.J. Lu <hongjiu.lu@intel.com>
...
PR binutils/3186
* elf.c (_bfd_elf_make_section_from_shdr): Correct length of
"gnu.linkonce.wi.".
2006-09-10 23:51:09 +00:00
Alan Modra
5e1f89940e
daily update
2006-09-09 23:59:51 +00:00
Alan Modra
7871578529
daily update
2006-09-08 23:59:52 +00:00
Richard Earnshaw
b0fead2b6c
2006-09-08 Vladimir Prus <vladimir@codesourcery.com>
...
* elf32-arm.c (elf32_arm_swap_symbol_out): Remove
unconditional setting of low bit for Thumb symbol
mistakenly left behind after check for external
symbols was added. Fix comment typo.
2006-09-08 10:30:27 +00:00
Alan Modra
2a22d1826a
daily update
2006-09-07 23:59:54 +00:00
H.J. Lu
55255daec3
bfd/
...
2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (elf_link_hash_entry): Add a dynamic field.
(bfd_elf_link_mark_dynamic_symbol): New.
(SYMBOLIC_BIND): New.
* elf32-i386.c (elf_i386_check_relocs): Replace info->symbolic
with SYMBOLIC_BIND (info, h).
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_check_relocs): Likewise.
* elflink.c (bfd_elf_link_mark_dynamic_symbol): New.
(bfd_elf_record_link_assignment): Call
bfd_elf_link_mark_dynamic_symbol on new entry.
(_bfd_elf_merge_symbol): Likewise.
(_bfd_elf_export_symbol): Return if the symbol isn't exported.
(_bfd_elf_fix_symbol_flags): Replace info->symbolic with
SYMBOLIC_BIND (info, h).
(_bfd_elf_dynamic_symbol_p): Likewise.
(_bfd_elf_symbol_refs_local_p): Likewise.
(bfd_elf_size_dynamic_sections): Updated.
include/
2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
* bfdlink.h (bfd_elf_dynamic_list): New.
(bfd_link_info): Add a dynamic field.
ld/
2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (CXX): Set to g++.
(CXX_FOR_TARGET): Likewise.
* Makefile.in: Regenerated.
* NEWS: Mention --dynamic-list.
* ld.texinfo: Document --dynamic-list.
* ldgram.y: Support dynamic list.
* ldlang.c (lang_process): Call lang_finalize_version_expr_head
on link_info.dynamic if needed.
(lang_append_dynamic_list): New.
(lang_append_dynamic_list_cpp_typeinfo): New.
* ldlang.h (lang_append_dynamic_list): Likewise.
* ldlang.h (lang_append_dynamic_list_cpp_typeinfo): Likewise.
* ldlex.h (input_enum): Add input_dynamic_list.
* ldlex.l: Handle it.
* ldmain.c (main): Initialize link_info.dynamic.
* lexsup.c (option_values): Add OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
(ld_options): Add entries for OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
(parse_args): Handle OPTION_DYNAMIC_LIST and
OPTION_DYNAMIC_LIST_CPP_TYPEINFO.
ld/testsuite/
2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
* ld-elf/dl1.c: New file.
* ld-elf/dl1.list: Likewise.
* ld-elf/dl1.out: Likewise.
* ld-elf/dl1main.c: Likewise.
* ld-elf/dl2.c: Likewise.
* ld-elf/dl2.list: Likewise.
* ld-elf/dl2a.out: Likewise.
* ld-elf/dl2b.out: Likewise.
* ld-elf/dl2main.c: Likewise.
* ld-elf/dl2xxx.c: Likewise.
* ld-elf/dl2xxx.list: Likewise.
* ld-elf/dl3.cc: Likewise.
* ld-elf/dl3.list: Likewise.
* ld-elf/dl3a.out: Likewise.
* ld-elf/dl3b.out: Likewise.
* ld-elf/dl3header.h: Likewise.
* ld-elf/dl3main.cc: Likewise.
* ld-elf/shared.exp: Updated.
* lib/ld-lib.exp (run_ld_link_exec_tests): Take an optional
argument for source language. Use CC/CXX for link, depending
on source language.
(run_cc_link_tests): Likewise.
2006-09-07 17:16:34 +00:00
Alan Modra
fbd9092dda
daily update
2006-09-06 23:59:54 +00:00
Alan Modra
5e4ffa55ff
daily update
2006-09-06 00:00:12 +00:00
H.J. Lu
7a2ec0a65d
2006-09-05 Bibo Mao <bibo.mao@intel.com>
...
PR binutils/3171
* coffcode.h (coff_write_object_contents): Set the optional
header magic number to PE32PMAGIC instead of ZMAGIC for ia64.
2006-09-05 18:56:50 +00:00
Alan Modra
39cda774e1
daily update
2006-09-04 23:59:55 +00:00
Mark Shinwell
2cab6cc30d
bfd/
...
* elf32-arm.c (elf32_arm_howto_table_1): Adjust entries for
R_ARM_THM_ALU_PREL_11_0 and R_ARM_THM_PC12 relocations.
(elf32_arm_final_link_relocate): Handle R_ARM_THM_ALU_PREL_11_0
and R_ARM_THM_PC12 relocations.
2006-09-04 07:11:11 +00:00
Alan Modra
3a17d76d9e
daily update
2006-09-03 23:59:56 +00:00
Alan Modra
cf58ec5d2b
daily update
2006-09-02 23:59:57 +00:00
Alan Modra
fd392b22bd
daily update
2006-09-02 00:00:00 +00:00