H.J. Lu
ecc27c311f
2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
weak symbols.
2003-07-22 15:52:44 +00:00
Nick Clifton
f9f3cf656a
Add C_TCSYM and C_ECOML to expected RS6000 storage classes.
2003-07-22 09:06:49 +00:00
Alan Modra
8ad3c6b136
daily update
2003-07-22 00:00:06 +00:00
H.J. Lu
bb32e54ff4
2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Mark
output_bfd unused to silence gcc.
2003-07-21 23:00:22 +00:00
Nick Clifton
796f2a93d1
Updated Swedish translation
2003-07-21 09:36:39 +00:00
Alan Modra
f6c52c1368
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use..
...
(_bfd_elf_symbol_refs_local_p): ..this. Declare.
* elflink.c (_bfd_elf_symbol_refs_local_p): New function.
* elf32-i386.c (elf_i386_relocate_section): Remove h NULL test
now done in _bfd_elf_symbol_refs_local_p.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2003-07-21 00:24:10 +00:00
Alan Modra
aaba06d939
daily update
2003-07-21 00:00:06 +00:00
Alan Modra
3ecf492f80
daily update
2003-07-20 00:00:05 +00:00
H.J. Lu
aa37626c9e
2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.c (_bfd_elf_dynamic_symbol_p): Undo the last change.
2003-07-19 06:41:42 +00:00
H.J. Lu
1e364ec981
2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Fix a typo.
(SYMBOL_CALLS_LOCAL): Likewise.
* elflink.c (_bfd_elf_dynamic_symbol_p): Return TRUE
immediately if symbol isn't defined locally.
2003-07-19 04:12:22 +00:00
Alan Modra
4a5917ba56
daily update
2003-07-19 00:00:06 +00:00
Richard Henderson
986a241f8b
* elflink.c (_bfd_elf_dynamic_symbol_p): New.
...
* elf-bfd.h (_bfd_elf_dynamic_symbol_p): Declare it.
(SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use it.
* elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Likewise.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
* elf64-hppa.c (elf64_hppa_dynamic_symbol_p): Likewise.
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Likewise.
Update all callers to provide the relocation being resolved.
2003-07-18 21:09:28 +00:00
Alan Modra
61fdd1259b
daily update
2003-07-18 00:00:05 +00:00
Nick Clifton
ac4b3dd8ca
Define ARM_COFF_BUGFIX for arm-wince-pe targets
2003-07-17 14:27:38 +00:00
Nick Clifton
6c37ac4d15
Update translations
2003-07-17 14:22:45 +00:00
Alan Modra
5c7556e871
daily update
2003-07-17 00:00:05 +00:00
Richard Henderson
02e6ad56bf
* config.bfd, configure.host, configure.in: Remove ia64-aix support.
...
* elfxx-ia64.c, targets.c: Likewise.
2003-07-16 22:48:59 +00:00
Richard Henderson
5686517c77
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
...
for symbols defined locally plus -Bsymbolic. Tidy logic.
2003-07-16 21:47:36 +00:00
Alan Modra
7ff7fe6db3
daily update
2003-07-16 00:00:05 +00:00
Richard Sandiford
5a7ea74950
include/opcode/
...
* mips.h (CPU_RM7000): New macro.
(OPCODE_IS_MEMBER): Match CPU_RM7000 against 4650 insns.
bfd/
* archures.c (bfd_mach_mips7000): New.
* bfd-in2.h: Regenerated.
* cpu-mips.c (arch_info_struct): Add an entry for mips:7000.
* elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips7000.
(mips_mach_extensions): Add an entry for it.
opcodes/
* mips-dis.c (mips_arch_choices): Add rm7000 and rm9000 entries.
gas/
* config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
(mips_cpu_info_table): Add rm7000 and rm9000 entries.
gas/testsuite/
* gas/mips/rm7000.[sd]: New test.
* gas/mips/mips.exp: Run it.
2003-07-15 07:50:39 +00:00
Alan Modra
0502b0971b
daily update
2003-07-15 00:00:15 +00:00
Nick Clifton
76bff7057c
Update Turkish translation files for bfd, gas and opcodes
2003-07-14 11:18:13 +00:00
Richard Sandiford
2808c7aac4
Missing from 2003-07-11 commit.
2003-07-14 06:27:24 +00:00
Alan Modra
542df965d0
daily update
2003-07-14 00:00:07 +00:00
Alan Modra
974b2f82b1
daily update
2003-07-13 00:00:05 +00:00
Nick Clifton
d0facd1b42
Set maxpagesize for NTO targets to 4k
2003-07-12 11:16:46 +00:00
Nick Clifton
bcb9b88db6
Set the IMAGE_FILE_32BIT_MACHINE flag for PE targets.
2003-07-12 10:55:05 +00:00
Alan Modra
3c11cdbf48
daily update
2003-07-12 00:00:05 +00:00
Richard Sandiford
7a9823f1a9
bfd/
...
* bfd-in.h (bfd_h8300_pad_address): Declare.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (bfd_h8300_pad_address): New function.
* coff-h8300.c (h8300_reloc16_estimate): Use it to canonicalize
addresses before checking whether they can be relaxed.
(h8300_reloc16_extra_cases): Likewise for the R_MOVL2 sanity check.
Don't complain about overflows in general 8-bit relocations.
* elf32-h8300.c (elf32_h8_relax_section): Use bfd_h8300_pad_address.
Fix handling of R_H8_DIR24A8.
ld/testsuite/
* ld-h8300/relax-3{.s,.d,-coff.d}: New test.
* ld-h8300/h8300.exp: Run it.
2003-07-11 14:59:41 +00:00
Richard Sandiford
c6baf75ed1
* elf32-h8300.c: Convert function prototypes and definitions
...
to C90 syntax.
* coff-h8300.c: Likewise.
* cpu-h8300.c: Likewise.
2003-07-11 11:08:30 +00:00
Alan Modra
fce0080055
Update pot files.
2003-07-11 05:10:21 +00:00
Alan Modra
82599cce24
daily update
2003-07-11 00:00:05 +00:00
Bob Wilson
e901de8951
bfd ChangeLog:
...
* elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Create new
.got.loc section. Do not set SEC_ALLOC or SEC_LOAD flags for the
.xt.lit.plt section.
(elf_xtensa_size_dynamic_sections): Set size of the .got.loc section
and allocate memory for it.
(elf_xtensa_combine_prop_entries): Copy contents of .xt.lit output
section to the .got.loc section.
(elf_xtensa_finish_dynamic_sections): Fix up call to
elf_xtensa_combine_prop_entries and set DT_XTENSA_GOT_LOC_OFF to
the address of .got.loc.
(relax_property_section): Shrink .got.loc to match changes in any
literal table section.
(xtensa_is_property_section): Change to match
xtensa_get_property_section_name.
(xtensa_is_littable_section): New.
ld ChangeLog:
* emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Replace .xt.lit
with new .got.loc section.
(OTHER_READWRITE_SECTIONS): Do not combine linkonce sections for
non-relocating links.
(OTHER_SECTIONS): Add .xt.lit here. Change it to keep linkonce
sections separate for non-relocating links; likewise for .xt.insn.
2003-07-10 19:01:48 +00:00
H.J. Lu
eff26f7814
2003-07-10 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1 instead of
-1LL.
2003-07-10 14:22:15 +00:00
Alan Modra
942e0f4252
* Makefile.am (BFD32_BACKENDS): Add elf32-am33lin.lo.
...
(BFD32_BACKENDS_CFILES): elf32-am33lin.c not elf32-am33lin.lo.
Run "make dep-am".
* Makefile.in: Regenerate.
2003-07-10 07:48:46 +00:00
Alexandre Oliva
73c3cd1c3d
2001-09-12 Alexandre Oliva <aoliva@redhat.com>
...
* elf32-am33lin.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
(ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
2001-06-02 Nick Clifton <nickc@cambridge.redhat.com>
* elf32-am33lin.c: Rename global functions.
2001-05-09 Alexandre Oliva <aoliva@redhat.com>
* config.bfd (am33_2.0, am33_2.0-*-linux*): Added.
* configure.in (bfd_elf32_am33lin_vec): Added.
* Makefile.am (BFD32_BACKENDS): Added elf32-am33lin.lo.
(elf32-am33lin.lo): List dependencies.
* aclocal.m4, configure, Makefile.in: Rebuilt.
* elf-m10300.c (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME,
ELF_ARCH, ELF_MACHINE_CODE, ELF_MAXPAGESIZE): Define only if
ELF_ARCH was not defined before.
(elf_symbol_leading_char): Define if not defined.
* elf32-am33lin.c: Override the definitions above.
* targets.c (bfd_elf32_am33lin_vec): New.
2003-07-10 04:44:37 +00:00
Alexandre Oliva
03a1283107
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
...
* elf-m10300.c (elf32_mn10300_link_hash_newfunc): Initialize
pcrel_relocs_copied.
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (ELF_DYNAMIC_INTERPRETER): Renamed from
ld-linux.so.2 to ld.so.1.
2001-10-10 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (elf_mn10300_sizeof_plt0): New macro.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Use it.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
* elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Allocate
.rela.* section contents with bfd_zalloc.
2001-09-25 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c: Added declarations for functions missing them.
Merge some shared-library changes from the i386 back-end. Use
R_MN10300_RELATIVE instead of R_MN10300_PCREL32 and
R_MN10300_GLOB_DAT instead of R_MN10300_32 where appropriate.
(struct elf32_mn10300_link_hash_entry): Remove duplicates of
members of elf_link_hash_entry. Adjusted references.
(mn10300_elf_final_link_relocate): dynobj was already loaded
into a local variable, use it.
2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
* elf-m10300.c: Add missing function prototypes.
2001-08-24 Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (mn10300_elf_relocate_section): Don't compute
relocation for dynamic relocations.
2001-05-16 Alexandre Oliva <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOTOFF24): New.
* elf-m10300.c: Introduce GOTPC16, GOTOFF24, GOTOFF16 and
PLT16, and rename GOTPC to GOTPC32 and GOTOFF to GOTOFF32.
(_bfd_mn10300_elf_create_dynamic_sections): Move creation ot PLT...
(_bfd_mn10300_elf_create_got_section): ... here, so that its
adress is already known at the time we compute relaxations.
(mn10300_elf_relax_section): Relax GOTPC32, GOTOFF32, GOT32
and PLT32 to narrower relocations.
* libbfd.h, bfd-in2.h: Rebuilt.
2001-04-12 Alexandre Oliva <aoliva@redhat.com>
* reloc.c (BFD_RELOC_MN10300_GOT32, BFD_RELOC_MN10300_GOT24,
BFD_RELOC_MN10300_GOT16, BFD_RELOC_MN10300_COPY,
BFD_RELOC_MN10300_GLOB_DAT, BFD_RELOC_MN10300_JMP_SLOT,
BFD_RELOC_MN10300_RELATIVE): New relocs.
* libbfd.h, bfd-in2.h: Rebuilt.
* elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): New.
(struct elf32_mn10300_link_hash_entry): Added DSO-related
fields.
(elf_mn10300_howto): Defined new relocation types.
(mn10300_reloc_map): Map them.
(_bfd_mn10300_elf_create_got_section): New fn.
(mn10300_elf_check_relocs): Handle PIC relocs.
(mn10300_elf_final_link_relocate): Likewise.
(mn10300_elf_relocate_section): Handle DSOs.
(PLT0_ENTRY_SIZE, PLT_ENTRY_SIZE, PIC_PLT_ENTRY_SIZE): New macros.
(elf_mn10300_plt0_entry, elf_mn10300_plt_entry,
elf_mn10300_pic_plt_entry): New.
(elf_mn10300_sizeof_plt, elf_mn10300_plt_plt0_offset,
elf_mn10300_plt0_linker_offset, elf_mn10300_plt0_gotid_offset,
elf_mn10300_plt_temp_offset, elf_mn10300_plt_symbol_offset,
elf_mn10300_plt_reloc_offset: New macros.
(ELF_DYNAMIC_INTERPRETER): Likewise.
(_bfd_mn10300_elf_create_dynamic_sections): New function.
(_bfd_mn10300_elf_adjust_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_discard_copies): Likewise.
(_bfd_mn10300_elf_size_dynamic_sections): Likewise.
(_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
(_bfd_mn10300_elf_finish_dynamic_sections): Likewise.
(elf_backend_can_gc_sections,
elf_backend_create_dynamic_sections,
elf_backend_adjust_dynamic_sections,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
elf_backend_plt_readonly, elf_backend_want_plt_sym,
elf_backend_got_header_size, elf_backend_plt_header_size): New
macros.
2003-07-10 03:20:00 +00:00
Alexandre Oliva
b08fa4d3bf
2001-05-06 Alexandre Oliva <aoliva@redhat.com>
...
* elf-m10300.c (compute_function_info): Account for AM33
registers in `movm' when computing stack space for `call' when
linking for AM33/2.0 link.
2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
* archures.c (bfd_mach_am33_2): Renamed from bfd_mach_am332.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am33_2_arch): Renamed from bfd_am332_arch.
* elf-m10300.c: Updated.
2000-03-31 Alexandre Oliva <aoliva@cygnus.com>
* archures.c (bfd_mach_am332): Defined.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am332_arch): Defined.
(bfd_am33_arch): Chained with am33-2.
* elf-m10300.c (elf_mn10300_mach): Handle am332.
(_bfd_mn10300_elf_final_write_processing): Likewise.
2003-07-10 02:53:10 +00:00
H.J. Lu
201933ea37
2003-07-09 H.J. Lu <hongjiu.lu@intel.com>
...
* elfxx-ia64.c (IA64_HOWTO): Set dst_mask to -1LL.
2003-07-10 01:30:16 +00:00
Alan Modra
e717da7ead
* elf64-ppc.c (bfd_elf64_mkobject): Define.
...
(struct ppc64_elf_obj_tdata): New.
(ppc64_elf_tdata, ppc64_tlsld_got): Define.
(ppc64_elf_mkobject): New function.
(struct got_entry): Add "owner". Move "tls_type".
(struct ppc_link_hash_table): Delete "relgot", "tlsld_got".
(ppc64_elf_init_stub_bfd): New function.
(create_got_section): Create header .got in dynobj. Create .got
and .rela.got in each bfd. Stash pointers in ppc64_elf_obj_tdata.
(ppc64_elf_create_dynamic_sections): Don't call create_got_section.
Look for dynobj .got, and test it.
(ppc64_elf_copy_indirect_symbol): Adjust for changed got.
(update_local_sym_info): Likewise.
(ppc64_elf_check_relocs): Likewise.
(ppc64_elf_gc_sweep_hook): Likewise.
(ppc64_elf_tls_optimize): Likewise.
(allocate_dynrelocs): Likewise.
(ppc64_elf_size_dynamic_sections): Likewise.
(ppc64_elf_relocate_section): Likewise.
(ppc64_elf_next_toc_section): Update comment.
(toc_adjusting_stub_needed): Remove unneeded cast.
(ppc64_elf_build_stubs): Check for stub sections in stub bfd by
testing section flags.
(ppc64_elf_build_stubs): Likewise.
(ppc64_elf_size_stubs): Likewise. Remove stub_bfd param.
(ppc64_elf_finish_dynamic_sections): Write out got sections.
(func_desc_adjust): Copy over dynamic info for undef weaks.
* elf64-ppc.h (ppc64_elf_init_stub_bfd): Declare.
(ppc64_elf_size_stubs): Update prototype.
* elflink.h (elf_link_sort_relocs): Use link_orders to find reldyn
input sections rather than scanning dynobj.
2003-07-10 00:37:27 +00:00
Alan Modra
149ebfb1de
daily update
2003-07-10 00:00:06 +00:00
Richard Sandiford
18ad015f6c
* elfxx-mips.c (mips_elf_link_hash_entry): Remove min_dyn_reloc_index.
...
(bfd_mips_elf_swap_msym_in, bfd_mips_elf_swap_msym_out): Delete.
(mips_elf_create_msym_section): Delete.
(mips_elf_create_dynamic_relocation): Don't set min_dyn_reloc_index.
(_bfd_mips_elf_copy_indirect_symbol): Likewise.
(_bfd_mips_elf_create_dynamic_sections): Don't create .msym.
(_bfd_mips_elf_size_dynamic_sections): Don't calculate its size.
(_bfd_mips_elf_size_dynamic_sections): Don't add DT_MIPS_MSYM.
(_bfd_mips_elf_finish_dynamic_symbol): Don't add symbols to .msym.
(_bfd_mips_elf_finish_dynamic_sections): Likewise.
2003-07-09 11:55:49 +00:00
Richard Sandiford
e10609d3f7
* elfxx-mips.c (mips_elf_irix6_finish_dynamic_symbol): Make the
...
symbols protected.
2003-07-09 11:53:36 +00:00
Richard Sandiford
0d591ff7fb
* elfxx-mips.c (mips_elf_create_dynamic_relocation): Fix handling
...
of relocations whose offset is -2.
2003-07-09 11:52:52 +00:00
Richard Sandiford
fdd0740558
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): Treat
...
forced-local symbols like other locals. Don't create relocations
against STN_UNDEF in irix objects.
2003-07-09 11:51:53 +00:00
Richard Sandiford
d2fba50dd9
* bfd/elfxx-mips.c (mips_elf_create_dynamic_relocation): In SGI-
...
compatible objects, add the values of defined external symbols
to the addend.
2003-07-09 11:50:16 +00:00
Richard Sandiford
6eaa6adc99
* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Always
...
initialize a GOT entry to the symbol's st_value.
2003-07-09 11:48:17 +00:00
Alan Modra
bc50d3dd0c
daily update
2003-07-09 00:00:05 +00:00
Alan Modra
43c40ab2d9
* elf-bfd.h (struct elf_obj_tdata): Move linker_section_pointers..
...
* elf32-ppc.c (struct ppc_elf_obj_tdata): ..to here. New.
(ppc_elf_tdata): Define.
(elf_local_ptr_offsets): Adjust.
(ppc_elf_mkobject): New function.
(bfd_elf32_mkobject): Define.
2003-07-08 13:10:51 +00:00
Alan Modra
0c83546ac6
* elfcode.h (elf_object_p): Allocate tdata via _bfd_set_format.
...
* elfcore.h (elf_core_file_p): Likewise.
* section.c (bfd_section_init): Remove prototype.
2003-07-08 08:08:00 +00:00