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