2007-02-05 Dave Brolley <brolley@redhat.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b31847af
DB
12007-02-05 Dave Brolley <brolley@redhat.com>
2 Stan Cox <scox@redhat.com>
3
4 PR ld/3972
5 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
6
722b0ff7
DB
72007-02-05 Dave Brolley <brolley@redhat.com>
8
9 * elflink.h: Add support for Toshiba MeP.
10 * reloc.c: Likewise.
11 * Makefile.am: Likewise.
12 * config.bfd: Likewise.
13 * configure.in: Likewise.
14 * archures.c: Likewise.
15 * targets.c: Likewise.
16 * elf.c: Likewise.
17 * mep-relocs.pl: New file.
18 * cpu-mep.c: New file.
19 * elf32-mep.c: New file.
20 * bfd-in2.h: Regenerate.
21 * po/POTFILES.in: Likewise.
22 * libbfd.h: Regenerate.
23 * Makefile.in: Regenerate.
24 * configure: Regenerate.
25
d9352518
DB
262007-02-05 Dave Brolley <brolley@redhat.com>
27
28 * elflink.c (evaluate_complex_relocation_symbols): Check for
29 STT_SRELC for global symbols.
30 (perform_complex_relocations): Renamed to
31 perform_complex_relocation and now examines only one relocation.
32 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 33 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
34 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
35 (OD,OS,OU): #undefs corrected to N, S and U repectively.
36 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
37 (complex_reloc_installation_howto): Removed.
38 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
39 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
40
d9352518
DB
412007-02-05 Dave Brolley <brolley@redhat.com>
42
43 * Contribute the following changes:
44 2004-07-23 Richard Sandiford <rsandifo@redhat.com>
45
46 * elflink.c (perform_complex_relocation): Detect relocations against
47 undefined symbols.
48
49 2002-04-02 DJ Delorie <dj@redhat.com>
50
51 * elflink.h (resolve_symbol): Handle weak symbols.
52
53 2002-03-07 Graydon Hoare <graydon@redhat.com>
54
55 * elflink.h (perform_complex_relocations): Minor debug message
56 touchup.
57
58 2002-01-23 Graydon Hoare <graydon@redhat.com>
59
60 * bfd-in2.h: Add signed RELC (SRELC) symbols.
61 * elf.c (swap_out_syms): Likewise.
62 * elfcode.h (elf_slurp_symbol_table): Likewise.
63 (elf_symbol_flags): Likewise.
64 * syms.c: Likewise.
65 * elflink.h (eval_symbol): Introduce signed RELC evaluation.
66 (evaluate_complex_relocation_symbols): Likewise.
67 (perform_complex_relocations): Remove sign-extension logic,
68 which was broken anyways.
69
70 2002-01-15 Graydon Hoare <graydon@redhat.com>
71
72 * elflink.h (decode_complex_addend): Add oplen, signed_p, trunc_p
73 params.
74 (perform_complex_relocations): Call decode with new args,
75 Sign extend leftmost signed fields, delegate overflow check to
76 bfd_check_overflow in reloc.c, enhance overflow error messages.
77
78 2002-01-08 Graydon Hoare <graydon@redhat.com>
79
80 * elflink.h (resolve_symbol): Fix symbol -> section relationship.
81 (resolve_symbol): Remove unused parameter.
82 (eval_symbol): Remove unused arg from resolve_symbol call.
83
84 2002-01-01 Graydon Hoare <graydon@redhat.com>
85
86 * elflink.h (perform_complex_relocations): Add overflow
87 checking for RELC fragments.
88
89 2001-12-15 Nick Clifton <nickc@cambridge.redhat.com>
90
91 * elflink.h (evaluate_complex_relocation_symbols): Formatting
92 tidy ups. Process all symbols, even if an error is
93 encountered.
94
95 2001-12-10 Graydon Hoare <graydon@redhat.com>
96
97 * elflink.h (evaluate_complex_relocation_symbols): Resolve
98 global RELC symbols using separate logic from local symbols.
99
100 2001-12-10 Nick Clifton <nickc@cambridge.redhat.com>
101
102 Various formatting tidy ups and compile time warning removals,
103 plus:
74e880a7 104
d9352518
DB
105 * elflink.h (eval_symbol): Set bfd_error for failure returns.
106 (evaluate_complex_relocation_symbols): Only evaluate local
107 symbols.
108
109 2001-11-24 Graydon Hoare <graydon@redhat.com>
110
74e880a7
L
111 * elflink.h.c (resolve_symbol): Skip non-local syms in
112 local lookup loop; get section offset from section
113 symbol occurs in (rather than reloc section); handle
d9352518
DB
114 common symbols.
115
116 2001-11-24 Graydon Hoare <graydon@redhat.com>
117
118 * elflink.h.c (resolve_symbol): Use
119 bfd_elf_string_from_elf_section to look up local symbols in
120 current bfd.
121 (eval_symbol): Add input_bfd parameter for resolve_symbol's
122 use.
123 (evaluate_complex_relocation_symbols): Pass parameter.
124 (resolve_section) Fix silly typo.
125
126 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
127
128 * elflink.h (eval_symbol): Buffer size needs to be an integer for
129 Solaris cc.
130
131 2001-11-15 graydon hoare <graydon@redhat.com>
132
133 * elf32-mep.c (mep_info_to_howto_rela): Add complex reloc
134 howto.
135 * elflink.h (resolve_section): Add support for pseudo-sections
136 in complex symbols.
137 (evaluate_complex_relocation_symbols): Permit evaluating RELC
138 symbols on non-RELC relocs. They are distinct issues.
139
140 2001-10-15 graydon hoare <graydon@redhat.com>
141
142 * reloc.c (bfd_reloc_code_type): Define BFD_RELOC_RELC,
143 in the _correct_ place.
144
145 2001-10-11 graydon hoare <graydon@redhat.com>
146
147 * elflink.h (eval_symbol): Fix strtol calls with undefined
148 behavior.
149
150 2001-10-03 graydon hoare <graydon@redhat.com>
151
152 * elflink.h (set_symbol_value): New function for relc.
153 (resolve_symbol): Likewise.
154 (resolve_section): Likewise.
155 (undefined_reference): Likewise.
156 (eval_symbol): Likewise.
157 (evaluate_complex_relocation_symbols): Likewise.
158 (put_value): Likewise.
159 (get_value): Likewise.
160 (decode_complex_addend): Likewise.
161 (perform_complex_relocations): Likewise.
162 (elf_link_input_bfd): Insert hook into
163 evaluate_complex_relocation_symbols.
164 (elf_link_input_bfd): Insert hook into
165 perform_complex_relocations.
166
167 * bfd-in2.h: Define BFD_RELOC_RELC, BSF_RELC.
168
169 * elf.c (swap_out_syms): Add BSF_RELC / STT_RELC support.
170
171 * elfcode.h (elf_slurp_symbol_table): Likewise.
172 (elf_symbol_flags): Likewise.
173
174 * libbfd.h: Add "BFD_RELOC_RELC" to bfd_reloc_code_real_names
175 table.
176
177 2001-06-20 Frank Ch. Eigler <fche@redhat.com>
178
179 * syms.c (BSF_RELC): New symbol flag.
180 * elf.c (swap_out_syms): Map BSF_RELC -> STT_RELC.
181 * elfcode.h (elf_slurp_symbol_table): Map STT_RELC -> BSF_RELC.
182 (elf_symbol_flags): Display BSF_RELC as "relc".
183 * bfd-in2.h: Regenerated.
184
f1ab2340 1852007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 186
f1ab2340
BW
187 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
188 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
189 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
190 (elf_xtensa_allocate_got_size): Replace these with...
191 (elf_xtensa_allocate_dynrelocs): ...this new function.
192 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 193
e5f131d1 1942007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 195
e5f131d1
BW
196 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
197 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
198 Set src_mask to zero.
199 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
200 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 201
4608f3d9
BW
2022007-02-02 Bob Wilson <bob.wilson@acm.org>
203
204 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
205 (elf_xtensa_dynamic_symbol_p): ...this.
206
f0e6fdb2
BW
2072007-02-02 Bob Wilson <bob.wilson@acm.org>
208
209 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
210 (struct elf_xtensa_link_hash_table): New.
211 (elf_xtensa_hash_table): New.
212 (elf_xtensa_link_hash_table_create): New.
213 (elf_xtensa_check_relocs): Update plt_reloc_count references.
214 Update arguments to add_extra_plt_sections.
215 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
216 table. Update for plt_reloc_count and add_extra_plt_sections.
217 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
218 argument with link info. Update calls to elf_xtensa_get_plt_section
219 and elf_xtensa_get_gotplt_section.
220 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
221 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
222 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
223 (relax_property_section): Get sections from the hash table and update
224 function calls.
225 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
226 dynobj argument with link info. Get sections for first plt chunk from
227 the hash table.
228 (bfd_elf32_bfd_link_hash_table_create): Define.
229
c15f73f9
JJ
2302007-02-02 Jakub Jelinek <jakub@redhat.com>
231
232 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
233 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
234 (struct elf_symbol): Change first member into union.
235 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
236 internal syms. Only compare st_shndx fields.
237 (elf_create_symbuf): New function.
238 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
239 for bfds, use a binary search, otherwise don't qsort symbols
240 unnecessarily only to select which symbols are for the particular
241 shndx.
242
effdf42a
NC
2432007-02-01 Nick Clifton <nickc@redhat.com>
244
245 PR ld/3852
246 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
247 in the elf_link_hash_table structure.
248
183e98be
AM
2492007-02-01 Alan Modra <amodra@bigpond.net.au>
250
251 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
252 * elfxx-target.h (elf_backend_write_core_note): Define and use.
253 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
254 32-bit core note on 64-bit target.
255 (elfcore_write_prstatus): Likewise.
256 (elfcore_write_lwpstatus): Make note_name const.
257 (elfcore_write_prfpreg): Likewise.
258 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
259 target.
260 * elf32-ppc.c (ppc_elf_write_core_note): New function.
261 (elf_backend_write_core_note): Define.
262 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
263 (elf_backend_write_core_note): Define.
264
fc523535 2652007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
266
267 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
268 (elf32_bed): Defined for elf32-us-cris.
269
270 * elf64-sh64.c (elf64_bed): Defined for Linux.
271 (INCLUDED_TARGET_FILE): Removed.
272
273 * elfxx-target.h (elfNN_bed): Always define. Don't check
274 INCLUDED_TARGET_FILE.
275
c9b57b7e
DD
2762007-01-31 DJ Delorie <dj@redhat.com>
277
278 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
279 message for dangerous relocs, special case the common user error.
280
53020534
L
2812007-01-30 H.J. Lu <hongjiu.lu@intel.com>
282
283 * elf.c (copy_elf_program_header): Start from the first section
284 in a segment and stop when all sections in a segment are
285 accounted for.
286
c7b8f16e
JB
2872007-01-29 Julian Brown <julian@codesourcery.com>
288
289 * bfd-in2.h: Regenerate.
290 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
291 instruction scanning should be done.
292 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
293 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
294 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
295 prototype.
296 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
297 argument.
298 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
299 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
300 (elf32_vfp11_erratum_type): New enum.
301 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
302 veneers.
303 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
304 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
305 vfp11_fix and num_vfp11_fixes fields.
306 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
307 vfp11_erratum_glue_size, num_vfp11_fixes fields.
308 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
309 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
310 glue section.
311 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
312 to a section's map.
313 (record_vfp11_erratum_veneer): Create a single veneer, and its
314 associated symbols.
315 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
316 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
317 BFDs.
318 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
319 required.
320 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
321 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
322 (bfd_arm_vfp11_write_mask): Update write mask according to coded
323 register number.
324 (bfd_arm_vfp11_antidependency): New function.
325 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
326 (elf32_arm_compare_mapping): Declare.
327 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
328 BFD for potential erratum-triggering insns. Record results.
329 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
330 and branches to veneers have been placed in virtual memory after
331 layout.
332 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
333 hash table.
334 (elf32_arm_output_symbol_hook): Remove.
335 (elf32_arm_write_section): Output veneers, and branches to veneers.
336 Use maps from input sections, not output sections, for code
337 byte-swapping.
338 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
339 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
340 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
341 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
342
3432007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
344
345 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 346 (INCLUDED_TARGET_FILE): Removed.
83d1651b 347
914dfb0f
DA
3482007-01-27 Mike Frysinger <vapier@gentoo.org>
349
350 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
351 (INCLUDED_TARGET_FILE): Remove.
352
78eba9b6
DD
3532007-01-25 DJ Delorie <dj@redhat.com>
354
355 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
356 R_M32C_16 or R_M32C_24 relocs.
357
64ee10b6
NC
3582007-01-25 Nick Clifton <nickc@redhat.com>
359
360 PR binutils/3874
361 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
362 hash table was created by elf32_avr_link_hash_table_create before
363 using it.
364 (elf32_avr_link_hash_newfunc): New function. Just pass the call
365 through to _bfd_elf_link_hash_newfunc.
366 (elf32_avr_link_hash_table_create): Use
367 elf32_avr_link_hash_newfunc instead of
368 _bfd_elf_link_hash_newfunc.
369 (elf32_avr_relocate_section): Check for the hash table pointer
370 being NULL.
371 (elf32_avr_relax_section, avr_build_one_stub,
372 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
373 elf32_avr_build_stubs): Likewise.
374
40b36307
L
3752007-01-16 H.J. Lu <hongjiu.lu@intel.com>
376
377 PR ld/3831
378 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
379 argument, Elf_Internal_Sym *.
380
381 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
382 symbol dynamic if info->dynamic_data is TRUE.
383 (bfd_elf_record_link_assignment): Updated call to
384 bfd_elf_record_link_assignment.
385 (_bfd_elf_merge_symbol): Likewise. Always call
386 bfd_elf_link_mark_dynamic_symbol.
387
fc523535 3882007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
389
390 * Makefile.am (BFD_LIBS): Removed.
391 * Makefile.in: Regenerated.
392
fc523535 3932007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
394
395 PR binutils/3631
396 * Makefile.am (OFILES): Add @bfd64_libs@.
397 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
398 * Makefile.in: Regenerated.
399
400 * configure.in (bfd_libs): Replaced by ...
401 (bfd64_libs): This.
402 * configure: Regenerated.
403
59e0647f
NS
4042007-01-11 Nathan Sidwell <nathan@codesourcery.com>
405
406 * elf.c (assign_file_positions_for_load_sections): We can
407 require fewer phdrs than expected.
408
3bdcfdf4
KH
4092007-01-08 Kazu Hirata <kazu@codesourcery.com>
410
411 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
412 * bfd-in2.h: Regenerate.
413 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
414 bfd_mach_cpu32_fido.
415 (m68k_arch_features): Use fido_a instead of cpu32.
416 (bfd_m68k_compatible): Reject the combination of Fido and
417 ColdFire. Accept the combination of CPU32 and Fido with a
418 warning.
419 * elf32-m68k.c (elf32_m68k_object_p,
420 elf32_m68k_merge_private_bfd_data,
421 elf32_m68k_print_private_bfd_data): Treat Fido as an
422 architecture by itself.
423
42037fe5
NC
4242007-01-08 Kai Tietz <kai.tietz@onevision.com>
425
426 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
427
ebe8b991
JJ
4282007-01-05 Jakub Jelinek <jakub@redhat.com>
429
430 * texhex.c (first_phase): Don't fall through into the default
431 case.
432 (pass_over): Replace abort () calls with return FALSE. Fix
433 buffer overflow.
434
b327f31f
AM
4352007-01-04 Jie Zhang <jie.zhang@analog.com>
436
437 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
438 SEC_EXCLUDE on zero size .eh_frame.
439
10a2343e 440For older changes see ChangeLog-2006
56882138
AM
441\f
442Local Variables:
443mode: change-log
444left-margin: 8
445fill-column: 74
446version-control: never
447End:
This page took 0.376568 seconds and 4 git commands to generate.