* elflink.c (_bfd_elf_merge_symbol): Also override the version
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
aed81c4e
MR
12012-08-28 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * elflink.c (_bfd_elf_merge_symbol): Also override the version
4 a dynamic symbol defaulted to if preempted with a hidden or
5 internal definition.
6
663b5850
WL
72012-08-28 Walter Lee <walt@tilera.com>
8
9 * elf32-tilepro.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
10 of header.
11 (tilepro_plt_entry_build): Account for new header size.
12 (tilepro_elf_finish_dynamic_sections): Ditto.
13 (tilepro_elf_plt_sym_val): Ditto.
14 * elfxx-tilegx.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
15 of header + tail.
16 (tilegx_elf_finish_dynamic_sections): Account for new padding.
17
e5b95258
WL
182012-08-27 Walter Lee <walt@tilera.com>
19
20 * reloc.c (Add BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
21 BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
22 BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
23 BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
24 BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
25 BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
26 BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
27 BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
28 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
29 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
30 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
31 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
32 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
33 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): new relocations.
34 * elfxx-tilegx.c (tilegx_elf_howto_table): Handle new relocations.
35 (tilegx_reloc_map): Ditto.
36 (reloc_to_create_func): Ditto.
37 (tilegx_elf_check_relocs): Ditto.
38 (tilegx_elf_gc_sweep_hook): Ditto.
39 (tilegx_elf_relocate_section): Ditto.
40 * libbfd.h: Regenerate.
41 * bfd-in2.h: Regenerate.
42
bca38921
MGD
432012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
44
45 * elf32-arm.c (v8): New array.
46 (tag_cpu_arch_combine): Add support for ARMv8 attributes.
47 (elf32_arm_merge_eabi_attributes): Likewise.
48 (VFP_VERSION_COUNT): New define.
49
06e7acd7
TT
502012-08-20 Tom Tromey <tromey@redhat.com>
51
52 * vms-lib.c (_bfd_vms_lib_get_module): Use bfd_zmalloc for
53 areltdata.
54 * opncls.c (_bfd_delete_bfd): Free arelt_data.
55 * mach-o.c (bfd_mach_o_fat_member_init): Use bfd_zmalloc for
56 areltdata.
57 * ecoff.c (_bfd_ecoff_slurp_armap): Use free for mapdata.
58 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Use bfd_zmalloc for
59 areltdata.
60 (xcoff_write_archive_contents_old): Likewise.
61 (xcoff_write_archive_contents_big): Likewise.
62 * archive64.c (bfd_elf64_archive_slurp_armap): Use free for
63 areltdata.
64 * archive.c (_bfd_generic_read_ar_hdr_mag): Use bfd_zmalloc and
65 free for areltdata.
66 (_bfd_get_elt_at_filepos): Likewise. Clear n_nfd->arelt_data on
67 failure.
68 (do_slurp_bsd_armap): Use bfd_zmalloc and free for areltdata.
69 (do_slurp_coff_armap): Likewise.
70 (_bfd_slurp_extended_name_table): Likewise.
71 (bfd_slurp_bsd_armap_f2): Likewise. Don't leak 'mapdata'.
72
eb80cb87
NC
732012-08-17 Nick Clifton <nickc@redhat.com>
74
75 * po/vi.po: Updated Vietnamese translation.
76
a8685210
AM
772012-08-17 Yuri Chornoivan <yurchor@ukr.net>
78
79 * elf-bfd.h, * elf32-ppc.c, * elf64-ia64-vms.c, * elfnn-ia64.c,
80 * elfxx-mips.c, * vms-alpha.c: Typo fixes.
81
ed668b34
AM
822012-08-17 Alan Modra <amodra@gmail.com>
83
84 PR binutils/14475:
85 * archive.c (bfd_ar_hdr_from_filesystem): Revert last change.
86 Instead malloc areltdata.
87
a3074307
TT
882012-08-16 Tom Tromey <tromey@redhat.com>
89
90 PR binutils/14475:
91 * archive.c (bfd_ar_hdr_from_filesystem): Allocate areltdata on
92 'member' BFD. Don't try to free 'ared'.
93
63a79b61
NC
942012-08-14 Nick Clifton <nickc@redhat.com>
95
96 * po/uk.po: Updated Ukranian translation.
97
af0edeb8
MR
982012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
99
100 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up
101 the options section in the output rather than input BFD to
102 decide if to add a DT_MIPS_OPTIONS tag.
103
9edaacb3
MR
1042012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
105
106 * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into
107 #ifdef BFD64.
108
a06ea964
NC
1092012-08-13 Ian Bolton <ian.bolton@arm.com>
110 Laurent Desnogues <laurent.desnogues@arm.com>
111 Jim MacArthur <jim.macarthur@arm.com>
112 Marcus Shawcroft <marcus.shawcroft@arm.com>
113 Nigel Stephens <nigel.stephens@arm.com>
114 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
115 Richard Earnshaw <rearnsha@arm.com>
116 Sofiane Naci <sofiane.naci@arm.com>
117 Tejas Belagod <tejas.belagod@arm.com>
118 Yufeng Zhang <yufeng.zhang@arm.com>
119
120 * Makefile.am: Add AArch64 files.
121 * Makefile.in: Regenerate.
122 * archures.c (bfd_aarch64_arch): New declaration.
123 (bfd_archures_list): Use bfd_archures_list.
124 * bfd-in.h (bfd_elf64_aarch64_init_maps): New declaration.
125 (bfd_aarch64_process_before_allocation): New declaration.
126 (bfd_elf64_aarch64_process_before_allocation): New declaration.
127 (bfd_elf64_aarch64_set_options): New declaration.
128 (bfd_elf64_aarch64_add_glue_sections_to_bfd): New declaration.
129 (BFD_AARCH64_SPECIAL_SYM_TYPE_MAP): New definition.
130 (BFD_AARCH64_SPECIAL_SYM_TYPE_TAG): New definition.
131 (BFD_AARCH64_SPECIAL_SYM_TYPE_OTHER): New definition.
132 (BFD_AARCH64_SPECIAL_SYM_TYPE_ANY): New definition.
133 (bfd_is_aarch64_special_symbol_name): New declaration.
134 (bfd_aarch64_merge_machines): New declaration.
135 (bfd_aarch64_update_notes): New declaration.
136 (int bfd_aarch64_get_mach_from_notes): New declaration.
137 (elf64_aarch64_setup_section_lists): New declaration.
138 (elf64_aarch64_next_input_section): New declaration.
139 (elf64_aarch64_size_stubs): New declaration.
140 (elf64_aarch64_build_stubs): New declaration.
141 * config.bfd: Add AArch64.
142 * configure.in: Add AArch64.
143 * configure: Regenerate.
144 * cpu-aarch64.c: New file.
145 * elf-bfd.h: Add AArch64.
146 * bfd-in2.h: Regenerate.
147 * libbfd.h: Regenerate.
148 * elf64-aarch64.c: New file.
149 * reloc.c: Add AArch64 relocations.
150 * targets.c: Add AArch64.
151 * po/SRC-POTFILES.in: Regenerate.
152
9f1a453e
MR
1532012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
154
155 * elfxx-mips.c (mips_elf_calculate_relocation): Fix the handling
156 of protected symbols.
157
44534af3
AM
1582012-08-10 Alan Modra <amodra@gmail.com>
159
160 PR binutils/14444
161 * elf.c (IS_VALID_GROUP_SECTION_HEADER) Add minsize param.
162 (setup_group): Adjust uses.
163 (bfd_section_from_shdr): Allow SHT_GROUP sections with just a flag
164 word.
165
3c892704
NC
1662012-08-09 Nick Clifton <nickc@redhat.com>
167
168 * po/vi.po: Updated Vietnamese translation.
169
d21911ea
MR
1702012-08-09 Maciej W. Rozycki <macro@codesourcery.com>
171
172 * elfxx-mips.c (LA25_LUI_MICROMIPS_1, LA25_LUI_MICROMIPS_2):
173 Remove macros, folding them into...
174 (LA25_LUI_MICROMIPS): ... this new macro.
175 (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise into...
176 (LA25_J_MICROMIPS): ... this new macro.
177 (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise
178 into...
179 (LA25_ADDIU_MICROMIPS): ... this new macro.
180 (bfd_put_micromips_32, bfd_get_micromips_32): New functions.
181 (mips_elf_create_la25_stub): Use them.
182 (check_br32_dslot, check_br32, check_relocated_bzc): Likewise.
183 (_bfd_mips_elf_relax_section): Likewise.
184
eeb1f9ae
AM
1852012-08-09 Alan Modra <amodra@gmail.com>
186 Tom Tromey <tromey@redhat.com>
187
188 * archive.c (SECTION Archives): Update documentation.
189 (_bfd_delete_archive_data): Remove.
190 (_bfd_add_bfd_to_archive_cache): Set 'parent_cache' and 'key'.
191 (archive_close_worker, _bfd_archive_close_and_cleanup): New
192 functions.
193 * libbfd-in.h (struct areltdata <parent_cache, key>): New fields.
194 (_bfd_delete_archive_data): Don't declare.
195 (_bfd_archive_close_and_cleanup): Declare.
196 (_bfd_generic_close_and_cleanup): Redefine.
197 * libbfd.h: Rebuild.
198 * opncls.c (_bfd_delete_bfd): Don't call _bfd_delete_archive_data.
199 (bfd_close): Don't close nested thin archives here.
200
a988325c
NC
2012012-08-07 Tom Tromey <tromey@redhat.com>
202
203 * archive.c (_bfd_delete_archive_data): New function.
204 * libbfd-in.h (_bfd_delete_archive_data): Declare.
205 * libbfd.h: Rebuild.
206 * opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
207
5125d2b0
NC
2082012-08-07 Nick Clifton <nickc@redhat.com>
209
210 * po/uk.po: Updated Ukranian translation.
211
eb8476a6
MR
2122012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
213
214 * elflink.c (bfd_elf_record_link_assignment): Remove --defsym
215 symbols special case.
216
a22a8039
MR
2172012-08-05 Maciej W. Rozycki <macro@linux-mips.org>
218
219 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate
220 PLT slots for local symbols.
221
1a6c3ca2
MR
2222012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
223
224 * elf64-mips.c (mips16_elf64_howto_table_rela): Correct src_mask
225 field initializers throughout.
226 * elfn32-mips.c (elf_mips16_howto_table_rela): Likewise.
227
3bdf9505
MR
2282012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
229
230 * elfxx-mips.c (mips_elf_perform_relocation): Update the
231 cross-mode jump message.
232
6e6be592
MR
2332012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
234
235 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Update the
236 comment on DT_MIPS_RLD_MAP.
237
7b84f8da
TT
2382012-08-03 Tom Tromey <tromey@redhat.com>
239
240 * opncls.c (_bfd_delete_bfd): Now static.
241 * libbfd-in.h (_bfd_delete_bfd): Don't declare.
242 * libbfd.h: Rebuild.
243
9a92d0ce
SK
2442012-08-02 Sean Keys <skeys@ipdatasys.com>
245
246 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
247 conditional statment to allow suppression of mismatched bank
248 warning.
249
1c37913d
AM
2502012-08-01 Alan Modra <amodra@gmail.com>
251
252 * dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
253 (_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open
254 gnu_debuglink bfd.
255 (_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.
256
a6dc81d2
NC
2572012-07-30 Nick Clifton <nickc@redhat.com>
258
259 * po/bfd.pot: Updated template.
260 * po/es.po: Updated Spanish translation.
261 * po/fi.po: Updated Finnish translation.
262 * po/fr.po: Updated French translation.
263 * po/ru.po: Updated Russian translation.
264 * po/uk.po: Updated Ukranian translation.
265
c4dd807e
MF
2662012-07-27 Mike Frysinger <vapier@gentoo.org>
267
268 * configure.in (AC_INIT): Call with the args bfd and 2.22.52.
269 (AM_INIT_AUTOMAKE): Remove args.
270 * configure: Regenerate.
271
c92b291c
AK
2722012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
273
274 * cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default
275 arch depending on the target size.
276
ecdf0cbb
TG
2772012-07-27 Tristan Gingold <gingold@adacore.com>
278
279 * configure.in: Bump version to 2.23.51
280 * configure: Regenerate.
281
f725daa8
CC
2822012-07-26 Teresa Johnson <tejohnson@google.com>
283
284 * bfd/dwarf2.c (find_line): Initialize discriminator_ptr
285 if it is non-NULL.
286
05456594
NC
2872012-07-26 Meador Inge <meadori@codesourcery.com>
288 Nick Clifton <nickc@redhat.com>
289
290 PR ld/14397
291 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Report an error
292 if a required section is missing from the linker script.
293
6aa82b64
EW
2942012-07-24 Jan Waclawek <konfera@efton.sk>
295 PR 13899
296 * elf32-avr.c (elf32_avr_relax_delete_bytes): Call
297 _bfd_elf_link_read_relocs with keep_memory as TRUE.
298
9b8d1a36
CC
2992012-07-24 Teresa Johnson <tejohnson@google.com>
300
301 * bfd.c (bfd_find_nearest_line_discriminator): New macro.
302 * coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
303 * coff64-rs6000.c: Likewise.
304 * dwarf2.c (struct line_info): Add discriminator field.
305 (add_line_info): Fill in new discriminator field.
306 (decode_line_info): Record discriminator information instead
44534af3 307 of ignoring it.
9b8d1a36 308 (lookup_address_in_line_info_table): Return discriminator field if
44534af3 309 requested.
9b8d1a36
CC
310 (comp_unit_find_nearest_line): Add discriminator argument.
311 (find_line): Likewise.
312 (_bfd_dwarf2_find_nearest_line): Likewise.
313 (_bfd_dwarf2_find_line): Likewise.
314 * elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
44534af3
AM
315 (_bfd_elf_find_line_discriminator): Likewise.
316 (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
9b8d1a36 317 * elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
44534af3
AM
318 that invokes _bfd_elf_find_nearest_line_discriminator with correct
319 arguments.
9b8d1a36
CC
320 (_bfd_elf_find_nearest_line_discriminator): New.
321 (_bfd_elf_find_line): Change to a wrapper
44534af3
AM
322 that invokes _bfd_elf_find_line_discriminator with correct
323 arguments.
9b8d1a36
CC
324 (_bfd_elf_find_line_discriminator): New.
325 * coffgen.c (coff_find_nearest_line_with_names): Handle
44534af3 326 new discriminator argument.
9b8d1a36
CC
327 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
328 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
329 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
330 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
331 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
44534af3
AM
332 argument.
333 (_bfd_dwarf2_find_line): Likewise.
334 (_bfd_generic_find_nearest_line_discriminator): New.
9b8d1a36
CC
335 * libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
336 * bfd-in2.h: Regenerated.
337 * libbfd.h: Likewise.
338 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
44534af3
AM
339 _bfd_find_nearest_line_discriminator with
340 _bfd_generic_find_nearest_line_discriminator.
341 (bfd_target): Add _bfd_find_nearest_line_discriminator.
9b8d1a36 342
082d1122
NC
3432012-07-24 Sean Keys <skeys@ipdatasys.com>
344
44534af3 345 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added code
082d1122 346 that enables the linker to offset addresses, when linking against
44534af3 347 symbols from the XGATE processor and vice versa.
082d1122 348
d86492f2
NC
3492012-07-23 Nick Clifton <nickc@redhat.com>
350
351 * cisco-core.c (cisco_core_file_failing_command): Make static.
352 (cisco_core_file_failing_signal): Make static.
353
7c960184
L
3542012-07-18 H.J. Lu <hongjiu.lu@intel.com>
355
356 * bfd-in2.h: Regenerated.
357
c06fc9eb
L
3582012-07-18 Nicolàs Alejandro Di Risio <sheeva@tiscali.it>
359
360 PR binutils/14335
361 * section.c: Fix a typo in comments.
362
470b557a
AK
3632012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
364
365 * elf64-s390.c: Include elf-s390-common.c.
366 (R_390_IRELATIVE): New reloc.
367 (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
368 (RELA_ENTRY_SIZE): New macro.
369 (elf_s390_link_hash_entry): New fields ifunc_resolver_address and
370 *ifunc_resolver_section.
371 (struct plt_entry): New struct.
372 (struct elf_s390_obj_tdata): New field local_plt.
373 (elf_s390_local_plt): New macro.
374 (struct elf_s390_link_hash_table): New field irelifunc.
375 (ELF64): New macro.
376 (link_hash_newfunc): Initialize new fields.
377 (elf_s390_check_relocs): Handle IFUNC symbols.
378 (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
379 symbols.
380 (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
381 IFUNC symbols.
382 (elf_s390_size_dynamic_sections): Handle IFUNC symbols.
383 (elf_s390_relocate_section): Likewise.
384 (elf_s390_finish_dynamic_symbol): Likewise.
385 (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
386 (elf_s390_finish_ifunc_symbol): New function.
387 (elf_s390_gc_sweep_hook): Handle local plt entries.
388 (elf_backend_add_symbol_hook): Define.
389 * elf32-s390.c: See elf64-s390.c changes.
390 * elf-s390-common.c: New file.
391 * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
392 * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
393 BFD_RELOC_390_IRELATIVE.
394 * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.
395
2c3fc389
NC
3962012-07-13 Nick Clifton <nickc@redhat.com>
397
398 * aix386-core.c: Remove use of PTR and PARAMS macros.
399 * archive.c: Likewise.
400 * cache.c: Likewise.
401 * cisco-core.c: Likewise.
402 * coff-alpha.c: Likewise.
403 * coff-apollo.c: Likewise.
404 * coff-aux.c: Likewise.
405 * coff-h8300.c: Likewise.
406 * coff-h8500.c: Likewise.
407 * coff-i386.c: Likewise.
408 * coff-i960.c: Likewise.
409 * coff-ia64.c: Likewise.
410 * coff-m68k.c: Likewise.
411 * coff-m88k.c: Likewise.
412 * coff-mcore.c: Likewise.
413 * coff-mips.c: Likewise.
414 * coff-or32.c: Likewise.
415 * coff-ppc.c: Likewise.
416 * coff-rs6000.c: Likewise.
417 * coff-sh.c: Likewise.
418 * coff-sparc.c: Likewise.
419 * coff-stgo32.c: Likewise.
420 * coff-tic30.c: Likewise.
421 * coff-tic4x.c: Likewise.
422 * coff-tic54x.c: Likewise.
423 * coff-tic80.c: Likewise.
424 * coff-w65.c: Likewise.
425 * cofflink.c: Likewise.
426 * cpu-arc.c: Likewise.
427 * cpu-cris.c: Likewise.
428 * cpu-h8500.c: Likewise.
429 * cpu-i960.c: Likewise.
430 * cpu-msp430.c: Likewise.
431 * cpu-ns32k.c: Likewise.
432 * cpu-powerpc.c: Likewise.
433 * cpu-rs6000.c: Likewise.
434 * cpu-tic4x.c: Likewise.
435 * cpu-w65.c: Likewise.
436 * ecoff.c: Likewise.
437 * ecofflink.c: Likewise.
438 * elf-m10200.c: Likewise.
439 * elf32-bfin.c: Likewise.
440 * elf32-cris.c: Likewise.
441 * elf32-crx.c: Likewise.
442 * elf32-fr30.c: Likewise.
443 * elf32-frv.c: Likewise.
444 * elf32-h8300.c: Likewise.
445 * elf32-i960.c: Likewise.
446 * elf32-m32c.c: Likewise.
447 * elf32-m68hc11.c: Likewise.
448 * elf32-m68hc12.c: Likewise.
449 * elf32-m68hc1x.c: Likewise.
450 * elf32-m68k.c: Likewise.
451 * elf32-mcore.c: Likewise.
452 * elf32-rl78.c: Likewise.
453 * elf32-rx.c: Likewise.
454 * elf32-s390.c: Likewise.
455 * elf32-vax.c: Likewise.
456 * elf64-alpha.c: Likewise.
457 * elf64-mmix.c: Likewise.
458 * elf64-s390.c: Likewise.
459 * elf64-sparc.c: Likewise.
460 * elfnn-ia64.c: Likewise.
461 * elfxx-mips.c: Likewise.
462 * elfxx-sparc.c: Likewise.
463 * hash.c: Likewise.
464 * hp300hpux.c: Likewise.
465 * hppabsd-core.c: Likewise.
466 * hpux-core.c: Likewise.
467 * i386dynix.c: Likewise.
468 * i386linux.c: Likewise.
469 * i386lynx.c: Likewise.
470 * i386mach3.c: Likewise.
471 * i386msdos.c: Likewise.
472 * i386os9k.c: Likewise.
473 * irix-core.c: Likewise.
474 * lynx-core.c: Likewise.
475 * m68klinux.c: Likewise.
476 * mach-o.h: Likewise.
477 * mipsbsd.c: Likewise.
478 * netbsd-core.c: Likewise.
479 * nlm32-i386.c: Likewise.
480 * osf-core.c: Likewise.
481 * pc532-mach.c: Likewise.
482 * pef.c: Likewise.
483 * ppcboot.c: Likewise.
484 * ptrace-core.c: Likewise.
485 * reloc16.c: Likewise.
486 * sco5-core.c: Likewise.
487 * som.h: Likewise.
488 * sparclinux.c: Likewise.
489 * sparclynx.c: Likewise.
490 * ticoff.h: Likewise.
491 * trad-core.c: Likewise.
492 * vms-lib.c: Likewise.
493 * xsym.h: Likewise.
494
14160578
AM
4952012-07-09 Alan Modra <amodra@gmail.com>
496
497 PR ld/14323
498 * elflink.c (elf_sort_symbol): Sort by size too.
499 (elf_link_add_object_symbols <weakdefs>): Simplify binary search.
500 Do not depend on ordering of symbol aliases. Match largest size.
501
1c52a645
L
5022012-07-03 H.J. Lu <hongjiu.lu@intel.com>
503
504 * elf.c (assign_section_numbers): Check if number of sections
505 >= SHN_LORESERVE.
506 * elfcode.h (elf_object_p): Likewise.
507
5f8ebec5
NC
5082012-07-03 Nick Clifton <nickc@redhat.com>
509
510 * archive.c (bsd_write_armap): Catch attempts to create an archive
511 with indicies bigger than 4Gb.
512 (coff_write_armap): Likewise.
513
5a5ed5b0
L
5142012-07-03 H.J. Lu <hongjiu.lu@intel.com>
515
516 PR binutils/14319
517 * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
518 debug section.
519
90c984fc
L
5202012-07-03 H.J. Lu <hongjiu.lu@intel.com>
521
522 PR ld/3351
523 * elflink.c (_bfd_elf_update_dynamic_flags): New.
524 (_bfd_elf_merge_symbol): Update both real and indirect symbol
525 dynamic flags.
526 (_bfd_elf_add_default_symbol): Make the real symbol dynamic if
527 the indirect symbol is defined in a shared library.
528 (elf_link_add_object_symbols): Likewise. If the indirect
529 symbol has been forced local, don't make the real symbol
530 dynamic.
531 (elf_link_check_versioned_symbol): Check indirect symbol.
532 (elf_link_output_extsym): Use real symbol definition when
533 reporting indirect symbol error. Check version info for
534 dynamic versioned symbol.
535
3146fac4
AM
5362012-07-03 Alan Modra <amodra@gmail.com>
537
538 PR ld/14207
539 * elf.c (assign_file_positions_for_load_sections): Remove assertions
540 that only PT_LOAD headers include file header and section headers.
541 (assign_file_positions_for_non_load_sections): Similarly don't
542 assert PT_GNU_RELRO header does not include file and section headers.
543 Compare first section vma rather than PT_LOAD p_vaddr against
544 relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace
545 abort with assertion.
546
87e0a731
AM
5472012-07-02 Alan Modra <amodra@gmail.com>
548
549 * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
550 "anyway" variant when creating .plt.
551 (m32c_elf_relax_plt_section): Remove redundant test and unused param.
552 (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
553 m32c_elf_relax_plt_section.
554 * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
555 when creating .got and .got.plt.
556 (_bfd_mips_elf_final_link): Likewise for .rtproc, and use
557 bfd_get_linker_section.
558 * sunos.c: Similarly throughout.
559
bc823199
AS
5602012-07-01 Andreas Schwab <schwab@linux-m68k.org>
561
562 * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
563 message.
564
a040981f
L
5652012-06-29 H.J. Lu <hongjiu.lu@intel.com>
566
567 * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
568 on unresolvable relocation.
569
d5abbdf3
L
5702012-06-29 H.J. Lu <hongjiu.lu@intel.com>
571
572 * archive.c (_bfd_compute_and_write_armap): Simplify global
573 symbol handling.
574
a8c887dd
NC
5752012-06-29 Nick Clifton <nickc@redhat.com>
576
577 PR ld/14189
578 * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
579 for locally bound symbols.
580
3d4d4302
AM
5812012-06-29 Alan Modra <amodra@gmail.com>
582
583 * section.c (bfd_get_linker_section): New function.
584 * elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
585 the above throughout rather than bfd_get_section_by_name. Use
586 bfd_make_section_anyway rather than bfd_make_section when creating
587 them.
588 * elf32-bfin.c: Likewise.
589 * elf32-cr16.c: Likewise.
590 * elf32-cris.c: Likewise.
591 * elf32-frv.c: Likewise.
592 * elf32-hppa.c: Likewise.
593 * elf32-i370.c: Likewise.
594 * elf32-i386.c: Likewise.
595 * elf32-lm32.c: Likewise.
596 * elf32-m32c.c: Likewise.
597 * elf32-m32r.c: Likewise.
598 * elf32-m68k.c: Likewise.
599 * elf32-microblaze.c: Likewise.
600 * elf32-ppc.c: Likewise.
601 * elf32-rl78.c: Likewise.
602 * elf32-s390.c: Likewise.
603 * elf32-score.c: Likewise.
604 * elf32-score7.c: Likewise.
605 * elf32-sh.c: Likewise.
606 * elf32-tic6x.c: Likewise.
607 * elf32-tilepro.c: Likewise.
608 * elf32-vax.c: Likewise.
609 * elf32-xstormy16.c: Likewise.
610 * elf32-xtensa.c: Likewise.
611 * elf64-alpha.c: Likewise.
612 * elf64-hppa.c: Likewise.
613 * elf64-ia64-vms.c: Likewise.
614 * elf64-ppc.c: Likewise.
615 * elf64-s390.c: Likewise.
616 * elf64-sh64.c: Likewise.
617 * elf64-sparc.c: Likewise.
618 * elf64-x86-64.c: Likewise.
619 * elfnn-ia64.c: Likewise.
620 * elfxx-mips.c: Likewise.
621 * elfxx-sparc.c: Likewise.
622 * elfxx-tilegx.c: Likewise.
623 * elflink.c: Likewise.
624 * elf-vxworks.c: Likewise.
625 * elf-m10300.c: Likewise. Also make use of htab plt, got and
626 gotplt shortcuts.
627 * bfd-in2.h: Regenerate.
628 * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
629 calling create_rofixup_section.
630 * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
631
66e17d7f
AM
6322012-06-29 Alan Modra <amodra@gmail.com>
633
634 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
635 section for bss type sections, except for .rela.bss.
636 * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
637 * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
638 * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
639 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
640 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
641
6034aab8
RM
6422012-06-28 Roland McGrath <mcgrathr@google.com>
643
644 * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
645 displacement calculation in nacl_p case.
646
4c6a93d3
NC
6472012-06-28 Nick Clifton <nickc@redhat.com>
648
649 * po/uk.po: New Ukranian translation.
650 * configure.in (ALL_LINGUAS): Add uk.
651 * configure: Regenerate.
652
a4fd3de5
AM
6532012-06-26 Alan Modra <amodra@gmail.com>
654
655 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
656 file has multiple .got/.toc sections and all don't fit in
657 current toc group.
658
62655c7b
RM
6592012-06-22 Roland McGrath <mcgrathr@google.com>
660
661 * elf.c (assign_file_positions_for_non_load_sections): Define
662 __ehdr_start symbol if it's referenced and there's a PT_LOAD
663 segment that covers both the file and program headers.
664
b70e7a2f
AS
6652012-06-22 Andreas Schwab <schwab@linux-m68k.org>
666
667 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
668 _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
669
27fc25a1
AM
6702012-06-22 Alan Modra <amodra@gmail.com>
671
672 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
673 save/restore functions when relocatable. Make "funcs" static.
674
51806b97
HPN
6752012-06-18 Hans-Peter Nilsson <hp@axis.com>
676
677 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
678 of merged .got and .got.plt entries.
679
46691134
AM
6802012-06-18 John Szakmeister <john@szakmeister.net>
681
682 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
683
26a48bb3
HPN
6842012-06-17 Hans-Peter Nilsson <hp@axis.com>
685
686 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
687 <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
688 thread common symbols.
689
5968a7b8
NC
6902012-06-13 Nick Clifton <nickc@redhat.com>
691
692 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
693 (elf32_arm_object_p): If the machine number could not be deduced
694 from the notes, call bfd_arm_get_mach_from_attributes to get the
695 number from the attributes.
696
8981c88a
L
6972012-06-12 H.J. Lu <hongjiu.lu@intel.com>
698
699 PR bfd/14207
700 * elf.c (assign_file_positions_for_non_load_sections): Abort if
701 PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
702
3832a4d8
AM
7032012-06-12 Alan Modra <amodra@gmail.com>
704
705 PR ld/14207
706 * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
707 sections at end of PT_LOAD segment when searching for segment
708 that contains end of relro extent.
709
f3944f72
L
7102012-06-11 H.J. Lu <hongjiu.lu@intel.com>
711
712 * elf.c (assign_file_positions_for_non_load_sections): Reindent.
713
be01b344
L
7142012-06-11 H.J. Lu <hongjiu.lu@intel.com>
715
716 * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
717
ffbc01cc
AM
7182012-06-06 Alan Modra <amodra@gmail.com>
719
720 * elflink.c (elf_link_input_bfd): Provide a file symbol for
721 each input file with local syms, if the input lacks such.
722 (bfd_elf_final_link): Add a file symbol to mark end of locals
723 for which we can associate with input files.
724 (struct elf_final_link_info): Add filesym_count field.
725 (struct elf_outext_info): Add need_second_pass and second_pass.
726 (elf_link_output_extsym): Detect symbols defined in the output
727 file, emit them on second pass over locals.
728
fe78531d
JK
7292012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
730
731 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
732 of target_read_memory as bfd_size_type.
733 * bfd-in2.h: Regenerate.
734 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
735 argument of target_read_memory as bfd_size_type.
736 (_bfd_elf32_bfd_from_remote_memory): Likewise.
737 (_bfd_elf64_bfd_from_remote_memory): Likewise.
738 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
739 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
740
aef36ac1
AM
7412012-06-03 Alan Modra <amodra@gmail.com>
742
743 PR binutils/13897
744 * elf.c (elf_find_function): Cache last function sym info.
745 (_bfd_elf_maybe_function_sym): Return function size, pass in
746 section of interest.
747 * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
748 (_bfd_elf_maybe_function_sym): Likewise.
749 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
750 (opd_entry_value): Add in_code_sec param. Revert caching code.
751 Return -1 if in_code_sec and function found in wrong section.
752 Update all calls.
753
5299c1c4
JK
7542012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
755
756 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
757 of target_read_memory as size_t.
758 * bfd-in2.h: Regenerate.
759 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
760 argument of target_read_memory as size_t.
761 (_bfd_elf32_bfd_from_remote_memory): Likewise.
762 (_bfd_elf64_bfd_from_remote_memory): Likewise.
763 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
764 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
765
ee1e4ede
AM
7662012-06-01 Alan Modra <amodra@gmail.com>
767
768 PR binutils/13897
769 * elf64-ppc.c (opd_entry_value): Rewrite cache code.
770
6f0c7050
TT
7712012-05-29 Tom Tromey <tromey@redhat.com>
772
773 * opncls.c (bfd_fopen): Always close fd on failure.
774 (bfd_fdopenr): Likewise.
775
f5eda473
AM
7762012-05-27 Alan Modra <amodra@gmail.com>
777
778 PR ld/14170
779 * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
780 a dynamic library finds a new instance with non-default
781 visibility in a regular object, correctly handle symbols
782 already on the undefs list and undo dynamic symbol state when
783 the new symbol is hidden or internal.
784
bbf96e4e
L
7852012-05-25 H.J. Lu <hongjiu.lu@intel.com>
786
787 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
788 dynamic_sec_flags to create PLT .eh_frame section.
789 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
790
9a2a56cc
AM
7912012-05-25 Alan Modra <amodra@gmail.com>
792
793 PR ld/13909
794 * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
795 (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
796 * elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
797 * elflink.c (bfd_elf_size_dynamic_sections): Let the backend
798 size dynamic sections before stripping eh_frame_hdr.
799 (bfd_elf_gc_sections): Handle multiple .eh_frame sections.
800 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
801 if no other .eh_frame sections exist.
802 * elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
803 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
804 or alloc plt_eh_frame here..
805 (elf_i386_size_dynamic_sections): ..do it here instead. Don't
806 specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
807 (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
808 before writing plt offset.
809 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
810 or alloc plt_eh_frame here..
811 (elf_x86_64_size_dynamic_sections): ..do it here instead.
812 (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
813 before writing plt offset.
814
4bbe044a
AM
8152012-05-24 Alan Modra <amodra@gmail.com>
816
817 PR ld/14158
818 * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
819 size to output section alignment.
820 (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
821
89b2bec8
AM
8222012-05-23 Alan Modra <amodra@gmail.com>
823
824 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
44534af3 825 BFDs with multiple .eh_frame sections.
89b2bec8 826
259b427a
AM
8272012-05-23 Alan Modra <amodra@gmail.com>
828
829 PR ld/13909
830 * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
831
e4de50d4
L
8322012-05-22 H.J. Lu <hongjiu.lu@intel.com>
833
834 PR ld/13909
835 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
836 last change.
837 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
838
7e01508c
AM
8392012-05-22 Alan Modra <amodra@gmail.com>
840
841 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
842 first one is zero size or discarded.
843 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
844 glink_eh_frame contents here..
845 (ppc_elf_finish_dynamic_sections): ..rather than here. Just set
846 offset to .glink.
847
5d4f7eb2
L
8482012-05-22 H.J. Lu <hongjiu.lu@intel.com>
849
850 PR ld/13909
851 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
852 eh_frame section if there is an input .eh_frame section.
853 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
854
2fe0fd06
L
8552012-05-22 H.J. Lu <hongjiu.lu@intel.com>
856
857 PR ld/14105
858 * elf32-i386.c (elf_i386_create_dynamic_sections): Always
859 create PLT eh_frame section with SEC_LINKER_CREATED.
860 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
861
90061c33
AM
8622012-05-22 Alan Modra <amodra@gmail.com>
863
864 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
865 sections attached to a BFD.
866 * section.c (bfd_get_section_by_name): Rewrite description.
867 (bfd_get_next_section_by_name): New function.
868 * bfd-in2.h: Regenerate.
869
8bbeae90
AS
8702012-05-21 Andreas Schwab <schwab@linux-m68k.org>
871
872 * elf32-m68k.c (elf_m68k_grok_prstatus): New function.
873 (elf_m68k_grok_psinfo): New function.
874 (elf_backend_grok_prstatus): Define.
875 (elf_backend_grok_psinfo): Define.
876
a44acb1e
MR
8772012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
878
879 * elf64-mips.c (elf_backend_got_header_size): Correct definition.
880 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
881 backend's GOT header size instead of hardcoding it.
882
751c1fe7
MR
8832012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
884
885 * elf32-vax.c (elf_vax_relocate_section)
886 <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
887
ddd74d3c
MR
8882012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
889
890 * elf32-vax.c (elf_vax_relocate_section)
891 <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
892 its name as the check for text sections.
893
b0189df0
MR
8942012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
895
896 * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
897 the third reloc offset is the same as the first.
898
94caa966
AM
8992012-05-19 Alan Modra <amodra@gmail.com>
900
901 * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
902 (has_tls_reloc, has_tls_get_addr_call): Move back to..
903 * elf32-ppc.c: ..here.
904 (ppc_elf_section_flags, elf_backend_section_flags): Delete.
905 (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
906
220cf809
L
9072012-05-18 H.J. Lu <hongjiu.lu@intel.com>
908
909 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
910 _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
911 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
912
3a11e31e
RM
9132012-05-18 Roland McGrath <mcgrathr@google.com>
914
915 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
916 not to clobber the ar_fmag field stored in ARED->arch_header.
917
2a0bfc8d
PA
9182012-05-18 Pedro Alves <palves@redhat.com>
919
920 * mach-o.h: Don't include sysdep.h.
921
0bee45d9
NC
9222012-05-18 Nick Clifton <nickc@redhat.com>
923
924 PR 14072
925 * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
926 complaining about config.h not having been included.
927 * bfd-in2.h: Regenerate.
928
f2c621e4
AS
9292012-05-18 Andreas Schwab <schwab@linux-m68k.org>
930
931 * aclocal.m4: Regenerate.
932 * Makefile.in: Regenerate.
933
df7b86aa
NC
9342012-05-17 Daniel Richard G. <skunk@iskunk.org>
935 Nick Clifton <nickc@redhat.com>
936
937 PR 14072
938 * configure.in: Add check that sysdep.h has been included before
939 any system header files.
940 * configure: Regenerate.
941 * config.in: Regenerate.
942 * aclocal.m4: Regenerate.
943 * bfd-in.h: Generate an error if included before config.h.
944 * sysdep.h: Likewise.
945 * bfd-in2.h: Regenerate.
946 * compress.c: Remove #include "config.h".
947 * plugin.c: Likewise.
948 * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
949 * elf64-hppa.c: Likewise.
950 * som.c: Likewise.
951 * xsymc.c: Likewise.
952
2633a79c
AM
9532012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
954 Alan Modra <amodra@gmail.com>
955
956 * elf.c (ignore_section_sym): Correct comment. Don't return
957 true for absolute section.
958 (elf_map_symbols): Move stray comment. Adjust for above change.
959 Don't discard global section symbols.
960
ab6dce23
AM
9612012-05-17 Alan Modra <amodra@gmail.com>
962
963 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
964 _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
965 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
966 absolute.
967
e1dad58d
AM
9682012-05-17 Alan Modra <amodra@gmail.com>
969
970 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
971 is_ppc_vle): Move to..
972 * elf32-ppc.h: ..here, making is_ppc_vle a macro.
973
a0f49396
NC
9742012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
975
976 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
977 bfd_get_section_lma, bfd_get_section_alignment,
978 bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
979 in order to use the `bfd' argument.
980 * bfd-in2.h: Regenerate.
981 * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
982 as the first argument for `bfd_get_section_alignment'.
983 * elf32-arm.c (create_ifunc_sections): Likewise, for
984 `bfd_set_section_alignment'.
985 * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
986 `bfd_get_section_name'.
987 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
988 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
989 (ppc_elf_relocate_section): Likewise.
990 * elf64-mmix.c (mmix_final_link_relocate): Likewise, for
991 `bfd_get_section_vma'.
992 * elf64-ppc.c (create_linkage_sections): Likewise, for
993 `bfd_set_section_alignment'.
994
40551fb8
NC
9952012-05-16 Georg-Johann Lay <avr@gjlay.de>
996
997 PR target/13503
998 * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
999 * bfd-in2.h: Regenerate.
1000 * libbfd.h: Regenrate.
1001 * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
1002 R_AVR_8_HLO8.
1003 (avr_reloc_map): Likewise.
1004
691bf19c
NC
10052012-05-16 Daniel Richard G. <skunk@iskunk.org>
1006
1007 PR binutils/13558
1008 * bfd/aout-cris.c: Include sysdep.h before bfd.h.
1009 * bfd/aout-ns32k.c: Likewise.
1010 * bfd/aout-sparcle.c: Likewise.
1011 * bfd/aout0.c: Likewise.
1012 * bfd/bfd-in2.h: Likewise.
1013 * bfd/coff-stgo32.c: Likewise.
1014 * bfd/cpu-lm32.c: Likewise.
1015 * bfd/cpu-microblaze.c: Likewise.
1016 * bfd/cpu-score.c: Likewise.
1017 * bfd/cpu-tilegx.c: Likewise.
1018 * bfd/cpu-tilepro.c: Likewise.
1019 * bfd/elf32-lm32.c: Likewise.
1020 * bfd/elf32-microblaze.c: Likewise.
1021 * bfd/elf32-score7.c: Likewise.
1022 * bfd/elf32-tilepro.c: Likewise.
1023 * bfd/elfxx-tilegx.c: Likewise.
1024 * bfd/mach-o.h: Likewise.
1025 * bfd/nlm32-ppc.c: Likewise.
1026 * bfd/ns32knetbsd.c: Likewise.
1027 * bfd/pef.h: Likewise.
1028 * bfd/plugin.c: Likewise.
1029 * bfd/stab-syms.c: Likewise.
1030 * bfd/sunos.c: Likewise.
1031 * bfd/syms.c: Likewise.
1032 * bfd/xsym.h: Likewise.
1033
8b127cbc
AM
10342012-05-16 Alan Modra <amodra@gmail.com>
1035
1036 * elflink.c: Rename flaginfo to flinfo throughout, except..
1037 (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo.
1038 Formatting, style. Simplify flag match.
1039
a2a50954
AM
10402012-05-16 Alan Modra <amodra@gmail.com>
1041
1042 * dwarf2.c: Formatting.
1043 (arange_add): Pass in unit rather than bfd. Update callers.
1044 Ignore empty ranges. Don't ask for cleared memory.
1045 (parse_comp_unit): Only set unit->base_address if processing
1046 DW_TAG_compile_unit.
1047 (find_debug_info): Optimise section lookup.
1048 (place_sections): Use bfd_alloc for stash->adjusted_sections.
1049 (find_line): Match previously parsed comp unit addresses as we
1050 do for newly parsed comp units.
1051
df35687a
AM
10522012-05-16 Alan Modra <amodra@gmail.com>
1053
1054 * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf
1055 stops at end of ar_size field.
1056
eee3b786
AM
10572012-05-16 Alan Modra <amodra@gmail.com>
1058
44534af3
AM
1059 PR ld/13962
1060 PR ld/7023
eee3b786
AM
1061 * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is
1062 out of range. As a special case, fix sh_info for zero sh_size.
1063 Do the same for .symtab.
1064
6927f982
NC
10652012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
1066 Stephane Carrez <stcarrez@nerim.fr>
1067
1068 * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
1069 * config.bfd: Likewise.
1070 * cpu-m9s12x.c: New.
1071 * cpu-m9s12xg.c: New.
1072 * elf32-m68hc12.c: Add S12X and XGATE co-processor support.
1073 Add option to offset S12 addresses into XGATE memory space.
1074 Fix carry bug in IMM16 (IMM8 low/high) relocate.
1075 * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
1076 (ALL_MACHINES_CFILES): Likewise.
1077 * reloc.c: Add S12X relocs.
1078 * Makefile.in: Regenerate.
1079 * bfd-in2.h: Regenerate.
1080 * libbfd.h: Regenerate.
1081
b9c361e0
JL
10822012-05-14 James Lemke <jwlemke@codesourcery.com>
1083 Catherine Moore <clm@codesourcery.com>
1084
1085 * bfd.c (bfd_lookup_section_flags): Add section parm.
1086 * ecoff.c (bfd_debug_section): Remove flag_info initializer.
1087 * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
1088 (bfd_elf_lookup_section_flags): Add section parm.
1089 * elf32-ppc.c (is_ppc_vle): New function.
1090 (ppc_elf_modify_segment_map): New function.
1091 (elf_backend_modify_segment_map): Define.
1092 (has_vle_insns): New define.
1093 * elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
1094 * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
1095 Move in logic to omit / include a section.
1096 * libbfd-in.h (bfd_link_info): Add section parm.
1097 (bfd_generic_lookup_section_flags): Likewise.
1098 * reloc.c (bfd_generic_lookup_section_flags): Likewise.
1099 * section.c (bfd_section): Move out section_flag_info.
1100 (BFD_FAKE_SECTION): Remove flag_info initializer.
1101 * targets.c (_bfd_lookup_section_flags): Add section parm.
1102
11032012-05-14 Catherine Moore <clm@codesourcery.com>
1104
1105 * archures.c (bfd_mach_ppc_vle): New.
1106 * bfd-in2.h: Regenerated.
1107 * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
1108 * elf32-ppc.c (split16_format_type): New enumeration.
1109 (ppc_elf_vle_split16): New function.
1110 (HOWTO): Add entries for R_PPC_VLE relocations.
1111 (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
1112 (ppc_elf_section_flags): New function.
1113 (ppc_elf_lookup_section_flags): New function.
1114 (ppc_elf_section_processing): New function.
1115 (ppc_elf_check_relocs): Handle PPC_VLE relocations.
1116 (ppc_elf_relocation_section): Likewise.
1117 (elf_backend_lookup_section_flags_hook): Define.
1118 (elf_backend_section_flags): Define.
1119 (elf_backend_section_processing): Define.
6927f982 1120 * elf32-ppc.h (ppc_elf_section_processing): Declare.
b9c361e0
JL
1121 * libbfd.h: Regenerated.
1122 * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
1123 BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
1124 BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
1125 BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
1126 BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
1127 BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
1128 BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
1129 BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
1130 BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.
1131
8b127cbc 11322012-05-11 Georg-Johann Lay <avr@gjlay.de>
99700d6f
NC
1133
1134 PR target/13503
1135 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
1136 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
1137 * bfd-in2.h: Regenerate.
1138 * libbfd.h: Regenrate.
1139 * elf32-avr.c (elf_avr_howto_table): Add entries for
1140 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
1141 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
1142 R_AVR_8_HHI8.
1143
268a8d3a
L
11442012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
1147 addend overflow check.
1148
74b1e045
DD
11492012-05-10 DJ Delorie <dj@redhat.com>
1150
1151 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
1152
6f2c9068
L
11532012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
1156 hex number in x32 addend overflow check.
1157
1da80baa
L
11582012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1159
1160 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
1161 R_X86_64_RELATIVE64.
1162
8cf0d2dd
L
11632012-05-09 H.J. Lu <hongjiu.lu@intel.com>
1164
1165 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
1166 overflow for R_X86_64_RELATIVE64.
1167
2d16d28e
DK
11682012-05-08 Ben Cheng <bccheng@google.com>
1169
8b127cbc 1170 * elf.c: Preserve the original p_align and p_flags if they are
2d16d28e
DK
1171 valid.
1172
2de5d135
AM
11732012-05-07 Alan Modra <amodra@gmail.com>
1174
1175 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
1176 RELOC_AGAINST_DISCARDED_SECTION invocation.
1177
a134cc9b
HPN
11782012-05-07 Hans-Peter Nilsson <hp@axis.com>
1179
1180 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
1181 local variable i_ instead of assuming and using a variable i.
1182
545fd46b
MR
11832012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
1184
1185 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
1186 relocations.
1187 * elfxx-mips.c (mips_reloc_against_discarded_section): New
1188 function.
1189 (_bfd_mips_elf_relocate_section): Call it, in place of
1190 RELOC_AGAINST_DISCARDED_SECTION.
1191 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
1192 to RELOC_AGAINST_DISCARDED_SECTION.
1193 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1194 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1195 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1196 * elf32-bfin.c (bfin_relocate_section): Likewise.
1197 (bfinfdpic_relocate_section): Likewise.
1198 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1199 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1200 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1201 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1202 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1203 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1204 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1205 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1206 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1207 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1208 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1209 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1210 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1211 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1212 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1213 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1214 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1215 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1216 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1217 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1218 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1219 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1220 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1221 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1222 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1223 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1224 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1225 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1226 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1227 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1228 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1229 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1230 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1231 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1232 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1233 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1234 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1235 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1236 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1237 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1238 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1239 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1240 (elf64_alpha_relocate_section): Likewise.
1241 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1242 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1243 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1244 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1245 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1246 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1247 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1248 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1249 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1250
62ab84ec
AM
12512012-05-05 Alan Modra <amodra@gmail.com>
1252
1253 PR ld/14052
1254 PR ld/13621
1255 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
1256
45dfa85a
AM
12572012-05-05 Alan Modra <amodra@gmail.com>
1258
1259 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
1260 bfd_und_section and bfd_ind_section with their _ptr variants, or
1261 use corresponding bfd_is_* macros.
1262 * aout-ns32k.c: Likewise.
1263 * aout-tic30.c: Likewise.
1264 * coff-arm.c: Likewise.
1265 * coff-tic54x.c: Likewise.
1266 * cpu-ns32k.c: Likewise.
1267 * elf-attrs.c: Likewise.
1268 * elfcode.h: Likewise.
1269 * peicode.h: Likewise.
1270 * reloc.c: Likewise.
1271 * riscix.c: Likewise.
1272 * versados.c: Likewise.
1273 * section.c: Likewise.
1274 (bfd_abs_section, bfd_ind_section, bfd_com_section,
1275 bfd_ind_section): Delete.
1276 (std_section): New array replacing above.
1277 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
1278 bfd_ind_section_ptr, STD_SECTION): Update.
1279 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
36ab465d 1280 * bfd-in2.h: Regenerate.
45dfa85a 1281
f6c1a2d5
NC
12822012-05-03 Sean Keys <skeys@ipdatasys.com>
1283
1284 * cpu-xgate.c: New file. Added XGATE support.
1285 * archures.c (bfd_architecture): Add XGATE architecture.
1286 (bfd_archures_list): Add reference to XGATE architecture info.
1287 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
1288 * reloc.c: Add various XGATE relocation enums.
1289 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
1290 list.
1291 * Makefile.am: Add support for XGATE elf.
1292 * configure.in: Ditto.
1293 * config.bfd: Ditto.
1294 * Makefile.in: Regenerate.
1295 * configure: Ditto.
1296 * bfd-in2.h: Ditto.
1297 * libbfd.h: Ditto.
1298 Added files for XGATE relocations.
1299 * elf32-xgate.c: Created minimal relocation file.
1300 * elf32-xgate.h: Created minimal header file for elf32-xgate.
1301
fec16237
TG
13022012-05-03 Tristan Gingold <gingold@adacore.com>
1303
1304 * dwarf2.c (decode_line_info): Ignore
1305 DW_LNE_HP_source_file_correlation.
1306
57402f1e
NC
13072012-05-01 Nick Clifton <nickc@redhat.com>
1308
1309 PR binutils/13121
1310 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
1311 AIX system headers.
1312 * coff-ppc.c: Likewise.
1313 * cofflink.c: Likewise.
1314 * elf32-arm.c: Likewise.
1315 * elf64-sparc.c: Likewise.
1316 * elflink.c: Likewise.
1317 * pdp11.c: Likewise.
1318 * rescoff.c: Likewise.
1319
c49ead2f
MW
13202012-04-26 Mark Wielaard <mjw@redhat.com>
1321
1322 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
1323 possibly being relative to DW_AT_low_pc.
1324 (parse_comp_unit): Likewise.
1325
cab0ad83
AS
13262012-04-26 Andreas Schwab <schwab@linux-m68k.org>
1327
1328 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
1329 also when generating PIE.
1330 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
1331 by relocations as dynamic.
1332
2b56b3f3
HPN
13332012-04-26 Hans-Peter Nilsson <hp@axis.com>
1334
1335 Provide a way for programs to recognize BFD_ASSERT calls.
1336 * bfd.c (bfd_assert_handler_type): New API type.
1337 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
1338 (_bfd_assert_handler): New variable.
1339 (_bfd_default_assert_handler): New function.
1340 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
1341 * libbfd-in.h (_bfd_assert_handler): Declare.
1342 * libbfd.h, bfd-in2.h: Regenerate.
1343
27586251
HPN
13442012-04-24 Hans-Peter Nilsson <hp@axis.com>
1345
1346 PR ld/13990
1347 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
1348 symbol, where PLT refcount is set to -1.
1349
dbaa2011
AM
13502012-04-24 Alan Modra <amodra@gmail.com>
1351
1352 PR ld/13991
8b127cbc 1353 * elf-bfd.h (_bfd_elf_link_just_syms): Define as
dbaa2011 1354 _bfd_generic_link_just_syms.
8b127cbc
AM
1355 * elflink.c (_bfd_elf_link_just_syms): Delete.
1356 * linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
dbaa2011 1357
8b127cbc
AM
1358 * bfd-in.h (discarded_section): Renamed from elf_discarded_section.
1359 * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
dbaa2011
AM
1360 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
1361 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
8b127cbc
AM
1362 * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
1363 * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
1364 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
1365 * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c,
1366 * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c,
1367 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c,
1368 * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c,
1369 * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c,
1370 * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
1371 * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c,
1372 * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c,
1373 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c,
1374 * elf32-score.c, * elf32-score7.c, * elf32-sh.c,
1375 * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c,
1376 * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c,
1377 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
1378 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1379 * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c,
1380 * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c,
1381 * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c,
1382 * reloc.c: Update all references.
1383 * bfd-in2.h: Regenerate.
dbaa2011 1384
87049b0d
AK
13852012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1386
1387 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1388 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1389
85e02784
TS
13902012-04-19 Thomas Schwinge <thomas@codesourcery.com>
1391
1392 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
1393 got_type.
1394 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
1395 it.
1396
87458ed2
KK
13972012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1398
1399 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
1400 relocations when LE conversion happens on the IE tls symbol.
1401
ea2d813e
RM
14022012-04-17 Roland McGrath <mcgrathr@google.com>
1403
1404 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
1405 so that 32-byte boundary is a proper instruction boundary.
1406
da03bf4d
TG
14072012-04-17 Tristan Gingold <gingold@adacore.com>
1408
1409 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
1410 member of an object archive.<
1411
d2226024
TG
14122012-04-17 Tristan Gingold <gingold@adacore.com>
1413
1414 * vms-lib.c (MAX_EKEYLEN): Define.
1415 (MAX_KEYLEN): Fix value.
1416 (vms_write_index): Add comments and fix indentation.
1417 Adjust comparaison. Add assertions. Free kbn_blk.
1418 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
1419 Compense MAX_KEYLEN adjustment.
1420
cb4437b8
MR
14212012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
1422
1423 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
1424 (_bfd_mips_elf_check_relocs): Update accordingly.
1425
aed64b35
L
14262012-04-13 Alan Modra <amodra@gmail.com>
1427
1428 PR ld/13947
1429 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
1430 reloc sections.
1431
2615994e
DM
14322012-04-12 David S. Miller <davem@davemloft.net>
1433
1434 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
1435 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
1436 * libbfd.h: Regenerate.
1437 * bfd-in2.h: Likewise.
1438 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
1439 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
1440 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
1441 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
1442 (_bfd_sparc_elf_check_relocs): Likewise.
1443 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1444 (_bfd_sparc_elf_relocate_section): Likewise.
1445
b38cadfb
NC
14462012-04-12 Roland McGrath <mcgrathr@google.com>
1447
1448 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
1449 New variables.
1450 (struct elf32_arm_link_hash_table): New member `nacl_p'.
1451 (elf32_arm_link_hash_table_create): Initialize it.
1452 (elf32_arm_nacl_link_hash_table_create): New function.
1453 (arm_movw_immediate, arm_movt_immediate): New functions.
1454 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
1455 (elf32_arm_finish_dynamic_sections): Likewise.
1456 (elf32_arm_output_plt_map_1): Likewise.
1457 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
1458 New backend vector stanza.
1459 (elf32_arm_nacl_modify_segment_map): New function.
1460 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
1461 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
1462 * configure.in: Likewise.
1463 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
1464 (bfd_elf32_littlearm_nacl_vec): Likewise.
1465 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
1466 (bfd_elf32_bigarm_symbian_vec): Likewise.
1467 (bfd_elf32_littlearm_symbian_vec): Likewise.
1468 (bfd_elf32_bigarm_vxworks_vec): Likewise.
1469 (bfd_elf32_littlearm_vxworks_vec): Likewise.
1470 * configure: Regenerated.
1471
202e2356
NC
14722012-04-12 Tristan Gingold <gingold@adacore.com>
1473
1474 * elflink.c (elf_link_output_extsym): Add a guard.
1475 (bfd_elf_final_link): Remove assertion.
1476 (bfd_elf_final_link): Add a guard.
1477 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
1478 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
1479 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
1480 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
1481 Remove.
1482 (elfNN-ia64-vms target): Move to ...
1483 * elf64-ia64-vms.c: New file.
1484 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
1485 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
1486 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
1487 * configure: Regenerate.
1488 * Makefile.in: Regenerate.
1489
4841cf0c
NC
14902012-04-11 Nick Clifton <nickc@redhat.com>
1491
1492 PR binutils/13897
1493 * elf64-ppc.c (opd_entry_value): When dealing with sections
1494 without relocs, keep the last section loaded in order to avoid
1495 unnecessary reloads.
1496
d324f6d6
RM
14972012-04-09 Roland McGrath <mcgrathr@google.com>
1498
1499 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
1500 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
1501 (nacl_modify_program_headers): Likewise.
1502
5a68afcf
RM
15032012-04-03 Roland McGrath <mcgrathr@google.com>
1504
1505 * elf-nacl.c: New file.
1506 * elf-nacl.h: New file.
1507 * elf32-i386.c (elf_backend_modify_segment_map): Define for
1508 bfd_elf32_i386_nacl_vec.
1509 (elf_backend_modify_program_headers): Likewise.
1510 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
1511 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
1512 (elf_backend_modify_program_headers): Likewise.
1513 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
1514 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
1515 * Makefile.in: Regenerated.
1516 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
1517 (bfd_elf32_x86_64_nacl_vec): Likewise.
1518 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
1519 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
1520 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
1521 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
1522 (bfd_elf32_i386_nacl_vec): Likewise.
1523 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
1524 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
1525 * configure: Regenerated.
1526
3a4ae681
AS
15272012-03-31 Andreas Schwab <schwab@linux-m68k.org>
1528
1529 * elf32-m68k.c (elf_m68k_relocate_section): Allow
1530 R_68K_TLS_LE{8,16,32} for PIE.
1531
a7e28bbe
AK
15322012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1533
1534 * elf64-s390.c: Fix several comments regarding PLT entry
1535 description.
1536 * elf32-s390.c: Likewise.
1537
f41345a7
AK
15382012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1539
1540 * elf64-s390.c: Use the section pointer shortcuts in
1541 elf_link_hash_table and remove them from the target specific
1542 variant.
1543 * elf32-s390.c: Likewise.
1544
9aa17453
AK
15452012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1546
1547 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
1548 New definitions.
1549 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
1550 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
1551 (elf_s390_finish_dynamic_sections): Likewise.
1552 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
1553 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
1554 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
1555 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
1556 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
1557
00d8c7a9
AK
15582012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1559
1560 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
1561 Rename all occurrences in the file to elf_dyn_relocs.
1562 * elf64-s390.c: Likewise.
1563
a66eed7a
AM
15642012-03-30 Alan Modra <amodra@gmail.com>
1565
1566 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
1567 libraries.
1568
f67f98b5
AM
15692012-03-29 Alan Modra <amodra@gmail.com>
1570
1571 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
1572 * bfd-in2.h: Regenerate.
1573
e8d2ba53
AM
15742012-03-23 Alan Modra <amodra@gmail.com>
1575
1576 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
1577 on empty alloc sections.
1578
051d833a
AM
15792012-03-23 Alan Modra <amodra@gmail.com>
1580
1581 * linker.c (_bfd_nearby_section): New function, split out from..
1582 (fix_syms): ..here.
1583 * bfd-in.h (_bfd_nearby_section): Declare.
1584 * bfd-in2.h: Regenerate.
1585 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
1586 data_index_section with ld -q or ld -r output relocs against
1587 stripped output sections. Instead use _bfd_nearby_section.
1588
62599110
AM
15892012-03-23 Alan Modra <amodra@gmail.com>
1590
1591 PR binutils/13894
1592 * elf64-ppc.c (opd_entry_value): Read full symbol table when
1593 sym hashes unavailable.
1594
b781d74f
JM
15952012-03-21 Eliot Dresselhaus <eliot@sonic.net>
1596
1597 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
1598 for non-C6X objects.
1599
17d5dae2
KT
16002012-03-20 Kai Tietz <ktietz@redhat.com>
1601
1602 PR ld/12742
1603 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
1604 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
1605 Add windows.h header include if HAVE_WINDOWS_H is defined.
1606 (dlerror): New static function if windows variant is used instead
1607 of dlfcn.h.
1608 (dlclose): Likewise.
1609 (dlopen): Likewise.
1610 (dlsym): Likewise.
1611 * configure: Regenerated.
1612 * config.in: Regenerated.
1613
bdb892b9
L
16142012-03-20 H.J. Lu <hongjiu.lu@intel.com>
1615
1616 PR ld/13880
1617 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
1618 for R_386_GOTOFF relocation against protected function if
1619 SYMBOLIC_BIND is true.
1620
1621 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
1622 error for R_X86_64_GOTOFF64 relocation against protected function
1623 when building executable or SYMBOLIC_BIND is true.
1624
8059fb19
RM
16252012-03-16 Roland McGrath <mcgrathr@google.com>
1626
1627 * config.bfd: Handle x86_64-*-nacl*.
1628 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
1629 (bfd_elf32_x86_64_nacl_vec): Likewise.
1630 * targets.c: Support them.
1631 * configure.in: Likewise.
1632 * configure: Regenerated.
1633
ac56ee8f
MGD
16342012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1635
1636 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
1637 (elf32_arm_attributes_forbid_div): Likewise.
1638 (elf32_arm_merge_eabi_attributes): Correct handling of
1639 Tag_DIV_use.
1640
eed180f8
RM
16412012-03-15 Roland McGrath <mcgrathr@google.com>
1642
a4456d24
RM
1643 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
1644 elf_x86_64_backend_data parameters for plt_eh_frame.
1645
eed180f8
RM
1646 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
1647 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
1648 (elf_x86_64_arch_bed): New variable.
1649 (elf_backend_arch_data): New macro.
1650 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
1651 (elf_x86_64_allocate_dynrelocs): Likewise.
1652 (elf_x86_64_relocate_section): Likewise.
1653 (elf_x86_64_plt_sym_val): Likewise.
1654 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
1655 parameters for PLT details.
1656 (elf_x86_64_finish_dynamic_sections): Likewise.
1657
caa0075c
RM
16582012-03-14 Roland McGrath <mcgrathr@google.com>
1659
1660 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
1661 to the full size, padding out with nop instructions.
1662
1d7e9d18
AM
16632012-03-12 Alan Modra <amodra@gmail.com>
1664
1665 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
1666 on zero size dynbss symbol.
1667 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
1668 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
1669 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
1670 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1671 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
1672 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
1673 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
1674 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
1675 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1676 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1677 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1678 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
1679 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
1680 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
1681 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
1682 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1683 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1684 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
1685 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
1686 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1687 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
1688
aea77599
AM
16892012-03-10 Edmar Wienskoski <edmar@freescale.com>
1690
1691 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1692 * bfd-in2.h: Regenerate.
1693 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
1694 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1695
56b8aada
L
16962012-03-09 H.J. Lu <hongjiu.lu@intel.com>
1697
1698 PR ld/13817
8b127cbc 1699 * elf32-i386.c (elf_i386_relocate_section): Restore
56b8aada
L
1700 R_386_IRELATIVE.
1701
8b127cbc 1702 * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
56b8aada
L
1703 R_X86_64_IRELATIVE.
1704
460f1cdc
TG
17052012-03-08 Tristan Gingold <gingold@adacore.com>
1706
1707 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
1708 keylen according to archive kind. Set nextvbn and nextrfa lhd
1709 fields. Add comments.
1710
0a22ae8e
NC
17112012-03-07 Nick Clifton <nickc@redhat.com>
1712
1713 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
1714 field.
1715 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
1716 (elf_mn10300_tdata): Define.
1717 (elf_mn10300_local_got_tls_type): Define.
1718 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
1719 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
1720 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
1721 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
1722 (mn10300_reloc_map): Likewise.
1723 (elf_mn10300_tls_transition): New function.
1724 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
1725 (mn10300_elf_check_relocs): Add TLS support.
1726 (mn10300_elf_final_link_relocate): Likewise.
1727 (mn10300_elf_relocate_section): Likewise.
1728 (mn10300_elf_relax_section): Likewise.
1729 (elf32_mn10300_link_hash_newfunc): Initialise new field.
1730 (_bfd_mn10300_copy_indirect_symbol): New function.
1731 (elf32_mn10300_link_hash_table_create): Initialise new fields.
1732 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
1733 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
1734 (_bfd_mn10300_elf_reloc_type_class): Allocate an
1735 elf_mn10300_obj_tdata structure.
1736 (elf_backend_copy_indirect_symbol): Define.
1737 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
1738 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
1739 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
1740 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
1741 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
1742 alongside other MN10300 relocations.
1743 * bfd-in2.h: Regenerate.
1744 * libbfd.h: Regenerate.
1745
3ce231f8
JJ
17462012-03-06 Jakub Jelinek <jakub@redhat.com>
1747
1748 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
1749 set relocate to TRUE.
1750
0bef263a
RO
17512012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752
1753 PR ld/12152
1754 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
1755 overflows for R_SPARC_UA32 in .stab sections.
1756
84abc003
AM
17572012-03-01 Alan Modra <amodra@gmail.com>
1758
1759 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
1760
3d301fdc
AM
17612012-02-27 Alan Modra <amodra@gmail.com>
1762
1763 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
1764 before calling elf specific function.
1765 (sh_elf_osec_readonly_p): Test for error return from above.
1766
cb83c803
AM
17672012-02-27 Alan Modra <amodra@gmail.com>
1768
1769 * elf32-spu.c (build_stub): Fix malloc under-allocation.
1770
6f7be959
WL
17712012-02-25 Walter Lee <walt@tilera.com>
1772 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
1773 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
1774 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
1775 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
1776 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
1777 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
1778 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
1779 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
1780 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
1781 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
1782 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
1783 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
1784 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
1785 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
1786 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
1787 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
1788 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
1789 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
1790 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
1791 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
1792 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
1793 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
1794 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
1795 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
1796 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
1797 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
1798 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
1799 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
1800 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
1801 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
1802 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
1803 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
1804 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
1805 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
1806 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
1807 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
1808 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
1809 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
1810 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
1811 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
1812 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
1813 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
1814 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
1815 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
1816 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
1817 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
1818 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
1819 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
1820 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
1821 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
1822 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
1823 relocations.
1824 (tilepro_reloc_map): Ditto.
1825 (tilepro_info_to_howto_rela): Ditto.
1826 (reloc_to_create_func): Ditto.
1827 (tilepro_tls_translate_to_le): New.
1828 (tilepro_tls_translate_to_ie): New.
1829 (tilepro_elf_tls_transition): New.
1830 (tilepro_elf_check_relocs): Handle new tls relocations.
1831 (tilepro_elf_gc_sweep_hook): Ditto.
1832 (allocate_dynrelocs): Ditto.
1833 (tilepro_elf_relocate_section): Ditto.
1834 (tilepro_replace_insn): New.
1835 (insn_mask_X1): New.
1836 (insn_mask_X0_no_dest_no_srca): New
1837 (insn_mask_X1_no_dest_no_srca): New
1838 (insn_mask_Y0_no_dest_no_srca): New
1839 (insn_mask_Y1_no_dest_no_srca): New
1840 (srca_mask_X0): New
1841 (srca_mask_X1): New
1842 (insn_tls_le_move_X1): New
1843 (insn_tls_le_move_zero_X0X1): New
1844 (insn_tls_ie_lw_X1): New
1845 (insn_tls_ie_add_X0X1): New
1846 (insn_tls_ie_add_Y0Y1): New
1847 (insn_tls_gd_add_X0X1): New
1848 (insn_tls_gd_add_Y0Y1): New
1849 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
1850 relocations.
1851 (tilegx_reloc_map): Ditto.
1852 (tilegx_info_to_howto_rela): Ditto.
1853 (reloc_to_create_func): Ditto.
1854 (tilegx_elf_link_hash_table): New field disable_le_transition.
1855 (tilegx_tls_translate_to_le): New.
1856 (tilegx_tls_translate_to_ie): New.
1857 (tilegx_elf_tls_transition): New.
1858 (tilegx_elf_check_relocs): Handle new tls relocations.
1859 (tilegx_elf_gc_sweep_hook): Ditto.
1860 (allocate_dynrelocs): Ditto.
1861 (tilegx_elf_relocate_section): Ditto.
1862 (tilegx_copy_bits): New.
1863 (tilegx_replace_insn): New.
1864 (insn_mask_X1): New.
1865 (insn_mask_X0_no_dest_no_srca): New.
1866 (insn_mask_X1_no_dest_no_srca): New.
1867 (insn_mask_Y0_no_dest_no_srca): New.
1868 (insn_mask_Y1_no_dest_no_srca): New.
1869 (insn_mask_X0_no_operand): New.
1870 (insn_mask_X1_no_operand): New.
1871 (insn_mask_Y0_no_operand): New.
1872 (insn_mask_Y1_no_operand): New.
1873 (insn_tls_ie_ld_X1): New.
1874 (insn_tls_ie_ld4s_X1): New.
1875 (insn_tls_ie_add_X0X1): New.
1876 (insn_tls_ie_add_Y0Y1): New.
1877 (insn_tls_ie_addx_X0X1): New.
1878 (insn_tls_ie_addx_Y0Y1): New.
1879 (insn_tls_gd_add_X0X1): New.
1880 (insn_tls_gd_add_Y0Y1): New.
1881 (insn_move_X0X1): New.
1882 (insn_move_Y0Y1): New.
1883 (insn_add_X0X1): New.
1884 (insn_add_Y0Y1): New.
1885 (insn_addx_X0X1): New.
1886 (insn_addx_Y0Y1): New.
1887 * libbfd.h: Regenerate.
1888 * bfd-in2.h: Regenerate.
1889
82590249
WL
18902012-02-25 Walter Lee <walt@tilera.com>
1891
fb6cedde
WL
1892 * config.bfd (tilegx-*-*): rename little endian vector; add big
1893 endian vector.
1894 (tilegxbe-*-*): New case.
1895 * configure.in (bfd_elf32_tilegx_vec): Rename...
1896 (bfd_elf32_tilegx_le_vec): ... to this.
1897 (bfd_elf32_tilegx_be_vec): New vector.
1898 (bfd_elf64_tilegx_vec): Rename...
1899 (bfd_elf64_tilegx_le_vec): ... to this.
1900 (bfd_elf64_tilegx_be_vec): New vector.
1901 * configure: Regenerate.
1902 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
1903 (TARGET_LITTLE_NAME): Ditto.
1904 (TARGET_BIG_SYM): Define.
1905 (TARGET_BIG_NAME): Define.
1906 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
1907 (TARGET_LITTLE_NAME): Ditto.
1908 (TARGET_BIG_SYM): Define.
1909 (TARGET_BIG_NAME): Define.
1910 * targets.c (bfd_elf32_tilegx_vec): Rename...
1911 (bfd_elf32_tilegx_le_vec): ... to this.
1912 (bfd_elf32_tilegx_be_vec): Declare.
1913 (bfd_elf64_tilegx_vec): Rename...
1914 (bfd_elf64_tilegx_le_vec): ... to this.
1915 (bfd_elf64_tilegx_be_vec): Declare.
1916 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
1917 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
1918 * bfd-in2.h: Regenerate.
1919 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 1920 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 1921
4115917d
NC
19222012-02-24 Nick Clifton <nickc@redhat.com>
1923
1924 PR ld/13730
1925 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
1926 error message instead of aborting, when an outofrange reloc is
1927 encountered.
1928
19765f52
IS
19292012-02-23 Iain Sandoe <idsandoe@googlemail.com>
1930
1931 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
1932 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
1933 bit-fields when target and host differ in endian-ness. When
1934 PAIRs are non-scattered find the 'symbol' from the preceding
1935 reloc. Add FIXME re. reloc symbols on section boundaries.
1936 (bfd_mach_o_swap_out_non_scattered_reloc): New.
1937 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
1938
6639d37a
IS
19392012-02-17 Iain Sandoe <idsandoe@googlemail.com>
1940
1941 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
1942 sect-diffs.
1943 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
1944 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1945
e1e81ed3
IS
19462012-02-17 Tristan Gingold <gingold@adacore.com>
1947
1948 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
1949 * libbfd.h: Regenerated.
1950 * bfd-in2.h: Likewise.
1951 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
1952 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
1953 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1954
d0ddfe27
AK
19552012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1956
1957 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
1958 GD->LE and LD->LE optimizations.
1959
eb8c5f3f
AM
19602012-02-16 Alan Modra <amodra@gmail.com>
1961
1962 PR binutils/13355
1963 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
1964
e1741a1e
RH
19652012-02-13 Richard Henderson <rth@redhat.com>
1966
1967 PR ld/13621
1968 * linker.c (fix_syms): Force symbols outside any section into
1969 bfd_abs_section_ptr.
1970
5efbbc43
AM
19712012-02-13 Alan Modra <amodra@gmail.com>
1972
1973 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
1974 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
1975 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
1976 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
1977
3e3c397d
JK
19782012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Nick Clifton <nickc@redhat.com>
1980
1981 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
1982 memset.
1983
09903f4b
IS
19842012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1985
1986 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
1987 vma additions in their logical, rather than physical order.
1988
632039e0
IS
19892012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1990
1991 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
1992 parameters.
1993 * mach-o-x86-64.c (text_section_names_xlat): New.
1994 (mach_o_x86_64_segsec_names_xlat): New.
1995 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
1996 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
1997
565a6476
TG
19982012-02-10 Tristan Gingold <gingold@adacore.com>
1999
2000 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
2001 to avoid infinite loop. Add comments.
2002
923f257f
L
20032012-02-09 H.J. Lu <hongjiu.lu@intel.com>
2004
2005 PR ld/13675
2006 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
2007 nop instructions.
2008 (bfd_arch_i386_short_nop_fill): New.
2009 (bfd_arch_i386_long_nop_fill): Likewise.
2010 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
2011 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
2012 bfd_arch_info initializers.
2013
2014 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
2015 (bfd_arch_i386_short_nop_fill): This.
2016 Update bfd_arch_info initializers.
2017 * cpu-l1om.c: Likewise.
2018
4e6b54a6
AM
20192012-02-08 Alan Modra <amodra@gmail.com>
2020
2021 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
2022 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
2023 the correct h->u.weakdef.
2024
ff9e0f5b
AM
20252012-02-07 Alan Modra <amodra@gmail.com>
2026
2027 * elf.c (elf_find_function): Don't use internal_elf_sym.
2028 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
2029 parameter with asymbol.
2030 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
2031 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
2032 (struct elf_backend_data <maybe_function_sym>): Likewise.
2033
526f25b2
EW
20342012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
2035
2036 PR bfd/13410
8b127cbc 2037 * elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
2038 condition that qualifies the candidates for relaxation.
2039
7c4f9963
TG
20402012-02-02 Tristan Gingold <gingold@adacore.com>
2041
2042 * bfdio.c (real_fopen): Remove unused vms_modes variable.
2043
facf03f2
TG
20442012-02-02 Tristan Gingold <gingold@adacore.com>
2045
2046 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
2047 variable warning.
2048
cd99171c
TG
20492012-02-02 Tristan Gingold <gingold@adacore.com>
2050
2051 * archive.c (bfd_slurp_armap): Fix thinko in cast.
2052
b7761f11
L
20532012-01-31 H.J. Lu <hongjiu.lu@intel.com>
2054
2055 PR ld/13616
2056 * archures.c (bfd_arch_info): Add fill.
2057 (bfd_default_arch_struct): Add bfd_arch_default_fill.
2058 (bfd_arch_default_fill): New.
2059
2060 * configure.in: Set bfd version to 2.22.52.
2061 * configure: Regenerated.
2062
2063 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
2064 initializer.
2065 * cpu-arc.c: Likewise.
2066 * cpu-arm.c: Likewise.
2067 * cpu-avr.c: Likewise.
2068 * cpu-bfin.c: Likewise.
2069 * cpu-cr16.c: Likewise.
2070 * cpu-cr16c.c: Likewise.
2071 * cpu-cris.c: Likewise.
2072 * cpu-crx.c: Likewise.
2073 * cpu-d10v.c: Likewise.
2074 * cpu-d30v.c: Likewise.
2075 * cpu-dlx.c: Likewise.
2076 * cpu-epiphany.c: Likewise.
2077 * cpu-fr30.c: Likewise.
2078 * cpu-frv.c: Likewise.
2079 * cpu-h8300.c: Likewise.
2080 * cpu-h8500.c: Likewise.
2081 * cpu-hppa.c: Likewise.
2082 * cpu-i370.c: Likewise.
2083 * cpu-i860.c: Likewise.
2084 * cpu-i960.c: Likewise.
2085 * cpu-ia64.c: Likewise.
2086 * cpu-ip2k.c: Likewise.
2087 * cpu-iq2000.c: Likewise.
2088 * cpu-lm32.c: Likewise.
2089 * cpu-m10200.c: Likewise.
2090 * cpu-m10300.c: Likewise.
2091 * cpu-m32c.c: Likewise.
2092 * cpu-m32r.c: Likewise.
2093 * cpu-m68hc11.c: Likewise.
2094 * cpu-m68hc12.c: Likewise.
2095 * cpu-m68k.c: Likewise.
2096 * cpu-m88k.c: Likewise.
2097 * cpu-mcore.c: Likewise.
2098 * cpu-mep.c: Likewise.
2099 * cpu-microblaze.c: Likewise.
2100 * cpu-mips.c: Likewise.
2101 * cpu-mmix.c: Likewise.
2102 * cpu-moxie.c: Likewise.
2103 * cpu-msp430.c: Likewise.
2104 * cpu-mt.c: Likewise.
2105 * cpu-ns32k.c: Likewise.
2106 * cpu-openrisc.c: Likewise.
2107 * cpu-or32.c: Likewise.
2108 * cpu-pdp11.c: Likewise.
2109 * cpu-pj.c: Likewise.
2110 * cpu-plugin.c: Likewise.
2111 * cpu-powerpc.c: Likewise.
2112 * cpu-rl78.c: Likewise.
2113 * cpu-rs6000.c: Likewise.
2114 * cpu-rx.c: Likewise.
2115 * cpu-s390.c: Likewise.
2116 * cpu-score.c: Likewise.
2117 * cpu-sh.c: Likewise.
2118 * cpu-sparc.c: Likewise.
2119 * cpu-spu.c: Likewise.
2120 * cpu-tic30.c: Likewise.
2121 * cpu-tic4x.c: Likewise.
2122 * cpu-tic54x.c: Likewise.
2123 * cpu-tic6x.c: Likewise.
2124 * cpu-tic80.c: Likewise.
2125 * cpu-tilegx.c: Likewise.
2126 * cpu-tilepro.c: Likewise.
2127 * cpu-v850.c: Likewise.
2128 * cpu-vax.c: Likewise.
2129 * cpu-w65.c: Likewise.
2130 * cpu-we32k.c: Likewise.
2131 * cpu-xc16x.c: Likewise.
2132 * cpu-xstormy16.c: Likewise.
2133 * cpu-xtensa.c: Likewise.
2134 * cpu-z80.c: Likewise.
2135 * cpu-z8k.c: Likewise.
2136
2137 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 2138 (bfd_arch_i386_fill): New.
b7761f11
L
2139 Add bfd_arch_i386_fill to bfd_arch_info initializer.
2140
2141 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
2142 * cpu-l1om.c: Likewise.
2143
ff9e0f5b 2144 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
2145 if fill size is 0.
2146
2147 * bfd-in2.h: Regenerated.
2148
0d048da3
ME
21492012-01-27 Michael Eager <eager@eagercon.com>
2150
8b127cbc 2151 * elf32-microblaze.c (create_got_section):
0d048da3
ME
2152 Reuse existing .rela.got section.
2153
9f296da3
AM
21542012-01-23 Alan Modra <amodra@gmail.com>
2155
2156 * elf-bfd.h: Formatting.
2157 (struct elf_backend_data): Add "maybe_function_sym".
2158 (_bfd_elf_maybe_function_sym): Declare.
2159 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
2160 (elfNN_bed): Init new field.
2161 * elf.c (elf_find_function): Use maybe_function_sym.
2162 (_bfd_elf_maybe_function_sym): New function.
2163 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
2164 (ppc64_elf_maybe_function_sym): New function.
2165
f1bb16f8
NC
21662012-01-20 Francois Gouget <fgouget@codeweavers.com>
2167
2168 PR binutils/13534
2169 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
2170 pad the size field in an archive header.
2171 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
2172 function for the archive size field.
2173 (bfd_generic_openr_next_archived_file): Likewise.
2174 (do_slurp_coff_armap): Likewise.
2175 (_bfd_write_archive_contents): Likewise.
2176 (_bfd_bsd44_write_ar_hdr): Use the new function.
2177 (bfd_ar_hdr_from_filesystem): Likewise.
2178 (_bfd_write_archive_contents): Likewise.
2179 (bsd_write_armap): Likewise.
2180 (coff_write_armap): Likewise.
2181 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
2182 * bfdio.c (bfd_bread): Use correct type for archive element
2183 sizes.
2184 * ar.c (open_inarch): Likewise.
2185 (extract_file): Likewise.
2186 * libbfd-in.h (struct areltdata): Use correct types for
2187 parsed_size and extra_size fields.
2188 Prototype _bfd_ar_sizepad function.
2189 * libbfd.h: Regenerate.
2190
1f20dca5
UW
21912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2192
2193 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
2194 Return NULL if core file generation is unsupported.
2195 (elfcore_write_prstatus): Likewise.
2196 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
2197 (elf_backend_write_core_note): Define.
2198
100fc767
TG
21992012-01-19 Tristan Gingold <gingold@adacore.com>
2200
2201 * pef.c: Add a comment.
2202 * xsym.c: Likewise.
2203
75cd47ed
AM
22042012-01-17 Alan Modra <amodra@gmail.com>
2205
2206 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
2207 trailing garbage in the note.
2208 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
2209
8a5dcf53
AM
22102012-01-16 Daniel Green <venix1@gmail.com>
2211
2212 PR ld/13491
2213 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
2214 h->root.type not h->type.
2215 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
2216
bb76d940
IS
22172012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2218
8a5dcf53
AM
2219 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
2220 indirect symbols.
687be931
IS
2221
22222012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2223
2224 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
2225 position from here... to (bfd_mach_o_build_seg_command): Here.
2226
50d10658
IS
22272012-01-12 Iain Sandoe <idsandoe@googlemail.com>
2228
2229 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
2230 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
2231 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
2232 file. (bfd_mach_o_section): Add indirect_syms field.
2233
e5081f2f
IS
22342012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2235
2236 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
2237 vmsize from filesize. Don't compute offsets or file sizes for
2238 zerofill sections.
2239
bbd56171
IS
22402012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2241
2242 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
2243 command type independent.
2244
794e51c0
AM
22452012-01-11 Alan Modra <amodra@gmail.com>
2246
2247 * elf64-ppc.c: Define more insns used in plt call stubs.
2248 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
2249 (ppc64_elf_relocate_section): Likewise.
2250 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
2251 (struct ppc_link_hash_table): Increase size of stub_count array.
2252 Add plt_stub_align and plt_thread_safe.
2253 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
2254 (plt_stub_size, plt_stub_pad): New functions.
2255 (build_plt_stub): Emit barriers for power7 thread safety. Don't
2256 emit needless save of r2.
2257 (build_tls_get_addr_stub): Adjust params.
2258 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
2259 plt stubs. Adjust build_*plt_stub calls.
2260 (ppc_size_one_stub): Similarly.
2261 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
2262 params. Choose default for plt_thread_safe based on existence of
2263 calls to thread creation functions. Modify plt_call to
2264 plt_call_r2save when no tocsave reloc found. Align tail of stub
2265 sections.
2266 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
2267 output of stub statistics.
2268 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
2269 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
2270
df4f9443
L
22712012-01-10 H.J. Lu <hongjiu.lu@intel.com>
2272
2273 PR ld/13581
2274 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
2275 check on R_X86_64_PCXX.
2276
2a65a88e
TG
22772012-01-10 Tristan Gingold <gingold@adacore.com>
2278
2279 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
2280 warning.
2281
660722b0
TG
22822012-01-10 Tristan Gingold <gingold@adacore.com>
2283
2284 * bfdio.c (bfd_tell): Handle nested archives.
2285 (bfd_seek): Ditto.
2286 * cache.c (bfd_cache_lookup_worker): Ditto.
2287 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
2288 nested archives.
2289 (bfd_generic_openr_next_archived_file): Likewise.
2290
b22161d6
IS
22912012-01-09 Iain Sandoe <idsandoe@googlemail.com>
2292
2293 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
2294 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
2295 (bfd_mach_o_primary_symbol_sort_key): Likewise.
2296 (bfd_mach_o_cf_symbols): Likewise.
2297 (bfd_mach_o_sort_symbol_table): Remove.
2298 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
2299 for indirect and dysymtab counts. Do the symbol sorting here.
2300 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
2301 Make the indirect symbols a TODO.
2302 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
2303 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
2304 a non-zero value.
2305 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
2306 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
2307 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
2308 (IS_MACHO_INDIRECT): Remove.
2309 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
2310
28a1b4f8
NC
23112012-01-06 Nick Clifton <nickc@redhat.com>
2312
2313 PR binutils/13121
2314 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
2315 'flaginfo' to avoid conflicts with AIX system headers.
2316
36f0a48f
TG
23172012-01-06 Tristan Gingold <gingold@adacore.com>
2318
2319 * bfdio.c (bfd_bread): Use arelt_size macro.
2320
76d4c1cb
TG
23212012-01-06 Tristan Gingold <gingold@adacore.com>
2322
2323 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
2324
a1c7aafb
NC
23252012-01-05 Nick Clifton <nickc@redhat.com>
2326
2327 PR ld/12161
2328 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
2329 necessary.
2330
e85c6a70
JK
23312012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2332
2333 Fix zero registers core files when built by gcc-4.7.
2334 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
2335 size. Call elfcore_write_note for the local variables. Remove the
2336 final elfcore_write_note call. Add NOTREACHED comments.
2337
15bbba8d
TG
23382012-01-04 Tristan Gingold <gingold@adacore.com>
2339
2340 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
2341 (bfd_mach_o_generic_stat_arch_elt): Adjust.
2342
a4e241ca
TG
23432012-01-04 Tristan Gingold <gingold@adacore.com>
2344
2345 * mach-o.c (bfd_mach_o_fat_member_init): New function.
2346 (bfd_mach_o_openr_next_archived_file): Reindent.
2347 Adjust to call bfd_mach_o_fat_member_init.
2348 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
2349
71141310
TG
23502012-01-04 Tristan Gingold <gingold@adacore.com>
2351
2352 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
2353 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
2354 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
2355 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
2356 BFD_RELOC_MACH_O_X86_64_BRANCH32,
2357 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
2358 BFD_RELOC_MACH_O_X86_64_GOT.
2359
9f4a5bd1
TG
23602012-01-04 Tristan Gingold <gingold@adacore.com>
2361
2362 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
2363 (bfd_mach_o_load_command): Add fvmlib field.
2364
2365 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
2366 (bfd_mach_o_read_command): Handle fvmlib.
2367
0b2de107
TG
23682012-01-04 Tristan Gingold <gingold@adacore.com>
2369
2370 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
2371 Decode msubtype for ARM.
2372
aeefa1c9
TG
23732012-01-04 Tristan Gingold <gingold@adacore.com>
2374
2375 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
2376
fc55a902
TG
23772012-01-04 Tristan Gingold <gingold@adacore.com>
2378
2379 * mach-o.h: Reindent header.
2380 (bfd_mach_o_encryption_info_command): New structure.
2381 (bfd_mach_o_load_command): Add encryption_info field.
2382
2383 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
2384 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
2385 (bfd_mach_o_read_command): Adjust error message.
2386
2ca7691a
TG
23872012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
2388
2389 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
2390 which reads DWARF2 and stores in stash from find_line.
2391 (find_line) Call _bfd_dwarf2_slurp_debug_info.
2392 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
2393 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
2394 * mach-o.c (dsym_subdir): The name of subdir where debug
2395 information may be stored.
2396 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
2397 type is UUID.
2398 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
2399 corresponding to the executable.
2400 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
2401 specified binary file.
2402 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
2403 the original BFD.
2404 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
2405 executables, dylibs, and bundles.
2406 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
2407 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
2408
68588f95
IS
24092012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2410
2411 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
2412 for stabd symbols.
2413 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
2414 (bfd_mach_o_cf_symbols): Likewise.
2415
f2b324f1
IS
24162012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2417
2418 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
2419
7f307238
IS
24202012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2421
2422 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
2423 as the value of an indirect symbol. Keep the string table index in
2424 non-indirect syms for reference.
2425 (bfd_mach_o_write_dysymtab): New.
2426 (bfd_mach_o_primary_symbol_sort_key): New.
2427 (bfd_mach_o_cf_symbols): New.
2428 (bfd_mach_o_sort_symbol_table): New.
2429 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
2430 If we are emitting a dysymtab, process indirect symbols and count the
2431 number of each other kind.
2432 (bfd_mach_o_mangle_sections): New.
2433 (bfd_mach_o_write_contents): Split out some pre-requisite code into
2434 the command builder. Write dysymtab if the command is present.
2435 (bfd_mach_o_count_sections_for_seg): New.
2436 (bfd_mach_o_build_seg_command): New.
2437 (bfd_mach_o_build_dysymtab_command): New.
2438 (bfd_mach_o_build_commands): Reorganize to support the fact that some
2439 commands are optional and should not be emitted if there are no
2440 sections or symbols.
2441 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 2442 * mach-o.h: Amend and add to comments.
7f307238
IS
2443 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
2444 pointer to the indirects, when present.
2445 (bfd_mach_o_should_emit_dysymtab): New macro.
2446 (IS_MACHO_INDIRECT): Likewise.
2447
23e1d329 2448For older changes see ChangeLog-2011
56882138
AM
2449\f
2450Local Variables:
2451mode: change-log
2452left-margin: 8
2453fill-column: 74
2454version-control: never
2455End:
This page took 0.808831 seconds and 4 git commands to generate.