* configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
92dd4511
L
12009-04-17 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR binutils/10074
4 * coffcode.h (bfd_pei_p): New.
5
6 * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
7 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
8 bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
9 bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
10 bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
11 i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
12
13 * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
14 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
15 bfd_efi_rtdrv_x86_64_vec,
16 bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
17 bfd_efi_ia64_vec with bfd_pei_ia64_vec.
18 * targets.c: Likewise.
19
20 * configure: Regenerated.
21 * libcoff.h: Likewise.
22 * Makefile.in: Likewise.
23
24 * efi-app-ia32.c: Removed.
25 * efi-app-x86_64.c: Likewise.
26 * efi-bsdrv-ia32.c: Likewise.
27 * efi-bsdrv-ia64.c: Likewise.
28 * efi-bsdrv-x86_64.c: Likewise.
29 * efi-rtdrv-ia32.c: Likewise.
30 * efi-rtdrv-ia64.c: Likewise.
31 * efi-rtdrv-x86_64.c: Likewise.
32 * efi-rtdrv-ia32.c: Likewise.
33
34 * efi-app-ia64.c: Moved to ...
35 * pei-ia64.c: This.
36 (TARGET_SYM): Set to bfd_pei_ia64_vec.
37 (TARGET_NAME): Set to pei-ia64.
38
39 * libpei.h (bfd_target_pei_p): Removed.
40 (bfd_target_pei_arch): Likewise.
41 (bfd_target_efi_app_p): Likewise.
42 (bfd_target_efi_app_arch): Likewise.
43 (bfd_target_efi_bsdrv_p): Likewise.
44 (bfd_target_efi_bsdrv_arch): Likewise.
45 (bfd_target_efi_rtdrv_p): Likewise.
46 (bfd_target_efi_rtdrv_arch): Likewise.
47 (bfd_pe_executable_p): Likewise.
48
49 * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
50 efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
51 (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
52 and efi-rtdrv-ia32.c.
53 (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
54 efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
55 efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
56 (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
57 efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
58 efi-rtdrv-x86_64.c. Add pei-ia64.c.
59 (efi-app-ia64.lo): Removed.
60 (efi-bsdrv-ia32.lo): Likewise.
61 (efi-rtdrv-ia32.lo): Likewise.
62 (efi-app-ia64.lo): Likewise.
63 (efi-bsdrv-ia64.lo): Likewise.
64 (efi-rtdrv-ia64.lo): Likewise.
65 (efi-app-x86_64.lo): Likewise.
66 (efi-bsdrv-x86_64.lo): Likewise.
67 (efi-rtdrv-x86_64.lo): Likewise.
68 (pei-ia64.lo): New.
69
70 * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
71 with bfd_pei_p.
72 (arch_type): Removed.
73 (pe_arch): Likewise.
74 (pe_bfd_object_p): Just return coff_object_p.
75
76 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
77 bfd_pe_executable_p with bfd_pei_p.
78
69c5861e
CL
792009-04-17 Christophe Lyon <christophe.lyon@st.com>
80
81 * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
82 PLT entries to an undefined symbol when generating a shared
83 library.
84
e9cd0660
NC
852009-04-17 Nick Clifton <nickc@redhat.com>
86
87 PR 9909
88 * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
89
3023e3f6
RS
902009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
91
92 * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
93 * aout-target.h (MY_bfd_define_common_symbol): Likewise.
94 * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
95 * binary.c (binary_bfd_define_common_symbol): Likewise.
96 * bout.c (b_out_bfd_define_common_symbol): Likewise.
97 * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
98 * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
99 * coffcode.h (coff_bfd_define_common_symbol): Likewise.
100 * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
101 * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
102 * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
103 * ieee.c (ieee_bfd_define_common_symbol): Likewise.
104 * ihex.c (ihex_bfd_define_common_symbol): Likewise.
105 * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
106 * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
107 * mmo.c (mmo_bfd_define_common_symbol): Likewise.
108 * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
109 * oasys.c (oasys_bfd_define_common_symbol): Likewise.
110 * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
111 * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
112 * som.c (som_bfd_define_common_symbol): Likewise.
113 * srec.c (srec_bfd_define_common_symbol): Likewise.
114 * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
115 * versados.c (versados_bfd_define_common_symbol): Likewise.
116 * vms.c (vms_bfd_define_common_symbol): Likewise.
117 * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
118 * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
119 * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
120 (pmac_xcoff_vec): Likewise.
121 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
122 (aix5coff64_vec): Likewise.
123 * linker.c (bfd_generic_define_common_symbol): New function.
124 * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
125 (_bfd_define_common_symbol): New field.
126 * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
127 * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
128 (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
129 symbols here.
130 * bfd-in2.h: Regenerate.
131 * libbfd.h: Likewise.
132 * libcoff.h: Likewise.
133
20135e4c
NC
1342009-04-15 Anthony Green <green@moxielogic.com>
135
136 * targets.c: Add moxie support.
137 * Makefile.am: Ditto.
138 * Makefile.in: Rebuilt.
139 * cpu-moxie.c, elf32-moxie.c: New files.
140 * archures.c: Add moxie support.
141 * configure.in: Add moxie support.
142 * configure: Rebuilt.
143 * config.bfd, archures.c: Add moxie support.
144 * bfd-in2.h: Rebuilt.
145
82b5c97a
CL
1462009-04-15 Christophe Lyon <christophe.lyon@st.com>
147
148 * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
149 branch to an undef weak symbol into a jump to next instruction if
150 a PLT entry will be created.
151
0408dee6
DK
1522009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
153
154 * coffgen.c (make_a_section_from_file): Set the backend long
155 section names enable if long section names found on input.
156 * coffcode.h: Extend long section names documentation to match.
157
a0c402a5
L
1582009-04-08 H.J. Lu <hongjiu.lu@intel.com>
159
160 * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
161 machine code.
162
4d28413b
DD
1632009-04-07 DJ Delorie <dj@redhat.com>
164
165 * archures.c: Add bfd_mach_mep_c5.
166 * bfd-in2.h: Likewise.
167 * cpu-mep.c: Add bfd_c5_arch.
168 * elf32-mep.c: Support it.
169
bb6198d2
L
1702009-04-07 H.J. Lu <hongjiu.lu@intel.com>
171
172 * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
173 info->callbacks->einfo.
174 * linker.c (_bfd_generic_section_already_linked): Likewise.
175
bcb012d3
DD
1762009-04-06 DJ Delorie <dj@redhat.com>
177
178 * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
179
db1fe6e9
L
1802009-04-06 H.J. Lu <hongjiu.lu@intel.com>
181
182 * coff-x86_64.c (bfd_pe_print_pdata): Defined to
183 _bfd_pex64_print_pdata only if PE is defined.
184
185 * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
186 (_bfd_pex64_print_pdata): This.
187
188 * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
189 (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
190 is defined.
191
c7c7219d
KT
1922009-04-05 Kai Tietz <kai.tietz@onevision.com>
193
194 * coff-x86_64.c (bfd_pe_print_pdata): Define as
195 _bfd_pep_print_x64_pdata.
196 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
197 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
198
3df502ae
SA
1992009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
200
201 * elf32-xtensa.c (relax_property_section): Always set r_offset
202 to zero.
203
d3626fb0
CL
2042009-04-02 Christophe Lyon <christophe.lyon@st.com>
205
206 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
207 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
208 branch stubs.
209 (elf32_arm_stub_type): New enum values for the two new stubs.
210 (arm_type_of_stub): Make use of the two new stubs.
211 (arm_size_one_stub): Handle the two new stubs.
212
fe723c87
MT
2132009-04-01 Matt Thomas <matt@netbsd.org>
214
215 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
216 hidden symbols into the GOT or PLT.GOT.
217 (elf_vax_relocate_section): Do not emit a PCREL reloc
218 into a shared object if it is against a hidden symbol.
219
ee698300
RS
2202009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
221
222 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
223 and know_contains_shared_object_p.
224 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
225 Cache the result in the archive_info table.
226 (xcoff_auto_export_p): Add an "info" parameter and update the
227 call to xcoff_archive_contains_shared_object_p.
228 (xcoff_mark_auto_exports): Update accordingly.
229 (xcoff_post_gc_symbol): Likewise.
230
54e2dbe0
RS
2312009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
232
233 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
234 rather than C_EXT.
235
2e470849
RS
2362009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
237
238 * coff-rs6000.c (member_layout): New structure.
239 (archive_iterator): Likewise.
240 (member_layout_init): New function.
241 (archive_iterator_begin): Likewise.
242 (archive_iterator_next): Likewise.
243 (xcoff_write_armap_old): Use the new iterator functions.
244 (do_shared_object_padding): Delete.
245 (xcoff_write_armap_big): Use the new iterator functions. Simplify
246 handling of arch_info.
247 (xcoff_write_archive_contents_old): Allocate arelt_data in the
248 first loop rather than the second. Allocate a member header if
249 there isn't one, then work out the stat information and length
250 in the first loop too. Use the new iterators for the second loop.
251 (xcoff_write_archive_contents_big): Likewise.
252
24c611d1
RS
2532009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
254
255 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
256 (bfd_xcoff_set_archive_import_path): Likewise.
257 * bfd-in2.h: Regenerate.
258 * xcofflink.c: Include libiberty.h.
259 (xcoff_archive_info): New structure.
260 (xcoff_archive_info_hash): New function.
261 (xcoff_archive_info_eq): Likewise.
262 (xcoff_get_archive_info): Likewise.
263 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
264 (bfd_xcoff_split_import_path): New function.
265 (bfd_xcoff_set_archive_import_path): Likewise.
266 (xcoff_set_import_path): Move earlier in file.
267 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
268 object to the the directory part of the bfd's filename. Get the
269 import path and filename of an archive object from the archive's
270 xcoff_tdata, initializing it if necessary. Update use of
271 import_file_id.
272 (bfd_link_input_bfd): Update use of import_file_id.
273 (xcoff_write_global_symbol): Likewise.
274
d286971a
RS
2752009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
276
277 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
278
2792009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
280
281 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
282 a .loader section for relocatable links.
283 (xcoff_need_ldrel_p): New function.
284 (xcoff_mark): Use it.
285 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
286 a loader section.
287 (xcoff_build_ldsym): New function, split out from...
288 (xcoff_build_ldsyms): ...here. Rename to...
289 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
290 call xcoff_build_ldsym, if there's a loader section.
291 (xcoff_build_loader_section): New function, extracted verbatim from...
292 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
293 there's a loader section. Only add an __rtinit loader symbol
294 if there's a loader section. Update after above name change.
295 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
296 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
297 and xcoff_create_ldrel.
298 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
299 (xcoff_reloc_link_order): Likewise, but only call it if there's
300 a loader section. Use xcoff_symbol_section.
301 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
302 if there's a loader section.
303
8707bb87
RS
3042009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
305
306 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
307
e780aef2
CL
3082009-04-01 Christophe Lyon <christophe.lyon@st.com>
309
310 * elf32-arm.c (group_sections): Rewrite loops for better
311 readability.
312
c301e700
DD
3132009-03-30 DJ Delorie <dj@redhat.com>
314
315 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
316 relocs when doing a relocatable link.
317
3895f852
MM
3182009-03-28 Mark Mitchell <mark@codesourcery.com>
319
320 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
321 "ERROR:", in error messages.
322 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
323 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
324 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
325 (elf32_arm_merge_eabi_attributes): Likewise.
326 (elf32_arm_merge_private_bfd_data): Likewise.
327
ea882e87
NC
3282009-03-27 Nick Clifton <nickc@redhat.com>
329
330 * section.c (bfd_get_section_contents): Detect and handle the case
331 where a section has the SEC_IN_MEMORY flag set but no actual
332 contents allocated.
333
9433b9b1
AM
3342009-03-26 Alan Modra <amodra@bigpond.net.au>
335
336 PR 6494
337 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
338 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
339 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
340 if we don't find matching PT_LOAD when copying.
341
dc1aa734
SR
3422009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
343
344 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
345 the reloc descriptions.
346
34d3d6b9
HPN
3472009-03-25 Hans-Peter Nilsson <hp@axis.com>
348
349 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
350 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
351 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
352
34274ccc
L
3532009-03-24 H.J. Lu <hongjiu.lu@intel.com>
354
355 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
356 (bfd_i386_arch_intel_syntax): Likewise.
357 (i8086_arch): Likewise.
358 (bfd_x86_64_arch): Likewise.
359
019c5a2e
HPN
3602009-03-24 Hans-Peter Nilsson <hp@axis.com>
361
6718f446
HPN
362 * elf32-cris.c (cris_elf_relocate_section): <case
363 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
364 symbols for non-allocated sections. Don't check whether to
365 generate R_CRIS_DTPMOD for non-allocated sections.
366 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
367 handle relocation GC:ing if applied to non-allocated section.
368 (cris_elf_check_relocs): Similar.
369
019c5a2e
HPN
370 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
371 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
372 when emitting a known TP offset in the GOT.
373
ffcfec52
AM
3742009-03-23 Alan Modra <amodra@bigpond.net.au>
375
376 * elf64-ppc.c (synthetic_opd): Delete.
377 (compare_symbols): Look for .opd name rather than section match.
378 (ppc64_elf_get_synthetic_symtab): Likewise.
379
c6dd29ce
AM
3802009-03-21 Alan Modra <amodra@bigpond.net.au>
381
382 * elf32-ppc.c (is_pic_glink_stub): Delete.
383 (is_nonpic_glink_stub): New function.
384 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
385 than first pic one.
386 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
387
8c21ca21
AK
3882009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
389 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
390
391 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
392 macros for visibilty and locality checks.
393 (elf_s390_adjust_dynamic_symbol): Likewise.
394 (allocate_dynrelocs): Likewise.
395 (elf_s390_relocate_section): Likewise.
396 (elf_s390_finish_dynamic_symbol): Likewise.
397 * elf64-s390.c (elf_s390_check_relocs): Likewise.
398 (elf_s390_adjust_dynamic_symbol): Likewise.
399 (allocate_dynrelocs): Likewise.
400 (elf_s390_relocate_section): Likewise.
401 (elf_s390_finish_dynamic_symbol): Likewise.
402
156621f3
KT
4032009-03-19 Kai Tietz <kai.tietz@onevision.com>
404
405 * bfd-in2.h: Regenerated.
406 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
407 for debugging sections and map memory read/write dependent on
408 SEC_COFF_NOREAD.
409 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
410 without memory read flags set.
411 * section.c: Add SEC_COFF_NOREAD to section flags.
412
d1fa68d3
AS
4132009-03-19 Andreas Schwab <schwab@linux-m68k.org>
414
415 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
416 for format string.
417
ad2adbc8
AM
4182009-03-19 Alan Modra <amodra@bigpond.net.au>
419
420 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
421 "no overlays" return. If there are overlays, create overlay
422 manager entry symbols here, so that..
423 (spu_elf_build_stubs): ..we don't need to set them up here.
424 Simplify entry symbol tests.
425 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
426
67cc5033
MK
4272009-03-18 Mark Kettenis <kettenis@gnu.org>
428
d1fa68d3 429 * elf.c (elfcore_grok_openbsd_procinfo)
67cc5033
MK
430 (elfcore_grok_openbsd_note): New functions.
431 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
432
8d25cc3d
AM
4332009-03-18 Alan Modra <amodra@bigpond.net.au>
434
3889c459 435 * vms-hdr.c: Don't include alloca.h.
8d25cc3d
AM
436 * elf32-m68hc1x.c: Include alloca-conf.h.
437 * xsym.c: Likewise.
438 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
439 * som.c: Likewise.
440 * Makefile.am: Run "make dep-am".
441 * Makefile.in: Regenerate.
442
a89e6478
DJ
4432009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
444
445 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
446
a7e11ee1
AM
4472009-03-17 Alan Modra <amodra@bigpond.net.au>
448
449 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
450 Add compact_stub.
451 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
452 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
453 ovly_return fields with ovly_entry[2]. Adjust all users.
454 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
455 when soft-icache.
456 (spu_elf_build_stubs): Likewise.
457 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
458 ovly_flavour changes. Update all callers.
459 (ovl_stub_size_log2): New function.
460 (build_stub): Handle compact icache stubs. Use different manager
461 entry point for stubs in non-icache area.
462 (spu_elf_size_stubs): Don't allocate space for indirect branch
463 descriptors.
464 (spu_elf_build_stubs): And don't built them.
465
607a83c9
AS
4662009-03-16 Andrew Stubbs <ams@codesourcery.com>
467
468 * dwarf2.c (read_section): Always use rawsize, if available.
469
588f62fc
AM
4702009-03-16 Alan Modra <amodra@bigpond.net.au>
471
472 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
473 of rawsize and size for buffer.
474
a14c90c1
UW
4752009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
476
477 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
478 parameter just because fixed sections fit into local store.
479 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
480 generating overlays if fixed sections plus reserved stack
481 and heap space fit into local store.
482
30c665df
AM
4832009-03-15 Alan Modra <amodra@bigpond.net.au>
484
485 * elf32-spu.c (build_stub): Correct icache set_id.
486 (spu_elf_relocate_section): Likewise.
487
f95942a3
RS
4882009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
489
490 * xcofflink.c (xcoff_link_check_archive_element): Only free the
491 symbol table if it was created by the current call.
492
670562e9
RS
4932009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
494
495 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
496 class XMC_DS rather than XMC_UA.
497
b64232cc
RS
4982009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
499
500 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
501 bfd_boolean export_defineds parameter with an unsigned int
502 auto_export_flags parameter.
503 * bfd-in2.h: Regenerate.
504 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
505 split out from xcoff_build_ldsyms.
506 (xcoff_covered_by_expall_p): New function.
507 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
508 but with extra code to handle -bexpfull and -bexpall.
509 (xcoff_mark_auto_exports): New function.
510 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
511 a function should be automatically exported.
512 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
513 parameter with an auto_export_flags parameter. Update ldinfo
514 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
515 exported symbols.
516
7d504122
RS
5172009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
518
519 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
520 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
521 init and fini functions. Do garbage collection for objects
522 without an entry point too.
523
8602d4fe
RS
5242009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
525
526 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
527 check whether a symbol has csect information.
528 (coff_print_aux): Likewise.
529 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
530 information for C_AIX_WEAKEXT too.
531 (_bfd_xcoff_swap_aux_out): Likewise.
532 (xcoff_reloc_type_br): Handle defweak symbols too.
533 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
534 information for C_AIX_WEAKEXT too.
535 (_bfd_xcoff64_swap_aux_out): Likewise.
536 (xcoff64_reloc_type_br): Handle defweak symbols too.
537 * coffgen.c (coff_print_symbol): Handle auxillary function
538 information for C_AIX_WEAKEXT too.
539 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
540 instead of BSF_GLOBAL if the L_WEAK flag is set.
541 (xcoff_dynamic_definition_p): New function.
542 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
543 defines h. Don't change h if ldsym isn't the definition. Otherwise,
544 always take the symbol class from the ldsym. Use weak bfd symbol
545 types for weak ldsyms.
546 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
547 Fix the check for whether a definition is from a shared object.
548 Allow redefinitions of weak symbols.
549 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
550 (xcoff_keep_symbol_p): Likewise.
551 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
552 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
553 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
554 but mark them as L_WEAK.
555 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
556 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
557
5b49f6dc
RS
5582009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
559
560 * xcofflink.c (xcoff_mark): When walking the relocations,
561 only mark the target symbol or the target section, not both.
562 (xcoff_final_definition_p): New function.
563 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
564 symbol is a valid definition of the associated output symbol.
565 Use XCOFF_ALLOCATED to stop the same hash table entry having
566 two output symbols.
567 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
568 keeping a symbol.
569 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
570
c4037431
RS
5712009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
572
573 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
574 symbols as XMC_XO.
575
3df13c4a
RS
5762009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
577
578 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
579 * libcoff.h: Regenerate.
580 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
581 line-number counts in the bfd's lineno_counts field.
582 Don't keep per-csect line-number counts.
583 (xcoff_sweep): Don't update per-csect line-number counts.
584 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
585 entries in each output section.
586 (xcoff_link_input_bfd): Get the number of line numbers from
587 the bfd's lineno_counts field, rather than recalculating it
588 from scratch. Fix the range check when updating C_BINCL and
589 C_EINCL symbols.
590 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
591 here. Don't expect csects to have line-number counts.
592
e450936a
RS
5932009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
594
595 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
596 * libcoff.h: Regenerate.
597 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
598 "skip" logic from xcoff_link_input_bfd.
599 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
600 objects in a dynamic link, rather than checking whether csectpp
601 is null. Always allocate debug_index for other objects,
602 and always go through the loop. Update the type of debug_index
603 after the change above. Read the auxillary csect information
604 and use xcoff_keep_symbol_p to decide whether a symbol should
605 be kept. Set its debug_index to -2 if not.
606 (xcoff_link_input_bfd): Update the type of debug_index after
607 the change above and always expect it to be nonnull. Use it to
608 test whether a symbol should be stripped, rather than making the
609 decision here. Postpone all symbol creation to the second pass.
610
47dfb2ca
RS
6112009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
612
613 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
614 creating a descriptor.
615 (xcoff_sweep): Don't mark toc_section unless it's needed.
616 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
617 when marking every bfd.
618 (xcoff_link_input_bfd): Skip all TOC anchors.
619 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
620 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
621 to -1; call xcoff_find_tc0 instead.
622
4cc02a02
RS
6232009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
624
625 * libcoff-in.h (xcoff_section_tdata): Update commentary.
626 * libcoff.h: Regenerate.
627 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
628 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
629 the previous symbol's csect. Treat last_symndx as an inclusive value
630 and simplify its handling.
631 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
632 symbols with the right csect. Don't mark rsec when processing
d1fa68d3 633 relocations against undefined or absolute sections.
4cc02a02
RS
634 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
635 of bfd_und_section_ptr.
636 (xcoff_link_input_bfd): Likewise.
637
858ef0ce
RS
6382009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
639
640 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
641 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
642 flag is set. Assert that all undefined symbols are either
643 imported or defined by a dynamic object.
644 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
645 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
646 handling to all relocations. Only set XCOFF_CALLED for function
647 symbols.
648 (xcoff_find_function): New function, split out from...
649 (bfd_xcoff_export_symbol) ...here.
650 (xcoff_set_import_path): New function, split out from...
651 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
652 meaning of XCOFF_CALLED.
653 (xcoff_mark_symbol): If we mark an undefined and unimported
654 symbol, find some way of defining it. If the symbol is a function
655 descriptor, fill in its definition automatically. If the symbol
656 is a function, mark its descriptor and allocate room for global
657 linkage code. Otherwise mark the symbol as implicitly imported.
658 Move the code for creating function descriptors from...
d1fa68d3 659 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
858ef0ce
RS
660 check for symbols that were implicitly defined.
661 (xcoff_mark): Don't count any dynamic relocations against
662 function symbols.
663 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
664 in the xcoff link info.
665 (xcoff_link_input_bfd): Remove handling of undefined and
666 unexported symbols.
667
12b2cce9
RS
6682009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
669
670 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
671 if the target is absolute. Fix comment typo.
672 (xcoff_ppc_relocate_section): Remove FIXME.
673 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
674 if the target is absolute.
675
0e3212ad
RS
6762009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
677
678 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
679 R_POS and R_NEG relocations against absolute symbols to the
680 .loader section.
681
d19d97e9
RS
6822009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
683
684 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
685 to 2 for bfd_mach_ppc_620.
686
e5231592
RS
6872009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
688
689 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
690 * configure.in: Likewise.
691 * configure: Regenerate.
692
3516e984
L
6932009-03-13 H.J. Lu <hongjiu.lu@intel.com>
694
695 PR binutils/9945
696 * elf.c (assign_section_numbers): Generate symbol table if there
697 is any relocation in output.
698 (_bfd_elf_compute_section_file_positions): Likewise.
699
ce98a316
NC
7002009-03-13 Nick Clifton <nickc@redhat.com>
701
702 PR 9934
703 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
704 * elflink.c (elf_link_read_relocs_from_section): Use
705 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
706 relocs but no symbol table.
707 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
708
c4fb387b
L
7092009-03-12 H.J. Lu <hongjiu.lu@intel.com>
710
711 PR ld/9938
712 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
713 to check ___tls_get_addr.
714
715 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
716 strncmp to check __tls_get_addr.
717
53638231
AS
7182009-03-12 Andrew Stubbs <ams@codesourcery.com>
719
720 * dwarf2.c (read_section): Always check the offset, even when the
721 section has been read before.
722
09e8c3bf
L
7232009-03-11 H.J. Lu <hongjiu.lu@intel.com>
724
725 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
726 comments.
727
36e4dce6
CD
7282009-03-11 Chris Demetriou <cgd@google.com>
729
730 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
731 * bfd-in2.h: Regenerate.
732 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
733 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
734 mode.
735 (bsd_write_armap): Likewise.
736 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
737 flag is set, do nothing.
738 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
739 for timestamp.
740
9b175a76
UW
7412009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
742
743 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
744 used to update stack pointer.
745
f501de17
DA
7462009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
747
748 PR binutils/9921
749 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
750 for unknown symbols in absolute section.
751
d11fd249
NC
7522009-03-06 Nick Clifton <nickc@redhat.com>
753
754 * po/es.po: Updated Spanish translation.
755
8cd931b7
CL
7562009-03-05 Christophe Lyon <christophe.lyon@st.com>
757
758 * elf32-arm.c (group_sections): Take next section size into
759 account before accepting to group it.
760
5fa9e92f
CL
7612009-03-05 Christophe Lyon <christophe.lyon@st.com>
762
763 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
764 PLT entries.
765 (elf32_arm_final_link_relocate): Likewise.
766
b92997d6
AM
7672009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
768
769 PR 9923
770 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
771
727fc41e
AM
7722009-03-04 Alan Modra <amodra@bigpond.net.au>
773
774 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
775 * section.c (struct bfd_section): Add has_tls_get_addr_call.
776 (BFD_FAKE_SECTION): Init new flag.
777 * ecoff.c (bfd_debug_section): Likewise.
778 * bfd-in2.h: Regenerate.
779 * libbfd.h: Regenerate.
780 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
781 (ppc_elf_reloc_type_lookup): Handle new relocs.
782 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
783 without marker relocs.
784 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
785 if section has no old-style calls.
786 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
787 Don't try to optimize new-style __tls_get_addr call when handling
788 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
789 relocs.
790 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
791 (ppc64_elf_reloc_type_lookup): Handle new relocs.
792 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
793 without marker relocs.
794 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
795 if section has no old-style calls. Set toc_ref for new relocs as
796 appropriate.
797 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
798 Don't try to optimize new-style __tls_get_addr call when handling
799 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
800 relocs.
801
51dec227
AM
8022009-03-04 Alan Modra <amodra@bigpond.net.au>
803
804 PR 6768
805 * configure.in: Test for ld --as-needed support. Link shared
806 libbfd against libm.
807 * configure: Regenerate.
808
a1f7ca36
AM
8092009-03-03 Alan Modra <amodra@bigpond.net.au>
810
811 * Makefile.am: Run "make dep-am".
812 * Makefile.in: Regenerate.
813
c3b7224a
NC
8142009-03-02 Qinwei <qinwei@sunnorth.com.cn>
815
816 * elf32-score7.c: New file.
817 * elf32-score.h: New file.
818 * elf32-score.c: Add code to support score 7. Set score7 as the
819 default.
820 * cpu-score.c: Add score7 architecure.
821 (compatibile): New function.
822 * Makefile.am: Add rules for building elf32-score7 object.
823 * Makefile.in: Regenerate.
824 * configure.in: Add elf32-score7 object to score vectors.
825 * configure: Regenerate.
826 * reloc.c: Add score7 relocs.
827 * archures.c: Add score3 and score7 machine numbers.
828 * bfd-in2.h: Regenerate.
829 * libbfd.h: Regenerate.
830
58e24671
RW
8312009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
832
833 * configure: Regenerate.
834
5887528b
DA
8352009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
836
d45b7d74
DA
837 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
838 (elf32_hppa_check_relocs): Use it.
839
5887528b
DA
840 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
841 elf64-hppa.c.
842 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
843 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
844 (elf_hppa_is_dynamic_loader_symbol): Likewise.
845 (elf_hppa_record_segment_addrs): Likewise.
846 (elf_hppa_final_link): Likewise.
847 (elf_hppa_relocate_insn): Likewise.
848 (elf_hppa_final_link_relocate): Likewise.
849 (elf64_hppa_relocate_section): Likewise.
850 * elf64-hppa.c: Insert above.
851
a03bd320
DA
8522009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
853
854 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
855 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
856 (elf_hppa_relocate_section): Likewise.
857 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
858 from struct elf_link_hash_entry. Add count field.
859 (struct elf64_hppa_dyn_hash_table): Delete.
860 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
861 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
862 (hppa_elf_hash_entry, eh_name): Define.
863 (elf64_hppa_new_dyn_hash_entry): Delete.
864 (elf64_hppa_dyn_hash_lookup): Delete.
865 (elf64_hppa_dyn_hash_traverse): Delete.
866 (get_dyn_name): Delete.
867 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
868 of struct elf64_hppa_dyn_hash_entry *.
869 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
870 allocate_global_data_plt, allocate_global_data_stub,
871 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
872 Likewise.
873 (hppa64_link_hash_newfunc): New.
874 (elf64_hppa_hash_table_create): Rework.
875 (count_dyn_reloc): Likewise.
876 (hppa64_elf_local_refcounts): New.
877 (elf64_hppa_check_relocs): Rework using standard technique for recording
878 local DLT, PLT and OPD reference counts.
879 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
880 elf_link_hash_entry *.
881 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
882 allocate_global_data_plt, allocate_global_data_stub,
883 allocate_global_data_opd, allocate_dynrel_entries,
884 elf64_hppa_adjust_dynamic_symbol,
885 elf64_hppa_mark_milli_and_exported_functions): Likewise.
886 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
887 Use hppa_link_hash_table. Rework.
888 (elf64_hppa_link_output_symbol_hook): Rework.
889 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
890 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
891 elf64_hppa_finish_dynamic_sections): Likewise.
892
ebe24dd4
CL
8932009-02-26 Christophe Lyon <christophe.lyon@st.com>
894
895 * elf32-arm.c (stub_reloc_type): Removed.
896 (insn_sequence): Renamed reloc_type field to r_type.
897 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
898 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
899 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
900 (elf32_arm_stub_type): Add new enum entries for the new stubs.
901 (arm_stub_is_thumb): Catch new stubs.
902 (arm_type_of_stub): Handle new stubs.
903 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
904 (bfd_elf32_arm_process_before_allocation): Remove useless
905 condition.
906
b9d678e0
L
9072009-02-25 H.J. Lu <hongjiu.lu@intel.com>
908
909 * elf.c (elf_find_function): Use is_function_type to check
910 function symbol.
911
56fb3749
SA
9122009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
913
914 * xtensa-modules.c: Revert to previous version 1.11 due
915 to inadvertant commit.
916
658ff993
SA
9172009-02-24 Sterling Augustine <sterling@tensilica.com>
918
919 * elf32-xtensa.c (text_action_add): Separate test for action
920 type. Break if saved action is ta_widen_insn at same offset.
921
cf3eccff
DJ
9222009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
923
924 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
925 to elf32_arm_stub_long_branch_any_arm_pic.
926 (elf32_arm_stub_long_branch_any_thumb_pic): New.
927 (enum elf32_arm_stub_type, arm_type_of_stub)
928 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
929 separately.
930
07d72278
DJ
9312009-02-24 Joseph Myers <joseph@codesourcery.com>
932
933 * elf32-arm.c (PREV_SEC): Update comment.
934 (group_sections): Rename argument to stubs_always_after_branch.
935 Reverse the list and place stubs at the end of input sections.
936 Undefine NEXT_SEC.
937 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
938
4e31c731
DJ
9392009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
940
941 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
942 Fix formatting.
943 (arm_size_one_stub): Remove unnecessary break.
944 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
945
9462009-02-23 Christophe Lyon <christophe.lyon@st.com>
461a49ca
DJ
947
948 * elf32-arm.c (stub_insn_type): New type.
949 (stub_reloc_type): Likewise.
950 (insn_sequence): Likewise.
951 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
952 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
953 (elf32_arm_stub_long_branch_thumb_only): Likewise.
954 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
955 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
956 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
957 (elf32_arm_stub_hash_entry): Add new helper fields.
958 (stub_hash_newfunc): Initialize these new fields.
959 (arm_build_one_stub): Encode Arm and Thumb instructions separately
960 to take endianness into account.
961 (arm_size_one_stub): Compute size of stubs using insn_sequence.
962 (arm_map_one_stub): Code is now more generic, thanks to
963 insn_sequence.
964
c2b4a39d
CL
9652009-02-23 Christophe Lyon <christophe.lyon@st.com>
966
967 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
968 code.
969 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
970 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
971 BLX is not available. Fix typo in warning message. Add comments
972 and improve formatting.
973 (arm_build_one_stub): Adjust to new
974 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
975 (arm_map_one_stub): Likewise.
976
0c376465 9772009-02-23 Tristan Gingold <gingold@adacore.com>
a60a89d6
TG
978 Eric Botcazou <ebotcazou@adacore.com>
979 Douglas B Rupp <rupp@gnat.com>
0c376465
TG
980
981 * vms.h: Update copyright year, fix comments, reorder declarations.
982 (_bfd_save_vms_section): Remove the prototype.
983 (EGPS_S_V_NO_SHIFT): New constant.
984 (bfd_vms_set_section_flags): New prototype.
985 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
986 constants.
987 (EGSY_S_W_FLAGS): Ditto.
988 (EGSY_S_V_QUAD_VAL): Ditto.
989 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
990 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
991 EGST_S_B_NAMLNG): Ditto.
992 (ESRF_S_B_NAMLNG): Ditto.
993 (ETIR_S_C_HEADER_SIZE): Ditto.
994 (EGPS_S_V_ALLOC_64BIT): Ditto.
995 (DST_S_C_EPILOG): Ditto.
996 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
997 (DST_S_C_SRC_INCRLNUM_B): Ditto.
998 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
999 (DST_S_L_PCLINE_UNSLONG): Ditto.
1000 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
1001 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
1002 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
1003 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
1004 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
1005 (DST_S_B_SRC_UNSBYTE): Ditto.
1006 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
1007 Add prototypes.
1008 (vms_section, vms_reloc): Remove types.
1009 (hdr_struc): Replaced by ...
1010 (hdr_struct): ... new type.
1011 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
1012 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
1013 (EMH_DATE_LENGTH): Ditto.
1014 (eom_struc): Replaced by ...
1015 (eom_struct): ... new type.
1016 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
1017 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
1018 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
1019 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
1020 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
1021 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
1022 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
1023 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
1024 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
1025 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
1026 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
1027 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
1028 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
1029 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
1030 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
1031 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
1032 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
1033 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
1034 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
1035 (enum file_type_enum): New type.
1036 (struct location_struct): Removed.
1037 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
1038 (struct funcinfo, struct module): Ditto.
1039 (struct vms_private_data_struct): Update fields.
1040 (struct vms_section_data_struct): New type.
1041
1042 * vms.c: Update copyright year, fix comments,
1043 Fix includes for DECC, add prototypes.
1044 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
1045 some initializers.
1046 Use flavour to set is_vax, location_stack is removed.
1047 (struct pair): Declare.
1048 (fill_section_ptr): Initialize variables at declaration.
1049 Add guard to set SECTION_SYM flag, handlde und section.
1050 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
1051 (_bfd_vms_slurp_object_records): New function, replaces previous
1052 vms_object_p.
1053 (vms_slurp_module): New function.
1054 (vms_slurp_image): Ditto.
1055 (vms_object_p): Complete rewrite.
1056 (vms_mkobject): Use is_vax field to slect architecture.
1057 (free_reloc_stream): New function.
1058 (vms_convert_to_var): Ditto.
1059 (vms_convert_to_var_1): Ditto.
1060 (vms_convert_to_var_unix_filename): Ditto.
1061 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
1062 VAR format on VMS.
1063 (vms_new_section_hook): Set alignment to 0, allocate private data.
1064 (vms_get_section_contents): Load content.
1065 (vms_get_symbol_info): Handle undefined section.
1066 (vms_find_nearest_line): Handle.
1067 (alloc_reloc_stream): New function.
1068 (vms_slurp_reloc_table): Ditto.
1069 (vms_get_reloc_upper_bound): Make it real.
1070 (vms_canonicalize_reloc): Do the real work.
1071 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
1072 ALPHA_R_BOH.
1073 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
1074 (vms_set_arch_mach): Check arch.
1075 (vms_set_section_contents): Copy the content after allocation.
1076 (vms_alpha_vec): Update object flags.
1077
1078 * vms-tir.c: Update copyright year, fix comments,
1079 add prototypes for new functions.
1080 (dst_define_location): New function.
1081 (dst_restore_location): New function.
1082 (dst_retrieve_location): New function.
1083 (dst_check_allocation): New function.
1084 (image_dump): Call dst_check_allocation.
1085 (image_write_b): Ditto.
1086 (image_write_w): Ditto.
1087 (image_write_l): Ditto.
1088 (image_write_q): Ditto.
1089 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
1090 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
1091 CTL_STKDL.
1092 Call error handler instead of abort if name is not known.
1093 (etir_sta): Add quarter_relocs argument and set it.
1094 Fix cast.
1095 (etir_sto): Ditto.
1096 (etir_opr): Ditto, return FALSE in case of error.
1097 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
1098 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
1099 (etir_stc): Add quarter_relocs argument and set it, fix cast.
1100 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
1101 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
1102 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
1103 Return FALSE in case of error.
1104 (tir_sta): Change sign of psect.
1105 (tir_ctl): Ditto.
1106 (tir_cmd): Fix cast. Makes tir_table static const.
1107 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
1108 add argument to explain.
1109 (analyze_etir): Initialize maxptr, add quarter_relocs
1110 declaration, move some declarations into inner scopes.
1111 Handle quarter_relocs and STO_IMM.
1112 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
1113 (_bfd_vms_slurp_relocs): New function.
1114 (_bfd_vms_decode_relocs): New function.
1115 (sto_imm): Rewritten.
1116 (start_first_etbt_record): New function.
1117 (start_another_etbt_record): Ditto.
1118 (etir_output_check): Ditto.
1119 (defer_reloc_p): Ditto.
1120 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
1121 a for-loop. Correctly deals with contents, deals with .vmsdebug,
1122 rewritte relocations handling.
1123 (_bfd_vms_write_tbt): Removed.
1124 (_bfd_vms_write_dbg): Ditto.
1125
1126 * vms-misc.c: Update copyright year, Fix comments.
1127 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
1128 (maybe_adjust_record_pointer_for_object): New function.
1129 (_bfd_vms_get_first_record): New function, replaces ...
1130 (_bfd_vms_get_record): .. removed.
1131 (_bfd_vms_get_object_record): New function.
1132 (_bfd_vms_get_object_record): New function.
1133 (vms_get_remaining_object_record): New function, replaces ...
1134 (_bfd_vms_get_next_record): ... removed.
1135 (add_new_contents): Removed.
1136 (_bfd_save_vms_section): Removed.
1137 (_bfd_get_vms_section): Removed.
1138 (_bfd_vms_output_flush): Write in VAR format.
1139 (new_symbol): Don't make UND section.
1140
1141 * vms-hdr.c: Update copyright year, update list of record handled.
1142 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
1143 (_bfd_vms_write_hdr): Strip vms and unix patches,
1144 add comments, truncate module name at 31 characters,
1145 use constants instead of hard-coded value,
1146 write BFD version instead of a fixed string.
1147 (_bfd_vms_slurp_ihd): New function.
1148 (_bfd_vms_slurp_isd): Ditto.
1149 (_bfd_vms_slurp_ihs): Ditto.
1150 (new_module): Ditto.
1151 (parse_module): Ditto
1152 (build_module_list): Ditto.
1153 (module_find_nearest_line): Ditto.
1154 (_bfd_vms_find_nearest_dst_line): Ditto.
1155 (vms_slurp_debug): Ditto.
1156 (_bfd_vms_slurp_dbg): Ditto.
1157 (_bfd_vms_slurp_tbt): Ditto.
1158 (_bfd_vms_write_dbg): Ditto.
1159 (_bfd_vms_write_tbt): Ditto.
1160
1161 * vms-gsd.c: Update copyright year, update list of records handled.
1162 (EVAX_LITERALS_NAME): New macro.
1163 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
1164 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
1165 (register_universal_symbol): New function and prototype.
1166 (_bfd_vms_slurp_gsd): Fix indentations and casts,
1167 improve debug messages,
1168 use constants instead of hard-coded value,
1169 fix missing endianness conversion,
1170 handle global symbol (SYMG).
1171 (bfd_vms_set_section_flags): New function.
1172 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
1173 handle section literals,
1174 fix indentation,
1175 handle section bfd and vms flags,
1176 don't output LIB$INITIALIZE symbol,
1177 fix handling of weak symbols,
1178 fix evax vs vax procedure descriptor,
1179 handle absolute symbols.
1180
1181 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
1182 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
1183
1184 * makefile.vms (DEFS): Fix flags for VMS.
1185
1186 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
1187
1188 * bfd-in2.h: Regenerated.
1189 * libbfd.h: Regenerated.
1190
47149254
CC
11912009-02-20 Cary Coutant <ccoutant@google.com>
1192
1193 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
1194 in struct stat.
1195
6b1cecf3
DK
11962009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1197
1198 PR gas/7059
1199 * coffcode.h (coff_write_object_contents): Don't let the string
1200 table offset overflow the s_name field when using long section names.
1201
88183869
DK
12022009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1203
1204 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
1205 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
1206 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1207 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
1208 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
1209 (bfd_pmac_xcoff_backend_data): Likewise.
1210 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
1211 (bfd_xcoff_aix5_backend_data): Likewise.
1212 (xcoff64_write_object_contents): Delete unused long_section_names
1213 local variable.
1214 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
1215 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
1216 struct non-const.
1217 * coffcode.h (documentation): Update to describe long section names.
1218 (COFFLONGSECTIONCATHELPER): New helper macro.
1219 (BLANKOR1TOODD): Likewise.
1220 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
1221 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
1222 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
1223 (bfd_coff_set_long_section_names_allowed): New function.
1224 (bfd_coff_set_long_section_names_disallowed): Likewise.
1225 (struct bfd_coff_backend_data): Add new backend hook function
1226 pointer _bfd_coff_set_long_section_names.
1227 (bfd_coff_set_long_section_names): New backend hook.
1228 (coff_write_object_contents): Only generate long section names if
1229 bfd_coff_long_section_names() indicates they are currently enabled.
1230 (bfd_coff_std_swap_table): Make non-const, and initialise long
1231 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1232 (ticoff0_swap_table): Likewise to both.
1233 (ticoff1_swap_table): Again, likewise to both.
1234 * coffgen.c (make_a_section_from_file): Allow long section names
1235 as inputs even if not currently allowed for outputs.
1236 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
1237 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
1238 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1239 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1240 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1241 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1242 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1243 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1244 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1245 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1246 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
1247 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
1248 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
1249 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
1250 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
1251 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
1252 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1253 * libcoff-in.h: Update copyright year to cause updated copyright
1254 year in generated libcoff.h, and fix typo.
1255 * libcoff.h: Regenerated.
1256 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
1257 (_bfd_ecoff_no_long_sections): Add prototype.
1258 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
1259 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
1260 defined by an including .c file.
1261 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
1262 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1263 (ticoff1_swap_table): Likewise to both.
1264
90d8a22c
CL
12652009-02-18 Christophe Lyon <christophe.lyon@st.com>
1266
1267 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
1268 stub. Catch default case error.
1269 (arm_map_one_stub): Add missing Thumb mapping symbol.
1270
12123067
NC
12712009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
1272
1273 PR 9841
1274 * elf32-avr.c: Handle case where no local symbos exist correctly.
1275
fea2b4d6
CL
12762009-02-16 Christophe Lyon <christophe.lyon@st.com>
1277
1278 bfd/
1279 * elf32-arm.c (arm_long_branch_stub,
1280 arm_thumb_v4t_long_branch_stub,
1281 arm_thumb_thumb_long_branch_stub,
1282 arm_thumb_arm_v4t_long_branch_stub,
1283 arm_thumb_arm_v4t_short_branch_stub,
1284 arm_pic_long_branch_stub):
1285 Renamed to elf32_arm_stub_long_branch_any_any,
1286 elf32_arm_stub_long_branch_v4t_arm_thumb,
1287 elf32_arm_stub_long_branch_thumb_only,
1288 elf32_arm_stub_long_branch_v4t_thumb_arm,
1289 elf32_arm_stub_short_branch_v4t_thumb_arm,
1290 elf32_arm_stub_long_branch_any_any_pic.
1291 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
1292 arm_thumb_thumb_stub_long_branch,
1293 arm_thumb_arm_v4t_stub_long_branch,
1294 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
1295 Renamed to arm_stub_long_branch_any_any,
1296 arm_stub_long_branch_v4t_arm_thumb,
1297 arm_stub_long_branch_thumb_only,
1298 arm_stub_long_branch_v4t_thumb_arm,
1299 arm_stub_short_branch_v4t_thumb_arm,
1300 arm_stub_long_branch_any_any_pic.
1301
13e0a874
DA
13022009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1303
1304 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
1305 in branch offset check.
1306
3a71aa26
AM
13072009-02-15 Alan Modra <amodra@bigpond.net.au>
1308
1309 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
1310 add toc.symndx and toc.add.
1311 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
1312 Set up toc.add.
1313 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
1314 callers.
1315 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
1316 (branch_reloc_hash_match): New function, extracted from..
1317 (ppc64_elf_tls_optimize): ..here.
1318 (ppc64_elf_relocate_section): Properly set addends when optimizing
1319 tls sequences. Avoid unnecessary reading and writing of insns.
1320 Only redo reloc when symbol changed. Bypass symbol checks when
1321 using tlsld_got.
1322 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
1323 (branch_reloc_hash_match): New function, extracted from..
1324 (ppc_elf_tls_optimize): ..here.
1325 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
1326 Don't clear addend on zapped __tls_get_addr reloc.
1327
2c2b4ed4
NC
13282009-02-12 Nick Clifton <nickc@redhat.com>
1329
1330 PR 9827
1331 * elflink.c (bfd_elf_final_link): When counting the relocations,
1332 if the header size has not been set yet then assume that it will
1333 match the output section's reloc type.
1334
453f5985
NS
13352009-02-12 Nathan Sidwell <nathan@codesourcery.com>
1336
1337 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
1338 relocatable link.
1339
3209bffa
AM
13402009-02-09 Alan Modra <amodra@bigpond.net.au>
1341
1342 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
1343 (find_function): Likewise.
1344 (pasted_function): Don't error if no prior function found.
1345 (discover_functions): Revert 2008-12-10 change. Extend first
1346 function range to start of section.
1347
813c8a3c
DA
13482009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1349
1350 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
1351 functions to C90.
1352 * elf64-hppa.h: Likewise.
1353
2d0f9ad9
JM
13542009-02-06 Joseph Myers <joseph@codesourcery.com>
1355
1356 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
1357 .sbss handling.
1358
50e00962
AM
13592009-02-04 Alan Modra <amodra@bigpond.net.au>
1360
1361 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
1362 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
1363
52b6b6b9
JM
13642009-02-03 Sandip Matte <sandip@rmicorp.com>
1365
1366 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
1367 * archures.c (bfd_mach_mips_xlr): Define.
1368 * bfd-in2.h: Regenerate.
1369 * cpu-mips.c (I_xlr): Define.
1370 (arch_info_struct): Add XLR entry.
1371 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
1372 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
1373 (mips_mach_extensions): Add XLR entry.
1374
654c3c9f
EW
13752009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
1376
1377 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
1378
31dd3154
JM
13792009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1380
1381 * configure.in: AC_SUBST pdfdir.
d1fa68d3 1382 * Makefile.am: Add install-pdf, install-pdf-am
31dd3154
JM
1383 and install-pdf-recursive targets. Define pdfdir.
1384 * doc/Makefile.am: Define pdf__strip_dir. Add
1385 install-pdf and install-pdf-am targets.
d1fa68d3 1386 * po/Make-in: Add install-pdf target.
31dd3154
JM
1387 * configure: Regenerate.
1388 * Makefile.in: Regenerate
1389 * doc/Makefile.in: Regenerate.
1390
cf869cce
NC
13912009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1392
1393 * bfd-in2.h: Regenerate.
1394 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
1395 fields from n_entries to n_slots where appropriate, update comments.
1396 (HOWTO): Add TLS relocations.
1397 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
1398 (enum elf_m68k_got_offset_size): New enum.
1399 (struct elf_m68k_got_entry.type): Move field to ...
1400 (struct elf_m68k_got_entry_key): ... here. Update all uses.
1401 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
1402 functions.
1403 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
1404 functions.
1405 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
1406 fields into n_entries array. Update comments.
1407 (elf_m68k_init_got): Simplify, update all uses.
1408 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
1409 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
1410 GOT entries; update name, update all uses.
1411 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
1412 (elf_m68k_get_got_entry): Update.
1413 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
1414 simplify.
1415 (elf_m68k_remove_got_entry_type): Simplify.
1416 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
1417 (elf_m68k_can_merge_gots): Update.
1418 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
1419 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
1420 GOT entries, simplify.
1421 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
1422 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
1423 field, remove obsoleted local_n_entries field.
1424 (elf_m68k_partition_multi_got_2): New static function.
1425 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
1426 update.
1427 (elf_m68k_remove_got_entry_type): Update.
1428 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
d1fa68d3 1429 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
cf869cce
NC
1430 update of sgot->size and srelgot->size.
1431 (elf_m68k_gc_sweep_hook): Update.
1432 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1433 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
1434 TLS relocations.
1435 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
1436 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
1437
c1a0a41f
DD
14382009-02-02 DJ Delorie <dj@redhat.com>
1439
1440 * elf32-mep.c (config_names): Regenerate configuration.
1441
72a80a16
AM
14422009-02-02 Alan Modra <amodra@bigpond.net.au>
1443
1444 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
1445 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
1446 * elf.c (bfd_elf_get_str_section): Make static.
1447 (bfd_elf_find_section): Delete.
1448 * libbfd.h: Regenerate.
1449
273f4430
JK
14502009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
1453 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
1454
010e5ae2
AM
14552009-01-31 Alan Modra <amodra@bigpond.net.au>
1456
1457 * elflink.c (on_needed_list): New function.
1458 (elf_link_add_object_symbols): Link in --as-needed libs if they
1459 satisfy undefined symbols in other libs.
1460
33a7ffc2
JM
14612009-01-30 Julian Brown <julian@codesourcery.com>
1462
1463 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
1464 EXEC_P or DYNAMIC flags, and skip sections which are being linked
1465 with --just-symbols (-R).
1466
13d72a14
AN
14672009-01-29 Adam Nemet <anemet@caviumnetworks.com>
1468
1469 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
1470 high_pc in order to properly sign-extend VMAs.
1471
d334575b 14722009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
d1fa68d3
AS
1473 Mark Shinwell <shinwell@codesourcery.com>
1474 Catherine Moore <clm@codesourcery.com>
d334575b
JM
1475
1476 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
1477
528aeb62
CM
14782009-01-28 Catherine Moore <clm@codesourcery.com>
1479
1480 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
1481 SEC_LOAD for dynamic relocation sections.
1482
f6f05983
HPN
14832009-01-27 Hans-Peter Nilsson <hp@axis.com>
1484
1485 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
1486 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
1487 the size of local TLS data.
1488
27cc28f9
AS
14892009-01-27 Andreas Schwab <schwab@suse.de>
1490
1491 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
1492 architectures in the archive.
1493
b3bf42d8
HPN
14942009-01-27 Hans-Peter Nilsson <hp@axis.com>
1495
f551b6f0
HPN
1496 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
1497 <R_CRIS_32_DTPREL>: Correct relocation value.
1498
b3bf42d8
HPN
1499 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
1500 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
1501 symbols with non-default visibility.
1502
9bc4e62b
NS
15032009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1504
1505 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
1506 describing the trampolines.
1507 (ppc_elf_relocate_section): Update relocs to describe the
1508 trampolines.
1509
aeaf6540
DA
15102009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1511
1512 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
1513 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
1514 and R_PARISC_PCREL12F relocations.
1515
1e8fa21e
AM
15162009-01-24 Alan Modra <amodra@bigpond.net.au>
1517
1518 PR 6022
1519 * elflink.c (find_version_for_sym): New function split out from,
1520 but without export_dynamic test, ..
1521 (_bfd_elf_link_assign_sym_version): ..here.
1522 (_bfd_elf_export_symbol): Use it.
1523
28caa186
AM
15242009-01-23 Alan Modra <amodra@bigpond.net.au>
1525
1526 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
1527 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
1528 * elflink.c: ..here, somewhat modified.
1529 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
1530 _bfd_elf_link_find_version_dependencies,
1531 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
1532 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
1533 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
1534 declare..
1535 * elflink.c: ..and make static here.
1536 (_bfd_elf_link_find_version_dependencies): Adjust for removal
1537 of output_bfd from struct elf_find_verdep_info.
1538 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
1539 struct elf_info_failed.
1540 (bfd_elf_size_dynamic_sections): Adjust.
1541
be04437d
AM
15422009-01-22 Alan Modra <amodra@bigpond.net.au>
1543
1544 PR 6832
1545 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
1546 after comp_unit_find_line call.
1547
58f9615c
NC
15482009-01-21 Nick Clifton <nickc@redhat.com>
1549
1550 PR 9769
1551 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
1552 tm_gmtoff field in struct tm.
1553
fb266b8b
AM
15542009-01-21 Alan Modra <amodra@bigpond.net.au>
1555
1556 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
1557 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
1558 sections in soft-icache lines unless non_ia_text. Don't add
1559 rodata if doing so would exceed line size.
1560
451ffe63
HPN
15612009-01-19 Hans-Peter Nilsson <hp@axis.com>
1562
1563 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
1564 types than bfd_link_hash_indirect, before early return, call
1565 _bfd_elf_link_hash_copy_indirect.
1566
5aa6ff7c
AS
15672009-01-19 Andrew Stubbs <ams@codesourcery.com>
1568
1569 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
1570 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
1571 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
1572 (elf_backend_obj_attrs_order): New define.
1573 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
1574 (elfNN_bed): Add elf_backend_obj_attrs_order.
1575
3483fe2e
AS
15762009-01-19 Andrew Stubbs <ams@codesourcery.com>
1577
1578 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
1579 (obj_attr_size): Likewise.
1580 (write_obj_attribute): Likewise.
1581 (_bfd_elf_copy_obj_attributes): Likewise.
1582 (_bfd_elf_parse_attributes): Likewise.
1583 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
1584 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
1585 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
1586 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
1587 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
1588 with macros.
1589
2d0bb761
AS
15902009-01-19 Andrew Stubbs <ams@codesourcery.com>
1591
1592 * elf-attrs.c (is_default_attr): Support defaultless attributes.
1593 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
1594 (bfd_elf_add_obj_attr_string): Likewise.
1595 (bfd_elf_add_obj_attr_int_string): Likewise.
1596 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
1597 * elf-bfd.h (struct obj_attribute): Document new flag bit.
1598 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
1599 Tag_nodefaults has no default value.
1600 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
1601 comment to reflect the new state.
1602
a77e83b7
AM
16032009-01-19 Alan Modra <amodra@bigpond.net.au>
1604
1605 PR 9695
1606 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
1607 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
1608 (adjust_z_magix): Delete dead code handling QMAGIC.
1609
f6d29e26
KT
16102009-01-16 Kai Tietz <kai.tietz@onevision.com>
1611
1612 * coffcode.h (styp_to_sec_flags): Correct interpretation of
1613 IMAGE_SCN_MEM_DISCARDABLE.
1614
29670fb9
AM
16152009-01-16 Alan Modra <amodra@bigpond.net.au>
1616
1617 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
1618 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
1619 * configure.in (commonbfdlib): Delete.
1620 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
1621 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
1622 is available, not just for linux.
1623 * po/SRC-POTFILES.in: Regenerate.
1624 * Makefile.in: Regenerate.
1625 * configure: Regenerate.
1626
91e22acd
AS
16272009-01-15 Andrew Stubbs <ams@codesourcery.com>
1628 Julian Brown <julian@codesourcery.com>
1629
1630 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
1631 ARM attributes in ABI 2.07.
1632 * elf32-arm.c (get_secondary_compatible_arch): New function.
1633 (set_secondary_compatible_arch): New function.
1634 (tag_cpu_arch_combine): New function.
1635 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
1636 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
1637 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
1638 make it fit with order_01243.
1639 Add support for Tag_also_compatible_with,
1640 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
1641 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
1642 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
1643 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
1644 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
1645 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
1646 Rework the way unknown attributes are handled.
1647 Defer errors until all attributes have been processed.
1648
7b86a9fa
AS
16492009-01-15 Andrew Stubbs <ams@codesourcery.com>
1650
1651 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
1652 bfd_elf_add_obj_attr_int_string.
1653 Read Tag_compatibility from its new location in the attribute array,
1654 rather than the attribute list.
1655 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
1656 bfd_elf_add_obj_attr_int_string.
1657 (_bfd_elf_parse_attributes): Likewise.
1658 (_bfd_elf_merge_object_attributes): There's now only one
1659 Tag_compatibility, and it's in the array, not the list.
1660 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
1661 Tag_compatibility.
1662 (bfd_elf_add_obj_attr_compat): Rename to
1663 bfd_elf_add_obj_attr_int_string.
1664 (bfd_elf_add_proc_attr_compat): Rename to
1665 bfd_elf_add_proc_attr_int_string.
1666 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
1667 Tag_compatibility.
1668
01e1a5bc
NC
16692009-01-15 Douglas B Rupp <rupp@gnat.com>
1670
1671 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
1672 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
1673 (vmsutil.lo): Add dependency rule.
1674 * Makefile.in: Regenerate.
1675 * config.bfd (ia64*-*-*vms*): Add case.
1676 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
1677 * configure: Regenerate.
1678 * vmsutil.c: New file.
1679 * vmsutil.h: New file.
1680 * elf-bfd.h (struct bfd_elf_special_section): Change type of
1681 attr to bfd_vma.
1682 * elfxx-ia64.c (elfNN_vms_post_process_headers,
1683 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
1684 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
1685 elfNN_vms_object_p): New functions
1686 * targets.c (bfd_elf64_ia64_vms_vec): New target.
1687
a33dafc3
L
16882009-01-14 H.J. Lu <hongjiu.lu@intel.com>
1689
1690 PR ld/9727
1691 * elflink.c (elf_gc_sweep): Exclude the group section if the
1692 first member of the section group is excluded.
1693
13c0e967
AM
16942009-01-14 Alan Modra <amodra@bigpond.net.au>
1695
1696 PR 9735
1697 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
1698 saved filename, use bfd_alloc rather than bfd_malloc for it.
1699
460e679b
AM
17002009-01-13 Alan Modra <amodra@bigpond.net.au>
1701
1702 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
1703
25076afa
AM
17042009-01-13 Alan Modra <amodra@bigpond.net.au>
1705
1706 * elf32-spu.c (remove_cycles): Always set call->max_depth.
1707
37107878
AM
17082009-01-12 Alan Modra <amodra@bigpond.net.au>
1709
1710 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
1711
cd4a7468
AM
17122009-01-12 Alan Modra <amodra@bigpond.net.au>
1713
1714 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
1715 num_lines_log2.
1716 (struct got_entry): Add br_addr.
1717 (struct call_info): Add priority.
1718 (struct function_info): Add lr_store and sp_adjust.
1719 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
1720 (spu_elf_find_overlays): For soft-icache, mark any section within cache
1721 area as an overlay, and check that no other overlays exist. Look up
1722 icache overlay manager entry sym.
1723 (BRA_STUBS, BRA, BRASL): Define.
1724 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
1725 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
1726 in branch insn.
1727 (count_stub, build_stub): Support soft-icache.
1728 (build_spuear_stubs, process_stubs): Adjust build_stub call.
1729 (spu_elf_size_stubs): Size soft-icache stubs.
1730 (overlay_index): New function.
1731 (spu_elf_build_stubs): Make static. Support soft-icache.
1732 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
1733 (find_function_stack_adjust): Save lr store and stack adjust insn
1734 offsets.
1735 (maybe_insert_function): Adjust find_function_stack_adjust call.
1736 (mark_functions_via_relocs): Retrieve priority.
1737 (remove_cycles): Only warn about pruned arcs when stack_analysis.
1738 (sort_calls): Sort by priority first.
1739 (mark_overlay_section): Ignore .ovl.init.
1740 (sum_stack): Only print when stack_analysis.
1741 (print_one_overlay_section): New function, extracted from..
1742 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
1743 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
1744 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
1745 analysis. Call spu_elf_build_stubs.
1746 (spu_elf_relocate_section): For soft-icache encode overlay index
1747 into addresses.
1748 (spu_elf_output_symbol_hook): Support soft-icache.
1749 (spu_elf_modify_program_headers: Likewise.
37107878 1750
cd4a7468
AM
1751 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
1752 num_regions to num_lines. Add line_size and max_branch.
1753 (enum _ovly_flavour): Add ovly_soft_icache.
1754 (spu_elf_build_stubs): Delete.
1755
80c29487
JK
17562009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
1759 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
1760
1bc86aea
HPN
17612009-01-07 Hans-Peter Nilsson <hp@axis.com>
1762
1763 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1764 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
1765 the program, the known offset starts at the negative size of the
1766 TLS section.
1767 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
1768 Similar.
1769
3baa454d 17702009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
75606e85 1771
3baa454d 1772 * config.bfd: Add lm32-*-rtems*.
75606e85 1773
9dbe8890
L
17742009-01-03 H.J. Lu <hongjiu.lu@intel.com>
1775
1776 * coff-ppc.c: Add 2009 to Copyright.
1777 * elf32-cris.c: Likewise.
1778 * elflink.c: Likewise.
1779
0bdf8d40
HPN
17802009-01-03 Hans-Peter Nilsson <hp@axis.com>
1781
1782 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
1783 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
1784
54ac0771
L
17852009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1786
1787 PR ld/9679
1788 * elflink.c (elf_merge_st_other): New.
1789 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
1790 hide them if needed.
1791 (elf_link_add_object_symbols): Updated.
1792
d8880531
L
17932009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1794
1795 PR ld/9676
1796 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
1797 ref_dynamic and dynamic_def fields when setting def_regular
1798 to 1.
1799
b70b5c14
NC
18002009-01-02 Curtis Mackie <curtmackevo@gmail.com>
1801
1802 PR 9682
1803 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
1804 literal.
1805
d8880531 1806For older changes see ChangeLog-2008
56882138
AM
1807\f
1808Local Variables:
1809mode: change-log
1810left-margin: 8
1811fill-column: 74
1812version-control: never
1813End:
This page took 0.56591 seconds and 4 git commands to generate.