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