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