2012-04-17 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
d2226024
TG
12012-04-17 Tristan Gingold <gingold@adacore.com>
2
3 * vms-lib.c (MAX_EKEYLEN): Define.
4 (MAX_KEYLEN): Fix value.
5 (vms_write_index): Add comments and fix indentation.
6 Adjust comparaison. Add assertions. Free kbn_blk.
7 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
8 Compense MAX_KEYLEN adjustment.
9
cb4437b8
MR
102012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
11
12 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
13 (_bfd_mips_elf_check_relocs): Update accordingly.
14
aed64b35
L
152012-04-13 Alan Modra <amodra@gmail.com>
16
17 PR ld/13947
18 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
19 reloc sections.
20
2615994e
DM
212012-04-12 David S. Miller <davem@davemloft.net>
22
23 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
24 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
25 * libbfd.h: Regenerate.
26 * bfd-in2.h: Likewise.
27 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
28 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
29 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
30 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
31 (_bfd_sparc_elf_check_relocs): Likewise.
32 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
33 (_bfd_sparc_elf_relocate_section): Likewise.
34
b38cadfb
NC
352012-04-12 Roland McGrath <mcgrathr@google.com>
36
37 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
38 New variables.
39 (struct elf32_arm_link_hash_table): New member `nacl_p'.
40 (elf32_arm_link_hash_table_create): Initialize it.
41 (elf32_arm_nacl_link_hash_table_create): New function.
42 (arm_movw_immediate, arm_movt_immediate): New functions.
43 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
44 (elf32_arm_finish_dynamic_sections): Likewise.
45 (elf32_arm_output_plt_map_1): Likewise.
46 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
47 New backend vector stanza.
48 (elf32_arm_nacl_modify_segment_map): New function.
49 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
50 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
51 * configure.in: Likewise.
52 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
53 (bfd_elf32_littlearm_nacl_vec): Likewise.
54 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
55 (bfd_elf32_bigarm_symbian_vec): Likewise.
56 (bfd_elf32_littlearm_symbian_vec): Likewise.
57 (bfd_elf32_bigarm_vxworks_vec): Likewise.
58 (bfd_elf32_littlearm_vxworks_vec): Likewise.
59 * configure: Regenerated.
60
202e2356
NC
612012-04-12 Tristan Gingold <gingold@adacore.com>
62
63 * elflink.c (elf_link_output_extsym): Add a guard.
64 (bfd_elf_final_link): Remove assertion.
65 (bfd_elf_final_link): Add a guard.
66 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
67 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
68 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
69 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
70 Remove.
71 (elfNN-ia64-vms target): Move to ...
72 * elf64-ia64-vms.c: New file.
73 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
74 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
75 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
76 * configure: Regenerate.
77 * Makefile.in: Regenerate.
78
4841cf0c
NC
792012-04-11 Nick Clifton <nickc@redhat.com>
80
81 PR binutils/13897
82 * elf64-ppc.c (opd_entry_value): When dealing with sections
83 without relocs, keep the last section loaded in order to avoid
84 unnecessary reloads.
85
d324f6d6
RM
862012-04-09 Roland McGrath <mcgrathr@google.com>
87
88 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
89 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
90 (nacl_modify_program_headers): Likewise.
91
5a68afcf
RM
922012-04-03 Roland McGrath <mcgrathr@google.com>
93
94 * elf-nacl.c: New file.
95 * elf-nacl.h: New file.
96 * elf32-i386.c (elf_backend_modify_segment_map): Define for
97 bfd_elf32_i386_nacl_vec.
98 (elf_backend_modify_program_headers): Likewise.
99 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
100 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
101 (elf_backend_modify_program_headers): Likewise.
102 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
103 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
104 * Makefile.in: Regenerated.
105 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
106 (bfd_elf32_x86_64_nacl_vec): Likewise.
107 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
108 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
109 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
110 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
111 (bfd_elf32_i386_nacl_vec): Likewise.
112 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
113 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
114 * configure: Regenerated.
115
3a4ae681
AS
1162012-03-31 Andreas Schwab <schwab@linux-m68k.org>
117
118 * elf32-m68k.c (elf_m68k_relocate_section): Allow
119 R_68K_TLS_LE{8,16,32} for PIE.
120
a7e28bbe
AK
1212012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
122
123 * elf64-s390.c: Fix several comments regarding PLT entry
124 description.
125 * elf32-s390.c: Likewise.
126
f41345a7
AK
1272012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
128
129 * elf64-s390.c: Use the section pointer shortcuts in
130 elf_link_hash_table and remove them from the target specific
131 variant.
132 * elf32-s390.c: Likewise.
133
9aa17453
AK
1342012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
135
136 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
137 New definitions.
138 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
139 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
140 (elf_s390_finish_dynamic_sections): Likewise.
141 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
142 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
143 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
144 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
145 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
146
00d8c7a9
AK
1472012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
148
149 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
150 Rename all occurrences in the file to elf_dyn_relocs.
151 * elf64-s390.c: Likewise.
152
a66eed7a
AM
1532012-03-30 Alan Modra <amodra@gmail.com>
154
155 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
156 libraries.
157
f67f98b5
AM
1582012-03-29 Alan Modra <amodra@gmail.com>
159
160 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
161 * bfd-in2.h: Regenerate.
162
e8d2ba53
AM
1632012-03-23 Alan Modra <amodra@gmail.com>
164
165 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
166 on empty alloc sections.
167
051d833a
AM
1682012-03-23 Alan Modra <amodra@gmail.com>
169
170 * linker.c (_bfd_nearby_section): New function, split out from..
171 (fix_syms): ..here.
172 * bfd-in.h (_bfd_nearby_section): Declare.
173 * bfd-in2.h: Regenerate.
174 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
175 data_index_section with ld -q or ld -r output relocs against
176 stripped output sections. Instead use _bfd_nearby_section.
177
62599110
AM
1782012-03-23 Alan Modra <amodra@gmail.com>
179
180 PR binutils/13894
181 * elf64-ppc.c (opd_entry_value): Read full symbol table when
182 sym hashes unavailable.
183
b781d74f
JM
1842012-03-21 Eliot Dresselhaus <eliot@sonic.net>
185
186 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
187 for non-C6X objects.
188
17d5dae2
KT
1892012-03-20 Kai Tietz <ktietz@redhat.com>
190
191 PR ld/12742
192 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
193 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
194 Add windows.h header include if HAVE_WINDOWS_H is defined.
195 (dlerror): New static function if windows variant is used instead
196 of dlfcn.h.
197 (dlclose): Likewise.
198 (dlopen): Likewise.
199 (dlsym): Likewise.
200 * configure: Regenerated.
201 * config.in: Regenerated.
202
bdb892b9
L
2032012-03-20 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR ld/13880
206 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
207 for R_386_GOTOFF relocation against protected function if
208 SYMBOLIC_BIND is true.
209
210 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
211 error for R_X86_64_GOTOFF64 relocation against protected function
212 when building executable or SYMBOLIC_BIND is true.
213
8059fb19
RM
2142012-03-16 Roland McGrath <mcgrathr@google.com>
215
216 * config.bfd: Handle x86_64-*-nacl*.
217 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
218 (bfd_elf32_x86_64_nacl_vec): Likewise.
219 * targets.c: Support them.
220 * configure.in: Likewise.
221 * configure: Regenerated.
222
ac56ee8f
MGD
2232012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
224
225 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
226 (elf32_arm_attributes_forbid_div): Likewise.
227 (elf32_arm_merge_eabi_attributes): Correct handling of
228 Tag_DIV_use.
229
eed180f8
RM
2302012-03-15 Roland McGrath <mcgrathr@google.com>
231
a4456d24
RM
232 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
233 elf_x86_64_backend_data parameters for plt_eh_frame.
234
eed180f8
RM
235 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
236 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
237 (elf_x86_64_arch_bed): New variable.
238 (elf_backend_arch_data): New macro.
239 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
240 (elf_x86_64_allocate_dynrelocs): Likewise.
241 (elf_x86_64_relocate_section): Likewise.
242 (elf_x86_64_plt_sym_val): Likewise.
243 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
244 parameters for PLT details.
245 (elf_x86_64_finish_dynamic_sections): Likewise.
246
caa0075c
RM
2472012-03-14 Roland McGrath <mcgrathr@google.com>
248
249 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
250 to the full size, padding out with nop instructions.
251
1d7e9d18
AM
2522012-03-12 Alan Modra <amodra@gmail.com>
253
254 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
255 on zero size dynbss symbol.
256 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
257 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
258 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
259 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
260 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
261 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
262 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
263 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
264 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
265 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
266 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
267 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
268 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
269 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
270 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
271 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
272 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
273 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
274 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
275 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
276 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
277
aea77599
AM
2782012-03-10 Edmar Wienskoski <edmar@freescale.com>
279
280 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
281 * bfd-in2.h: Regenerate.
282 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
283 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
284
56b8aada
L
2852012-03-09 H.J. Lu <hongjiu.lu@intel.com>
286
287 PR ld/13817
288 * bfd/elf32-i386.c (elf_i386_relocate_section): Restore
289 R_386_IRELATIVE.
290
291 * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
292 R_X86_64_IRELATIVE.
293
460f1cdc
TG
2942012-03-08 Tristan Gingold <gingold@adacore.com>
295
296 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
297 keylen according to archive kind. Set nextvbn and nextrfa lhd
298 fields. Add comments.
299
0a22ae8e
NC
3002012-03-07 Nick Clifton <nickc@redhat.com>
301
302 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
303 field.
304 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
305 (elf_mn10300_tdata): Define.
306 (elf_mn10300_local_got_tls_type): Define.
307 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
308 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
309 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
310 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
311 (mn10300_reloc_map): Likewise.
312 (elf_mn10300_tls_transition): New function.
313 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
314 (mn10300_elf_check_relocs): Add TLS support.
315 (mn10300_elf_final_link_relocate): Likewise.
316 (mn10300_elf_relocate_section): Likewise.
317 (mn10300_elf_relax_section): Likewise.
318 (elf32_mn10300_link_hash_newfunc): Initialise new field.
319 (_bfd_mn10300_copy_indirect_symbol): New function.
320 (elf32_mn10300_link_hash_table_create): Initialise new fields.
321 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
322 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
323 (_bfd_mn10300_elf_reloc_type_class): Allocate an
324 elf_mn10300_obj_tdata structure.
325 (elf_backend_copy_indirect_symbol): Define.
326 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
327 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
328 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
329 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
330 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
331 alongside other MN10300 relocations.
332 * bfd-in2.h: Regenerate.
333 * libbfd.h: Regenerate.
334
3ce231f8
JJ
3352012-03-06 Jakub Jelinek <jakub@redhat.com>
336
337 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
338 set relocate to TRUE.
339
0bef263a
RO
3402012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
341
342 PR ld/12152
343 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
344 overflows for R_SPARC_UA32 in .stab sections.
345
84abc003
AM
3462012-03-01 Alan Modra <amodra@gmail.com>
347
348 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
349
3d301fdc
AM
3502012-02-27 Alan Modra <amodra@gmail.com>
351
352 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
353 before calling elf specific function.
354 (sh_elf_osec_readonly_p): Test for error return from above.
355
cb83c803
AM
3562012-02-27 Alan Modra <amodra@gmail.com>
357
358 * elf32-spu.c (build_stub): Fix malloc under-allocation.
359
6f7be959
WL
3602012-02-25 Walter Lee <walt@tilera.com>
361 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
362 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
363 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
364 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
365 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
366 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
367 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
368 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
369 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
370 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
371 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
372 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
373 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
374 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
375 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
376 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
377 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
378 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
379 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
380 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
381 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
382 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
383 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
384 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
385 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
386 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
387 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
388 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
389 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
390 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
391 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
392 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
393 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
394 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
395 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
396 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
397 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
398 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
399 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
400 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
401 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
402 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
403 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
404 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
405 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
406 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
407 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
408 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
409 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
410 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
411 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
412 relocations.
413 (tilepro_reloc_map): Ditto.
414 (tilepro_info_to_howto_rela): Ditto.
415 (reloc_to_create_func): Ditto.
416 (tilepro_tls_translate_to_le): New.
417 (tilepro_tls_translate_to_ie): New.
418 (tilepro_elf_tls_transition): New.
419 (tilepro_elf_check_relocs): Handle new tls relocations.
420 (tilepro_elf_gc_sweep_hook): Ditto.
421 (allocate_dynrelocs): Ditto.
422 (tilepro_elf_relocate_section): Ditto.
423 (tilepro_replace_insn): New.
424 (insn_mask_X1): New.
425 (insn_mask_X0_no_dest_no_srca): New
426 (insn_mask_X1_no_dest_no_srca): New
427 (insn_mask_Y0_no_dest_no_srca): New
428 (insn_mask_Y1_no_dest_no_srca): New
429 (srca_mask_X0): New
430 (srca_mask_X1): New
431 (insn_tls_le_move_X1): New
432 (insn_tls_le_move_zero_X0X1): New
433 (insn_tls_ie_lw_X1): New
434 (insn_tls_ie_add_X0X1): New
435 (insn_tls_ie_add_Y0Y1): New
436 (insn_tls_gd_add_X0X1): New
437 (insn_tls_gd_add_Y0Y1): New
438 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
439 relocations.
440 (tilegx_reloc_map): Ditto.
441 (tilegx_info_to_howto_rela): Ditto.
442 (reloc_to_create_func): Ditto.
443 (tilegx_elf_link_hash_table): New field disable_le_transition.
444 (tilegx_tls_translate_to_le): New.
445 (tilegx_tls_translate_to_ie): New.
446 (tilegx_elf_tls_transition): New.
447 (tilegx_elf_check_relocs): Handle new tls relocations.
448 (tilegx_elf_gc_sweep_hook): Ditto.
449 (allocate_dynrelocs): Ditto.
450 (tilegx_elf_relocate_section): Ditto.
451 (tilegx_copy_bits): New.
452 (tilegx_replace_insn): New.
453 (insn_mask_X1): New.
454 (insn_mask_X0_no_dest_no_srca): New.
455 (insn_mask_X1_no_dest_no_srca): New.
456 (insn_mask_Y0_no_dest_no_srca): New.
457 (insn_mask_Y1_no_dest_no_srca): New.
458 (insn_mask_X0_no_operand): New.
459 (insn_mask_X1_no_operand): New.
460 (insn_mask_Y0_no_operand): New.
461 (insn_mask_Y1_no_operand): New.
462 (insn_tls_ie_ld_X1): New.
463 (insn_tls_ie_ld4s_X1): New.
464 (insn_tls_ie_add_X0X1): New.
465 (insn_tls_ie_add_Y0Y1): New.
466 (insn_tls_ie_addx_X0X1): New.
467 (insn_tls_ie_addx_Y0Y1): New.
468 (insn_tls_gd_add_X0X1): New.
469 (insn_tls_gd_add_Y0Y1): New.
470 (insn_move_X0X1): New.
471 (insn_move_Y0Y1): New.
472 (insn_add_X0X1): New.
473 (insn_add_Y0Y1): New.
474 (insn_addx_X0X1): New.
475 (insn_addx_Y0Y1): New.
476 * libbfd.h: Regenerate.
477 * bfd-in2.h: Regenerate.
478
82590249
WL
4792012-02-25 Walter Lee <walt@tilera.com>
480
fb6cedde
WL
481 * config.bfd (tilegx-*-*): rename little endian vector; add big
482 endian vector.
483 (tilegxbe-*-*): New case.
484 * configure.in (bfd_elf32_tilegx_vec): Rename...
485 (bfd_elf32_tilegx_le_vec): ... to this.
486 (bfd_elf32_tilegx_be_vec): New vector.
487 (bfd_elf64_tilegx_vec): Rename...
488 (bfd_elf64_tilegx_le_vec): ... to this.
489 (bfd_elf64_tilegx_be_vec): New vector.
490 * configure: Regenerate.
491 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
492 (TARGET_LITTLE_NAME): Ditto.
493 (TARGET_BIG_SYM): Define.
494 (TARGET_BIG_NAME): Define.
495 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
496 (TARGET_LITTLE_NAME): Ditto.
497 (TARGET_BIG_SYM): Define.
498 (TARGET_BIG_NAME): Define.
499 * targets.c (bfd_elf32_tilegx_vec): Rename...
500 (bfd_elf32_tilegx_le_vec): ... to this.
501 (bfd_elf32_tilegx_be_vec): Declare.
502 (bfd_elf64_tilegx_vec): Rename...
503 (bfd_elf64_tilegx_le_vec): ... to this.
504 (bfd_elf64_tilegx_be_vec): Declare.
505 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
506 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
507 * bfd-in2.h: Regenerate.
508 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 509 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 510
4115917d
NC
5112012-02-24 Nick Clifton <nickc@redhat.com>
512
513 PR ld/13730
514 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
515 error message instead of aborting, when an outofrange reloc is
516 encountered.
517
19765f52
IS
5182012-02-23 Iain Sandoe <idsandoe@googlemail.com>
519
520 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
521 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
522 bit-fields when target and host differ in endian-ness. When
523 PAIRs are non-scattered find the 'symbol' from the preceding
524 reloc. Add FIXME re. reloc symbols on section boundaries.
525 (bfd_mach_o_swap_out_non_scattered_reloc): New.
526 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
527
6639d37a
IS
5282012-02-17 Iain Sandoe <idsandoe@googlemail.com>
529
530 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
531 sect-diffs.
532 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
533 (bfd_mach_o_i386_swap_reloc_out): Likewise.
534
e1e81ed3
IS
5352012-02-17 Tristan Gingold <gingold@adacore.com>
536
537 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
538 * libbfd.h: Regenerated.
539 * bfd-in2.h: Likewise.
540 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
541 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
542 (bfd_mach_o_i386_swap_reloc_out): Likewise.
543
d0ddfe27
AK
5442012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
545
546 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
547 GD->LE and LD->LE optimizations.
548
eb8c5f3f
AM
5492012-02-16 Alan Modra <amodra@gmail.com>
550
551 PR binutils/13355
552 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
553
e1741a1e
RH
5542012-02-13 Richard Henderson <rth@redhat.com>
555
556 PR ld/13621
557 * linker.c (fix_syms): Force symbols outside any section into
558 bfd_abs_section_ptr.
559
5efbbc43
AM
5602012-02-13 Alan Modra <amodra@gmail.com>
561
562 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
563 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
564 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
565 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
566
3e3c397d
JK
5672012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
568 Nick Clifton <nickc@redhat.com>
569
570 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
571 memset.
572
09903f4b
IS
5732012-02-10 Iain Sandoe <idsandoe@googlemail.com>
574
575 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
576 vma additions in their logical, rather than physical order.
577
632039e0
IS
5782012-02-10 Iain Sandoe <idsandoe@googlemail.com>
579
580 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
581 parameters.
582 * mach-o-x86-64.c (text_section_names_xlat): New.
583 (mach_o_x86_64_segsec_names_xlat): New.
584 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
585 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
586
565a6476
TG
5872012-02-10 Tristan Gingold <gingold@adacore.com>
588
589 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
590 to avoid infinite loop. Add comments.
591
923f257f
L
5922012-02-09 H.J. Lu <hongjiu.lu@intel.com>
593
594 PR ld/13675
595 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
596 nop instructions.
597 (bfd_arch_i386_short_nop_fill): New.
598 (bfd_arch_i386_long_nop_fill): Likewise.
599 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
600 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
601 bfd_arch_info initializers.
602
603 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
604 (bfd_arch_i386_short_nop_fill): This.
605 Update bfd_arch_info initializers.
606 * cpu-l1om.c: Likewise.
607
4e6b54a6
AM
6082012-02-08 Alan Modra <amodra@gmail.com>
609
610 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
611 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
612 the correct h->u.weakdef.
613
ff9e0f5b
AM
6142012-02-07 Alan Modra <amodra@gmail.com>
615
616 * elf.c (elf_find_function): Don't use internal_elf_sym.
617 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
618 parameter with asymbol.
619 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
620 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
621 (struct elf_backend_data <maybe_function_sym>): Likewise.
622
526f25b2
EW
6232012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
624
625 PR bfd/13410
ff9e0f5b 626 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
627 condition that qualifies the candidates for relaxation.
628
7c4f9963
TG
6292012-02-02 Tristan Gingold <gingold@adacore.com>
630
631 * bfdio.c (real_fopen): Remove unused vms_modes variable.
632
facf03f2
TG
6332012-02-02 Tristan Gingold <gingold@adacore.com>
634
635 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
636 variable warning.
637
cd99171c
TG
6382012-02-02 Tristan Gingold <gingold@adacore.com>
639
640 * archive.c (bfd_slurp_armap): Fix thinko in cast.
641
b7761f11
L
6422012-01-31 H.J. Lu <hongjiu.lu@intel.com>
643
644 PR ld/13616
645 * archures.c (bfd_arch_info): Add fill.
646 (bfd_default_arch_struct): Add bfd_arch_default_fill.
647 (bfd_arch_default_fill): New.
648
649 * configure.in: Set bfd version to 2.22.52.
650 * configure: Regenerated.
651
652 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
653 initializer.
654 * cpu-arc.c: Likewise.
655 * cpu-arm.c: Likewise.
656 * cpu-avr.c: Likewise.
657 * cpu-bfin.c: Likewise.
658 * cpu-cr16.c: Likewise.
659 * cpu-cr16c.c: Likewise.
660 * cpu-cris.c: Likewise.
661 * cpu-crx.c: Likewise.
662 * cpu-d10v.c: Likewise.
663 * cpu-d30v.c: Likewise.
664 * cpu-dlx.c: Likewise.
665 * cpu-epiphany.c: Likewise.
666 * cpu-fr30.c: Likewise.
667 * cpu-frv.c: Likewise.
668 * cpu-h8300.c: Likewise.
669 * cpu-h8500.c: Likewise.
670 * cpu-hppa.c: Likewise.
671 * cpu-i370.c: Likewise.
672 * cpu-i860.c: Likewise.
673 * cpu-i960.c: Likewise.
674 * cpu-ia64.c: Likewise.
675 * cpu-ip2k.c: Likewise.
676 * cpu-iq2000.c: Likewise.
677 * cpu-lm32.c: Likewise.
678 * cpu-m10200.c: Likewise.
679 * cpu-m10300.c: Likewise.
680 * cpu-m32c.c: Likewise.
681 * cpu-m32r.c: Likewise.
682 * cpu-m68hc11.c: Likewise.
683 * cpu-m68hc12.c: Likewise.
684 * cpu-m68k.c: Likewise.
685 * cpu-m88k.c: Likewise.
686 * cpu-mcore.c: Likewise.
687 * cpu-mep.c: Likewise.
688 * cpu-microblaze.c: Likewise.
689 * cpu-mips.c: Likewise.
690 * cpu-mmix.c: Likewise.
691 * cpu-moxie.c: Likewise.
692 * cpu-msp430.c: Likewise.
693 * cpu-mt.c: Likewise.
694 * cpu-ns32k.c: Likewise.
695 * cpu-openrisc.c: Likewise.
696 * cpu-or32.c: Likewise.
697 * cpu-pdp11.c: Likewise.
698 * cpu-pj.c: Likewise.
699 * cpu-plugin.c: Likewise.
700 * cpu-powerpc.c: Likewise.
701 * cpu-rl78.c: Likewise.
702 * cpu-rs6000.c: Likewise.
703 * cpu-rx.c: Likewise.
704 * cpu-s390.c: Likewise.
705 * cpu-score.c: Likewise.
706 * cpu-sh.c: Likewise.
707 * cpu-sparc.c: Likewise.
708 * cpu-spu.c: Likewise.
709 * cpu-tic30.c: Likewise.
710 * cpu-tic4x.c: Likewise.
711 * cpu-tic54x.c: Likewise.
712 * cpu-tic6x.c: Likewise.
713 * cpu-tic80.c: Likewise.
714 * cpu-tilegx.c: Likewise.
715 * cpu-tilepro.c: Likewise.
716 * cpu-v850.c: Likewise.
717 * cpu-vax.c: Likewise.
718 * cpu-w65.c: Likewise.
719 * cpu-we32k.c: Likewise.
720 * cpu-xc16x.c: Likewise.
721 * cpu-xstormy16.c: Likewise.
722 * cpu-xtensa.c: Likewise.
723 * cpu-z80.c: Likewise.
724 * cpu-z8k.c: Likewise.
725
726 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 727 (bfd_arch_i386_fill): New.
b7761f11
L
728 Add bfd_arch_i386_fill to bfd_arch_info initializer.
729
730 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
731 * cpu-l1om.c: Likewise.
732
ff9e0f5b 733 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
734 if fill size is 0.
735
736 * bfd-in2.h: Regenerated.
737
0d048da3
ME
7382012-01-27 Michael Eager <eager@eagercon.com>
739
740 * bfd/elf32-microblaze.c (create_got_section):
741 Reuse existing .rela.got section.
742
9f296da3
AM
7432012-01-23 Alan Modra <amodra@gmail.com>
744
745 * elf-bfd.h: Formatting.
746 (struct elf_backend_data): Add "maybe_function_sym".
747 (_bfd_elf_maybe_function_sym): Declare.
748 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
749 (elfNN_bed): Init new field.
750 * elf.c (elf_find_function): Use maybe_function_sym.
751 (_bfd_elf_maybe_function_sym): New function.
752 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
753 (ppc64_elf_maybe_function_sym): New function.
754
f1bb16f8
NC
7552012-01-20 Francois Gouget <fgouget@codeweavers.com>
756
757 PR binutils/13534
758 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
759 pad the size field in an archive header.
760 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
761 function for the archive size field.
762 (bfd_generic_openr_next_archived_file): Likewise.
763 (do_slurp_coff_armap): Likewise.
764 (_bfd_write_archive_contents): Likewise.
765 (_bfd_bsd44_write_ar_hdr): Use the new function.
766 (bfd_ar_hdr_from_filesystem): Likewise.
767 (_bfd_write_archive_contents): Likewise.
768 (bsd_write_armap): Likewise.
769 (coff_write_armap): Likewise.
770 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
771 * bfdio.c (bfd_bread): Use correct type for archive element
772 sizes.
773 * ar.c (open_inarch): Likewise.
774 (extract_file): Likewise.
775 * libbfd-in.h (struct areltdata): Use correct types for
776 parsed_size and extra_size fields.
777 Prototype _bfd_ar_sizepad function.
778 * libbfd.h: Regenerate.
779
1f20dca5
UW
7802012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
781
782 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
783 Return NULL if core file generation is unsupported.
784 (elfcore_write_prstatus): Likewise.
785 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
786 (elf_backend_write_core_note): Define.
787
100fc767
TG
7882012-01-19 Tristan Gingold <gingold@adacore.com>
789
790 * pef.c: Add a comment.
791 * xsym.c: Likewise.
792
75cd47ed
AM
7932012-01-17 Alan Modra <amodra@gmail.com>
794
795 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
796 trailing garbage in the note.
797 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
798
8a5dcf53
AM
7992012-01-16 Daniel Green <venix1@gmail.com>
800
801 PR ld/13491
802 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
803 h->root.type not h->type.
804 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
805
bb76d940
IS
8062012-01-13 Iain Sandoe <idsandoe@googlemail.com>
807
8a5dcf53
AM
808 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
809 indirect symbols.
687be931
IS
810
8112012-01-13 Iain Sandoe <idsandoe@googlemail.com>
812
813 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
814 position from here... to (bfd_mach_o_build_seg_command): Here.
815
50d10658
IS
8162012-01-12 Iain Sandoe <idsandoe@googlemail.com>
817
818 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
819 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
820 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
821 file. (bfd_mach_o_section): Add indirect_syms field.
822
e5081f2f
IS
8232012-01-11 Iain Sandoe <idsandoe@googlemail.com>
824
825 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
826 vmsize from filesize. Don't compute offsets or file sizes for
827 zerofill sections.
828
bbd56171
IS
8292012-01-11 Iain Sandoe <idsandoe@googlemail.com>
830
831 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
832 command type independent.
833
794e51c0
AM
8342012-01-11 Alan Modra <amodra@gmail.com>
835
836 * elf64-ppc.c: Define more insns used in plt call stubs.
837 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
838 (ppc64_elf_relocate_section): Likewise.
839 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
840 (struct ppc_link_hash_table): Increase size of stub_count array.
841 Add plt_stub_align and plt_thread_safe.
842 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
843 (plt_stub_size, plt_stub_pad): New functions.
844 (build_plt_stub): Emit barriers for power7 thread safety. Don't
845 emit needless save of r2.
846 (build_tls_get_addr_stub): Adjust params.
847 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
848 plt stubs. Adjust build_*plt_stub calls.
849 (ppc_size_one_stub): Similarly.
850 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
851 params. Choose default for plt_thread_safe based on existence of
852 calls to thread creation functions. Modify plt_call to
853 plt_call_r2save when no tocsave reloc found. Align tail of stub
854 sections.
855 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
856 output of stub statistics.
857 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
858 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
859
df4f9443
L
8602012-01-10 H.J. Lu <hongjiu.lu@intel.com>
861
862 PR ld/13581
863 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
864 check on R_X86_64_PCXX.
865
2a65a88e
TG
8662012-01-10 Tristan Gingold <gingold@adacore.com>
867
868 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
869 warning.
870
660722b0
TG
8712012-01-10 Tristan Gingold <gingold@adacore.com>
872
873 * bfdio.c (bfd_tell): Handle nested archives.
874 (bfd_seek): Ditto.
875 * cache.c (bfd_cache_lookup_worker): Ditto.
876 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
877 nested archives.
878 (bfd_generic_openr_next_archived_file): Likewise.
879
b22161d6
IS
8802012-01-09 Iain Sandoe <idsandoe@googlemail.com>
881
882 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
883 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
884 (bfd_mach_o_primary_symbol_sort_key): Likewise.
885 (bfd_mach_o_cf_symbols): Likewise.
886 (bfd_mach_o_sort_symbol_table): Remove.
887 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
888 for indirect and dysymtab counts. Do the symbol sorting here.
889 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
890 Make the indirect symbols a TODO.
891 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
892 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
893 a non-zero value.
894 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
895 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
896 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
897 (IS_MACHO_INDIRECT): Remove.
898 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
899
28a1b4f8
NC
9002012-01-06 Nick Clifton <nickc@redhat.com>
901
902 PR binutils/13121
903 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
904 'flaginfo' to avoid conflicts with AIX system headers.
905
36f0a48f
TG
9062012-01-06 Tristan Gingold <gingold@adacore.com>
907
908 * bfdio.c (bfd_bread): Use arelt_size macro.
909
76d4c1cb
TG
9102012-01-06 Tristan Gingold <gingold@adacore.com>
911
912 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
913
a1c7aafb
NC
9142012-01-05 Nick Clifton <nickc@redhat.com>
915
916 PR ld/12161
917 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
918 necessary.
919
e85c6a70
JK
9202012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 Fix zero registers core files when built by gcc-4.7.
923 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
924 size. Call elfcore_write_note for the local variables. Remove the
925 final elfcore_write_note call. Add NOTREACHED comments.
926
15bbba8d
TG
9272012-01-04 Tristan Gingold <gingold@adacore.com>
928
929 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
930 (bfd_mach_o_generic_stat_arch_elt): Adjust.
931
a4e241ca
TG
9322012-01-04 Tristan Gingold <gingold@adacore.com>
933
934 * mach-o.c (bfd_mach_o_fat_member_init): New function.
935 (bfd_mach_o_openr_next_archived_file): Reindent.
936 Adjust to call bfd_mach_o_fat_member_init.
937 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
938
71141310
TG
9392012-01-04 Tristan Gingold <gingold@adacore.com>
940
941 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
942 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
943 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
944 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
945 BFD_RELOC_MACH_O_X86_64_BRANCH32,
946 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
947 BFD_RELOC_MACH_O_X86_64_GOT.
948
9f4a5bd1
TG
9492012-01-04 Tristan Gingold <gingold@adacore.com>
950
951 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
952 (bfd_mach_o_load_command): Add fvmlib field.
953
954 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
955 (bfd_mach_o_read_command): Handle fvmlib.
956
0b2de107
TG
9572012-01-04 Tristan Gingold <gingold@adacore.com>
958
959 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
960 Decode msubtype for ARM.
961
aeefa1c9
TG
9622012-01-04 Tristan Gingold <gingold@adacore.com>
963
964 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
965
fc55a902
TG
9662012-01-04 Tristan Gingold <gingold@adacore.com>
967
968 * mach-o.h: Reindent header.
969 (bfd_mach_o_encryption_info_command): New structure.
970 (bfd_mach_o_load_command): Add encryption_info field.
971
972 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
973 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
974 (bfd_mach_o_read_command): Adjust error message.
975
2ca7691a
TG
9762012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
977
978 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
979 which reads DWARF2 and stores in stash from find_line.
980 (find_line) Call _bfd_dwarf2_slurp_debug_info.
981 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
982 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
983 * mach-o.c (dsym_subdir): The name of subdir where debug
984 information may be stored.
985 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
986 type is UUID.
987 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
988 corresponding to the executable.
989 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
990 specified binary file.
991 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
992 the original BFD.
993 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
994 executables, dylibs, and bundles.
995 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
996 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
997
68588f95
IS
9982012-01-03 Iain Sandoe <idsandoe@googlemail.com>
999
1000 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
1001 for stabd symbols.
1002 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
1003 (bfd_mach_o_cf_symbols): Likewise.
1004
f2b324f1
IS
10052012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1006
1007 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
1008
7f307238
IS
10092012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1010
1011 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
1012 as the value of an indirect symbol. Keep the string table index in
1013 non-indirect syms for reference.
1014 (bfd_mach_o_write_dysymtab): New.
1015 (bfd_mach_o_primary_symbol_sort_key): New.
1016 (bfd_mach_o_cf_symbols): New.
1017 (bfd_mach_o_sort_symbol_table): New.
1018 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
1019 If we are emitting a dysymtab, process indirect symbols and count the
1020 number of each other kind.
1021 (bfd_mach_o_mangle_sections): New.
1022 (bfd_mach_o_write_contents): Split out some pre-requisite code into
1023 the command builder. Write dysymtab if the command is present.
1024 (bfd_mach_o_count_sections_for_seg): New.
1025 (bfd_mach_o_build_seg_command): New.
1026 (bfd_mach_o_build_dysymtab_command): New.
1027 (bfd_mach_o_build_commands): Reorganize to support the fact that some
1028 commands are optional and should not be emitted if there are no
1029 sections or symbols.
1030 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 1031 * mach-o.h: Amend and add to comments.
7f307238
IS
1032 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
1033 pointer to the indirects, when present.
1034 (bfd_mach_o_should_emit_dysymtab): New macro.
1035 (IS_MACHO_INDIRECT): Likewise.
1036
23e1d329 1037For older changes see ChangeLog-2011
56882138
AM
1038\f
1039Local Variables:
1040mode: change-log
1041left-margin: 8
1042fill-column: 74
1043version-control: never
1044End:
This page took 0.652284 seconds and 4 git commands to generate.