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