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