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