Commit | Line | Data |
---|---|---|
0af1713e AM |
1 | 2008-07-30 Alan Modra <amodra@bigpond.net.au> |
2 | ||
3 | * coff-ppc.c, coffgen.c, ecoff.c, ecofflink.c, elf.c, elf32-frv.c, | |
4 | elf32-iq2000.c, elf32-m32c.c, elf32-mep.c, elf32-mt.c, | |
5 | elf32-sh-symbian.c, elf64-hppa.c, mach-o.c, peXXigen.c, pef.c, | |
6 | ppcboot.c, vms-misc.c, xsym.c: Silence gcc warnings. | |
7 | ||
9a59ad6b DJ |
8 | 2008-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
9 | ||
10 | * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating | |
11 | relocations for undefined weak symbols with non-default visibility. | |
12 | (_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for | |
13 | global symbols in shared libraries. | |
14 | (allocate_dynrelocs): New function. | |
15 | (_bfd_mips_elf_adjust_dynamic_symbol): Do not handle | |
16 | possibly_dynamic_relocs here. | |
17 | (_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs. | |
18 | ||
9f03412a AO |
19 | 2008-07-28 Alexandre Oliva <aoliva@redhat.com> |
20 | ||
21 | * elf32-i386.c (struct elf_i386_link_hash_table): Added field | |
22 | tls_module_base. | |
23 | (elf_i386_link_hash_table_create): Initialize it. | |
24 | (elf_i386_always_size_sections): Set it. | |
25 | (set_tls_module_base): New. | |
26 | (elf_i386_relocate_sections): Call it. | |
27 | * elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added | |
28 | field tls_module_base. | |
29 | (elf64_x86_64_link_hash_table_create): Initialize it. | |
30 | (elf64_x86_64_always_size_sections): Set it. | |
31 | (set_tls_module_base): New. | |
32 | (elf64_x86_64_relocate_sections): Call it. | |
33 | Reported by Cary Coutant <ccoutant@google.com> | |
34 | ||
9a008db3 AM |
35 | 2008-07-28 Ineiev <ineiev@yahoo.co.uk> |
36 | ||
37 | * elf32-arm.c (arm_map_one_stub): Declare variables at beginning | |
38 | of block. | |
39 | * elf32-avr.c (get_local_syms): Likewise. | |
40 | ||
14a91970 AM |
41 | 2008-07-28 Alan Modra <amodra@bigpond.net.au> |
42 | ||
43 | PR 6769 | |
44 | * bfd-in.h (BFD_VMA_FMT): Define. | |
45 | (printf_vma, sprintf_vma): Use the above. | |
46 | (_bfd_int64_low, _bfd_int64_high): Delete. | |
47 | * bfd-in2.h: Regenerate. | |
48 | ||
baea7ef1 AM |
49 | 2008-07-27 Alan Modra <amodra@bigpond.net.au> |
50 | ||
51 | * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from | |
52 | elf_parse_notes. Use bfd_malloc_and_get_section. | |
53 | (elf_parse_notes): Validate note namesz and descsz. | |
54 | ||
3c7b9897 AM |
55 | 2008-07-26 Michael Eager <eager@eagercon.com> |
56 | ||
57 | * elf32-ppc.c (ppc_elf_merge_obj_attributes): Check compatibility | |
58 | between single-float, double-float, and soft-float. | |
59 | ||
20163277 DJ |
60 | 2008-07-24 Daniel Jacobowitz <dan@codesourcery.com> |
61 | ||
62 | * elf32-mips.c (elf_backend_write_section): Define. | |
63 | ||
4ff73856 NC |
64 | 2008-07-24 Nick Clifton <nickc@redhat.com> |
65 | ||
66 | * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one | |
67 | error assigning sections to segments. | |
68 | ||
39948a60 NC |
69 | 2008-07-22 Nick Clifton <nickc@redhat.com> |
70 | ||
71 | * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in | |
72 | adjoining pages to be included in the same segment. | |
73 | ||
bda987c2 CD |
74 | 2008-07-22 Simon Baldwin <simonb@google.com> |
75 | ||
76 | * elflink.c (elf_link_output_extsym): Set st_size to zero for | |
77 | symbols from dynamic libraries. | |
78 | ||
88ba32a0 L |
79 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
80 | ||
81 | PR ld/4424 | |
82 | * elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible | |
83 | to check if 2 inputs are compatible. | |
84 | ||
37c43c55 NC |
85 | 2008-07-21 Sterling Augustine <sterling@tensilica.com> |
86 | ||
87 | * elf.c (assign_file_positions_for_load_sections): Print vma in | |
88 | error message about overlapping section vmas. | |
89 | ||
50403a1f L |
90 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
91 | ||
92 | PR ld/6747 | |
93 | * elf32-frv.c (elf32_frv_relocate_section): Revert the change | |
94 | for PR ld/6446 checked in by accident on May 21, 2008. | |
95 | ||
799c00e0 NC |
96 | 2008-07-21 Nick Clifton <nickc@redhat.com> |
97 | ||
98 | * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non | |
99 | COFF_WITH_PE based SH ports. | |
100 | * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype. | |
101 | * arm-wince-pe.c (bfd_pe_print_pdata): Use | |
102 | _bfd_pe_print_ce_compressed_pdata. | |
103 | (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move | |
104 | to... | |
105 | * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to | |
106 | _bfd_XX_print_ce_compressed_pdata. | |
107 | ||
f60e73e9 AM |
108 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
109 | ||
110 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop | |
111 | unwanted zero terminators. | |
112 | ||
dc1859a6 AM |
113 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
114 | ||
115 | * elf32-spu.c (spu_elf_relocate_section): Expand | |
116 | RELOC_FOR_GLOBAL_SYMBOL. Don't warn about undefined symbols for | |
117 | R_SPU_PPU32 and R_SPU_PPU64 relocations. | |
118 | ||
89eeb0bc LM |
119 | 2008-07-21 Luis Machado <luisgpm@br.ibm.com> |
120 | ||
121 | * elf-bfd.h: Declare elfcore_write_ppc_vsx. | |
122 | * elf.c (elfcore_grok_ppc_vsx): New function. | |
123 | (elfcore_write_ppc_vsx): New function | |
124 | (elfcore_grok_note): Handle VSX notes. | |
125 | (elfcore_write_register_note): Handle VSX notes. | |
126 | ||
a9dc9481 JM |
127 | 2008-07-18 Joseph Myers <joseph@codesourcery.com> |
128 | ||
129 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter. | |
130 | * bfd-in2.h: Regenerate. | |
131 | * elf32-arm.c (struct elf_arm_obj_tdata): Add field | |
132 | no_wchar_size_warning. | |
133 | (bfd_elf32_arm_set_target_relocs): Add new parameter | |
134 | no_wchar_warn. | |
135 | (elf32_arm_merge_eabi_attributes): Give a warning, not an error, | |
136 | for conflicting wchar_t attributes. Do not warn if | |
137 | --no-wchar-size-warning. Make diagnostic text more specific. | |
138 | ||
6cee0a6f L |
139 | 2008-07-18 H.J. Lu <hongjiu.lu@intel.com> |
140 | ||
141 | PR ld/6748 | |
142 | * elf32-arm.c (elf32_arm_link_hash_table_create): Initialize | |
143 | new fields added for ARM long call support. | |
144 | ||
2b5c217d NC |
145 | 2008-07-18 Danny Backx <dannybackx@users.sourceforge.net> |
146 | ||
147 | * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to | |
148 | print compressed pdata structure as described on MSDN. This only | |
149 | applies to a limited set of architectures (ARM, SH4). | |
150 | (slurp_symtab, my_symbol_for_address): Define static helper | |
151 | functions for pe_print_compressed_pdata. | |
152 | * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field. | |
153 | (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define. | |
154 | * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on | |
155 | bfd_coff_backend_data, call the function if non-null. | |
156 | * pei-mcore.c: Add target dependent initialisation for | |
157 | bfd_coff_backend_data. | |
158 | * coff-sh.c: Likewise. | |
159 | * coff64-rs6000.c: Likewise. | |
160 | * coff-rs6000.c: Likewise. | |
161 | * libcoff-in.h: Likewise. | |
162 | * cf-i386lynx.c: Likewise. | |
163 | * coff-alpha.c: Likewise. | |
164 | * coff-apollo.c: Likewise. | |
165 | * coff-arm.c: Likewise. | |
166 | * coff-aux.c: Likewise. | |
167 | * coff-h8300.c: Likewise. | |
168 | * coff-h8500.c: Likewise. | |
169 | * coff-i386.c: Likewise. | |
170 | * coff-i860.c: Likewise. | |
171 | * coff-i960.c: Likewise. | |
172 | * coff-ia64.c: Likewise. | |
173 | * coff-m68k.c: Likewise. | |
174 | * coff-m88k.c: Likewise. | |
175 | * coff-maxq.c: Likewise. | |
176 | * coff-mips.c: Likewise. | |
177 | * coff-or32.c: Likewise. | |
178 | * coff-sparc.c: Likewise. | |
179 | * coff-tic30.c: Likewise. | |
180 | * coff-tic4x.c: Likewise. | |
181 | * coff-tic54x.c: Likewise. | |
182 | * coff-tic80.c: Likewise. | |
183 | * coff-w65.c: Likewise. | |
184 | * coff-we32k.c: Likewise. | |
185 | * coff-x86_64.c: Likewise. | |
186 | * coff-z80.c: Likewise. | |
187 | * coff-z8k.c: Likewise. | |
188 | * pe-mcore.c: Likewise. | |
189 | * pe-mips.c: Likewise. | |
190 | * pe-ppc.c: Likewise. | |
191 | * peXXigen.c: Likewise. | |
dc1859a6 | 192 | * pei-ppc.c: Likewise. |
2b5c217d NC |
193 | * libcoff.h: Regenerate. |
194 | ||
c96a8570 BS |
195 | 2008-07-16 Bernd Schmidt <bernd.schmidt@analog.com> |
196 | ||
197 | * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section, | |
198 | bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook, | |
199 | ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE, | |
200 | struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code | |
201 | separate from non-FD-PIC. | |
202 | ||
605d18d4 DD |
203 | 2008-07-14 DJ Delorie <dj@redhat.com> |
204 | ||
205 | * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow | |
206 | checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16 | |
207 | relocs. | |
208 | (mn10300_elf_relax_section): Correct jump offset check when target | |
209 | is in a different section. | |
210 | ||
b0a0b978 JZ |
211 | 2008-07-15 Jie Zhang <jie.zhang@analog.com> |
212 | ||
213 | * elf32-bfin.c (elf32_bfin_special_sections[]): New. | |
214 | (elf_backend_special_sections): Define. | |
215 | ||
aaf30c25 CS |
216 | 2008-07-13 Craig Silverstein <csilvers@google.com> |
217 | ||
08b78292 | 218 | PR binutils/6743 |
aaf30c25 CS |
219 | * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory. |
220 | (find_line): Use info_ptr_memory instead of sec_info_ptr. | |
221 | (_bfd_dwarf2_cleanup_debug_info): Likewise. | |
222 | ||
1bac266e JZ |
223 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
224 | ||
225 | Revert | |
226 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> | |
227 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
228 | executable sections into the same segment with other | |
229 | read only sections if --sep-code. | |
230 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
231 | (elf32_bfin_data_in_l1): New variable. | |
232 | (elf32_bfin_final_write_processing): New. | |
233 | (elf32_bfin_special_sections[]): New. | |
234 | (elf_backend_final_write_processing): Define. | |
235 | (elf_backend_special_sections): Define. | |
236 | ||
8c684578 JZ |
237 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
238 | ||
239 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
240 | executable sections into the same segment with other | |
241 | read only sections if --sep-code. | |
242 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
243 | (elf32_bfin_data_in_l1): New variable. | |
244 | (elf32_bfin_final_write_processing): New. | |
245 | (elf32_bfin_special_sections[]): New. | |
246 | (elf_backend_final_write_processing): Define. | |
247 | (elf_backend_special_sections): Define. | |
248 | ||
3076cd1f AS |
249 | 2008-07-11 Andreas Schwab <schwab@suse.de> |
250 | ||
251 | * dwarf2.c (read_section): Take pointer to bfd_size_type instead | |
252 | of unsigned long as last parameter. | |
253 | (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, | |
254 | dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of | |
255 | unsigned long. | |
256 | ||
0a61c8c2 RS |
257 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
258 | ||
259 | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 | |
260 | for all relocation types. Allow any type of relocation to refer to | |
261 | __gnu_local_gp. | |
262 | ||
30c09090 RS |
263 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
264 | ||
265 | * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. | |
266 | (mips_elf_calculate_relocation): Likewise. | |
267 | (_bfd_mips_elf_add_symbol_hook): Likewise. | |
268 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
269 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
270 | ||
355d10dc AS |
271 | 2008-07-10 Andreas Schwab <schwab@suse.de> |
272 | ||
273 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing | |
274 | paren. | |
275 | ||
1b315056 CS |
276 | 2008-07-09 Craig Silverstein <csilvers@google.com> |
277 | ||
278 | * Makefile.am (BFD32_LIBS): Add compress.lo. | |
279 | (BFD32_LIBS_CFILES): Add compress.c. | |
280 | (BFD_H_FILES): Likewise. | |
281 | * Makefile.in: Regenerate. | |
282 | * bfd-in2.h: Regenerate. | |
283 | * config.in: Add HAVE_ZLIB_H | |
284 | * configure.in: Add test for libz and zlib.h | |
285 | * configure: Regenerate. | |
286 | * dwarf2.c (read_section): New function. | |
287 | (read_indirect_string): Call new function read_section. | |
288 | (read_abbrevs): Likewise. | |
289 | (decode_line_info): Likewise. | |
290 | (read_debug_ranges): Likewise. | |
291 | (find_line): Call new function read_section when just one | |
292 | .zdebug_info section is found, otherwise read and compress | |
293 | multiple sections. | |
294 | (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. | |
295 | * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. | |
296 | (special_sections_z): New struct. | |
297 | (special_sections): Refer to special_sections_z. | |
298 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize | |
299 | sections named .zdebug_*. | |
300 | (_bfd_mips_elf_fake_sections): Likewise. | |
301 | * compress.c: New file. | |
302 | (bfd_uncompress_section_contents): New function. | |
dc1859a6 | 303 | |
329dcd78 NC |
304 | 2008-07-07 Christophe Lyon <christophe.lyon@st.com> |
305 | ||
306 | * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in | |
307 | the presence of a PLT. | |
308 | ||
c29aae59 AM |
309 | 2008-07-07 Alan Modra <amodra@bigpond.net.au> |
310 | ||
311 | * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char. | |
312 | ||
7382d32a AM |
313 | 2008-07-02 Alan Modra <amodra@bigpond.net.au> |
314 | ||
315 | * elf32-ppc.c (is_pic_glink_stub): New function. | |
316 | (ppc_elf_get_synthetic_symtab): Don't generate symbols when | |
317 | multiple shared/pie stubs per plt entry. | |
318 | ||
cb53bf42 RS |
319 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
320 | ||
321 | * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by | |
322 | bed->s->int_rels_per_ext_rel. | |
323 | ||
6ba2a415 RS |
324 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
325 | ||
326 | * syms.c (BSF_SYNTHETIC): New flag. | |
327 | * elf.c (_bfd_elf_get_synthetic_symtab): Set it. | |
328 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. | |
329 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
330 | * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour | |
331 | for synthetic symbols. | |
332 | * bfd-in2.h: Regenerate. | |
333 | ||
3dccd7b7 DJ |
334 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
335 | ||
336 | * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue): | |
337 | Expand comments. | |
338 | (arm_map_one_stub): Use | 1 when setting the low bit. | |
339 | ||
f57718b4 AS |
340 | 2008-06-29 Andreas Schwab <schwab@suse.de> |
341 | ||
342 | * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing | |
343 | addend on _GLOBAL_OFFSET_TABLE_. | |
344 | ||
7413f23f DJ |
345 | 2008-06-24 Daniel Jacobowitz <dan@codesourcery.com> |
346 | ||
347 | * elf32-arm.c (STUB_ENTRY_NAME): Define. | |
348 | (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. | |
349 | (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of | |
350 | R_ARM_ABS32. | |
351 | (struct elf32_arm_stub_hash_entry): Add output_name. | |
352 | (arm_build_one_stub): Move offsets into the offset argument | |
353 | of _bfd_final_link_relocate. Correct offset for | |
354 | arm_thumb_arm_v4t_stub_long_branch. | |
355 | (elf32_arm_size_stubs): Set stub_entry->output_name. | |
356 | (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. | |
357 | Update all callers. | |
358 | (elf32_arm_output_stub_sym): New. | |
359 | (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. | |
360 | ||
7c39fb20 AM |
361 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
362 | ||
363 | * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for | |
364 | non-branch insns. | |
365 | ||
f3c29e8a AM |
366 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
367 | ||
368 | * elf32-spu.c (build_stub): Allow wraparound on stub branches. | |
369 | (allocate_spuear_stubs, build_spuear_stubs): Return value from | |
370 | count_stub/build_stub. | |
371 | (spu_elf_build_stubs): Correct location of stub reloc error message. | |
372 | ||
de73c611 SR |
373 | 2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
374 | ||
dc1859a6 | 375 | * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD. |
de73c611 | 376 | |
7a283e07 RW |
377 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
378 | ||
379 | * configure: Regenerate. | |
380 | ||
99302af9 AM |
381 | 2008-06-17 Alan Modra <amodra@bigpond.net.au> |
382 | ||
383 | * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space. | |
384 | (spu_elf_check_vma): Add extra_stack_space param, copy to htab. | |
385 | (spu_elf_auto_overlay): Use it. | |
386 | (RECURSE_UNMARK): Define as 0. | |
387 | (unmark_overlay_section): Heed RECURSE_UNMARK. | |
388 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
389 | ||
ff7eeb89 DD |
390 | 2008-06-12 DJ Delorie <dj@redhat.com> |
391 | ||
392 | * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD. | |
393 | ||
c13bb2ea PB |
394 | 2008-06-09 Paul Brook <paul@codesourcery.com> |
395 | ||
396 | bfd/ | |
397 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared | |
398 | libraries. | |
399 | ||
f4ac8484 DJ |
400 | 2008-06-09 Christophe Lyon <christophe.lyon@st.com> |
401 | ||
402 | * elf32-arm.c (arm_stub_is_thumb): Define. | |
403 | (elf32_arm_final_link_relocate): Handle near mode switching stubs. | |
404 | ||
6a267715 AM |
405 | 2008-06-07 Alan Modra <amodra@bigpond.net.au> |
406 | ||
407 | * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp | |
408 | to stack calculation. | |
409 | ||
23684067 PB |
410 | 2008-06-06 Paul Brook <paul@codesourcery.com> |
411 | ||
412 | bfd/ | |
413 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input. | |
414 | ||
97407faf AM |
415 | 2008-06-06 Alan Modra <amodra@bigpond.net.au> |
416 | ||
417 | * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that | |
418 | file names be unique. Specify archive:path in overlay script. | |
419 | ||
7cfbafbc AM |
420 | 2008-06-05 Alan Modra <amodra@bigpond.net.au> |
421 | ||
422 | PR ld/6590 | |
423 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets. | |
424 | ||
0f0a5e58 AM |
425 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
426 | ||
427 | * elf.c (ignore_section_sym): Don't test section sym value here. | |
428 | (elf_map_symbols): Instead check zero value here as was done prior | |
429 | to 2006-05-26 change. | |
430 | ||
696b7ad2 NC |
431 | 2008-06-04 Nick Clifton <nickc@redhat.com> |
432 | ||
433 | PR ld/6019 | |
434 | * elf32-avr.c (elf32_avr_relax_section): Handle the case where | |
435 | there are no local symbols. | |
436 | ||
1f27ab8d AM |
437 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
438 | ||
439 | * elf32-spu.c (get_sym_h): Don't attempt to read global syms. | |
440 | (process_stubs): Likewise. | |
441 | (discover_functions): Don't used cached symbols. | |
442 | (maybe_insert_function): Correct condition under which function | |
443 | array is realloc'd. | |
444 | (mark_functions_via_relocs): Delete unused variable. | |
445 | ||
adfef0bd NC |
446 | 2008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com> |
447 | Nick Clifton <nickc@redhat.com> | |
448 | ||
449 | PR ld/6511 | |
450 | * elf64-hppa.c (allocate_global_data_opd): Default to using the | |
451 | dynamic symbol table for local function names in shared libraries. | |
452 | ||
11701589 JK |
453 | 2008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
454 | ||
455 | * elf.c (assign_file_positions_for_load_sections): Adjust pre-section | |
456 | gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses. | |
457 | ||
124b52c6 AM |
458 | 2008-05-28 Alan Modra <amodra@bigpond.net.au> |
459 | ||
460 | * elf32-spu.c (spu_elf_object_p): New function. | |
461 | (elf_backend_object_p): Define. | |
462 | (build_stub): Correct second word of 8 byte overlay stubs. | |
463 | (spu_elf_relocate_section): Formatting. | |
464 | ||
bb864ac1 CES |
465 | 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> |
466 | ||
467 | * elf.c (elfcore_write_register_note): New function. | |
468 | * elf-bfd.h (elfcore_write_register_note): New prototype. | |
469 | ||
da5938a2 NC |
470 | 2008-05-22 Christophe Lyon <christophe.lyon@st.com> |
471 | ||
472 | * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols. | |
473 | (elf32_arm_stub_add_mapping_symbol): Remove. | |
474 | (elf32_arm_add_stub): Don't generate mapping symbols. Change | |
475 | prototype. | |
476 | (elf32_arm_size_stubs): Use new elf32_arm_add_stub | |
477 | prototype. Don't generate thumb to arm glue for calls. | |
478 | (arm_map_one_stub): Define. | |
479 | (elf32_arm_output_arch_local_syms): Generate mapping symbols for | |
480 | long calls stubs. | |
dc1859a6 | 481 | |
c2f950c8 L |
482 | 2008-05-21 Nick Clifton <nickc@redhat.com> |
483 | ||
484 | * elf32-arm.c (group_sections): Reformat comments. | |
485 | ||
486 | PR ld/6446 | |
487 | * elf32-frv.c (elf32_frv_relocate_section): Set EF_FRV_PIC by | |
488 | default (for FDPIC). Clear it if any inter-segment relocations | |
489 | are found. | |
490 | ||
491 | * elf64-hppa.c (elf64_hppa_finalize_opd): Check NULL return | |
492 | from elf_link_hash_lookup. | |
493 | ||
7fb9f789 | 494 | 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com> |
dc1859a6 | 495 | |
7fb9f789 NC |
496 | Add multi-GOT support for m68k. |
497 | * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key, | |
498 | glist): New fields. | |
499 | (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry, | |
500 | struct elf_m68k_got, struct elf_m68k_bfd2got_entry, | |
501 | struct elf_m68k_multi_got): New data structures. | |
502 | (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p, | |
503 | allow_multigot_p, multi_got_): New fields. | |
504 | (elf_m68k_multi_got): New macro. | |
505 | (elf_m68k_link_hash_newfunc): Initialize new fields of | |
506 | struct elf_m68k_link_hash_entry. | |
507 | (elf_m68k_link_hash_table_create): Initialize new fields of | |
508 | struct elf_m68k_link_hash_table. | |
509 | (elf_m68k_link_hash_table_free): New static function implementing hook. | |
510 | (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New | |
dc1859a6 | 511 | static functions for struct elf_m68k_got. |
7fb9f789 NC |
512 | (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash, |
513 | elf_m68k_got_entry_eq): New static functions for | |
514 | struct elf_m68k_got_entry. | |
515 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT, | |
516 | ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros. | |
517 | (enum elf_m68k_get_entry_howto): New enum. | |
518 | (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type, | |
519 | elf_m68k_remove_got_entry_type): New static functions for | |
520 | struct elf_m68k_got_entry. | |
521 | (elf_m68k_add_entry_to_got): New static function. | |
522 | (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq, | |
523 | elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static | |
524 | functions for struct elf_m68k_bfd2got_entry. | |
525 | (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1, | |
526 | elf_m68k_can_merge_gots): New traversal. | |
527 | (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1, | |
528 | elf_m68k_merge_gots): Ditto. | |
529 | (struct elf_m68k_finalize_got_offsets_arg, | |
530 | elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto. | |
531 | (struct elf_m68k_partition_multi_got_arg, | |
532 | elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1, | |
533 | elf_m68k_partition_multi_got): Ditto. | |
534 | (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static | |
535 | functions. | |
536 | (elf_m68k_copy_indirect_symbol): New static function implementing | |
537 | a hook. | |
538 | (elf_m68k_check_relocs): Update to add entries to multi-GOT. | |
539 | (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT. | |
540 | (elf_m68k_always_size_sections): Assign BFDs to GOTs. | |
541 | (elf_m68k_relocate_section): Update to properly handle GOT relocations. | |
542 | (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries | |
543 | of a global symbol. | |
544 | (bfd_elf_m68k_set_target_options): New function. | |
545 | (bfd_elf32_bfd_link_hash_table_free): Define hook. | |
546 | (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link | |
547 | to skip generic calculation of GOT offsets. | |
548 | (elf_backend_copy_indirect_symbol): Define hook. | |
549 | * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function. | |
550 | * bfd-in2.h: Regenerate. | |
551 |