Alan Modra
67a0868099
daily update
2005-08-30 00:00:08 +00:00
H.J. Lu
1faab634be
2005-08-29 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/1247
* elfxx-ia64.c (allocate_fptr): Check undefined symbol.
2005-08-29 22:25:04 +00:00
Nick Clifton
c9adbffeea
(_bfd_mips_elf_relocate_section): Initialise 'value' to avoid compile time
...
warning message.
2005-08-29 16:42:15 +00:00
Alan Modra
b8399bbe63
daily update
2005-08-29 00:00:06 +00:00
Alan Modra
d2463d35ea
daily update
2005-08-28 00:00:06 +00:00
Alan Modra
72b8842ad4
daily update
2005-08-27 00:00:06 +00:00
Nick Clifton
c0524131ea
Re-enable GAS for z8k-coff
2005-08-26 09:47:49 +00:00
Alan Modra
98a7a8547e
daily update
2005-08-26 00:00:10 +00:00
Kaz Kojima
4195f552a6
* elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
2005-08-25 05:10:22 +00:00
H.J. Lu
843fe662b9
2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
...
PR ld/1208
* elf-hppa.h (elf_hppa_relocate_section): Print out the name
of unresolvable relocation.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_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-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
2005-08-25 02:32:11 +00:00
Alan Modra
6607c08f52
daily update
2005-08-25 00:00:06 +00:00
Alan Modra
2ab8ab5e51
daily update
2005-08-24 00:00:06 +00:00
Alan Modra
f7159c5302
daily update
2005-08-23 00:00:08 +00:00
Alan Modra
674f455cd3
daily update
2005-08-22 00:00:05 +00:00
Alan Modra
e764ed5ba9
daily update
2005-08-21 00:00:07 +00:00
Alan Modra
098d57044a
daily update
2005-08-20 00:00:07 +00:00
Alan Modra
e2f6640431
daily update
2005-08-19 00:00:07 +00:00
Kaz Kojima
1cddf1366e
* config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
...
to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
2005-08-18 11:06:58 +00:00
Alan Modra
848cf006a0
Remove a29k files.
2005-08-18 03:59:24 +00:00
Alan Modra
c17ae8a24e
Remove a29k support.
2005-08-18 03:51:51 +00:00
Alan Modra
909272ee76
* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
...
zero size dynamic variables.
* elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
* elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
* elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
* elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2005-08-18 01:28:26 +00:00
Alan Modra
11bcca22f4
daily update
2005-08-18 00:00:09 +00:00
H.J. Lu
bc79cded48
bfd/
...
2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/1179
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
instead of vma.
(_bfd_dwarf2_find_line): Likewise.
binutils/
2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/1179
* objdump.c (disassemble_bytes): Don't adjust
adjust_section_vma.
(adjust_addresses): Don't adjust vma for debugging section.
Adjust lma only for relocatable files.
(dump_bfd): Tell adjust_addresses if it is a relocatable file.
2005-08-17 14:28:01 +00:00
Alan Modra
46fda84e78
* elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
...
SEC_LINKER_CREATED.
(mmix_elf_final_link): Check that section hasn't already been
removed before removing.
* mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED.
(mmo_canonicalize_symtab): Likewise for reg section.
2005-08-17 13:29:55 +00:00
Alan Modra
8d1d654fb4
bfd/
...
* elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later.
* elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called
without any got section.
ld/testsuite/
* ld-alpha/tlsbin.rd: Update.
* ld-alpha/tlsbinr.rd: Update.
* ld-cris/locref1.d: Update.
* ld-cris/locref2.d: Update.
* ld-i386/tlsbin.rd: Update.
* ld-ia64/tlsbin.rd: Update.
* ld-powerpc/tlsexe.r: Update.
* ld-powerpc/tlsexe32.r: Update.
* ld-powerpc/tlsexetoc.r: Update.
* ld-s390/tlsbin.rd: Update.
* ld-s390/tlsbin_64.rd: Update.
* ld-sparc/tlssunbin32.rd: Update.
* ld-sparc/tlssunbin64.rd: Update.
* ld-x86-64/tlsbin.rd: Update.
2005-08-17 10:04:33 +00:00
Danny Smith
27198fa9f3
bfd
...
* cofflink.c (_bfd_coff_generic_relocate_section): Correct
comment.
gas
* config/obj-coff.c (obj_coff_weak): Set auxiliary record
of NT weak externals to IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY.
2005-08-17 08:58:01 +00:00
Alan Modra
ccabcbe51e
* elflink.c (_bfd_elf_define_linkage_sym): Don't call
...
bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol.
(_bfd_elf_link_renumber_dynsyms): Formatting.
(struct elf_gc_sweep_symbol_info): New.
(elf_gc_sweep_symbol): Rewrite.
(elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call.
Call _bfd_elf_link_renumber_dynsyms.
(bfd_elf_gc_sections): Adjust elf_gc_sweep call.
2005-08-17 03:07:12 +00:00
Alan Modra
71cead0b39
daily update
2005-08-17 00:00:06 +00:00
Alan Modra
18d944df00
* elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
...
when relocatable.
2005-08-16 10:13:43 +00:00
Alan Modra
062dbb07ed
daily update
2005-08-16 00:00:09 +00:00
Bob Wilson
4af0a1d8b6
* elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
...
of EM_XTENSA and EM_XTENSA_OLD.
2005-08-15 18:17:12 +00:00
Alan Modra
d98685ac81
* elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
...
* elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
from..
(_bfd_elf_create_got_section): ..here.
(_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC.
(_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_.
* elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use
_bfd_elf_define_linkage_sym.
* elf32-frv.c (_frv_create_got_section): Likewise.
* elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
2005-08-15 15:39:08 +00:00
Paul Brook
ce490eda4b
2005-08-15 Paul Brook <paul@codesourcery.com>
...
* elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
R_ARM_PC24.
2005-08-15 15:01:39 +00:00
Alan Modra
93165da9a0
daily update
2005-08-15 00:00:06 +00:00
Dave Anglin
4fc35ca996
PR ld/1135
...
* elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
.plt, .dlt, .sdata, .sbss and .tbss.
2005-08-14 01:01:32 +00:00
Alan Modra
d8838a3081
daily update
2005-08-14 00:00:07 +00:00
Alan Modra
a8675883eb
daily update
2005-08-13 00:00:07 +00:00
Dmitry Diky
fa9ee72b80
2005-08-12 Dmitry Diky <diwil@spec.ru>
...
* elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
referenced by .section + DISPLACEMENT.
2005-08-12 11:45:26 +00:00
Alan Modra
e1f5fb0423
daily update
2005-08-12 00:00:08 +00:00
Alan Modra
2618d7d719
daily update
2005-08-11 00:00:09 +00:00
Jim Wilson
98b880f44f
Fix linker error found when compiling glibc with a mismatched gcc.
...
* dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
DW_OP_addr is only opcode in location before using it.
2005-08-10 23:33:39 +00:00
H.J. Lu
a38a2e96b0
2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
2005-08-10 04:32:49 +00:00
Alan Modra
91c74f248c
daily update
2005-08-10 00:00:09 +00:00
Nick Clifton
3260c64dd2
Oops - omitted by accident from the previous msp430 patch
2005-08-09 08:57:34 +00:00
Nick Clifton
fd6212e6f1
(xcoff64_core_p): Constify return_value variable. Also, do not use core_hdr
...
macro as it evaluates to a cast of an lvalue which is no longer supported by
GCC 4.0.
2005-08-09 08:56:36 +00:00
Alan Modra
bc5d3bc755
daily update
2005-08-09 00:00:07 +00:00
Nick Clifton
44c86e8c6d
Add support for msp430x21xx variants
2005-08-08 17:08:04 +00:00
Nick Clifton
957c6e41da
PR 1147
...
elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
(elf32_arm_close_and_cleanup): New function - walk over the sections in the
bfd that is being closed removing them from the list of recorded sections.
(unrecord_section_via_map_over_sections): New helper function.
(record_section_with_arm_elf_section_data): Call bfd_malloc instead of
bfd_alloc. Remove unneeded abfd parameter.
(elf32_arm_new_section_hook): Do not pass bfd to record_section_with_arm_elf_section_data.
elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not already
defined by the target.
2005-08-08 11:06:16 +00:00
Alan Modra
8ba5f0b91d
daily update
2005-08-08 00:00:06 +00:00
Fred Fish
a29b7e88f2
Reviewed and approved by Nick Clifton <nickc@redhat.com>
...
2005-08-05 Fred Fish <fnf@specifix.com>
* dwarf2.c (read_rangelist): Use addr_size instead of offset_size
to determine how many bytes to read from each rangelist entry.
2005-08-07 14:47:02 +00:00
Alan Modra
a4f82cdb20
daily update
2005-08-07 00:00:06 +00:00
Alan Modra
ce53e4db97
daily update
2005-08-06 00:00:11 +00:00
H.J. Lu
7af8e99880
bfd/
...
2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd_hide_symbol): New.
* bfd-in2.h: Regenerated.
ld/
2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
* ld.texinfo: Document PROVIDE_HIDDEN.
* ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
(exp_provide): Add and set hidden.
* ldexp.h (etree_type): Add hidden to assign.
* ldgram.y (PROVIDE_HIDDEN): New.
* ldlex.l (PROVIDE_HIDDEN): Likewise.
* scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
symbols.
2005-08-05 13:52:13 +00:00
Alan Modra
0116f8ca0c
daily update
2005-08-05 00:00:08 +00:00
H.J. Lu
0049299953
2005-08-04 H.J. Lu <hongjiu.lu@intel.com>
...
* elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
large common symbol and a normal common symbol, always turn
the large common symbol into a normal one.
2005-08-04 14:49:55 +00:00
Alan Modra
046183de0e
bfd/
...
* elf32-ppc.c (struct elf_linker_section): Replace sym_val field
with sym.
(ppc_elf_relocate_section): Adjust for above.
(create_sdata_sym): New function.
(ppc_elf_create_linker_section): Call it.
(ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs.
Create sdata syms for all SDA relocs.
(ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_
and _SDA2_BASE_.
(ppc_elf_set_sdata_syms): Delete.
* elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT
and DT_FINI tags unless associated section has input.
(bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete.
(_bfd_elf_provide_section_bound_symbols): Delete.
* bfd-in.h (_bfd_elf_provide_symbol): Delete.
(_bfd_elf_provide_section_bound_symbols): Delete.
* bfd-in2.h: Regenerate.
ld/
* ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
* ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
(struct ld_emulation_xfer_struct): Remove do_assignments field.
* ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
* emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
(SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
* emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
* emultempl/armcoff.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/generic.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/ticoff.em: Likewise.
* emultempl/vanilla.em: Likewise.
* emultempl/elf32.em: Likewise.
(gld*_provide_bound_symbols): Delete.
(gld*_provide_init_fini_syms): Delete.
(gld*_before_allocation): Don't call ldemul_do_assignments.
* emultempl/ppc32elf.em (ppc_do_assignments): Delete.
(LDEMUL_DO_ASSIGNMENTS): Delete.
* scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
2005-08-04 06:22:14 +00:00
Alan Modra
1e035701d6
bfd/
...
* elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to..
* linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here.
* bfd-in.h (_bfd_fix_excluded_sec_syms): Rename.
* bfd-in2.h: Regenerate.
ld/
* ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
(finish_default): New function.
* ldemul.h (finish_default): Declare.
* emultempl/aix.em (gld*_before_allocation): Call
before_allocation_default rather than strip_excluded_output_sections.
(ld_*_emulation): Init finish field to finish_default.
* emultempl/armcoff.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/generic.em: Likewise.
* emultempl/gld960.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/lnk960.em: Likewise.
* emultempl/m68kcoff.em: Likewise.
* emultempl/mmo.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/ppc64elf.em: Likewise.
* emultempl/sunos.em: Likewise.
* emultempl/ticoff.em: Likewise.
* emultempl/vanilla.em: Likewise.
2005-08-04 01:19:10 +00:00
H.J. Lu
90b263f311
2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
only if it isn't NULL.
2005-08-04 00:39:02 +00:00
Alan Modra
66096db758
daily update
2005-08-04 00:00:15 +00:00
H.J. Lu
b0360d8cfa
bfd/
...
2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_howto_table): Undo the overflow change for
R_386_PC16 made on 2005-07-18.
* elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow
change for R_X86_64_PC16 made on 2005-07-18.
ld/testsuite/
2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
* ld-i386/pcrel16.d: Updated.
* ld-i386/pcrel16.s: Likewise.
* ld-x86-64/pcrel16.d: Likewise.
2005-08-03 16:30:34 +00:00
Alan Modra
24ceaeafdb
daily update
2005-08-03 00:00:06 +00:00
Alan Modra
636ce3f5bf
* elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
...
elf.hgot throughout file.
2005-08-02 23:32:52 +00:00
Alan Modra
4d9620504f
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
...
_GLOBAL_OFFSET_TABLE_ for > 32k GOT.
2005-08-02 23:09:16 +00:00
Andreas Schwab
4a78a1f4de
* elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
...
(elfNN_ia64_relax_section): Reallocate .rela.got when .got has
changed.
(allocate_dynrel_entries): Look only at GOT relocations when
only_got is true.
(elfNN_ia64_size_dynamic_sections): Set only_got to false before
calling allocate_dynrel_entries.
2005-08-02 19:58:11 +00:00
Nick Clifton
8e3de13a7d
PR 1147
...
* elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef and make the
mapcount field unsigned.
(struct section_list): New: Used to keep track of which sections have an
_arm_elf_section_data structure.
(record_section_with_arm_elf_section_data): New function.
(get_arm_elf_section_data): New function.
(unrecord_section_with_arm_elf_section_data): New function.
(elf32_arm_output_symbol_hook): Use get_arm_elf_section_data.
(elf32_arm_new_section_hook): Call record_section_with_arm_elf_section_data.
(elf32_arm_write_section): Use get_arm_elf_section_data and
unrecord_section_with_arm_elf_section_data.
2005-08-02 08:17:45 +00:00
Alan Modra
3581b88246
daily update
2005-08-02 00:00:09 +00:00
Richard Sandiford
c5211a5487
* elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
...
of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
2005-08-01 11:59:33 +00:00
Alan Modra
c2dde2c9c9
daily update
2005-08-01 00:00:06 +00:00
David Daney
1b9ee6a2f0
* elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
2005-07-31 06:14:15 +00:00
Alan Modra
cc9d9de0ef
daily update
2005-07-31 00:00:06 +00:00
Alan Modra
dbfb74ddb5
daily update
2005-07-30 00:00:08 +00:00
David Daney
eedecc0705
* elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
...
if it is in the *ABS* section.
2005-07-29 23:24:01 +00:00
Paul Brook
e9f89963c4
2005-07-29 Paul Brook <paul@codesourcery.com>
...
bfd/
* reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
gas/
* config/tc-arm.c (T16_32_TAB): Add "addr". Fix encoding of push and
pop.
(do_t_addr): Implement 32-bit variant.
(do_t_push_pop): Make some errors warnings. Handle single register
32-bit case.
(insns): Use tCE for adr.
(md_pcrel_from_section): Handle BFD_RELOC_ARM_T32_ADD_PC12.
(md_apply_fix): Ditto.
gas/testsuite/
* gas/arm/thumb32.d: Fix expected output for writeback addressing
modes. Add single high reg push/pop test.
* gas/asm/thumb32.s: Add single high reg push/pop test.
opcodes/
* arm-dis.c: Fix disassebly of thumb2 writeback addressing modes.
2005-07-29 17:39:39 +00:00
Paul Brook
92e90b6eb3
2005-07-29 Paul Brook <paul@codesourcery.com>
...
bfd/
* reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
* bfd-in2.h: Regeenrate.
* libbfd.h: Regenerate.
gas/
* config/tc-arm.c (parse_tb): New function.
(enum operand_parse_code): Add OP_TB.
(parse_operands): Handle OP_TB.
(do_t_add_sub_w, do_t_tb): New functions.
(insns): Add entries for addw, subw, tbb and tbh.
(md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12.
gas/testsuite/
* gas/arm/thumb32.s: Add tests for addw, subw, tbb and tbh.
* gas/arm/thumb32.d: Ditto.
opcodes/
* arm-dis.c (thumb32_opc): Fix addressing mode for tbh.
(print_insn_thumb32): Fix decoding of thumb2 'I' operands.
2005-07-29 17:28:33 +00:00
Nick Clifton
0facbdf5c2
* peXXigen.c (pe_print_edata): Compute the size of the export table from the
...
size field in the DataDictionary and not the size of the section. Some
linkers embed the export table inside a larger section.
2005-07-29 14:07:01 +00:00
Alan Modra
8a69675106
* elf-bfd.h (struct elf_backend_data): Add action_discarded.
...
(enum action_discarded): Move from..
* elflink.c (enum action_discarded): ..here.
(_bfd_elf_default_action_discarded): Rename from elf_action_discarded.
Remove target specific section checks.
(elf_link_input_bfd): Adjust.
* elfxx-target.h (elf_backend_action_discarded): Define.
(elfNN_bed): Init new field.
* bfd-in.h (_bfd_elf_default_action_discarded): Declare.
* bfd-in2.h: Regenerate.
* elf-hppa.h (elf_hppa_action_discarded): New function.
* elf32-hppa.c (elf_backend_action_discarded): Define.
* elf64-hppa.c (elf_backend_action_discarded): Define.
* elf32-ppc.c (ppc_elf_action_discarded): New function.
(elf_backend_action_discarded): Define.
2005-07-29 02:46:04 +00:00
Alan Modra
11faf5e636
daily update
2005-07-29 00:00:10 +00:00
Alan Modra
a5938ee8da
daily update
2005-07-28 00:00:10 +00:00
Alan Modra
2f5028a7c8
* elflink.c (fix_syms): Handle symbols defined in input sections.
2005-07-27 08:32:53 +00:00
Jan Beulich
a33d77bc5f
bfd/
...
2005-07-27 Jan Beulich <jbeulich@novell.com>
* elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
(elf64_x86_64_info_to_howto): Use them.
2005-07-27 07:01:30 +00:00
Alan Modra
a39b090394
daily update
2005-07-27 00:00:06 +00:00
Alan Modra
f41d945bae
* elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
...
regardless of strength of previous definition.
2005-07-26 15:19:37 +00:00
Alan Modra
87538722be
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
...
(bfd_elf_gc_sections): Allow -gc-sections when -shared.
* elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
2005-07-26 12:06:38 +00:00
Alan Modra
9e8cc8b4bf
* elflink.c (elf_gc_sweep): Move gcc_except_table code..
...
(bfd_elf_gc_sections): ..to here.
2005-07-26 11:47:05 +00:00
DJ Delorie
fd54057a29
[bfd]
...
* reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
R_M32C_HI8, R_M32C_HI16.
(m32c_reloc_map): Likewise.
(m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
[cpu]
* m32c.opc (parse_unsigned8): Add %dsp8().
(parse_signed8): Add %hi8().
(parse_unsigned16): Add %dsp16().
(parse_signed16): Add %lo16() and %hi16().
(parse_lab_5_3): Make valuep a bfd_vma *.
[gas]
* config/tc-m32c.c (md_cgen_lookup_reloc): Add 8 bit operands.
Support %mod() modifiers from opcodes.
* doc/c-m32c.texi (M32C-Modifiers): New section.
[include/elf]
* m32c.h: Add R_M32C_8, R_M32C_LO16, R_M32C_HI8, and R_M32C_HI16.
[opcodes]
* m32c-asm.c Regenerate.
* m32c-dis.c Regenerate.
2005-07-26 03:21:53 +00:00
Alan Modra
030cf60a5d
daily update
2005-07-26 00:00:05 +00:00
H.J. Lu
3b22753a67
bfd/
...
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* elf-bfd.h (_bfd_elf_large_com_section): New.
* elf.c (_bfd_elf_large_com_section): New. Defined.
* elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
(elf64_x86_64_elf_section_from_bfd_section): New.
(elf64_x86_64_symbol_processing): New.
(elf64_x86_64_common_definition): New.
(elf64_x86_64_common_section_index): New.
(elf64_x86_64_common_section): New.
(elf64_x86_64_merge_symbol): New.
(elf64_x86_64_additional_program_headers): New.
(elf64_x86_64_special_sections): New.
(elf_backend_section_from_bfd_section): New. Defined.
(elf_backend_add_symbol_hook): Likewise.
(elf_backend_common_section_index): Likewise.
(elf_backend_common_section): Likewise.
(elf_backend_common_definition): Likewise.
(elf_backend_merge_symbol): Likewise.
(elf_backend_special_sections): Likewise.
(elf_backend_additional_program_headers): Likewise.
binutils/
2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (dump_relocations): Handle SHN_X86_64_LCOMMON.
(get_symbol_index_type): Likewise.
(get_elf_section_flags): Handle SHF_X86_64_LARGE.
gas/
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c: Include "elf/x86-64.h" if TC_I386 is
defined.
(elf_com_section_ptr): New.
(elf_begin): Set elf_com_section_ptr to bfd_com_section_ptr.
(elf_common_parse): Make it global. Use elf_com_section_ptr
instead of bfd_com_section_ptr.
(obj_elf_change_section): Handle x86-64 large bss sections.
* config/obj-elf.h (elf_com_section_ptr): New.
(elf_common_parse): New.
* config/tc-i386.c (handle_large_common): New.
(md_pseudo_table): Add "largecomm".
(x86_64_section_letter): New.
(x86_64_section_word): New.
* config/tc-i386.h (x86_64_section_word): New.
(x86_64_section_letter): New.
(md_elf_section_letter): New. Defined.
(md_elf_section_word): Likewise.
include/elf/
2005-07-25 Jan Hubicka <jh@suse.cz>
* x86-64.h (SHN_X86_64_LCOMMON): New.
(SHF_X86_64_LARGE): New.
ld/
2005-07-25 Jan Hubicka <jh@suse.cz>
H.J. Lu <hongjiu.lu@intel.com>
* emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
* scripttempl/elf.sc: Updated for large section support.
2005-07-25 15:41:08 +00:00
H.J. Lu
a4d8e49b50
2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (elf_backend_data): Add common_definition,
common_section_index, common_section, and merge_symbol.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.
* elf.c (elf_fake_sections): Don't clear sh_flags.
* elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
if it is available.
(is_global_data_symbol_definition): Call backend
common_definition instead of checking SHN_COMMON.
(elf_link_add_object_symbols): Likewise.
(elf_link_output_extsym): Call backend common_section_index
for common section index.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.
* elfxx-target.h (elf_backend_common_definition): New.
(elf_backend_common_section_index): New.
(elf_backend_common_section): New.
(elf_backend_merge_symbol): New.
(elfNN_bed): Initialize common_definition, common_section_index,
common_section, and merge_symbol.
* section.c (BFD_FAKE_SECTION): New.
(STD_SECTION): Use it.
* bfd-in2.h: Regenerated.
2005-07-25 15:35:37 +00:00
Alan Modra
314c531dba
daily update
2005-07-25 00:00:09 +00:00
Daniel Jacobowitz
99356e9020
* chew.c: Include <string.h>.
2005-07-24 16:57:42 +00:00
Alan Modra
12fc67c63b
daily update
2005-07-24 00:00:07 +00:00
H.J. Lu
58ac56d0c8
2005-07-23 Olaf Hering <olh@suse.de>
...
* elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
callback.
2005-07-23 15:42:51 +00:00
Alan Modra
dbb467de43
daily update
2005-07-23 00:00:06 +00:00
DJ Delorie
d4ad1cbf1d
* chew.c: Include stdlib.h.
2005-07-22 23:54:56 +00:00
Kazu Hirata
d8bacf76e8
* chew.c: Don't include sysdep.h.
2005-07-22 18:16:17 +00:00
Nick Clifton
9f971fcbd4
Remove special case handling for rtems targets that are sufficiently handled by
...
the default rtems targets.
2005-07-22 10:34:30 +00:00
Nick Clifton
a9b7b1745d
(m32r_elf_check_relocs): Fix pc count for R_M32R_REL32.
2005-07-22 10:27:44 +00:00
Alan Modra
9ed9428b13
daily update
2005-07-22 00:00:07 +00:00
Ben Elliston
240a342512
bfd/
...
* Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
(BFD32_BACKENDS): Likewise, remove m68klynx.lo.
(BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c.
(cf-m68klynx.lo, m68klynx.lo): Remove targets.
* Makefile.in: Regenerate.
* cf-m68klynx.c: Remove.
* m68klynx.c: Likewise.
* configure.in (m68klynx_aout_vec): Remove vector.
(m68klynx_coff_vec): Likewise.
* configure: Regenerate.
* targets.c (m68klynx_aout_vec): Remove extern.
(m68klynx_coff_vec): Likewise.
(_bfd_target_vector): Remove m68klynx_{aout,coff}_vec.
* po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c.
gas/
* config/tc-m68k.h: Remove TE_LYNX conditional code.
2005-07-21 13:23:37 +00:00
Alan Modra
363fad39b4
daily update
2005-07-21 00:00:07 +00:00