]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* infrun.c (inferior_stop_reason, print_stop_reason): Remove
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
2889e75b
NC
12007-02-21 Nick Clifton <nickc@redhat.com>
2
3 * elf.c (_bfd_elf_map_sections_to_segments): If the
4 override_segment_assignment callback is defined then call it.
5
78859468
AM
62007-02-21 Alan Modra <amodra@bigpond.net.au>
7
8 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
9
ae0d2616
TS
102007-02-19 Thiemo Seufer <ths@mips.com>
11
12 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
13 translation marker from untranslatable strings.
14
6bfdb61b
AM
152007-02-19 Alan Modra <amodra@bigpond.net.au>
16
17 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
18 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
19 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
20 (elfNN_bed): Init new field.
21 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
22
92f01d61
JM
232007-02-17 Mark Mitchell <mark@codesourcery.com>
24 Nathan Sidwell <nathan@codesourcery.com>
25 Vladimir Prus <vladimir@codesourcery.com
26 Joseph Myers <joseph@codesourcery.com>
27
28 * configure.in (--with-pkgversion): New option.
29 * configure: Regenerate.
30 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
31 * Makefile.in: Regenerate.
32 * version.h (BFD_VERSION_STRING): Define using
33 @bfd_version_package@.
34
c0e3f241
CD
352007-02-16 Carlos O'Donell <carlos@codesourcery.com>
36
37 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
38 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
39 and EF_MIPS_UCODE.
40
72f6ea61
AM
412007-02-15 Alan Modra <amodra@bigpond.net.au>
42
43 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
44 declare.
45 (_bfd_norelocs_canonicalize_reloc): Likewise.
46 * libbfd.h: Regenerate.
47 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
48 (_bfd_norelocs_canonicalize_reloc): Likewise.
49 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
50 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
51 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
52 * ihex.c: Similarly.
53 * mach-o-target.c: Similarly.
54 * mach-o.c: Similarly.
55 * mmo.c: Similarly.
56 * pef.c: Similarly.
57 * ppcboot.c: Similarly.
58 * srec.c: Similarly.
59 * xsym.c: Similarly.
60
fab4a87f
L
612007-02-14 H.J. Lu <hongjiu.lu@intel.com>
62
63 PR ld/3953
64 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
65 when adding default symbol.
66
e4e0193e
AM
672007-02-13 Alan Modra <amodra@bigpond.net.au>
68
69 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
70 for branch lookup table.
71
84f5d08e
AM
722007-02-12 Alan Modra <amodra@bigpond.net.au>
73
74 * elf64-ppc.c (create_linkage_sections): Don't create
75 .rela.rodata.brlt for --emit-relocs.
76 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
77 (ppc_size_one_stub): Count them. Simplify test of stub type
78 when counting stub relocs. Set SEC_RELOC too.
79 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
80 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
81
4aac632e
AM
822007-02-12 Alan Modra <amodra@bigpond.net.au>
83
84 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
85 with a zero symbol index.
86
8da3dbc5
AM
872007-02-12 Alan Modra <amodra@bigpond.net.au>
88
89 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
90
b31847af
DB
912007-02-05 Dave Brolley <brolley@redhat.com>
92 Stan Cox <scox@redhat.com>
93
94 PR ld/3972
95 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
96
722b0ff7 972007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
98 Richard Sandiford <rsandifo@redhat.com>
99 Stan Cox <scox@redhat.com>
100 Nick Clifton <nickc@redhat.com>
101 DJ Delorie <dj@redhat.com>
102 Frank Ch. Eigler <fche@redhat.com>
103 Ben Elliston <bje@redhat.com>
104 Richard Henderson <rth@redhat.com>
105
106 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
107 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
108 (BFD32_BACKENDS): Add elf32-mep.lo.
109 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
110 (cpu-mep.lo,elf32-mep.lo): New targets.
111 * archures.c (bfd_arch_mep): New enumerator.
112 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
113 (bfd_mep_arch): New external variable.
114 (bfd_archures_list): Add bfd_mep_arch.
115 * config.bfd: Support mep-*-elf.
116 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
117 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
118 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
119 declarations.
120 (_bfd_target_vector): Add bfd_elf32_mep_vec and
121 bfd_elf32_mep_little_vec.
722b0ff7
DB
122 * mep-relocs.pl: New file.
123 * cpu-mep.c: New file.
124 * elf32-mep.c: New file.
125 * bfd-in2.h: Regenerate.
e382d174 126 * po/POTFILES.in: Regenerate.
722b0ff7
DB
127 * libbfd.h: Regenerate.
128 * Makefile.in: Regenerate.
129 * configure: Regenerate.
130
d9352518
DB
1312007-02-05 Dave Brolley <brolley@redhat.com>
132
133 * elflink.c (evaluate_complex_relocation_symbols): Check for
134 STT_SRELC for global symbols.
135 (perform_complex_relocations): Renamed to
136 perform_complex_relocation and now examines only one relocation.
137 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 138 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
139 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
140 (OD,OS,OU): #undefs corrected to N, S and U repectively.
141 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
142 (complex_reloc_installation_howto): Removed.
143 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
144 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
145
d9352518 1462007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
147 Richard Sandiford <rsandifo@redhat.com>
148 DJ Delorie <dj@redhat.com>
149 Graydon Hoare <graydon@redhat.com>
150 Nick Clifton <nickc@cambridge.redhat.com>
151 Jeff Holcomb <jeffh@redhat.com>
152 Frank Ch. Eigler <fche@redhat.com>
153
154 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
155 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
156 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
157 * elflink.c (set_symbolValue): New static function.
d9352518
DB
158 (resolve_symbol): Likewise.
159 (resolve_section): Likewise.
160 (undefined_reference): Likewise.
161 (eval_symbol): Likewise.
162 (evaluate_complex_relocation_symbols): Likewise.
163 (put_value): Likewise.
164 (get_value): Likewise.
e382d174
DB
165 (decode_complex_addend):
166 (bfd_elf_perform_complex_relocation): New function.
167 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
168 * reloc.c (BFD_RELOC_RELC): New relocation number.
169 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 170
f1ab2340 1712007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 172
f1ab2340
BW
173 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
174 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
175 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
176 (elf_xtensa_allocate_got_size): Replace these with...
177 (elf_xtensa_allocate_dynrelocs): ...this new function.
178 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 179
e5f131d1 1802007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 181
e5f131d1
BW
182 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
183 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
184 Set src_mask to zero.
185 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
186 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 187
4608f3d9
BW
1882007-02-02 Bob Wilson <bob.wilson@acm.org>
189
190 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
191 (elf_xtensa_dynamic_symbol_p): ...this.
192
f0e6fdb2
BW
1932007-02-02 Bob Wilson <bob.wilson@acm.org>
194
195 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
196 (struct elf_xtensa_link_hash_table): New.
197 (elf_xtensa_hash_table): New.
198 (elf_xtensa_link_hash_table_create): New.
199 (elf_xtensa_check_relocs): Update plt_reloc_count references.
200 Update arguments to add_extra_plt_sections.
201 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
202 table. Update for plt_reloc_count and add_extra_plt_sections.
203 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
204 argument with link info. Update calls to elf_xtensa_get_plt_section
205 and elf_xtensa_get_gotplt_section.
206 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
207 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
208 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
209 (relax_property_section): Get sections from the hash table and update
210 function calls.
211 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
212 dynobj argument with link info. Get sections for first plt chunk from
213 the hash table.
214 (bfd_elf32_bfd_link_hash_table_create): Define.
215
c15f73f9
JJ
2162007-02-02 Jakub Jelinek <jakub@redhat.com>
217
218 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
219 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
220 (struct elf_symbol): Change first member into union.
221 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
222 internal syms. Only compare st_shndx fields.
223 (elf_create_symbuf): New function.
224 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
225 for bfds, use a binary search, otherwise don't qsort symbols
226 unnecessarily only to select which symbols are for the particular
227 shndx.
228
effdf42a
NC
2292007-02-01 Nick Clifton <nickc@redhat.com>
230
231 PR ld/3852
232 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
233 in the elf_link_hash_table structure.
234
183e98be
AM
2352007-02-01 Alan Modra <amodra@bigpond.net.au>
236
237 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
238 * elfxx-target.h (elf_backend_write_core_note): Define and use.
239 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
240 32-bit core note on 64-bit target.
241 (elfcore_write_prstatus): Likewise.
242 (elfcore_write_lwpstatus): Make note_name const.
243 (elfcore_write_prfpreg): Likewise.
244 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
245 target.
246 * elf32-ppc.c (ppc_elf_write_core_note): New function.
247 (elf_backend_write_core_note): Define.
248 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
249 (elf_backend_write_core_note): Define.
250
fc523535 2512007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
252
253 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
254 (elf32_bed): Defined for elf32-us-cris.
255
256 * elf64-sh64.c (elf64_bed): Defined for Linux.
257 (INCLUDED_TARGET_FILE): Removed.
258
259 * elfxx-target.h (elfNN_bed): Always define. Don't check
260 INCLUDED_TARGET_FILE.
261
c9b57b7e
DD
2622007-01-31 DJ Delorie <dj@redhat.com>
263
264 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
265 message for dangerous relocs, special case the common user error.
266
53020534
L
2672007-01-30 H.J. Lu <hongjiu.lu@intel.com>
268
269 * elf.c (copy_elf_program_header): Start from the first section
270 in a segment and stop when all sections in a segment are
271 accounted for.
272
c7b8f16e
JB
2732007-01-29 Julian Brown <julian@codesourcery.com>
274
275 * bfd-in2.h: Regenerate.
276 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
277 instruction scanning should be done.
278 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
279 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
280 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
281 prototype.
282 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
283 argument.
284 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
285 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
286 (elf32_vfp11_erratum_type): New enum.
287 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
288 veneers.
289 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
290 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
291 vfp11_fix and num_vfp11_fixes fields.
292 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
293 vfp11_erratum_glue_size, num_vfp11_fixes fields.
294 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
295 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
296 glue section.
297 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
298 to a section's map.
299 (record_vfp11_erratum_veneer): Create a single veneer, and its
300 associated symbols.
301 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
302 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
303 BFDs.
304 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
305 required.
306 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
307 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
308 (bfd_arm_vfp11_write_mask): Update write mask according to coded
309 register number.
310 (bfd_arm_vfp11_antidependency): New function.
311 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
312 (elf32_arm_compare_mapping): Declare.
313 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
314 BFD for potential erratum-triggering insns. Record results.
315 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
316 and branches to veneers have been placed in virtual memory after
317 layout.
318 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
319 hash table.
320 (elf32_arm_output_symbol_hook): Remove.
321 (elf32_arm_write_section): Output veneers, and branches to veneers.
322 Use maps from input sections, not output sections, for code
323 byte-swapping.
324 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
325 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
326 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
327 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
328
3292007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
330
331 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 332 (INCLUDED_TARGET_FILE): Removed.
83d1651b 333
914dfb0f
DA
3342007-01-27 Mike Frysinger <vapier@gentoo.org>
335
336 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
337 (INCLUDED_TARGET_FILE): Remove.
338
78eba9b6
DD
3392007-01-25 DJ Delorie <dj@redhat.com>
340
341 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
342 R_M32C_16 or R_M32C_24 relocs.
343
64ee10b6
NC
3442007-01-25 Nick Clifton <nickc@redhat.com>
345
346 PR binutils/3874
347 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
348 hash table was created by elf32_avr_link_hash_table_create before
349 using it.
350 (elf32_avr_link_hash_newfunc): New function. Just pass the call
351 through to _bfd_elf_link_hash_newfunc.
352 (elf32_avr_link_hash_table_create): Use
353 elf32_avr_link_hash_newfunc instead of
354 _bfd_elf_link_hash_newfunc.
355 (elf32_avr_relocate_section): Check for the hash table pointer
356 being NULL.
357 (elf32_avr_relax_section, avr_build_one_stub,
358 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
359 elf32_avr_build_stubs): Likewise.
360
40b36307
L
3612007-01-16 H.J. Lu <hongjiu.lu@intel.com>
362
363 PR ld/3831
364 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
365 argument, Elf_Internal_Sym *.
366
367 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
368 symbol dynamic if info->dynamic_data is TRUE.
369 (bfd_elf_record_link_assignment): Updated call to
370 bfd_elf_record_link_assignment.
371 (_bfd_elf_merge_symbol): Likewise. Always call
372 bfd_elf_link_mark_dynamic_symbol.
373
fc523535 3742007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
375
376 * Makefile.am (BFD_LIBS): Removed.
377 * Makefile.in: Regenerated.
378
fc523535 3792007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
380
381 PR binutils/3631
382 * Makefile.am (OFILES): Add @bfd64_libs@.
383 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
384 * Makefile.in: Regenerated.
385
386 * configure.in (bfd_libs): Replaced by ...
387 (bfd64_libs): This.
388 * configure: Regenerated.
389
59e0647f
NS
3902007-01-11 Nathan Sidwell <nathan@codesourcery.com>
391
392 * elf.c (assign_file_positions_for_load_sections): We can
393 require fewer phdrs than expected.
394
3bdcfdf4
KH
3952007-01-08 Kazu Hirata <kazu@codesourcery.com>
396
397 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
398 * bfd-in2.h: Regenerate.
399 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
400 bfd_mach_cpu32_fido.
401 (m68k_arch_features): Use fido_a instead of cpu32.
402 (bfd_m68k_compatible): Reject the combination of Fido and
403 ColdFire. Accept the combination of CPU32 and Fido with a
404 warning.
405 * elf32-m68k.c (elf32_m68k_object_p,
406 elf32_m68k_merge_private_bfd_data,
407 elf32_m68k_print_private_bfd_data): Treat Fido as an
408 architecture by itself.
409
42037fe5
NC
4102007-01-08 Kai Tietz <kai.tietz@onevision.com>
411
412 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
413
ebe8b991
JJ
4142007-01-05 Jakub Jelinek <jakub@redhat.com>
415
416 * texhex.c (first_phase): Don't fall through into the default
417 case.
418 (pass_over): Replace abort () calls with return FALSE. Fix
419 buffer overflow.
420
b327f31f
AM
4212007-01-04 Jie Zhang <jie.zhang@analog.com>
422
423 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
424 SEC_EXCLUDE on zero size .eh_frame.
425
10a2343e 426For older changes see ChangeLog-2006
56882138
AM
427\f
428Local Variables:
429mode: change-log
430left-margin: 8
431fill-column: 74
432version-control: never
433End: