* configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
6cee0a6f
L
12008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/6748
4 * elf32-arm.c (elf32_arm_link_hash_table_create): Initialize
5 new fields added for ARM long call support.
6
2b5c217d
NC
72008-07-18 Danny Backx <dannybackx@users.sourceforge.net>
8
9 * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to
10 print compressed pdata structure as described on MSDN. This only
11 applies to a limited set of architectures (ARM, SH4).
12 (slurp_symtab, my_symbol_for_address): Define static helper
13 functions for pe_print_compressed_pdata.
14 * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field.
15 (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define.
16 * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on
17 bfd_coff_backend_data, call the function if non-null.
18 * pei-mcore.c: Add target dependent initialisation for
19 bfd_coff_backend_data.
20 * coff-sh.c: Likewise.
21 * coff64-rs6000.c: Likewise.
22 * coff-rs6000.c: Likewise.
23 * libcoff-in.h: Likewise.
24 * cf-i386lynx.c: Likewise.
25 * coff-alpha.c: Likewise.
26 * coff-apollo.c: Likewise.
27 * coff-arm.c: Likewise.
28 * coff-aux.c: Likewise.
29 * coff-h8300.c: Likewise.
30 * coff-h8500.c: Likewise.
31 * coff-i386.c: Likewise.
32 * coff-i860.c: Likewise.
33 * coff-i960.c: Likewise.
34 * coff-ia64.c: Likewise.
35 * coff-m68k.c: Likewise.
36 * coff-m88k.c: Likewise.
37 * coff-maxq.c: Likewise.
38 * coff-mips.c: Likewise.
39 * coff-or32.c: Likewise.
40 * coff-sparc.c: Likewise.
41 * coff-tic30.c: Likewise.
42 * coff-tic4x.c: Likewise.
43 * coff-tic54x.c: Likewise.
44 * coff-tic80.c: Likewise.
45 * coff-w65.c: Likewise.
46 * coff-we32k.c: Likewise.
47 * coff-x86_64.c: Likewise.
48 * coff-z80.c: Likewise.
49 * coff-z8k.c: Likewise.
50 * pe-mcore.c: Likewise.
51 * pe-mips.c: Likewise.
52 * pe-ppc.c: Likewise.
53 * peXXigen.c: Likewise.
54 * pei-ppc.c: Likewise.
55 * libcoff.h: Regenerate.
56
c96a8570
BS
572008-07-16 Bernd Schmidt <bernd.schmidt@analog.com>
58
59 * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section,
60 bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook,
61 ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE,
62 struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code
63 separate from non-FD-PIC.
64
605d18d4
DD
652008-07-14 DJ Delorie <dj@redhat.com>
66
67 * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow
68 checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16
69 relocs.
70 (mn10300_elf_relax_section): Correct jump offset check when target
71 is in a different section.
72
b0a0b978
JZ
732008-07-15 Jie Zhang <jie.zhang@analog.com>
74
75 * elf32-bfin.c (elf32_bfin_special_sections[]): New.
76 (elf_backend_special_sections): Define.
77
aaf30c25
CS
782008-07-13 Craig Silverstein <csilvers@google.com>
79
08b78292 80 PR binutils/6743
aaf30c25
CS
81 * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory.
82 (find_line): Use info_ptr_memory instead of sec_info_ptr.
83 (_bfd_dwarf2_cleanup_debug_info): Likewise.
84
1bac266e
JZ
852008-07-12 Jie Zhang <jie.zhang@analog.com>
86
87 Revert
88 2008-07-12 Jie Zhang <jie.zhang@analog.com>
89 * elf.c (_bfd_elf_map_sections_to_segments): Don't put
90 executable sections into the same segment with other
91 read only sections if --sep-code.
92 * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
93 (elf32_bfin_data_in_l1): New variable.
94 (elf32_bfin_final_write_processing): New.
95 (elf32_bfin_special_sections[]): New.
96 (elf_backend_final_write_processing): Define.
97 (elf_backend_special_sections): Define.
98
8c684578
JZ
992008-07-12 Jie Zhang <jie.zhang@analog.com>
100
101 * elf.c (_bfd_elf_map_sections_to_segments): Don't put
102 executable sections into the same segment with other
103 read only sections if --sep-code.
104 * elf32-bfin.c (elf32_bfin_code_in_l1): New variable.
105 (elf32_bfin_data_in_l1): New variable.
106 (elf32_bfin_final_write_processing): New.
107 (elf32_bfin_special_sections[]): New.
108 (elf_backend_final_write_processing): Define.
109 (elf_backend_special_sections): Define.
110
3076cd1f
AS
1112008-07-11 Andreas Schwab <schwab@suse.de>
112
113 * dwarf2.c (read_section): Take pointer to bfd_size_type instead
114 of unsigned long as last parameter.
115 (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size,
116 dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of
117 unsigned long.
118
0a61c8c2
RS
1192008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
120
121 * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0
122 for all relocation types. Allow any type of relocation to refer to
123 __gnu_local_gp.
124
30c09090
RS
1252008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
126
127 * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16.
128 (mips_elf_calculate_relocation): Likewise.
129 (_bfd_mips_elf_add_symbol_hook): Likewise.
130 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
131 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
132
355d10dc
AS
1332008-07-10 Andreas Schwab <schwab@suse.de>
134
135 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing
136 paren.
137
1b315056
CS
1382008-07-09 Craig Silverstein <csilvers@google.com>
139
140 * Makefile.am (BFD32_LIBS): Add compress.lo.
141 (BFD32_LIBS_CFILES): Add compress.c.
142 (BFD_H_FILES): Likewise.
143 * Makefile.in: Regenerate.
144 * bfd-in2.h: Regenerate.
145 * config.in: Add HAVE_ZLIB_H
146 * configure.in: Add test for libz and zlib.h
147 * configure: Regenerate.
148 * dwarf2.c (read_section): New function.
149 (read_indirect_string): Call new function read_section.
150 (read_abbrevs): Likewise.
151 (decode_line_info): Likewise.
152 (read_debug_ranges): Likewise.
153 (find_line): Call new function read_section when just one
154 .zdebug_info section is found, otherwise read and compress
155 multiple sections.
156 (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr.
157 * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix.
158 (special_sections_z): New struct.
159 (special_sections): Refer to special_sections_z.
160 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize
161 sections named .zdebug_*.
162 (_bfd_mips_elf_fake_sections): Likewise.
163 * compress.c: New file.
164 (bfd_uncompress_section_contents): New function.
165
329dcd78
NC
1662008-07-07 Christophe Lyon <christophe.lyon@st.com>
167
168 * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in
169 the presence of a PLT.
170
c29aae59
AM
1712008-07-07 Alan Modra <amodra@bigpond.net.au>
172
173 * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char.
174
7382d32a
AM
1752008-07-02 Alan Modra <amodra@bigpond.net.au>
176
177 * elf32-ppc.c (is_pic_glink_stub): New function.
178 (ppc_elf_get_synthetic_symtab): Don't generate symbols when
179 multiple shared/pie stubs per plt entry.
180
cb53bf42
RS
1812008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
182
183 * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by
184 bed->s->int_rels_per_ext_rel.
185
6ba2a415
RS
1862008-06-30 Richard Sandiford <rdsandiford@googlemail.com>
187
188 * syms.c (BSF_SYNTHETIC): New flag.
189 * elf.c (_bfd_elf_get_synthetic_symtab): Set it.
190 * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise.
191 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise.
192 * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour
193 for synthetic symbols.
194 * bfd-in2.h: Regenerate.
195
3dccd7b7
DJ
1962008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
197
198 * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue):
199 Expand comments.
200 (arm_map_one_stub): Use | 1 when setting the low bit.
201
f57718b4
AS
2022008-06-29 Andreas Schwab <schwab@suse.de>
203
204 * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing
205 addend on _GLOBAL_OFFSET_TABLE_.
206
7413f23f
DJ
2072008-06-24 Daniel Jacobowitz <dan@codesourcery.com>
208
209 * elf32-arm.c (STUB_ENTRY_NAME): Define.
210 (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n.
211 (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of
212 R_ARM_ABS32.
213 (struct elf32_arm_stub_hash_entry): Add output_name.
214 (arm_build_one_stub): Move offsets into the offset argument
215 of _bfd_final_link_relocate. Correct offset for
216 arm_thumb_arm_v4t_stub_long_branch.
217 (elf32_arm_size_stubs): Set stub_entry->output_name.
218 (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym.
219 Update all callers.
220 (elf32_arm_output_stub_sym): New.
221 (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym.
222
7c39fb20
AM
2232008-06-20 Alan Modra <amodra@bigpond.net.au>
224
225 * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for
226 non-branch insns.
227
f3c29e8a
AM
2282008-06-20 Alan Modra <amodra@bigpond.net.au>
229
230 * elf32-spu.c (build_stub): Allow wraparound on stub branches.
231 (allocate_spuear_stubs, build_spuear_stubs): Return value from
232 count_stub/build_stub.
233 (spu_elf_build_stubs): Correct location of stub reloc error message.
234
de73c611
SR
2352008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
236
237 * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD.
238
7a283e07
RW
2392008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
240
241 * configure: Regenerate.
242
99302af9
AM
2432008-06-17 Alan Modra <amodra@bigpond.net.au>
244
245 * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space.
246 (spu_elf_check_vma): Add extra_stack_space param, copy to htab.
247 (spu_elf_auto_overlay): Use it.
248 (RECURSE_UNMARK): Define as 0.
249 (unmark_overlay_section): Heed RECURSE_UNMARK.
250 * elf32-spu.h (spu_elf_check_vma): Update prototype.
251
ff7eeb89
DD
2522008-06-12 DJ Delorie <dj@redhat.com>
253
254 * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD.
255
c13bb2ea
PB
2562008-06-09 Paul Brook <paul@codesourcery.com>
257
258 bfd/
259 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared
260 libraries.
261
f4ac8484
DJ
2622008-06-09 Christophe Lyon <christophe.lyon@st.com>
263
264 * elf32-arm.c (arm_stub_is_thumb): Define.
265 (elf32_arm_final_link_relocate): Handle near mode switching stubs.
266
6a267715
AM
2672008-06-07 Alan Modra <amodra@bigpond.net.au>
268
269 * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp
270 to stack calculation.
271
23684067
PB
2722008-06-06 Paul Brook <paul@codesourcery.com>
273
274 bfd/
275 * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input.
276
97407faf
AM
2772008-06-06 Alan Modra <amodra@bigpond.net.au>
278
279 * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that
280 file names be unique. Specify archive:path in overlay script.
281
7cfbafbc
AM
2822008-06-05 Alan Modra <amodra@bigpond.net.au>
283
284 PR ld/6590
285 * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets.
286
0f0a5e58
AM
2872008-06-04 Alan Modra <amodra@bigpond.net.au>
288
289 * elf.c (ignore_section_sym): Don't test section sym value here.
290 (elf_map_symbols): Instead check zero value here as was done prior
291 to 2006-05-26 change.
292
696b7ad2
NC
2932008-06-04 Nick Clifton <nickc@redhat.com>
294
295 PR ld/6019
296 * elf32-avr.c (elf32_avr_relax_section): Handle the case where
297 there are no local symbols.
298
1f27ab8d
AM
2992008-06-04 Alan Modra <amodra@bigpond.net.au>
300
301 * elf32-spu.c (get_sym_h): Don't attempt to read global syms.
302 (process_stubs): Likewise.
303 (discover_functions): Don't used cached symbols.
304 (maybe_insert_function): Correct condition under which function
305 array is realloc'd.
306 (mark_functions_via_relocs): Delete unused variable.
307
adfef0bd
NC
3082008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com>
309 Nick Clifton <nickc@redhat.com>
310
311 PR ld/6511
312 * elf64-hppa.c (allocate_global_data_opd): Default to using the
313 dynamic symbol table for local function names in shared libraries.
314
11701589
JK
3152008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
316
317 * elf.c (assign_file_positions_for_load_sections): Adjust pre-section
318 gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses.
319
124b52c6
AM
3202008-05-28 Alan Modra <amodra@bigpond.net.au>
321
322 * elf32-spu.c (spu_elf_object_p): New function.
323 (elf_backend_object_p): Define.
324 (build_stub): Correct second word of 8 byte overlay stubs.
325 (spu_elf_relocate_section): Formatting.
326
bb864ac1
CES
3272008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
328
329 * elf.c (elfcore_write_register_note): New function.
330 * elf-bfd.h (elfcore_write_register_note): New prototype.
331
da5938a2
NC
3322008-05-22 Christophe Lyon <christophe.lyon@st.com>
333
334 * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols.
335 (elf32_arm_stub_add_mapping_symbol): Remove.
336 (elf32_arm_add_stub): Don't generate mapping symbols. Change
337 prototype.
338 (elf32_arm_size_stubs): Use new elf32_arm_add_stub
339 prototype. Don't generate thumb to arm glue for calls.
340 (arm_map_one_stub): Define.
341 (elf32_arm_output_arch_local_syms): Generate mapping symbols for
342 long calls stubs.
343
c2f950c8
L
3442008-05-21 Nick Clifton <nickc@redhat.com>
345
346 * elf32-arm.c (group_sections): Reformat comments.
347
348 PR ld/6446
349 * elf32-frv.c (elf32_frv_relocate_section): Set EF_FRV_PIC by
350 default (for FDPIC). Clear it if any inter-segment relocations
351 are found.
352
353 * elf64-hppa.c (elf64_hppa_finalize_opd): Check NULL return
354 from elf_link_hash_lookup.
355
7fb9f789
NC
3562008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
357
358 Add multi-GOT support for m68k.
359 * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key,
360 glist): New fields.
361 (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry,
362 struct elf_m68k_got, struct elf_m68k_bfd2got_entry,
363 struct elf_m68k_multi_got): New data structures.
364 (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p,
365 allow_multigot_p, multi_got_): New fields.
366 (elf_m68k_multi_got): New macro.
367 (elf_m68k_link_hash_newfunc): Initialize new fields of
368 struct elf_m68k_link_hash_entry.
369 (elf_m68k_link_hash_table_create): Initialize new fields of
370 struct elf_m68k_link_hash_table.
371 (elf_m68k_link_hash_table_free): New static function implementing hook.
372 (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New
373 static functions for struct elf_m68k_got.
374 (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash,
375 elf_m68k_got_entry_eq): New static functions for
376 struct elf_m68k_got_entry.
377 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT,
378 ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros.
379 (enum elf_m68k_get_entry_howto): New enum.
380 (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type,
381 elf_m68k_remove_got_entry_type): New static functions for
382 struct elf_m68k_got_entry.
383 (elf_m68k_add_entry_to_got): New static function.
384 (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq,
385 elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static
386 functions for struct elf_m68k_bfd2got_entry.
387 (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1,
388 elf_m68k_can_merge_gots): New traversal.
389 (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1,
390 elf_m68k_merge_gots): Ditto.
391 (struct elf_m68k_finalize_got_offsets_arg,
392 elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto.
393 (struct elf_m68k_partition_multi_got_arg,
394 elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1,
395 elf_m68k_partition_multi_got): Ditto.
396 (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static
397 functions.
398 (elf_m68k_copy_indirect_symbol): New static function implementing
399 a hook.
400 (elf_m68k_check_relocs): Update to add entries to multi-GOT.
401 (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT.
402 (elf_m68k_always_size_sections): Assign BFDs to GOTs.
403 (elf_m68k_relocate_section): Update to properly handle GOT relocations.
404 (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries
405 of a global symbol.
406 (bfd_elf_m68k_set_target_options): New function.
407 (bfd_elf32_bfd_link_hash_table_free): Define hook.
408 (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link
409 to skip generic calculation of GOT offsets.
410 (elf_backend_copy_indirect_symbol): Define hook.
411 * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function.
412 * bfd-in2.h: Regenerate.
413