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