Commit | Line | Data |
---|---|---|
3076cd1f AS |
1 | 2008-07-11 Andreas Schwab <schwab@suse.de> |
2 | ||
3 | * dwarf2.c (read_section): Take pointer to bfd_size_type instead | |
4 | of unsigned long as last parameter. | |
5 | (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, | |
6 | dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of | |
7 | unsigned long. | |
8 | ||
0a61c8c2 RS |
9 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
10 | ||
11 | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 | |
12 | for all relocation types. Allow any type of relocation to refer to | |
13 | __gnu_local_gp. | |
14 | ||
30c09090 RS |
15 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
16 | ||
17 | * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. | |
18 | (mips_elf_calculate_relocation): Likewise. | |
19 | (_bfd_mips_elf_add_symbol_hook): Likewise. | |
20 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
21 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
22 | ||
355d10dc AS |
23 | 2008-07-10 Andreas Schwab <schwab@suse.de> |
24 | ||
25 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing | |
26 | paren. | |
27 | ||
1b315056 CS |
28 | 2008-07-09 Craig Silverstein <csilvers@google.com> |
29 | ||
30 | * Makefile.am (BFD32_LIBS): Add compress.lo. | |
31 | (BFD32_LIBS_CFILES): Add compress.c. | |
32 | (BFD_H_FILES): Likewise. | |
33 | * Makefile.in: Regenerate. | |
34 | * bfd-in2.h: Regenerate. | |
35 | * config.in: Add HAVE_ZLIB_H | |
36 | * configure.in: Add test for libz and zlib.h | |
37 | * configure: Regenerate. | |
38 | * dwarf2.c (read_section): New function. | |
39 | (read_indirect_string): Call new function read_section. | |
40 | (read_abbrevs): Likewise. | |
41 | (decode_line_info): Likewise. | |
42 | (read_debug_ranges): Likewise. | |
43 | (find_line): Call new function read_section when just one | |
44 | .zdebug_info section is found, otherwise read and compress | |
45 | multiple sections. | |
46 | (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. | |
47 | * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. | |
48 | (special_sections_z): New struct. | |
49 | (special_sections): Refer to special_sections_z. | |
50 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize | |
51 | sections named .zdebug_*. | |
52 | (_bfd_mips_elf_fake_sections): Likewise. | |
53 | * compress.c: New file. | |
54 | (bfd_uncompress_section_contents): New function. | |
55 | ||
329dcd78 NC |
56 | 2008-07-07 Christophe Lyon <christophe.lyon@st.com> |
57 | ||
58 | * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in | |
59 | the presence of a PLT. | |
60 | ||
c29aae59 AM |
61 | 2008-07-07 Alan Modra <amodra@bigpond.net.au> |
62 | ||
63 | * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char. | |
64 | ||
7382d32a AM |
65 | 2008-07-02 Alan Modra <amodra@bigpond.net.au> |
66 | ||
67 | * elf32-ppc.c (is_pic_glink_stub): New function. | |
68 | (ppc_elf_get_synthetic_symtab): Don't generate symbols when | |
69 | multiple shared/pie stubs per plt entry. | |
70 | ||
cb53bf42 RS |
71 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
72 | ||
73 | * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by | |
74 | bed->s->int_rels_per_ext_rel. | |
75 | ||
6ba2a415 RS |
76 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
77 | ||
78 | * syms.c (BSF_SYNTHETIC): New flag. | |
79 | * elf.c (_bfd_elf_get_synthetic_symtab): Set it. | |
80 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. | |
81 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
82 | * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour | |
83 | for synthetic symbols. | |
84 | * bfd-in2.h: Regenerate. | |
85 | ||
3dccd7b7 DJ |
86 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
87 | ||
88 | * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue): | |
89 | Expand comments. | |
90 | (arm_map_one_stub): Use | 1 when setting the low bit. | |
91 | ||
f57718b4 AS |
92 | 2008-06-29 Andreas Schwab <schwab@suse.de> |
93 | ||
94 | * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing | |
95 | addend on _GLOBAL_OFFSET_TABLE_. | |
96 | ||
7413f23f DJ |
97 | 2008-06-24 Daniel Jacobowitz <dan@codesourcery.com> |
98 | ||
99 | * elf32-arm.c (STUB_ENTRY_NAME): Define. | |
100 | (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. | |
101 | (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of | |
102 | R_ARM_ABS32. | |
103 | (struct elf32_arm_stub_hash_entry): Add output_name. | |
104 | (arm_build_one_stub): Move offsets into the offset argument | |
105 | of _bfd_final_link_relocate. Correct offset for | |
106 | arm_thumb_arm_v4t_stub_long_branch. | |
107 | (elf32_arm_size_stubs): Set stub_entry->output_name. | |
108 | (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. | |
109 | Update all callers. | |
110 | (elf32_arm_output_stub_sym): New. | |
111 | (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. | |
112 | ||
7c39fb20 AM |
113 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
114 | ||
115 | * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for | |
116 | non-branch insns. | |
117 | ||
f3c29e8a AM |
118 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
119 | ||
120 | * elf32-spu.c (build_stub): Allow wraparound on stub branches. | |
121 | (allocate_spuear_stubs, build_spuear_stubs): Return value from | |
122 | count_stub/build_stub. | |
123 | (spu_elf_build_stubs): Correct location of stub reloc error message. | |
124 | ||
de73c611 SR |
125 | 2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
126 | ||
127 | * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD. | |
128 | ||
7a283e07 RW |
129 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
130 | ||
131 | * configure: Regenerate. | |
132 | ||
99302af9 AM |
133 | 2008-06-17 Alan Modra <amodra@bigpond.net.au> |
134 | ||
135 | * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space. | |
136 | (spu_elf_check_vma): Add extra_stack_space param, copy to htab. | |
137 | (spu_elf_auto_overlay): Use it. | |
138 | (RECURSE_UNMARK): Define as 0. | |
139 | (unmark_overlay_section): Heed RECURSE_UNMARK. | |
140 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
141 | ||
ff7eeb89 DD |
142 | 2008-06-12 DJ Delorie <dj@redhat.com> |
143 | ||
144 | * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD. | |
145 | ||
c13bb2ea PB |
146 | 2008-06-09 Paul Brook <paul@codesourcery.com> |
147 | ||
148 | bfd/ | |
149 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared | |
150 | libraries. | |
151 | ||
f4ac8484 DJ |
152 | 2008-06-09 Christophe Lyon <christophe.lyon@st.com> |
153 | ||
154 | * elf32-arm.c (arm_stub_is_thumb): Define. | |
155 | (elf32_arm_final_link_relocate): Handle near mode switching stubs. | |
156 | ||
6a267715 AM |
157 | 2008-06-07 Alan Modra <amodra@bigpond.net.au> |
158 | ||
159 | * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp | |
160 | to stack calculation. | |
161 | ||
23684067 PB |
162 | 2008-06-06 Paul Brook <paul@codesourcery.com> |
163 | ||
164 | bfd/ | |
165 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input. | |
166 | ||
97407faf AM |
167 | 2008-06-06 Alan Modra <amodra@bigpond.net.au> |
168 | ||
169 | * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that | |
170 | file names be unique. Specify archive:path in overlay script. | |
171 | ||
7cfbafbc AM |
172 | 2008-06-05 Alan Modra <amodra@bigpond.net.au> |
173 | ||
174 | PR ld/6590 | |
175 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets. | |
176 | ||
0f0a5e58 AM |
177 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
178 | ||
179 | * elf.c (ignore_section_sym): Don't test section sym value here. | |
180 | (elf_map_symbols): Instead check zero value here as was done prior | |
181 | to 2006-05-26 change. | |
182 | ||
696b7ad2 NC |
183 | 2008-06-04 Nick Clifton <nickc@redhat.com> |
184 | ||
185 | PR ld/6019 | |
186 | * elf32-avr.c (elf32_avr_relax_section): Handle the case where | |
187 | there are no local symbols. | |
188 | ||
1f27ab8d AM |
189 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
190 | ||
191 | * elf32-spu.c (get_sym_h): Don't attempt to read global syms. | |
192 | (process_stubs): Likewise. | |
193 | (discover_functions): Don't used cached symbols. | |
194 | (maybe_insert_function): Correct condition under which function | |
195 | array is realloc'd. | |
196 | (mark_functions_via_relocs): Delete unused variable. | |
197 | ||
adfef0bd NC |
198 | 2008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com> |
199 | Nick Clifton <nickc@redhat.com> | |
200 | ||
201 | PR ld/6511 | |
202 | * elf64-hppa.c (allocate_global_data_opd): Default to using the | |
203 | dynamic symbol table for local function names in shared libraries. | |
204 | ||
11701589 JK |
205 | 2008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
206 | ||
207 | * elf.c (assign_file_positions_for_load_sections): Adjust pre-section | |
208 | gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses. | |
209 | ||
124b52c6 AM |
210 | 2008-05-28 Alan Modra <amodra@bigpond.net.au> |
211 | ||
212 | * elf32-spu.c (spu_elf_object_p): New function. | |
213 | (elf_backend_object_p): Define. | |
214 | (build_stub): Correct second word of 8 byte overlay stubs. | |
215 | (spu_elf_relocate_section): Formatting. | |
216 | ||
bb864ac1 CES |
217 | 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> |
218 | ||
219 | * elf.c (elfcore_write_register_note): New function. | |
220 | * elf-bfd.h (elfcore_write_register_note): New prototype. | |
221 | ||
da5938a2 NC |
222 | 2008-05-22 Christophe Lyon <christophe.lyon@st.com> |
223 | ||
224 | * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols. | |
225 | (elf32_arm_stub_add_mapping_symbol): Remove. | |
226 | (elf32_arm_add_stub): Don't generate mapping symbols. Change | |
227 | prototype. | |
228 | (elf32_arm_size_stubs): Use new elf32_arm_add_stub | |
229 | prototype. Don't generate thumb to arm glue for calls. | |
230 | (arm_map_one_stub): Define. | |
231 | (elf32_arm_output_arch_local_syms): Generate mapping symbols for | |
232 | long calls stubs. | |
233 | ||
7fb9f789 NC |
234 | 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com> |
235 | ||
236 | Add multi-GOT support for m68k. | |
237 | * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key, | |
238 | glist): New fields. | |
239 | (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry, | |
240 | struct elf_m68k_got, struct elf_m68k_bfd2got_entry, | |
241 | struct elf_m68k_multi_got): New data structures. | |
242 | (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p, | |
243 | allow_multigot_p, multi_got_): New fields. | |
244 | (elf_m68k_multi_got): New macro. | |
245 | (elf_m68k_link_hash_newfunc): Initialize new fields of | |
246 | struct elf_m68k_link_hash_entry. | |
247 | (elf_m68k_link_hash_table_create): Initialize new fields of | |
248 | struct elf_m68k_link_hash_table. | |
249 | (elf_m68k_link_hash_table_free): New static function implementing hook. | |
250 | (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New | |
251 | static functions for struct elf_m68k_got. | |
252 | (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash, | |
253 | elf_m68k_got_entry_eq): New static functions for | |
254 | struct elf_m68k_got_entry. | |
255 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT, | |
256 | ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros. | |
257 | (enum elf_m68k_get_entry_howto): New enum. | |
258 | (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type, | |
259 | elf_m68k_remove_got_entry_type): New static functions for | |
260 | struct elf_m68k_got_entry. | |
261 | (elf_m68k_add_entry_to_got): New static function. | |
262 | (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq, | |
263 | elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static | |
264 | functions for struct elf_m68k_bfd2got_entry. | |
265 | (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1, | |
266 | elf_m68k_can_merge_gots): New traversal. | |
267 | (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1, | |
268 | elf_m68k_merge_gots): Ditto. | |
269 | (struct elf_m68k_finalize_got_offsets_arg, | |
270 | elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto. | |
271 | (struct elf_m68k_partition_multi_got_arg, | |
272 | elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1, | |
273 | elf_m68k_partition_multi_got): Ditto. | |
274 | (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static | |
275 | functions. | |
276 | (elf_m68k_copy_indirect_symbol): New static function implementing | |
277 | a hook. | |
278 | (elf_m68k_check_relocs): Update to add entries to multi-GOT. | |
279 | (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT. | |
280 | (elf_m68k_always_size_sections): Assign BFDs to GOTs. | |
281 | (elf_m68k_relocate_section): Update to properly handle GOT relocations. | |
282 | (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries | |
283 | of a global symbol. | |
284 | (bfd_elf_m68k_set_target_options): New function. | |
285 | (bfd_elf32_bfd_link_hash_table_free): Define hook. | |
286 | (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link | |
287 | to skip generic calculation of GOT offsets. | |
288 | (elf_backend_copy_indirect_symbol): Define hook. | |
289 | * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function. | |
290 | * bfd-in2.h: Regenerate. | |
291 |