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