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