Nick Clifton
8c17da6e59
* elf32-h8300.c (R_H8_DIR32A16): Fix name field.
...
(elf32_h8_relax_section) <R_H8_DIR16A8>: Adjust position of relocation.
<R_H8_DIR32A16>: Fix type of relocation.
* ld-h8300/h8300.exp: Replace loop with explicit list. Run relax.d
unconditionally. Run relax-2.d for *-elf targets.
* ld-h8300/relax.d: Fix typo.
* ld-h8300/relax.s: Add 0x prefixes.
* ld-h8300/relad-2.[sd]: New test.
2003-07-04 10:25:14 +00:00
Kaz Kojima
35cad4c475
* elf32-sh.c (sh_elf_create_dynamic_sections): Return if dynamic
...
sections were created already. Remove unnecessary tests of
the previous change.
2003-07-04 08:41:57 +00:00
Kaz Kojima
03151a5a11
* elf32-sh.c (sh_elf_create_dynamic_sections): Don't call
...
bfd_make_section for existing sections.
2003-07-04 07:38:33 +00:00
Alan Modra
2293c4998c
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
...
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var. Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.
2003-07-04 04:58:03 +00:00
Alan Modra
003d627e6e
* section.c (bfd_make_section): Return NULL for existing section.
2003-07-04 04:14:56 +00:00
Alan Modra
fa681e5d43
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Don't call
...
ppc_elf_create_got if we've already done so.
2003-07-04 01:57:26 +00:00
Alan Modra
3dab13f62b
* elf-bfd.h (_bfd_elf_create_linker_section) Don't declare.
...
(_bfd_elf_find_pointer_linker_section): Likewise.
(bfd_elf32_create_pointer_linker_section): Likewise.
(bfd_elf32_finish_pointer_linker_section): Likewise.
(bfd_elf64_create_pointer_linker_section): Likewise.
(bfd_elf64_finish_pointer_linker_section): Likewise.
(_bfd_elf_make_linker_section_rela): Likewise.
* elfcode.h (elf_create_pointer_linker_section): Don't define.
(elf_finish_pointer_linker_section): Likewise.
* elflink.c (_bfd_elf_make_linker_section_rela): Delete.
(_bfd_elf_create_linker_section): Move this function..
(_bfd_elf_find_pointer_linker_section): ..and this..
* elflink.h (elf_create_pointer_linker_section): ..and this..
(elf_finish_pointer_linker_section): ..and this..
* elf32-ppc.c: ..to here, renaming to the following, and adjusting
calls.
(elf_create_linker_section): Convert to C90, tidy.
(elf_find_pointer_linker_section): Likewise.
(elf_create_pointer_linker_section): Likewise.
(elf_finish_pointer_linker_section): Likewise.
* elf32-i370.c: Delete #if 0 code.
2003-07-04 01:50:12 +00:00
Alan Modra
b214fcbec0
daily update
2003-07-04 00:00:05 +00:00
Alan Modra
3c5c592957
daily update
2003-07-03 00:00:05 +00:00
Alan Modra
772119ce53
* elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't allow _savef* and
...
_restf* to be satisfied by shared libs, and always force them local.
(toc_adjusting_stub_needed): Avoid scanning linker created sections.
Correct test for "bl".
(ppc64_elf_relocate_section <R_PPC64_TLS>): Correct test for
primary opcode 31.
2003-07-02 07:41:51 +00:00
Alan Modra
70f25c551c
daily update
2003-07-02 00:00:05 +00:00
Martin Schwidefsky
bd1ea41b84
* elf32-s390.c (s390_elf_ldisp_reloc): New prototype.
...
(s390_tls_reloc): New function.
(elf_howto_table): Add long displacement relocations R_390_20,
R_390_GOT20, R_390_GOTPLT20 and R_390_TLS_GOTIE20.
(elf_s390_reloc_type_lookup): Likewise.
(elf_s390_check_relocs): Likewise.
(elf_s390_gc_sweep_hook): Likewise.
(elf_s390_relocate_section): Likewise.
* elf64-s390.c: Same changes as for elf32-s390.c.
* reloc.c: Add long displacement relocations BFD_RELOC_390_20,
BFD_RELOC_390_GOT20, BFD_RELOC_390_GOTPLT20 and
BFD_RELOC_390_TLS_GOTIE20.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
2003-07-01 14:44:59 +00:00
Alan Modra
34fef7f4d8
daily update
2003-07-01 00:00:05 +00:00
Alan Modra
113202d6bc
* cpu-ia64-opc.c (ext_imms_scaled): Don't sign extend using shifts.
...
(ins_imms, ins_immsm1u4): Likewise. Warning fix.
2003-06-30 04:09:27 +00:00
Alan Modra
f1f18543ca
daily update
2003-06-30 00:00:05 +00:00
Alan Modra
c58b95236c
Convert to C90 and a few tweaks.
2003-06-29 10:06:40 +00:00
Andreas Jaeger
58611256d8
Add forgotten ChangeLog snippet for last elf64-x86-64.c patch.
2003-06-29 10:02:24 +00:00
Andreas Jaeger
27482721cf
* elf64-x86-64.c: Convert to ISO C90 prototypes, remove
...
unnecessary prototypes. Replace PTR with void *.
2003-06-29 05:57:36 +00:00
Alan Modra
7cfbef4774
daily update
2003-06-29 00:00:37 +00:00
Thiemo Seufer
2b86c02e74
* elfxx-mips.c: Allow lazy binding for R_MIPS_JALR.
2003-06-28 22:13:37 +00:00
Alan Modra
0d5b97c55d
daily update
2003-06-28 00:00:06 +00:00
Nick Clifton
e7c81c254c
Fix --add-gnu-debuglink
2003-06-27 08:01:28 +00:00
Thiemo Seufer
72b4917c07
* elfxx-mips.c: Revert .got alignment to 2**4.
2003-06-27 07:32:33 +00:00
Thiemo Seufer
917090909e
* elf32-mips.c: Fix addend for _gp_disp special symbol.
2003-06-27 07:31:27 +00:00
Thiemo Seufer
7a79a000c1
* elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove non-default
...
relocation header setup.
* binutils-all/readelf.ss-tmips: Adjust symbol indices.
2003-06-27 01:16:30 +00:00
Alan Modra
4be5b94a41
daily update
2003-06-27 00:00:05 +00:00
Alan Modra
f6b91f13b5
daily update
2003-06-26 00:00:05 +00:00
Alan Modra
51b1e980ba
Missed copyright update in last commit.
2003-06-25 11:07:05 +00:00
Alan Modra
e47cd12545
* elf32-ppc.c (ppc_elf_howto_table): Remove unnecessary cast.
...
(ppc_elf_reloc_type_lookup): Modify comment.
(ppc_elf_info_to_howto): Ditto.
(ppc_elf_relocate_section): Ditto.
(ppc_elf_check_relocs): Call ppc_elf_howto_init.
2003-06-25 11:05:58 +00:00
Alan Modra
1049f94e8e
Correct spelling of "relocatable".
2003-06-25 06:40:27 +00:00
Alan Modra
59861b363a
daily update
2003-06-25 00:00:05 +00:00
Alan Modra
d85f2c7d1f
* elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
...
local sym errors.
2003-06-24 14:17:22 +00:00
Alan Modra
55fd94b056
* elf32-i386.c: Convert to C90 function definitions, remove unnecessary
...
prototypes and casts. Replace PTR with void *. Formatting.
* elf32-ppc.c: Likewise. Break long strings too.
(ppc_elf_relax_section): Use enum elf_ppc_reloc_type for r_type.
(ppc_elf_unhandled_reloc): Internationalize error message.
* elf32-ppc.h: Remove PARAMS.
2003-06-24 14:03:53 +00:00
Mark Mitchell
88810f8cd1
* elf32-ppc.c (ppc_elf_begin_write_processing): Use bytes to count
...
APUinfo slots.
(ppc_elf_final_write_processing): Likewise.
2003-06-24 06:41:36 +00:00
Alan Modra
8ee95d47b6
daily update
2003-06-24 00:00:05 +00:00
H.J. Lu
6e35c4dafc
2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
...
* elflink.h (elf_link_input_bfd): Check raw size when using
kept_section to preserve debug information discarded by
linkonce.
2003-06-23 23:39:39 +00:00
Alan Modra
fbe56916cf
daily update
2003-06-23 00:09:44 +00:00
Alan Modra
cdff990c2f
daily update
2003-06-21 00:00:06 +00:00
Alan Modra
8f3bab5775
* elf64-ppc.c (struct ppc_link_hash_table): Add top_id.
...
(ppc64_elf_setup_section_lists): Set it.
(ppc64_elf_relocate_section): Check sym section id against top_id.
(ppc_build_one_stub): Comment on top_id.
2003-06-20 12:35:30 +00:00
Nick Clifton
efbc813eb3
Add tic4x-*-rtems*.
2003-06-20 08:36:19 +00:00
Alan Modra
4ce794b729
* elf64-ppc.c: Convert to C90 function definitions, remove unnecessary
...
prototypes and casts. Replace PTR with void *. Format copyright.
Mention ABI links.
(struct ppc_link_hash_table): Rename sgot, srelgot, splt, srelplt,
sdynbss, srelbss, sglink, sbrlt and srelbrlt to got, relgot .. relbrlt.
(ppc_type_of_stub): Make r_type an enum.
(ppc64_elf_size_stubs): Likewise.
* elf64-ppc.h: Remove PARAMS macro.
2003-06-20 05:30:46 +00:00
Alan Modra
1698d123e2
daily update
2003-06-20 00:00:05 +00:00
Alan Modra
3254fd24bd
* elf64-ppc.c (ppc64_elf_link_hash_table_create): Reinstate init of
...
elf hash tab fields.
2003-06-19 15:11:26 +00:00
Alan Modra
d2a300cfe3
* elf64-ppc.c (ppc64_elf_reloc_type_lookup): Tidy prototype.
...
(ppc64_elf_info_to_howto): Likewise.
(ppc64_elf_build_stubs): Add "stats" param, and print statistics.
* elf64-ppc.h (ppc64_elf_build_stubs): Adjust prototype.
2003-06-19 13:50:35 +00:00
Alan Modra
83615de03f
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore R_SPARC_DISP32
...
reloc overflow on discarded eh_frame entries.
2003-06-19 13:21:53 +00:00
Alan Modra
9b5ecbd0c6
* elf64-ppc.c (toc_adjusting_stub_needed): New function.
...
(ppc64_elf_next_input_section): Use it here to set has_gp_reloc.
Return error condition.
(ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections
that have has_gp_reloc set.
(struct ppc_link_hash_table): Add stub_count.
(ppc_build_one_stub): Increment it.
(ppc64_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
* elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.
2003-06-19 11:49:02 +00:00
Alan Modra
c8b5eb5f85
daily update
2003-06-19 00:00:06 +00:00
Alan Modra
64c456e1a1
* elflink.h (elf_gc_record_vtentry): Revert last change. Correct
...
size calculation from addend. Round size up.
2003-06-18 05:18:06 +00:00
Hans-Peter Nilsson
3dab95d324
* elf32-cris.c (cris_elf_relocate_section) <case
...
R_CRIS_32_GOTREL>: When linking a program, don't complain about a
symbol from a normal object or an undefined weak symbol.
2003-06-18 04:14:14 +00:00
Alan Modra
0b13192e9f
* elf64-ppc.c (ppc64_elf_relocate_section): Accept a symbol on
...
R_PPC64_TOC relocs.
2003-06-18 03:26:22 +00:00