daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
cb53bf42
RS
12008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
4 bed->s->int_rels_per_ext_rel.
5
6ba2a415
RS
62008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
7
8 * syms.c (BSF_SYNTHETIC): New flag.
9 * elf.c (_bfd_elf_get_synthetic_symtab): Set it.
10 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
11 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
12 * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
13 for synthetic symbols.
14 * bfd-in2.h: Regenerate.
15
3dccd7b7
DJ
162008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
17
18 * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
19 Expand comments.
20 (arm_map_one_stub): Use | 1 when setting the low bit.
21
f57718b4
AS
222008-06-29 Andreas Schwab <schwab@suse.de>
23
24 * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
25 addend on _GLOBAL_OFFSET_TABLE_.
26
7413f23f
DJ
272008-06-24 Daniel Jacobowitz <dan@codesourcery.com>
28
29 * elf32-arm.c (STUB_ENTRY_NAME): Define.
30 (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
31 (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
32 R_ARM_ABS32.
33 (struct elf32_arm_stub_hash_entry): Add output_name.
34 (arm_build_one_stub): Move offsets into the offset argument
35 of _bfd_final_link_relocate. Correct offset for
36 arm_thumb_arm_v4t_stub_long_branch.
37 (elf32_arm_size_stubs): Set stub_entry->output_name.
38 (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
39 Update all callers.
40 (elf32_arm_output_stub_sym): New.
41 (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym.
42
7c39fb20
AM
432008-06-20 Alan Modra <amodra@bigpond.net.au>
44
45 * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
46 non-branch insns.
47
f3c29e8a
AM
482008-06-20 Alan Modra <amodra@bigpond.net.au>
49
50 * elf32-spu.c (build_stub): Allow wraparound on stub branches.
51 (allocate_spuear_stubs, build_spuear_stubs): Return value from
52 count_stub/build_stub.
53 (spu_elf_build_stubs): Correct location of stub reloc error message.
54
de73c611
SR
552008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
56
57 * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
58
7a283e07
RW
592008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60
61 * configure: Regenerate.
62
99302af9
AM
632008-06-17 Alan Modra <amodra@bigpond.net.au>
64
65 * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space.
66 (spu_elf_check_vma): Add extra_stack_space param, copy to htab.
67 (spu_elf_auto_overlay): Use it.
68 (RECURSE_UNMARK): Define as 0.
69 (unmark_overlay_section): Heed RECURSE_UNMARK.
70 * elf32-spu.h (spu_elf_check_vma): Update prototype.
71
ff7eeb89
DD
722008-06-12 DJ Delorie <dj@redhat.com>
73
74 * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.
75
c13bb2ea
PB
762008-06-09 Paul Brook <paul@codesourcery.com>
77
78 bfd/
79 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared
80 libraries.
81
f4ac8484
DJ
822008-06-09 Christophe Lyon <christophe.lyon@st.com>
83
84 * elf32-arm.c (arm_stub_is_thumb): Define.
85 (elf32_arm_final_link_relocate): Handle near mode switching stubs.
86
6a267715
AM
872008-06-07 Alan Modra <amodra@bigpond.net.au>
88
89 * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp
90 to stack calculation.
91
23684067
PB
922008-06-06 Paul Brook <paul@codesourcery.com>
93
94 bfd/
95 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input.
96
97407faf
AM
972008-06-06 Alan Modra <amodra@bigpond.net.au>
98
99 * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that
100 file names be unique. Specify archive:path in overlay script.
101
7cfbafbc
AM
1022008-06-05 Alan Modra <amodra@bigpond.net.au>
103
104 PR ld/6590
105 * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets.
106
0f0a5e58
AM
1072008-06-04 Alan Modra <amodra@bigpond.net.au>
108
109 * elf.c (ignore_section_sym): Don't test section sym value here.
110 (elf_map_symbols): Instead check zero value here as was done prior
111 to 2006-05-26 change.
112
696b7ad2
NC
1132008-06-04 Nick Clifton <nickc@redhat.com>
114
115 PR ld/6019
116 * elf32-avr.c (elf32_avr_relax_section): Handle the case where
117 there are no local symbols.
118
1f27ab8d
AM
1192008-06-04 Alan Modra <amodra@bigpond.net.au>
120
121 * elf32-spu.c (get_sym_h): Don't attempt to read global syms.
122 (process_stubs): Likewise.
123 (discover_functions): Don't used cached symbols.
124 (maybe_insert_function): Correct condition under which function
125 array is realloc'd.
126 (mark_functions_via_relocs): Delete unused variable.
127
adfef0bd
NC
1282008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com>
129 Nick Clifton <nickc@redhat.com>
130
131 PR ld/6511
132 * elf64-hppa.c (allocate_global_data_opd): Default to using the
133 dynamic symbol table for local function names in shared libraries.
134
11701589
JK
1352008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 * elf.c (assign_file_positions_for_load_sections): Adjust pre-section
138 gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses.
139
124b52c6
AM
1402008-05-28 Alan Modra <amodra@bigpond.net.au>
141
142 * elf32-spu.c (spu_elf_object_p): New function.
143 (elf_backend_object_p): Define.
144 (build_stub): Correct second word of 8 byte overlay stubs.
145 (spu_elf_relocate_section): Formatting.
146
bb864ac1
CES
1472008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
148
149 * elf.c (elfcore_write_register_note): New function.
150 * elf-bfd.h (elfcore_write_register_note): New prototype.
151
da5938a2
NC
1522008-05-22 Christophe Lyon <christophe.lyon@st.com>
153
154 * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols.
155 (elf32_arm_stub_add_mapping_symbol): Remove.
156 (elf32_arm_add_stub): Don't generate mapping symbols. Change
157 prototype.
158 (elf32_arm_size_stubs): Use new elf32_arm_add_stub
159 prototype. Don't generate thumb to arm glue for calls.
160 (arm_map_one_stub): Define.
161 (elf32_arm_output_arch_local_syms): Generate mapping symbols for
162 long calls stubs.
163
7fb9f789
NC
1642008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
165
166 Add multi-GOT support for m68k.
167 * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key,
168 glist): New fields.
169 (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry,
170 struct elf_m68k_got, struct elf_m68k_bfd2got_entry,
171 struct elf_m68k_multi_got): New data structures.
172 (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p,
173 allow_multigot_p, multi_got_): New fields.
174 (elf_m68k_multi_got): New macro.
175 (elf_m68k_link_hash_newfunc): Initialize new fields of
176 struct elf_m68k_link_hash_entry.
177 (elf_m68k_link_hash_table_create): Initialize new fields of
178 struct elf_m68k_link_hash_table.
179 (elf_m68k_link_hash_table_free): New static function implementing hook.
180 (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New
181 static functions for struct elf_m68k_got.
182 (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash,
183 elf_m68k_got_entry_eq): New static functions for
184 struct elf_m68k_got_entry.
185 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT,
186 ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros.
187 (enum elf_m68k_get_entry_howto): New enum.
188 (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type,
189 elf_m68k_remove_got_entry_type): New static functions for
190 struct elf_m68k_got_entry.
191 (elf_m68k_add_entry_to_got): New static function.
192 (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq,
193 elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static
194 functions for struct elf_m68k_bfd2got_entry.
195 (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1,
196 elf_m68k_can_merge_gots): New traversal.
197 (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1,
198 elf_m68k_merge_gots): Ditto.
199 (struct elf_m68k_finalize_got_offsets_arg,
200 elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto.
201 (struct elf_m68k_partition_multi_got_arg,
202 elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1,
203 elf_m68k_partition_multi_got): Ditto.
204 (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static
205 functions.
206 (elf_m68k_copy_indirect_symbol): New static function implementing
207 a hook.
208 (elf_m68k_check_relocs): Update to add entries to multi-GOT.
209 (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT.
210 (elf_m68k_always_size_sections): Assign BFDs to GOTs.
211 (elf_m68k_relocate_section): Update to properly handle GOT relocations.
212 (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries
213 of a global symbol.
214 (bfd_elf_m68k_set_target_options): New function.
215 (bfd_elf32_bfd_link_hash_table_free): Define hook.
216 (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link
217 to skip generic calculation of GOT offsets.
218 (elf_backend_copy_indirect_symbol): Define hook.
219 * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function.
220 * bfd-in2.h: Regenerate.
221