bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * elfxx-mips.c (mips_elf_link_hash_entry): Move bfd_boolean
4 fields to the end of the structure and make them single-bit
5 bitfields.
6 (mips_elf_link_hash_newfunc): Make the initialization statements
7 follow the new field order.
8
9 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
10
11 * elfxx-mips.c (_mips_elf_section_data): Remove the "u.got_info" field.
12 (mips_elf_link_hash_table): Add "sgot" and "got_info" fields.
13 (_bfd_mips_elf_link_hash_table_create): Initialize them.
14 (mips_elf_got_section): Always apply the !maybe_excluded behavior.
15 (mips_elf_got_info): Delete.
16 (mips_elf_initialize_tls_slots): Remove the DYNOBJ local variable.
17 Adjust the call to mips_elf_got_section.
18 (mips_elf_local_got_index): Don't call mips_elf_got_info.
19 Update the call to mips_elf_create_local_got_entry.
20 Use htab->got_info.
21 (mips_elf_global_got_index): Don't call mips_elf_got_info;
22 use htab->got_info and htab->sgot instead.
23 (mips_elf_got_page): Don't call mips_elf_got_info. Update the
24 call to mips_elf_create_local_got_entry.
25 (mips_elf_got16_entry): Likewise.
26 (mips_elf_got_offset_from_index): Replace with DYNOBJ parameter
27 with an INFO parameter. Don't call mips_elf_got_info; use htab->sgot
28 and htab->got_info instead.
29 (mips_elf_create_local_got_entry): Remove the GG and SGOT parameters.
30 Use htab->sgot and htab->got_info.
31 (mips_elf_sort_hash_table): Remove the DYNOBJ local variable.
32 Don't call mips_elf_got_info; use htab->got_info instead.
33 (mips_elf_record_global_got_symbol): Turn G from a paramter to
34 a local variable and read it from htab->got_info.
35 (mips_elf_record_local_got_symbol): Replace the G parameter with
36 an INFO parameter. Make G a local variable and read it from
37 htab->got_info instead.
38 (mips_elf_record_got_page_entry): Likewise.
39 (mips_elf_multi_got): Remove the G parameter and make it a local
40 variable instead. Read it from htab->got_info.
41 (mips_elf_create_got_section): Cache the GOT section in htab->sgot.
42 Store the GOT information in htab->got_info.
43 (mips_elf_calculate_relocation): Don't call mips_elf_got_section
44 and mips_elf_got_info; use htab->sgot and htab->got_info instead.
45 Adjust the calls to mips_elf_got_offset_from_index and
46 mips_elf_adjust_gp.
47 (_bfd_mips_elf_check_relocs): Remove the G and SGOT local variables.
48 Adjust the calls to mips_elf_record_local_got_symbol,
49 mips_elf_record_global_got_symbol and mips_elf_record_got_page_entry.
50 Use htab->sgot.
51 (_bfd_mips_elf_always_size_sections): Remove the DYNOBJ local variable.
52 Don't call mips_elf_got_info; use htab->sgot and htab->got_info instead.
53 Update the call to mips_elf_multi_got.
54 (_bfd_mips_elf_size_dynamic_sections): Don't call mips_elf_got_info;
55 use htab->got_info instead.
56 (_bfd_mips_elf_finish_dynamic_symbol): Update the call to
57 mips_elf_got_section. Get the got_info from the hash table
58 rather than the GOT section.
59 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
60 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
61 (_bfd_mips_elf_hide_symbol): Don't call mips_elf_got_section;
62 get the got_info from the hash table instead. Remove the GOT
63 local variable.
64 (_bfd_mips_elf_final_link): Likewise. Also remove the DYNOBJ
65 local variable.
66
67 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
68
69 * elfxx-mips.c (mips_elf_link_hash_table): Add an "sstubs" field.
70 (_bfd_mips_elf_create_dynamic_sections): Use it to cache the stubs
71 section. Don't check whether the section already exists.
72 (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->sstubs.
73 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
74 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
75 (_bfd_mips_elf_size_dynamic_sections): Likewise. Don't add the
76 dummy stub to an empty section.
77 (_bfd_mips_elf_link_hash_table_create): Initialize the "sstubs" field.
78
79 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
80
81 * reloc.c (BFD_RELOC_MIPS16_GOT16, BFD_RELOC_MIPS16_CALL16): Declare.
82 * libbfd.h, bfd-in2.h: Regenerate.
83 * elf32-mips.c (elf_mips16_howto_table_rel): Fill in reserved
84 R_MIPS16_GOT16 and R_MIPS16_CALL16 entries.
85 (mips16_reloc_map): Add mappings.
86 * elf64-mips.c (mips16_elf64_howto_table_rel): Fill in reserved
87 R_MIPS16_GOT16 and R_MIPS16_CALL16 entries.
88 (mips16_elf64_howto_table_rela): Likewise.
89 (mips16_reloc_map): Add mappings.
90 * elfn32-mips.c (elf_mips16_howto_table_rel): Fill in reserved
91 R_MIPS16_GOT16 and R_MIPS16_CALL16 entries.
92 (elf_mips16_howto_table_rela): Likewise.
93 (mips16_reloc_map): Add mappings.
94 * elfxx-mips.c (mips_elf_create_shadow_symbol): New function.
95 (section_allows_mips16_refs_p): Likewise.
96 (mips16_stub_symndx): Likewise.
97 (mips_elf_check_mips16_stubs): Treat the data argument as a
98 bfd_link_info. Mark every dynamic symbol as needing MIPS16 stubs
99 and create a "shadow" symbol for the original MIPS16 definition.
100 (mips16_reloc_p, got16_reloc_p, call16_reloc_p, hi16_reloc_p)
101 (lo16_reloc_p, mips16_call_reloc_p): New functions.
102 (_bfd_mips16_elf_reloc_unshuffle): Use mips16_reloc_p to generalize
103 relocation checks.
104 (_bfd_mips16_elf_reloc_shuffle): Likewise.
105 (_bfd_mips_elf_lo16_reloc): Handle R_MIPS16_GOT16.
106 (mips_elf_got16_entry): Add comment.
107 (mips_elf_calculate_relocation): Use hi16_reloc_p,
108 lo16_reloc_p, mips16_call_reloc_p, call16_reloc_p and got16_reloc_p
109 to generalize relocation checks. Use section_allows_mips16_refs_p
110 instead of mips16_stub_section_p. Handle R_MIPS16_CALL16 and
111 R_MIPS16_GOT16, allowing the former to refer directly to a
112 MIPS16 function if its stub is not needed.
113 (mips16_stub_section_p): Delete.
114 (_bfd_mips_elf_symbol_processing): Convert odd-valued function
115 symbols into even MIPS16 symbols.
116 (mips_elf_add_lo16_rel_addend): Use mips16_reloc_p to generalize
117 a relocation check.
118 (_bfd_mips_elf_check_relocs): Calculate "bed" and "rel_end"
119 earlier in the function. Use mips16_stub_symndx to identify
120 the target function. Avoid out-of-bounds accesses when the
121 stub has no relocations; report an error instead. Use
122 section_allows_mips16_refs_p instead of mips16_stub_section_p.
123 Use mips16_call_reloc_p and got16_reloc_p to generalize relocation
124 checks. Handle R_MIPS16_CALL16 and R_MIPS16_GOT16. Don't create
125 dynamic relocations for absolute references to __gnu_local_gp.
126 (_bfd_mips_elf_always_size_sections): Pass a bfd_link_info as
127 the argument to mips_elf_check_mips16_stubs. Generalize comment.
128 (_bfd_mips_elf_relocate_section): Use hi16_reloc_p and got16_reloc_p
129 to generalize relocation checks.
130 (_bfd_mips_elf_finish_dynamic_symbol): If a dynamic MIPS16 function
131 symbol has a non-MIPS16 stub, redirect the symbol to the stub.
132 Fix an overly long line. Don't give dynamic symbols type STO_MIPS16.
133 (_bfd_mips_elf_gc_sweep_hook): Handle R_MIPS16_CALL16 and
134 R_MIPS16_GOT16.
135
136 2008-08-06 Alan Modra <amodra@bigpond.net.au>
137
138 * elf32-ppc.c (ppc_elf_relax_section): Clear R_PPC_PLTREL24 addend.
139 (ppc_elf_relocate_section <R_PPC_RELAX32_PLT>): Don't bother here.
140
141 2008-08-05 Alan Modra <amodra@bigpond.net.au>
142 Jaka Močnik <jaka@xlab.si>
143
144 * coffcode.h (coff_slurp_line_table): bfd_alloc lineno_cache first
145 so that we don't inadvertently free it. Use bfd_alloc for sort
146 arrays, and memcpy sorted line table.
147
148 2008-08-04 Alan Modra <amodra@bigpond.net.au>
149
150 * elf32-spu.c (spu_elf_auto_overlay): Use the maximum possible
151 if --fixed-space request is too large.
152
153 2008-08-04 Alan Modra <amodra@bigpond.net.au>
154
155 * Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Set LC_ALL=C.
156 * Makefile.in: Regenerate.
157 * po/SRC-POTFILES.in: Regenerate.
158
159 2008-08-02 Alan Modra <amodra@bigpond.net.au>
160
161 * elf32-spu.c (mark_overlay_section): Move code calculating
162 max_overlay_size to correct block.
163 (spu_elf_auto_overlay): Don't use %x in einfo error message.
164
165 2008-08-01 Alan Modra <amodra@bigpond.net.au>
166 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 * elfcore.h (elf_core_file_p): Ensure we have a backend match
169 with the correct arch size before rejecting the generic fallback.
170 * elfcode.h (elf_object_p): Likewise. Ensure arch size matches
171 before accepting a target.
172
173 2008-08-01 Alan Modra <amodra@bigpond.net.au>
174
175 PR 6774
176 * elf.c (rewrite_elf_program_header): Don't wrap p_paddr to
177 include file or program headers.
178
179 2008-07-30 Alan Modra <amodra@bigpond.net.au>
180
181 * coff-ppc.c, coffgen.c, ecoff.c, ecofflink.c, elf.c, elf32-frv.c,
182 elf32-iq2000.c, elf32-m32c.c, elf32-mep.c, elf32-mt.c,
183 elf32-sh-symbian.c, elf64-hppa.c, mach-o.c, peXXigen.c, pef.c,
184 ppcboot.c, vms-misc.c, xsym.c: Silence gcc warnings.
185
186 2008-07-28 Daniel Jacobowitz <dan@codesourcery.com>
187
188 * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating
189 relocations for undefined weak symbols with non-default visibility.
190 (_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for
191 global symbols in shared libraries.
192 (allocate_dynrelocs): New function.
193 (_bfd_mips_elf_adjust_dynamic_symbol): Do not handle
194 possibly_dynamic_relocs here.
195 (_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs.
196
197 2008-07-28 Alexandre Oliva <aoliva@redhat.com>
198
199 * elf32-i386.c (struct elf_i386_link_hash_table): Added field
200 tls_module_base.
201 (elf_i386_link_hash_table_create): Initialize it.
202 (elf_i386_always_size_sections): Set it.
203 (set_tls_module_base): New.
204 (elf_i386_relocate_sections): Call it.
205 * elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added
206 field tls_module_base.
207 (elf64_x86_64_link_hash_table_create): Initialize it.
208 (elf64_x86_64_always_size_sections): Set it.
209 (set_tls_module_base): New.
210 (elf64_x86_64_relocate_sections): Call it.
211 Reported by Cary Coutant <ccoutant@google.com>
212
213 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
214
215 * elf32-arm.c (arm_map_one_stub): Declare variables at beginning
216 of block.
217 * elf32-avr.c (get_local_syms): Likewise.
218
219 2008-07-28 Alan Modra <amodra@bigpond.net.au>
220
221 PR 6769
222 * bfd-in.h (BFD_VMA_FMT): Define.
223 (printf_vma, sprintf_vma): Use the above.
224 (_bfd_int64_low, _bfd_int64_high): Delete.
225 * bfd-in2.h: Regenerate.
226
227 2008-07-27 Alan Modra <amodra@bigpond.net.au>
228
229 * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from
230 elf_parse_notes. Use bfd_malloc_and_get_section.
231 (elf_parse_notes): Validate note namesz and descsz.
232
233 2008-07-26 Michael Eager <eager@eagercon.com>
234
235 * elf32-ppc.c (ppc_elf_merge_obj_attributes): Check compatibility
236 between single-float, double-float, and soft-float.
237
238 2008-07-24 Daniel Jacobowitz <dan@codesourcery.com>
239
240 * elf32-mips.c (elf_backend_write_section): Define.
241
242 2008-07-24 Nick Clifton <nickc@redhat.com>
243
244 * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one
245 error assigning sections to segments.
246
247 2008-07-22 Nick Clifton <nickc@redhat.com>
248
249 * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in
250 adjoining pages to be included in the same segment.
251
252 2008-07-22 Simon Baldwin <simonb@google.com>
253
254 * elflink.c (elf_link_output_extsym): Set st_size to zero for
255 symbols from dynamic libraries.
256
257 2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
258
259 PR ld/4424
260 * elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible
261 to check if 2 inputs are compatible.
262
263 2008-07-21 Sterling Augustine <sterling@tensilica.com>
264
265 * elf.c (assign_file_positions_for_load_sections): Print vma in
266 error message about overlapping section vmas.
267
268 2008-07-21 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/6747
271 * elf32-frv.c (elf32_frv_relocate_section): Revert the change
272 for PR ld/6446 checked in by accident on May 21, 2008.
273
274 2008-07-21 Nick Clifton <nickc@redhat.com>
275
276 * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
277 COFF_WITH_PE based SH ports.
278 * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype.
279 * arm-wince-pe.c (bfd_pe_print_pdata): Use
280 _bfd_pe_print_ce_compressed_pdata.
281 (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move
282 to...
283 * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to
284 _bfd_XX_print_ce_compressed_pdata.
285
286 2008-07-21 Alan Modra <amodra@bigpond.net.au>
287
288 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop
289 unwanted zero terminators.
290
291 2008-07-21 Alan Modra <amodra@bigpond.net.au>
292
293 * elf32-spu.c (spu_elf_relocate_section): Expand
294 RELOC_FOR_GLOBAL_SYMBOL. Don't warn about undefined symbols for
295 R_SPU_PPU32 and R_SPU_PPU64 relocations.
296
297 2008-07-21 Luis Machado <luisgpm@br.ibm.com>
298
299 * elf-bfd.h: Declare elfcore_write_ppc_vsx.
300 * elf.c (elfcore_grok_ppc_vsx): New function.
301 (elfcore_write_ppc_vsx): New function
302 (elfcore_grok_note): Handle VSX notes.
303 (elfcore_write_register_note): Handle VSX notes.
304
305 2008-07-18 Joseph Myers <joseph@codesourcery.com>
306
307 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter.
308 * bfd-in2.h: Regenerate.
309 * elf32-arm.c (struct elf_arm_obj_tdata): Add field
310 no_wchar_size_warning.
311 (bfd_elf32_arm_set_target_relocs): Add new parameter
312 no_wchar_warn.
313 (elf32_arm_merge_eabi_attributes): Give a warning, not an error,
314 for conflicting wchar_t attributes. Do not warn if
315 --no-wchar-size-warning. Make diagnostic text more specific.
316
317 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
318
319 PR ld/6748
320 * elf32-arm.c (elf32_arm_link_hash_table_create): Initialize
321 new fields added for ARM long call support.
322
323 2008-07-18 Danny Backx <dannybackx@users.sourceforge.net>
324
325 * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
326 print compressed pdata structure as described on MSDN. This only
327 applies to a limited set of architectures (ARM, SH4).
328 (slurp_symtab, my_symbol_for_address): Define static helper
329 functions for pe_print_compressed_pdata.
330 * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field.
331 (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define.
332 * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on
333 bfd_coff_backend_data, call the function if non-null.
334 * pei-mcore.c: Add target dependent initialisation for
335 bfd_coff_backend_data.
336 * coff-sh.c: Likewise.
337 * coff64-rs6000.c: Likewise.
338 * coff-rs6000.c: Likewise.
339 * libcoff-in.h: Likewise.
340 * cf-i386lynx.c: Likewise.
341 * coff-alpha.c: Likewise.
342 * coff-apollo.c: Likewise.
343 * coff-arm.c: Likewise.
344 * coff-aux.c: Likewise.
345 * coff-h8300.c: Likewise.
346 * coff-h8500.c: Likewise.
347 * coff-i386.c: Likewise.
348 * coff-i860.c: Likewise.
349 * coff-i960.c: Likewise.
350 * coff-ia64.c: Likewise.
351 * coff-m68k.c: Likewise.
352 * coff-m88k.c: Likewise.
353 * coff-maxq.c: Likewise.
354 * coff-mips.c: Likewise.
355 * coff-or32.c: Likewise.
356 * coff-sparc.c: Likewise.
357 * coff-tic30.c: Likewise.
358 * coff-tic4x.c: Likewise.
359 * coff-tic54x.c: Likewise.
360 * coff-tic80.c: Likewise.
361 * coff-w65.c: Likewise.
362 * coff-we32k.c: Likewise.
363 * coff-x86_64.c: Likewise.
364 * coff-z80.c: Likewise.
365 * coff-z8k.c: Likewise.
366 * pe-mcore.c: Likewise.
367 * pe-mips.c: Likewise.
368 * pe-ppc.c: Likewise.
369 * peXXigen.c: Likewise.
370 * pei-ppc.c: Likewise.
371 * libcoff.h: Regenerate.
372
373 2008-07-16 Bernd Schmidt <bernd.schmidt@analog.com>
374
375 * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
376 bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook,
377 ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE,
378 struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code
379 separate from non-FD-PIC.
380
381 2008-07-14 DJ Delorie <dj@redhat.com>
382
383 * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
384 checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16
385 relocs.
386 (mn10300_elf_relax_section): Correct jump offset check when target
387 is in a different section.
388
389 2008-07-15 Jie Zhang <jie.zhang@analog.com>
390
391 * elf32-bfin.c (elf32_bfin_special_sections[]): New.
392 (elf_backend_special_sections): Define.
393
394 2008-07-13 Craig Silverstein <csilvers@google.com>
395
396 PR binutils/6743
397 * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory.
398 (find_line): Use info_ptr_memory instead of sec_info_ptr.
399 (_bfd_dwarf2_cleanup_debug_info): Likewise.
400
401 2008-07-12 Jie Zhang <jie.zhang@analog.com>
402
403 Revert
404 2008-07-12 Jie Zhang <jie.zhang@analog.com>
405 * elf.c (_bfd_elf_map_sections_to_segments): Don't put
406 executable sections into the same segment with other
407 read only sections if --sep-code.
408 * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
409 (elf32_bfin_data_in_l1): New variable.
410 (elf32_bfin_final_write_processing): New.
411 (elf32_bfin_special_sections[]): New.
412 (elf_backend_final_write_processing): Define.
413 (elf_backend_special_sections): Define.
414
415 2008-07-12 Jie Zhang <jie.zhang@analog.com>
416
417 * elf.c (_bfd_elf_map_sections_to_segments): Don't put
418 executable sections into the same segment with other
419 read only sections if --sep-code.
420 * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
421 (elf32_bfin_data_in_l1): New variable.
422 (elf32_bfin_final_write_processing): New.
423 (elf32_bfin_special_sections[]): New.
424 (elf_backend_final_write_processing): Define.
425 (elf_backend_special_sections): Define.
426
427 2008-07-11 Andreas Schwab <schwab@suse.de>
428
429 * dwarf2.c (read_section): Take pointer to bfd_size_type instead
430 of unsigned long as last parameter.
431 (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size,
432 dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of
433 unsigned long.
434
435 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
436
437 * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
438 for all relocation types. Allow any type of relocation to refer to
439 __gnu_local_gp.
440
441 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
442
443 * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
444 (mips_elf_calculate_relocation): Likewise.
445 (_bfd_mips_elf_add_symbol_hook): Likewise.
446 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
447 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
448
449 2008-07-10 Andreas Schwab <schwab@suse.de>
450
451 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing
452 paren.
453
454 2008-07-09 Craig Silverstein <csilvers@google.com>
455
456 * Makefile.am (BFD32_LIBS): Add compress.lo.
457 (BFD32_LIBS_CFILES): Add compress.c.
458 (BFD_H_FILES): Likewise.
459 * Makefile.in: Regenerate.
460 * bfd-in2.h: Regenerate.
461 * config.in: Add HAVE_ZLIB_H
462 * configure.in: Add test for libz and zlib.h
463 * configure: Regenerate.
464 * dwarf2.c (read_section): New function.
465 (read_indirect_string): Call new function read_section.
466 (read_abbrevs): Likewise.
467 (decode_line_info): Likewise.
468 (read_debug_ranges): Likewise.
469 (find_line): Call new function read_section when just one
470 .zdebug_info section is found, otherwise read and compress
471 multiple sections.
472 (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr.
473 * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix.
474 (special_sections_z): New struct.
475 (special_sections): Refer to special_sections_z.
476 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize
477 sections named .zdebug_*.
478 (_bfd_mips_elf_fake_sections): Likewise.
479 * compress.c: New file.
480 (bfd_uncompress_section_contents): New function.
481
482 2008-07-07 Christophe Lyon <christophe.lyon@st.com>
483
484 * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
485 the presence of a PLT.
486
487 2008-07-07 Alan Modra <amodra@bigpond.net.au>
488
489 * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
490
491 2008-07-02 Alan Modra <amodra@bigpond.net.au>
492
493 * elf32-ppc.c (is_pic_glink_stub): New function.
494 (ppc_elf_get_synthetic_symtab): Don't generate symbols when
495 multiple shared/pie stubs per plt entry.
496
497 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
498
499 * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
500 bed->s->int_rels_per_ext_rel.
501
502 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
503
504 * syms.c (BSF_SYNTHETIC): New flag.
505 * elf.c (_bfd_elf_get_synthetic_symtab): Set it.
506 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
507 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
508 * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
509 for synthetic symbols.
510 * bfd-in2.h: Regenerate.
511
512 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
513
514 * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
515 Expand comments.
516 (arm_map_one_stub): Use | 1 when setting the low bit.
517
518 2008-06-29 Andreas Schwab <schwab@suse.de>
519
520 * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
521 addend on _GLOBAL_OFFSET_TABLE_.
522
523 2008-06-24 Daniel Jacobowitz <dan@codesourcery.com>
524
525 * elf32-arm.c (STUB_ENTRY_NAME): Define.
526 (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
527 (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
528 R_ARM_ABS32.
529 (struct elf32_arm_stub_hash_entry): Add output_name.
530 (arm_build_one_stub): Move offsets into the offset argument
531 of _bfd_final_link_relocate. Correct offset for
532 arm_thumb_arm_v4t_stub_long_branch.
533 (elf32_arm_size_stubs): Set stub_entry->output_name.
534 (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
535 Update all callers.
536 (elf32_arm_output_stub_sym): New.
537 (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym.
538
539 2008-06-20 Alan Modra <amodra@bigpond.net.au>
540
541 * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
542 non-branch insns.
543
544 2008-06-20 Alan Modra <amodra@bigpond.net.au>
545
546 * elf32-spu.c (build_stub): Allow wraparound on stub branches.
547 (allocate_spuear_stubs, build_spuear_stubs): Return value from
548 count_stub/build_stub.
549 (spu_elf_build_stubs): Correct location of stub reloc error message.
550
551 2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
552
553 * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
554
555 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
556
557 * configure: Regenerate.
558
559 2008-06-17 Alan Modra <amodra@bigpond.net.au>
560
561 * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space.
562 (spu_elf_check_vma): Add extra_stack_space param, copy to htab.
563 (spu_elf_auto_overlay): Use it.
564 (RECURSE_UNMARK): Define as 0.
565 (unmark_overlay_section): Heed RECURSE_UNMARK.
566 * elf32-spu.h (spu_elf_check_vma): Update prototype.
567
568 2008-06-12 DJ Delorie <dj@redhat.com>
569
570 * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.
571
572 2008-06-09 Paul Brook <paul@codesourcery.com>
573
574 bfd/
575 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared
576 libraries.
577
578 2008-06-09 Christophe Lyon <christophe.lyon@st.com>
579
580 * elf32-arm.c (arm_stub_is_thumb): Define.
581 (elf32_arm_final_link_relocate): Handle near mode switching stubs.
582
583 2008-06-07 Alan Modra <amodra@bigpond.net.au>
584
585 * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp
586 to stack calculation.
587
588 2008-06-06 Paul Brook <paul@codesourcery.com>
589
590 bfd/
591 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input.
592
593 2008-06-06 Alan Modra <amodra@bigpond.net.au>
594
595 * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that
596 file names be unique. Specify archive:path in overlay script.
597
598 2008-06-05 Alan Modra <amodra@bigpond.net.au>
599
600 PR ld/6590
601 * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets.
602
603 2008-06-04 Alan Modra <amodra@bigpond.net.au>
604
605 * elf.c (ignore_section_sym): Don't test section sym value here.
606 (elf_map_symbols): Instead check zero value here as was done prior
607 to 2006-05-26 change.
608
609 2008-06-04 Nick Clifton <nickc@redhat.com>
610
611 PR ld/6019
612 * elf32-avr.c (elf32_avr_relax_section): Handle the case where
613 there are no local symbols.
614
615 2008-06-04 Alan Modra <amodra@bigpond.net.au>
616
617 * elf32-spu.c (get_sym_h): Don't attempt to read global syms.
618 (process_stubs): Likewise.
619 (discover_functions): Don't used cached symbols.
620 (maybe_insert_function): Correct condition under which function
621 array is realloc'd.
622 (mark_functions_via_relocs): Delete unused variable.
623
624 2008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com>
625 Nick Clifton <nickc@redhat.com>
626
627 PR ld/6511
628 * elf64-hppa.c (allocate_global_data_opd): Default to using the
629 dynamic symbol table for local function names in shared libraries.
630
631 2008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
632
633 * elf.c (assign_file_positions_for_load_sections): Adjust pre-section
634 gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses.
635
636 2008-05-28 Alan Modra <amodra@bigpond.net.au>
637
638 * elf32-spu.c (spu_elf_object_p): New function.
639 (elf_backend_object_p): Define.
640 (build_stub): Correct second word of 8 byte overlay stubs.
641 (spu_elf_relocate_section): Formatting.
642
643 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
644
645 * elf.c (elfcore_write_register_note): New function.
646 * elf-bfd.h (elfcore_write_register_note): New prototype.
647
648 2008-05-22 Christophe Lyon <christophe.lyon@st.com>
649
650 * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols.
651 (elf32_arm_stub_add_mapping_symbol): Remove.
652 (elf32_arm_add_stub): Don't generate mapping symbols. Change
653 prototype.
654 (elf32_arm_size_stubs): Use new elf32_arm_add_stub
655 prototype. Don't generate thumb to arm glue for calls.
656 (arm_map_one_stub): Define.
657 (elf32_arm_output_arch_local_syms): Generate mapping symbols for
658 long calls stubs.
659
660 2008-05-21 Nick Clifton <nickc@redhat.com>
661
662 * elf32-arm.c (group_sections): Reformat comments.
663
664 PR ld/6446
665 * elf32-frv.c (elf32_frv_relocate_section): Set EF_FRV_PIC by
666 default (for FDPIC). Clear it if any inter-segment relocations
667 are found.
668
669 * elf64-hppa.c (elf64_hppa_finalize_opd): Check NULL return
670 from elf_link_hash_lookup.
671
672 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
673
674 Add multi-GOT support for m68k.
675 * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key,
676 glist): New fields.
677 (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry,
678 struct elf_m68k_got, struct elf_m68k_bfd2got_entry,
679 struct elf_m68k_multi_got): New data structures.
680 (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p,
681 allow_multigot_p, multi_got_): New fields.
682 (elf_m68k_multi_got): New macro.
683 (elf_m68k_link_hash_newfunc): Initialize new fields of
684 struct elf_m68k_link_hash_entry.
685 (elf_m68k_link_hash_table_create): Initialize new fields of
686 struct elf_m68k_link_hash_table.
687 (elf_m68k_link_hash_table_free): New static function implementing hook.
688 (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New
689 static functions for struct elf_m68k_got.
690 (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash,
691 elf_m68k_got_entry_eq): New static functions for
692 struct elf_m68k_got_entry.
693 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT,
694 ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros.
695 (enum elf_m68k_get_entry_howto): New enum.
696 (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type,
697 elf_m68k_remove_got_entry_type): New static functions for
698 struct elf_m68k_got_entry.
699 (elf_m68k_add_entry_to_got): New static function.
700 (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq,
701 elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static
702 functions for struct elf_m68k_bfd2got_entry.
703 (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1,
704 elf_m68k_can_merge_gots): New traversal.
705 (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1,
706 elf_m68k_merge_gots): Ditto.
707 (struct elf_m68k_finalize_got_offsets_arg,
708 elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto.
709 (struct elf_m68k_partition_multi_got_arg,
710 elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1,
711 elf_m68k_partition_multi_got): Ditto.
712 (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static
713 functions.
714 (elf_m68k_copy_indirect_symbol): New static function implementing
715 a hook.
716 (elf_m68k_check_relocs): Update to add entries to multi-GOT.
717 (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT.
718 (elf_m68k_always_size_sections): Assign BFDs to GOTs.
719 (elf_m68k_relocate_section): Update to properly handle GOT relocations.
720 (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries
721 of a global symbol.
722 (bfd_elf_m68k_set_target_options): New function.
723 (bfd_elf32_bfd_link_hash_table_free): Define hook.
724 (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link
725 to skip generic calculation of GOT offsets.
726 (elf_backend_copy_indirect_symbol): Define hook.
727 * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function.
728 * bfd-in2.h: Regenerate.
729
730 2008-05-21 André Johansen <andrejoh@gmail.com>
731
732 PR 868
733 * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free memory allocated
734 for filenames in function tables and variable tables.
735
736 2008-05-19 Alan Modra <amodra@bigpond.net.au>
737
738 PR 2995, PR 6473
739 * elf.c (_bfd_elf_make_section_from_shdr): Leave lma equal to
740 vma when all p_paddr fields are zero and there is more than
741 one PT_LOAD header.
742
743 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
744
745 Add long call support for ARM.
746 * elf32-arm.c (THM2_MAX_FWD_BRANCH_OFFSET): Define.
747 (THM2_MAX_BWD_BRANCH_OFFSET): Define.
748 (ARM_MAX_FWD_BRANCH_OFFSET): Define.
749 (ARM_MAX_BWD_BRANCH_OFFSET): Define.
750 (THM_MAX_FWD_BRANCH_OFFSET): Define.
751 (THM_MAX_BWD_BRANCH_OFFSET): Define.
752 (arm_long_branch_stub): Define.
753 (arm_pic_long_branch_stub): Define.
754 (arm_thumb_v4t_long_branch_stub): Define.
755 (arm_thumb_thumb_long_branch_stub): Define.
756 (arm_thumb_arm_v4t_long_branch_stub): Define.
757 (STUB_SUFFIX): Define.
758 (elf32_arm_stub_type): Define.
759 (elf32_arm_stub_hash_entry): Define.
760 (elf32_arm_link_hash_entry): Add stub_cache field.
761 (arm_stub_hash_lookup): Define.
762 (elf32_arm_link_hash_table): Add stub_hash_table, stub_bfd,
763 add_stub_section, layout_sections_again, stub_group, bfd_count,
764 top_index, input_list fields.
765 (elf32_arm_link_hash_newfunc): Init new field.
766 (stub_hash_newfunc): New function.
767 (elf32_arm_link_hash_table_create): Init stub_hash_table.
768 (elf32_arm_hash_table_free): New function.
769 (arm_type_of_stub): New function.
770 (elf32_arm_stub_name): New function.
771 (elf32_arm_get_stub_entry): New function.
772 (elf32_arm_stub_add_mapping_symbol): New function.
773 (elf32_arm_add_stub): New function.
774 (arm_build_one_stub): New function.
775 (arm_size_one_stub): New function.
776 (elf32_arm_setup_section_lists): New function.
777 (elf32_arm_next_input_section): New function.
778 (group_sections): New function.
779 (elf32_arm_size_stubs): New function.
780 (elf32_arm_build_stubs): New function.
781 (bfd_elf32_arm_add_glue_sections_to_bfd): Skip stub sections.
782 (bfd_elf32_arm_process_before_allocation): No longer handle
783 R_ARM_CALL and R_ARM_THM_CALL.
784 (using_thumb_only): New function.
785 (elf32_arm_final_link_relocate): Redirect calls to stub if range
786 exceeds encoding capabilities.
787 (bfd_elf32_bfd_link_hash_table_free): Define.
788 * bfd-in.h (R_ARM_max): Fix value to 130.
789 (elf32_arm_setup_section_lists): Protype.
790 (elf32_arm_next_input_section): Protype.
791 (elf32_arm_size_stubs): Protype.
792 (elf32_arm_build_stubs): Protype.
793 * bfd-in2.h: Regenerate.
794
795 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
796
797 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls.
798 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
799
800 2008-05-14 Alan Modra <amodra@bigpond.net.au>
801
802 * Makefile.am: Run "make dep-am".
803 * Makefile.in: Regenerate.
804
805 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
806 Alan Modra <amodra@bigpond.net.au>
807
808 * elf32-ppc.c (section_covers_vma): New function.
809 (ppc_elf_get_synthetic_symtab): New function.
810 (bfd_elf32_get_synthetic_symtab): Define.
811 * elf64-ppc.c (section_covers_vma): New function.
812 (ppc64_elf_get_synthetic_symtab): Generate sym@plt on glink branch
813 table entries, and __glink_PLTresolve on resolver stub.
814 (ppc64_elf_build_stubs): Rename __glink sym to __glink_PLTresolve.
815
816 2008-05-12 Alan Modra <amodra@bigpond.net.au>
817
818 PR 6443
819 * elf32-ppc.c (MUST_BE_DYN_RELOC): Delete.
820 (must_be_dyn_reloc): New function.
821 (ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs
822 in pies.
823 (ppc_elf_tls_optimize): Optimise pies.
824 (ppc_elf_relocate_section): Use a section symbol rather than no
825 symbol if possible for LD->IE TLS sequence, but don't error if
826 we must use no symbol.
827 * elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c.
828 (must_be_dyn_reloc): Likewise.
829 (ppc64_elf_check_relocs): Likewise.
830 (ppc64_elf_tls_optimize): Likewise.
831 (ppc64_elf_relocate_section): Likewise.
832
833 2008-05-12 Alan Modra <amodra@bigpond.net.au>
834
835 * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym.
836
837 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com>
838
839 * elfcore.h (elf_core_file_p): Warn about core truncation.
840
841 2008-05-07 Bob Wilson <bob.wilson@acm.org>
842
843 * elf32-xtensa.c (xtensa_property_section_name): New.
844 (xtensa_make_property_section): New.
845 (xtensa_get_property_section): Make static. Do not create a new
846 section if it does not exist.
847
848 2008-05-08 Alan Modra <amodra@bigpond.net.au>
849
850 * elf32-spu.c (spu_elf_special_sections): Add "._ea".
851 (spu_elf_relocate_section): Handle relocations against symbols
852 defined in ._ea specially.
853
854 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
855
856 * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use
857 ARRAY_SIZE.
858 (elf32_arm_symbian_plt_sym_val): New.
859 (elf_backend_plt_sym_val): Define.
860
861 2008-05-03 Alan Modra <amodra@bigpond.net.au>
862
863 PR 2995, PR 6473
864 * elf.c (rewrite_elf_program_header): Rather than clearing
865 p_paddr_valid at end, don't set it in the first place. Delete
866 comment no longer relevant. When not p_paddr_valid, don't set
867 paddr from vaddr, and don't set p_vaddr_offset.
868
869 2008-05-01 Cary Coutant <ccoutant@google.com>
870
871 * elf.c (bfd_elf_get_str_section): Fix memory leak caused by
872 corrupt string table.
873
874 2008-05-01 Joel Brobecker <brobecker@adacore.com>
875
876 * cache.c (cache_bread_1): Renames cache_bread.
877 (cache_bread): New function.
878
879 2008-05-01 Alan Modra <amodra@bigpond.net.au>
880
881 PR 2995, PR 6473
882 * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr.
883 (assign_file_positions_for_load_sections): Combine nested "if".
884 (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset
885 when all header p_paddr fields are zero.
886
887 2008-04-30 Edmar Wienskoski <edmar@freescale.com>
888
889 * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry.
890
891 2008-04-29 Daniel Jacobowitz <dan@codesourcery.com>
892
893 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
894 (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations
895 even if they are not loaded.
896 * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section
897 first.
898
899 2008-04-25 Jay Foad <jay.foad@gmail.com>
900
901 * reloc16.c (bfd_coff_reloc16_get_value): Add support for
902 undefined weak symbols.
903
904 2008-04-25 Nick Clifton <nickc@redhat.com>
905
906 * po/vi.po: Updated Vietnamese translation.
907
908 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
909
910 * aclocal.m4: Regenerate.
911 * configure: Regenerate.
912
913 2008-04-21 Cary Coutant <ccoutant@google.com>
914
915 * archive.c (_bfd_write_archive_contents): Fix incorrect use of
916 ARFMAG.
917
918 2008-04-21 Nathan Sidwell <nathan@codesourcery.com>
919
920 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
921 set the value of undefined symbols in shared objects.
922 (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for
923 undefined symbols unless pointer equality is needed.
924
925 2008-04-18 Dennis Roberts <dennis.roberts@sunquestinfo.com>
926
927 * aix5ppc-core.c: Define macros for the default architecture and
928 machine for matching core files.
929 (xcoff64_core_p): Set the architecture and machine to the default
930 values defined in the macros mentioned above.
931 * rs6000-core.c: Define macros to determine whether or not the
932 core file header uses the core_dumpxx header format.
933 (rs6000coff_core_p): Don't match core files that use the
934 core_dumpxx header format.
935
936 2008-04-16 Pedro Alves <pedro@codesourcery.com>
937
938 * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add.
939
940 2008-04-16 David S. Miller <davem@davemloft.net>
941
942 * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22,
943 BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
944 BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New.
945 * libbfd.h: Regnerate.
946 * bfd-in2.h: Regenerate.
947 * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for
948 GOTDATA relocations.
949 (sparc_reloc_map): Likewise.
950 (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like
951 R_SPARC_GOT*.
952 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
953 (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22,
954 R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and
955 R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc.
956 Simply ignore R_SPARC_GOTDATA_OP relocations.
957
958 2008-04-14 Aurelien Jarno <aurelien@aurel32.net>
959
960 * configure.in: Link with the PIC version of libiberty on
961 Linux/MIPS hosts.
962 * configure: Regenerate.
963
964 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
965
966 * archures.c: Add bfd_mach_ppc_e500mc.
967 * bfd-in2.h: Regenerate.
968
969 2008-04-08 Alan Modra <amodra@bigpond.net.au>
970
971 * elf32-spu.c (spu_elf_build_stubs): Correct error message.
972 (mark_functions_via_relocs): Remove premature init of symtab_hdr.
973 (collect_overlays): Commment typo fix.
974
975 2008-04-08 Kees Cook <kees@canonical.com>
976
977 * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
978 in EXEC_P bfds.
979
980 2008-04-08 Alan Modra <amodra@bigpond.net.au>
981
982 * elf32-spu.c: Include libiberty.h.
983 (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved,
984 non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script,
985 spu_elf_relink, auto_overlay fields.
986 (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define.
987 (needs_ovl_stub): Flip test so that call to non-function warning
988 is emitted during relocate_section rather than earlier.
989 (spu_elf_check_vma): Stash --auto-overlay parameters, and clear
990 auto_overlay if no section exceeds local store.
991 (struct call_info): Add count, max_depth, is_pasted fields.
992 (struct function_info): Add rodata, last_caller, call_count,
993 depth, new visit flags.
994 (insert_callee): Increment call count.
995 (copy_callee): New function.
996 (mark_functions_via_relocs): Investigate all reloc types to count
997 possible function pointer stubs for --auto-overlay. Track
998 last_caller and increment function call_count.
999 (pasted_function): Insert a "call" into call info for pasted section.
1000 (remove_cycles): Track max depth of calls. Don't emit call graph
1001 pruning warning for --auto-overlay.
1002 (build_call_tree): Don't transfer_calls for --auto-overlay.
1003 Adjust remove_cycles call.
1004 (sort_calls, sort_lib, sort_bfds): New functions.
1005 (struct _mos_param, struct _uos_param, struct _cl_param): New.
1006 (mark_overlay_section, unmark_overlay_section): New functions.
1007 (collect_lib_sectios, auto_ovl_lib_functions): New functions.
1008 (collect_overlays, find_pasted_call): New functions.
1009 (sum_stack): Deal with is_pasted "calls". Exit before printing
1010 when --auto-overlay.
1011 (spu_elf_auto_overlay): New function.
1012 (spu_elf_final_link): Call spu_elf_auto_overlay.
1013 * elf32-spu.h (spu_elf_check_vma): Update prototype.
1014
1015 2008-04-07 Alan Modra <amodra@bigpond.net.au>
1016
1017 * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol
1018 is defined in overlay section before creating a stub.
1019 (build_spuear_stubs): Likewise.
1020 (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls.
1021
1022 2008-04-02 Alan Modra <amodra@bigpond.net.au>
1023
1024 * elf32-spu.c (insert_callee): Reorder call list so most recent
1025 call is always first.
1026 (interesting_section): Move.
1027 (mark_functions_via_relocs): Fold interesting_section and
1028 reloc_count tests in callers to here. Simplify output section
1029 owner test.
1030 (discover_functions): Set "gaps" when no symbols and some
1031 "interesting_section". Run pasted_function loop for no symbol
1032 bfds.
1033 (for_each_node, transfer_calls): New functions.
1034 (mark_non_root): Adjust to suit for_each_node.
1035 (call_graph_traverse): Likewise. Fix memory leak. Rename to..
1036 (remove_cycles): ..this.
1037 (build_call_tree): Use for_each_node and transfer_calls.
1038 (struct _sum_stack_param): New.
1039 (sum_stack): Adjust to suit for_each_node. Return error on
1040 malloc failure. Move code to print root node cumulative stack from..
1041 (spu_elf_stack_analysis): ..here. Use for_each_node.
1042
1043 2008-03-31 Cary Coutant <ccoutant@google.com>
1044
1045 PR 6006
1046 * archive.c (_bfd_slurp_extended_name_table): Change
1047 ARFMAG[0] to ARFMAG[1].
1048 (_bfd_construct_extended_name_table): Likewise.
1049
1050 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com>
1051
1052 * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment.
1053 (_bfd_mips_elf_check_relocs): Update comments. Always call
1054 mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE.
1055
1056 2008-03-27 Cary Coutant <ccoutant@google.com>
1057
1058 Add support for thin archives.
1059 * archive.c (_bfd_find_nested_archive): New function.
1060 (get_extended_arelt_filename): Add origin parameter.
1061 (_bfd_generic_read_ar_hdr_mag): Deal with extended name
1062 combined with a file offset.
1063 (append_relative_path): New function.
1064 (_bfd_get_elt_at_filepos): Deal with external members and
1065 nested archives.
1066 (bfd_generic_openr_next_archived_file): Thin archives.
1067 (bfd_generic_archive_p): Recognize new magic string.
1068 (adjust_relative_path): New function.
1069 (_bfd_construct_extended_name_table): Construct extended
1070 names for thin archive members.
1071 (_bfd_write_archive_contents): Emit new magic string, skip
1072 copying files for thin archives.
1073 * bfd-in.h (bfd_is_thin_archive): New macro.
1074 * bfd.c (struct bfd): New fields for thin archives.
1075 * libbfd-in.h (struct areltdata): New field for thin archives.
1076 * opncls.c (bfd_close): Delete BFDs for nested archives.
1077
1078 2008-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
1079
1080 * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around
1081 _bfd_final_link_relocate that also handles R_pcrel24 relocs.
1082 (bfinfdpic_relocate_section, bfin_relocate_section): Use it.
1083
1084 2008-03-25 Nathan Sidwell <nathan@codesourcery.com>
1085
1086 * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs
1087 in vxworks tls_vars sections.
1088 (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise.
1089 * elf32-i386.c (allocate_dynrelocs,
1090 elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise.
1091 * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections,
1092 ppc_elf_relocate_section): Likewise.
1093 * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections,
1094 sh_elf_relocate_section): Likewise.
1095 * elfxx-sparc.c (allocate_dynrelocs,
1096 _bfd_sparc_elf_size_dynamic_sections,
1097 _bfd_sparc_elf_relocate_section): Likewise.
1098
1099 2008-03-21 Adam Nemet <anemet@caviumnetworks.com>
1100
1101 * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to
1102 print the values from the dynamic section.
1103
1104 2008-03-20 Richard Sandiford <rsandifo@nildram.co.uk>
1105
1106 * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro.
1107 (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000.
1108
1109 2008-03-20 Alan Modra <amodra@bigpond.net.au>
1110
1111 * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter.
1112 (spu_elf_find_overlays, spu_elf_size_stubs): Likewise
1113 (process_stubs, discover_functions, build_call_tree): Likewise.
1114 (spu_elf_stack_analysis): Likewise.
1115 (spu_elf_check_vma): Likewise. Move.
1116 (struct call_info): Make "is_tail" a bitfield.
1117 (insert_callee): Clear fun->start and set fun->is_func if we find
1118 a non-tail call.
1119 * elf32-spu.h (spu_elf_create_sections): Update prototype.
1120 (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto.
1121
1122 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1123
1124 * aclocal.m4: Regenerate.
1125 * configure: Likewise.
1126 * Makefile.in: Likewise.
1127
1128 2008-03-16 H.J. Lu <hongjiu.lu@intel.com>
1129
1130 PR ld/5789
1131 PR ld/5943
1132 * elf32-i386.c (elf_i386_relocate_section): Issue an error
1133 for R_386_GOTOFF relocaton against undefined hidden/internal
1134 symbols when building a shared object.
1135
1136 * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an
1137 error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32
1138 relocaton against undefined hidden/internal symbols when
1139 building a shared object.
1140 (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol
1141 is referenced locally, but isn't defined in a regular file.
1142
1143 2008-03-15 H.J. Lu <hongjiu.lu@intel.com>
1144
1145 * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO,
1146 HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED,
1147 BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY,
1148 HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ...
1149 * bfd.c: Here.
1150
1151 * bfd.c (bfd): Change cacheable, target_defaulted, opened_once,
1152 mtime_set, no_export, output_has_begun and has_armap to bit
1153 field.
1154
1155 * bfd-in2.h: Regenerated.
1156
1157 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1158
1159 * cache.c (close_one): Remove mtime hack.
1160
1161 2008-03-14 H.J. Lu <hongjiu.lu@intel.com>
1162
1163 PR ld/5913
1164 * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT.
1165 (elfNN_ia64_dtprel_base): Likewise.
1166 (elfNN_ia64_relocate_section): Go to missing_tls_sec if
1167 tls_sec is NULL before calling elfNN_ia64_tprel_base or
1168 elfNN_ia64_dtprel_base. Report unsupported TLS relocations.
1169
1170 2008-03-14 Alan Modra <amodra@bigpond.net.au>
1171
1172 * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move
1173 common code to..
1174 (maybe_needs_stub): ..here, a new function that also omits stubs
1175 for .eh_frame, and..
1176 (needs_ovl_stub): ..here. Create stubs for labels in code section
1177 referenced by switch jump table.
1178 (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return.
1179 (enum _insn_type): Delete.
1180 (enum _stub_type): New.
1181 (count_stub, build_stub): Adjust.
1182 (allocate_spuear_stubs, build_spuear_stubs): Adjust.
1183
1184 2008-03-13 Alan Modra <amodra@bigpond.net.au>
1185
1186 * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast.
1187 (_bfd_elf_assign_file_position_for_section): Simplify align.
1188 (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough
1189 for sh_addralign.
1190 (elf_fake_sections, swap_out_syms): Likewise.
1191 * elflink.c (bfd_elf_final_link): Likewise.
1192
1193 2008-03-13 Alan Modra <amodra@bigpond.net.au>
1194
1195 * Makefile.am: Run "make dep-am".
1196 * Makefile.in: Regenerate.
1197 * po/SRC-POTFILES.in: Regenerate.
1198
1199 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com>
1200
1201 From Jie Zhang <jie.zhang@analog.com>
1202 * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4,
1203 gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo,
1204 gotoff, call and sym not bitfields.
1205 (bfinfdpic_gc_sweep_hook): New function; update the relocation
1206 information for the relocations of the section being removed.
1207 (bfinfdpic_check_relocs): Accumulate the number of relocations
1208 which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4,
1209 fdgoffhilo, gotoff, call and sym fields.
1210 (elf_backend_gc_sweep_hook): Redefine for FD-PIC.
1211
1212 2008-03-12 Alan Modra <amodra@bigpond.net.au>
1213
1214 PR 5900
1215 * elf-bfd.h: Include elf/internal.h after elf/external.h.
1216 * elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
1217 (elf_swap_symbol_out): Adjust SHN_XINDEX test.
1218 (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
1219 seen in external structs.
1220 (valid_section_index_p): Delete.
1221 (elf_object_p): Don't increment section numbers over reserved range.
1222 Simplify test for valid sh_link, sh_info and e_shstrndx fields.
1223 (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
1224 seen in external structs. Don't increment section numbers over
1225 reserved range.
1226 * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
1227 (bfd_section_from_shdr): Likewise.
1228 (group_signature): Range check before accessing elf_elfsections.
1229 (_bfd_elf_setup_sections): Likewise.
1230 (bfd_section_from_shdr): Likewise.
1231 (bfd_section_from_shdr): Don't increment section number over
1232 reserved sections.
1233 (assign_file_positions_for_non_load_sections): Likewise.
1234 (assign_file_positions_except_relocs): Likewise.
1235 (_bfd_elf_write_object_contents): Likewise.
1236 (assign_section_numbers): Likewise. Adjust for changed SHN_*.
1237 (prep_headers): Delete unused variable.
1238 * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
1239 for changed SHN_* values.
1240 (check_dynsym, elf_link_input_bfd): Likewise.
1241 (bfd_elf_final_link): Likewise. Don't skip over reserved section
1242 range.
1243 (elf_fixup_link_order): Check that sh_link field is valid.
1244 * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
1245 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
1246 accesssing elf_elfsections.
1247 * elf32-avr.c (elf32_avr_size_stubs): Likewise.
1248 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
1249 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
1250 * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
1251 SHN_* defines. Test for SHN_BAD return from
1252 _bfd_elf_section_from_bfd_section
1253
1254 2008-03-12 Alan Modra <amodra@bigpond.net.au>
1255
1256 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype.
1257 * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int,
1258 SHN_BAD on error.
1259 (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from
1260 _bfd_elf_section_from_bfd_section, not -1.
1261 (swap_out_syms): Likewise.
1262 * elflink.c (elf_link_add_object_symbols): Likewise.
1263 (bfd_elf_get_bfd_needed_list): Likewise.
1264 (bfd_elf_match_symbols_in_sections): Likewise.
1265 (elf_link_add_object_symbols): Don't bother testing for symbols
1266 using normal sections before calling bfd_section_from_elf_index.
1267 (elf_link_input_bfd, bfd_elf_final_link): Likewise.
1268 (bfd_elf_reloc_symbol_deleted_p): Likewise.
1269 * elfcode.h (elf_slurp_symbol_table): Likewise.
1270 * elf32-spu.c (get_sym_h): Likewise.
1271 * elf32-xtensa.c (get_elf_r_symndx_section): Likewise.
1272 * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto.
1273 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
1274
1275 2008-03-11 Alan Modra <amodra@bigpond.net.au>
1276
1277 * elf32-spu.c (spu_elf_relocate_section): Test identical conditions
1278 to those in process_stubs for overlay symbols.
1279
1280 2008-03-09 Paul Brook <paul@codesourcery.com>
1281
1282 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new
1283 Tag_VFP_arch values.
1284
1285 2008-03-08 Paul Brook <paul@codesourcery.com>
1286
1287 * elf32-arm.c (insert_thumb_branch): Rewrite.
1288 (elf32_thumb_to_arm_stub): Use new insert_thumb_branch.
1289
1290 2008-03-07 Paul Brook <paul@codesourcery.com>
1291
1292 * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
1293 MOVT relocations.
1294 (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
1295 extension.
1296 (elf32_arm_relocate_section): Handle MOVW and MOVT
1297 relocations. Improve safety check for other weird relocations.
1298 (elf32_arm_check_relocs): Only set h->needs_plt for branch/call
1299 relocations.
1300
1301 2008-03-03 Bob Wilson <bob.wilson@acm.org>
1302
1303 * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
1304 only compute its value once.
1305
1306 2008-03-03 Alan Modra <amodra@bigpond.net.au>
1307
1308 * elf32-spu.c (struct got_entry): Add "addend" field.
1309 (count_stub, build_stub): Use a new stub if relocation addend
1310 differs from existing stubs for this symbol.
1311 (process_stubs): Deal with addends.
1312 (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise.
1313
1314 2008-03-02 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 PR ld/5789
1317 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true
1318 for hidden and local symbols.
1319
1320 2008-03-03 Alan Modra <amodra@bigpond.net.au>
1321
1322 * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
1323 undefined symbols with internal or hidden visibility.
1324 (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL
1325 rather than SYMBOL_REFERENCES_LOCAL on branches. Don't
1326 return immediately on dynamic reloc error.
1327
1328 2008-03-01 Alan Modra <amodra@bigpond.net.au>
1329
1330 * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
1331 if emitrelocations.
1332 (get_relocs): New function, split out from..
1333 (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if
1334 emitrelocations. Remove indx temp.
1335 (ppc_size_one_stub): Count new stub relocs.
1336 (ppc64_elf_size_stubs): Count new glink reloc.
1337 (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
1338 (ppc64_elf_finish_dynamic_sections): Output glink relocs.
1339 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
1340 glink code.
1341
1342 2008-02-28 Alan Modra <amodra@bigpond.net.au>
1343
1344 * elf32-spu.c (mark_functions_via_relocs): Don't assume that
1345 the "->start" pointer reaches to function origin, so that we
1346 can handle functions split over more than two sections.
1347 (build_call_tree): Likewise.
1348 (pasted_function): Don't attempt to set fun->start back to the
1349 function origin, just go back one section.
1350
1351 2008-02-27 Catherine Moore <clm@codesourcery.com>
1352
1353 * elf.c ( _bfd_elf_print_private_bfd_data): Call
1354 elf_backend_get_target_dtag if defined.
1355 * elf32-mips.c (elf_backend_get_target_dtag): Define.
1356 * elf64-mips.c: Likewise.
1357 * elfn32-mips.c: Likewise.
1358 * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
1359 * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
1360 * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
1361 * elfxx-target.h (elf_backend_get_target_dtag): Add default.
1362 (elf_backend_data): Add elf_backend_get_target_dtag.
1363
1364 2008-02-26 Alan Modra <amodra@bigpond.net.au>
1365
1366 * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
1367 for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms,
1368 and assume branch relocs are not dynamic when non-shared.
1369 (readonly_dynrelocs): New function, split out from..
1370 (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
1371 (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
1372 clear non_got_ref..
1373 (allocate_dynrelocs): ..and don't set u.def for undefined weak.
1374 Do allow dynamic relocs on undefined symbols.
1375 (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
1376 (ppc_elf_relocate_section): Mirror dynamic reloc changes in
1377 check_relocs.
1378 (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
1379 plt symbols needing pointer_equality_needed.
1380
1381 2008-02-23 Alan Modra <amodra@bigpond.net.au>
1382
1383 * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
1384
1385 2008-02-23 Alan Modra <amodra@bigpond.net.au>
1386
1387 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
1388 pointer_equality_needed.
1389 (ppc_elf_check_relocs): Split out non-branch relocs from others
1390 that might emit dynamic relocs. Set pointer_equality_needed
1391 for their symbols. Don't set non_got_ref on branch reloc symbols.
1392 (ppc_elf_hash_symbol): New function.
1393 (elf_backend_hash_symbol): Define.
1394 (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
1395 Error if pointer_equality_needed on weak plt symbol.
1396
1397 2008-02-22 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR ld/5788
1400 * elflink.c (elf_create_symbuf): Correct buffer size and
1401 position.
1402
1403 2008-02-22 Nick Clifton <nickc@redhat.com>
1404
1405 PR 868
1406 * dwarf2.c: Revert previous patch. All of the allocate memory is
1407 on an obstack which will be freed at some other time.
1408
1409 2008-02-20 Nick Clifton <nickc@redhat.com>
1410
1411 PR 868
1412 * libbfd.c (bfd_realloc_or_free): New function. Performs like
1413 bfd_realloc, but if the (re)allocation fails, the pointer is
1414 freed.
1415 * libbfd-in.h: Prototype.
1416 * libbfd.h: Regenerate.
1417 * bfdio.c (bfd_bwrite): Use the new function.
1418 (bfd_seek): Likewise.
1419 * bfdwin.c:(bfd_get_file_window): Likewise.
1420 * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
1421 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
1422 * elf32-xtensa.c (vsprintf_msg): Likewise.
1423 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
1424 * stabs.c (_bfd_link_seciton_stabs): Likewise.
1425 * vms-misc.c (_bfd_vms_get_record): Likewise.
1426 * vms-tir.c (check_section): Likewise.
1427 * vms.c (vms_new_section_hook): Likewise.
1428 * elf32-arm.c (elf32_arm_section_map_add): Check that the
1429 allocation of sec_data->map succeeded before using it.
1430 * elflink.c (elf_link_output_sym): Do not overwrite finfo->
1431 symshndxbuf until it is known that the reallocation succeeded.
1432
1433 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br>
1434 Nick Clifton <nickc@redhat.com>
1435
1436 PR 868
1437 * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
1438 out of memory.
1439 (decode_line_info): Free the line_info_table before returning a
1440 failure result.
1441 (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
1442 Free the line table. Free the function table. Free the variable
1443 table.
1444
1445 2008-02-17 Mark Kettenis <kettenis@gnu.org>
1446
1447 * elf.c (swap_out_syms): Avoid preprocessing directive within
1448 macro arg.
1449
1450 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 * elf.c (assign_file_positions_for_load_sections): Set the type of
1453 PT_NOTE sections to SHT_NOTE.
1454
1455 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1456
1457 * simple.c (bfd_simple_get_relocated_section_contents): Set
1458 link_info.output_bfd.
1459
1460 2008-02-16 Nathan Sidwell <nathan@codesourcery.com>
1461
1462 * dwarf2.c (find_line): Don't trust debug information after an
1463 unparseable compilation unit.
1464
1465 2008-02-15 Alan Modra <amodra@bigpond.net.au>
1466
1467 PR 5765
1468 * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags.
1469 * bfd-in2.h: Regenerate.
1470
1471 2008-02-15 Alan Modra <amodra@bigpond.net.au>
1472
1473 * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
1474 * elf.c (bfd_elf_allocate_object): Don't check for already allocated
1475 tdata.
1476 * elf32-hppa.c (elf32_hppa_mkobject): New function.
1477 (bfd_elf32_mkobject): Define.
1478 * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with..
1479 (is_ppc_elf): ..this new macro.
1480 * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with..
1481 (is_ppc64_elf): ..this new macro.
1482
1483 2008-02-15 Alan Modra <amodra@bigpond.net.au>
1484
1485 * elflink.c: Replace all accesses to hash->creator field with
1486 output_bfd->xvec.
1487 * cofflink.c: Likewise.
1488 * coff-h8300.c: Likewise.
1489 * ecoff.c: Likewise.
1490 * elf32-m68hc1x.c: Likewise.
1491 * elf32-ppc.c: Likewise.
1492 * elf64-alpha.c: Likewise.
1493 * elf64-ppc.c: Likewise.
1494 * elf64-sparc.c: Likewise.
1495 * elfxx-mips.c: Likewise.
1496 * i386linux.c: Likewise.
1497 * m68klinux.c: Likewise.
1498 * sparclinux.c: Likewise.
1499 * sunos.c: Likewise.
1500 * xcofflink.c: Likewise.
1501 * linker.c: Likewise.
1502 (_bfd_link_hash_table_init): Don't store creator.
1503
1504 2008-02-14 Peter Jones <pjones@redhat.com>
1505
1506 * efi-rtdrv-ia32.c: New file.
1507 * efi-bsdrv-ia32.c: New file.
1508 * efi-rtdrv-ia64.c: New file.
1509 * efi-bsdrv-ia64.c: New file.
1510 * efi-rtdrv-x86_64.c: New file.
1511 * efi-bsdrv-x86_64.c: New file.
1512 * peicode.h (pe_bfd_object_p): Add support for boot service and
1513 runtime service drivers.
1514 * libpei.h: Add macros for EFI formats, and rename the efi application
1515 format macros to disambiguate.
1516 * targets.c: Add bfd_target _vec externs.
1517 (_bfd_tar): Add EFI _vec entries.
1518 * config.bfd: Add EFI vectors into the selection routines.
1519 * configure.in: add EFI _vec entries.
1520 * configure: Regenerate.
1521 * Makefile.am: Add EFI files.
1522 * Makefile.in: Regenerate.
1523
1524 2008-02-14 Nathan Sidwell <nathan@codesourcery.com>
1525
1526 * dwarf1.c (struct dwarf1_debug): Add syms member.
1527 (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
1528 (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
1529 section contents, check for out of memory.
1530
1531 * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
1532 (parse_die): Change data pointers to bfd_byte.
1533 (parse_line_table, parse_functions_in_unit): Likewise.
1534
1535 2008-02-14 Alan Modra <amodra@bigpond.net.au>
1536
1537 * elflink.c (compute_bucket_count): Warning fixes.
1538
1539 2008-02-12 DJ Delorie <dj@redhat.com>
1540
1541 * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
1542 relocation pointing to local symbol in merged section.
1543
1544 * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
1545 (iq2000_elf_relocate_section): Call it.
1546
1547 2008-02-12 Nick Clifton <nickc@redhat.com>
1548
1549 PR ld/5692
1550 * elf-bfd.h (enum elf_object_id): New enum, used to identify
1551 target specific extensions to the elf_obj_tdata structure.
1552 (struct elf_obj_tdata): New field 'object_id'.
1553 (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
1554 macros for accessing fields in the elf_obj_tdata structure.
1555 (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
1556 (bfd_elf_allocate_object): New function.
1557 * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
1558 and implement by calling bfd_elf_allocate_object.
1559 (bfd_elf_allocate_object): New function: Allocates an
1560 elf_obj_tdata structure, possibly with a target specific
1561 extension.
1562 * elfxx-target.h (bfd_elfNN_mkobject): Use
1563 bfd_elf_make_generic_object as the default value.
1564 * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
1565 for consistency with other, similar structures.
1566 (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM
1567 ELF bfd.
1568 (elf32_arm_mkobject): Call bfd_elf_allocate_object.
1569 (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
1570 the bfd being processed.
1571 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
1572 (bfd_elf32_arm_set_target_relocs): Likewise.
1573 (bfd_elf32_arm_final_link_relocate): Likewise.
1574 (bfd_elf32_arm_copy_private_bfd_data): Likewise.
1575 (bfd_elf32_arm_merge_eabi_attributes): Likewise.
1576 (bfd_elf32_arm_merge_private_bfd_data): Likewise.
1577 (bfd_elf32_arm_check_relocs): Likewise.
1578 (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
1579 (bfd_elf32_arm_size_dynamic_sections): Likewise.
1580 (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
1581 (bfd_elf32_arm_init_maps): Likewise.
1582 (bfd_elf32_arm_final_link_relocate): Likewise.
1583 (bfd_elf32_arm_relocate_section): Likewise.
1584 (bfd_elf32_arm_gc_sweep_hook): Likewise.
1585 (bfd_elf32_arm_check_relocs): Likewise.
1586 (bfd_elf32_arm_size_dynamic_sections): Likewise.
1587 * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
1588 (is_i386_elf): New macro. Checks a BFD to make sure that is an x86
1589 ELF bfd.
1590 (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd
1591 being processed.
1592 (elf_i386_size_dynamic_sections): Likewise.
1593 (elf_i386_relocate_section): Likewise.
1594 (elf_i386_check_relocs): Use elf_symtab_hdr.
1595 (elf_i386_gc_sweep_hook): Likewise.
1596 (elf_i386_size_dynamic_sections): Likewise.
1597 (elf_i386_relocate_section): Likewise.
1598 * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
1599 (elf_create_pointer_linker_section): Use is_ppc_elf_target to
1600 verify that the bfd before accessing target specific fields.
1601 (ppc_elf_check_relocs): Likewise.
1602 (elf_finish_pointer_linker_section): Likewise.
1603 (elf_create_pointer_linker_section): Use elf_symtab_hdr.
1604 (ppc_elf_check_relocs): Likewise.
1605 (ppc_elf_gc_sweep_hook): Likewise.
1606 (ppc_elf_tls_optimize): Likewise.
1607 (ppc_elf_size_dynamic_sections): Likewise.
1608 (ppc_elf_relax_section): Likewise.
1609 (ppc_elf_relocate_section): Likewise.
1610 * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
1611 reminding programmers to keep this structure in sync with the one
1612 defined in elf64-s390.c.
1613 (elf_s390_mkobject): Call bfd_elf_allocate_object.
1614 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
1615 ELF bfd.
1616 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
1617 being processed.
1618 (elf_s390_size_dynamic_sections): Likewise.
1619 (elf_s390_relocate_section): Likewise.
1620 (elf_s390_check_relocs): Use elf_symtab_hdr.
1621 (elf_s390_gc_sweep_hook): Likewise.
1622 (elf_s390_size_dynamic_sections): Likewise.
1623 (elf_s390_relocate_section): Likewise.
1624 * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
1625 (is_sh_elf): New macro. Checks a BFD to make sure that is an SH
1626 ELF bfd.
1627 (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
1628 bfd being processed.
1629 (sh_elf_relocate_section): Likewise.
1630 (sh_elf_check_relocs): Likewise.
1631 (sh_elf_copy_private_data): Likewise.
1632 (sh_elf_relax_section): Use elf_symtab_hdr.
1633 (sh_elf_size_dynamic_sections): Likewise.
1634 (sh_elf_relocate_section): Likewise.
1635 (sh_elf_get_relocated_section_contents): Likewise.
1636 (sh_elf_gc_sweep_hook): Likewise.
1637 (sh_elf_check_relocs): Likewise.
1638 * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
1639 (is_alpha_elf): New macro. Checks a BFD to make sure that is an
1640 Alpha ELF bfd.
1641 (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
1642 the bfd being processed.
1643 (elf64_alpha_create_dynamic_section): Likewise.
1644 (elf64_alpha_check_relocs): Likewise.
1645 (elf64_alpha_size_got_sections): Likewise.
1646 (elf64_alpha_relax_section): Likewise.
1647 (elf64_alpha_relocate_section): Likewise.
1648 (elf64_alpha_final_link): Likewise.
1649 (elf64_alpha_check_relocs): Use elf_symtab_hdr.
1650 (elf64_alpha_relax_section): Likewise.
1651 (elf64_alpha_relocate_section_r): Likewise.
1652 (elf64_alpha_relocate_section): Likewise.
1653 * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
1654 (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
1655 being processed.
1656 (opd_entry_value): Likewise.
1657 (allocate_dynrelocs): Likewise.
1658 (ppc64_elf_relocate_section): Likewise.
1659 (ppc64_elf_check_relocs): Use elf_symtab_hdr.
1660 (opd_entry_value): Likewise.
1661 (ppc64_elf_gc_sweep_hook): Likewise.
1662 (get_sym_h): Likewise.
1663 (ppc64_elf_edit_opd): Likewise.
1664 (ppc64_elf_tls_optimize): Likewise.
1665 (ppc64_elf_edit_toc): Likewise.
1666 (ppc64_elf_size_dynamic_sections): Likewise.
1667 (toc_adjusting_stub_needed): Likewise.
1668 (ppc64_elf_size_stubs): Likewise.
1669 (ppc64_elf_relocate_section): Likewise.
1670 * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
1671 reminding programmers to keep this structure in sync with the one
1672 defined in elf32-s390.c.
1673 (elf_s390_mkobject): Call bfd_elf_allocate_object.
1674 (is_s390_elf): New macro. Checks a BFD to make sure that is an s390
1675 ELF bfd.
1676 (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd
1677 being processed.
1678 (elf_s390_size_dynamic_sections): Likewise.
1679 (elf_s390_relocate_section): Likewise.
1680 (elf_s390_check_relocs): Use elf_symtab_hdr.
1681 (elf_s390_gc_sweep_hook): Likewise.
1682 (elf_s390_size_dynamic_sections): Likewise.
1683 (elf_s390_relocate_section): Likewise.
1684 * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
1685 (is_x86_64_elf): New macro. Checks a BFD to make sure that is an
1686 x86_64 ELF bfd.
1687 (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
1688 being processed.
1689 (elf64_x86_64_size_dynamic_sections): Likewise.
1690 (elf64_x86_64_relocate_section): Likewise.
1691 (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
1692 (elf64_x86_64_gc_sweep_hook): Likewise.
1693 (elf64_x86_64_size_dynamic_sections): Likewise.
1694 (elf64_x86_64_relocate_section): Likewise.
1695 * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
1696 (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc
1697 ELF bfd.
1698 (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
1699 bfd being processed.
1700 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1701 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1702 (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
1703 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1704 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1705 (_bfd_sparc_elf_relocate_section): Likewise.
1706
1707 2008-02-12 Alan Modra <amodra@bigpond.net.au>
1708
1709 PR 5303, 5755
1710 * arange-set.c: Delete.
1711 * arange-set.h: Delete.
1712 * dwarf2.c: Revert 2007-09-21 changes.
1713 * Makefile.am: Likewise.
1714 * Makefile.in: Regenerate.
1715 * po/SRC-POTFILES.in: Regenerate.
1716
1717 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com>
1718
1719 * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
1720 if necessary.
1721 (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
1722 mismatches are detected.
1723
1724 * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
1725 emit invalid relocs or rofixup entries for deleted .eh_frame entries.
1726
1727 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com>
1728
1729 * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
1730 was reached.
1731 * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
1732
1733 2008-02-07 Alan Modra <amodra@bigpond.net.au>
1734
1735 * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
1736 of _ovly_buf_table size.
1737 (spu_elf_build_stubs): Use low bit of .size as "present" bit.
1738 Adjust initialisations relating to _ovly_buf_table.
1739
1740 2008-02-04 Bob Wilson <bob.wilson@acm.org>
1741
1742 * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
1743 relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND
1744 relocations against dynamic symbols.
1745 (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
1746 .xt.lit section.
1747
1748 2008-02-04 Kai Tietz <kai.tietz@onevision.com>
1749 H.J. Lu <hongjiu.lu@intel.com>
1750
1751 PR 5715
1752 * warning.m4: Enable -Wno-format by default when using gcc on
1753 mingw.
1754 * configure: Regenerated.
1755
1756 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
1757
1758 * archures.c: Update copyright.
1759 (bfd_mach_mips_octeon): New macro.
1760 * bfd-in2.h: Regenerate.
1761 * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
1762 (mips_set_isa_flags): Likewise.
1763 (mips_mach_extensions): Add Octeon.
1764 * cpu-mips.c: Update copyright.
1765 (I_mipsocteon): New enum constant.
1766 (arch_info_struct): Add Octeon.
1767
1768 2008-02-04 Alan Modra <amodra@bigpond.net.au>
1769
1770 * elf32-spu.c (spu_elf_relocate_section): Correct return type.
1771 Return error status on unexpected relocation errors.
1772
1773 2008-02-04 Alan Modra <amodra@bigpond.net.au>
1774
1775 PR ld/5692
1776 * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort
1777 on non-ELF input.
1778 * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
1779 processing on non-ELF input.
1780
1781 2008-01-31 Marc Gauthier <marc@tensilica.com>
1782
1783 * config.bfd (xtensa*-*-*): Recognize processor variants.
1784
1785 2008-01-31 Nick Clifton <nickc@redhat.com>
1786
1787 PR ld/5692
1788 * elf.c (bfd_elf_get_elf_syms): Check the return value of
1789 get_elf_backend_data.
1790
1791 2008-01-28 Fabian Groffen <grobian@gentoo.org>
1792
1793 * config.bfd (x86_64-*-solaris2): Add support for this target.
1794
1795 2008-01-28 Alan Modra <amodra@bigpond.net.au>
1796
1797 Rewrite SPU overlay handling code. Put overlay calls stubs in the
1798 overlays where possible. Use a faster call stub, or optionally at
1799 compile time, a more compact stub. Double size of _ovly_buf_table
1800 so that low bit of _ovly_table.buf can be used as a "present" bit.
1801 Reserve an extra _ovly_table entry for index zero.
1802 * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
1803 add new ones.
1804 (struct got_entry): New.
1805 (struct spu_stub_hash_entry): Delete.
1806 (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
1807 (spu_elf_link_hash_table_create): Adjust for struct changes.
1808 (spu_stub_name): Delete.
1809 (spu_elf_find_overlays): Don't track sections from overlay regions.
1810 Instead set ovl_buf number in spu elf section data. Error if
1811 overlays in one region don't start at the same address. Adjust
1812 for struct _spu_elf_section_data changes.
1813 (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
1814 (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
1815 (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
1816 (enum _insn_type): New.
1817 (count_stub, build_stub): New functions.
1818 (allocate_spuear_stubs): Use count_stub.
1819 (build_spuear_stubs): Use build_stub.
1820 (populate_stubs, sort_stubs): Delete.
1821 (process_stubs): New function.
1822 (write_one_stub): Delete.
1823 (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
1824 (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
1825 (maybe_insert_function, check_function_ranges): Likewise.
1826 (find_function, pasted_function, build_call_tree): Likewise.
1827 (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
1828 (spu_elf_modify_program_headers): Likewise.
1829 (interesting_section): Detect stub sections differently. Delete
1830 htab param, adjust all callers.
1831 (spu_elf_relocate_section): Rewrite stub handling.
1832 (spu_elf_output_symbol_hook): Likewise.
1833 (bfd_elf32_bfd_link_hash_table_free): Delete.
1834 * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
1835 output-only fields into a union. Add ovl_buf.
1836 (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
1837
1838 2008-01-25 DJ Delorie <dj@redhat.com>
1839
1840 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
1841
1842 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
1843
1844 * bfd-in.h: Add mingw I64 support.
1845 * bfd-in2.h: Regenerated.
1846 * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
1847
1848 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1849
1850 PR 4453
1851 * format.c (bfd_check_format_matches): Don't accept archives as
1852 fully matching unless they have a map.
1853
1854 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1855
1856 * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
1857
1858 2008-01-21 Alan Modra <amodra@bigpond.net.au>
1859
1860 * ecoff.c (_bfd_ecoff_archive_p): Delete.
1861 * libecoff.h (_bfd_ecoff_archive_p): Delete.
1862 * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
1863 * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
1864 (ecoff_biglittle_vec): Likewise.
1865
1866 2008-01-19 Alan Modra <amodra@bigpond.net.au>
1867
1868 PR 5646
1869 * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
1870 non-NULL before dereferencing.
1871
1872 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1873
1874 PR 5604
1875 * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param
1876 names from others.
1877 (_bfd_elf_gc_keep): Declare.
1878 * elfxx-target.h (elf_backend_gc_keep): Define.
1879 (elfNN_bed): Init new field.
1880 * elflink.c (_bfd_elf_gc_keep): New function.
1881 (bfd_elf_gc_sections): Call gc_keep.
1882 * elf64-ppc.c (elf_backend_gc_keep): Define.
1883 (struct _ppc64_elf_section_data): Move .opd related fields to
1884 a struct so they don't occupy the same storage. Adjust accesses
1885 throughout file.
1886 (ppc64_elf_gc_keep): New function, split out from..
1887 (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark
1888 to mark .opd section, just set gc_mark.
1889 (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust
1890 unless we are changing .opd. Test non-NULL opd->adjust at all
1891 accesses throughout file.
1892 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
1893
1894 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1895
1896 * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
1897 * bfd-in2.h: Regenerate.
1898
1899 2008-01-11 Tristan Gingold <gingold@adacore.com>
1900 Eric Botcazou <ebotcazou@adacore.com>
1901
1902 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
1903 relocatable.
1904 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
1905 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
1906 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
1907 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
1908 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
1909 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
1910 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
1911 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
1912 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
1913 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
1914 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
1915 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
1916 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
1917 * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
1918 * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1919 * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
1920 or executable output with relocations.
1921
1922 2008-01-09 Nick Clifton <nickc@redhat.com>
1923
1924 PR gas/5552
1925 * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
1926 to FALSE for all relocs.
1927
1928 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk>
1929
1930 PR ld/5526
1931 * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
1932 fields. Rename u.cie.u.merged to u.cie.u.merged_with.
1933 (eh_frame_sec_info): Add a cies field.
1934 (eh_frame_hdr_info): Add a merge_cies field.
1935 * elf-eh-frame.c (cie): Add a reloc_index member to the personality
1936 union.
1937 (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
1938 of hdr_info->cies.
1939 (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of
1940 cie structures in all cases and use it instead of extended_cies.
1941 If merging, store the cie array in sec_info->cies and point each
1942 CIE's eh_fde_cie at the associated element. Do not try to
1943 calculate the value of the personality routine here; record the
1944 offset of the relocation instead. Do not merge CIEs here.
1945 (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
1946 (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
1947 (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
1948 (find_merged_cie): New function.
1949 (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies.
1950
1951 2008-01-07 Nick Clifton <nickc@redhat.com>
1952
1953 PR binutils/5535
1954 * vms.c (vms_close_and_cleanup): Check for the presence of a
1955 vms_private_data_struct before examining any of its fields.
1956
1957 2008-01-07 H.J. Lu <hongjiu.lu@intel.com>
1958
1959 PR ld/5522
1960 * elflink.c (elf_link_input_bfd): Don't write out a section if
1961 its output section is marked with SEC_NEVER_LOAD.
1962
1963 For older changes see ChangeLog-2007
1964 \f
1965 Local Variables:
1966 mode: change-log
1967 left-margin: 8
1968 fill-column: 74
1969 version-control: never
1970 End:
This page took 0.078153 seconds and 4 git commands to generate.