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