* config/tc-arm.c (it_fsm_post_encode): New forward declaration.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
2fc6d3b0
AM
12009-07-07 Alan Modra <amodra@bigpond.net.au>
2
3 * elf32-spu.c (spu_elf_auto_overlay): Take into account section
4 alignment when packing sections into overlays.
5
9e1f7c0e
DK
62009-07-03 Cary Coutant <ccoutant@google.com>
7
8 * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.
9
4a768870
DK
102009-07-03 Dave Korn <dave.korn.cygwin@gmail.com>
11
12 * coffcode.h (sec_to_styp_flags): Partially revert (functional
13 changes only) earlier patch:-
14
15 2009-06-25 Kai Tietz <kai.tietz@onevision.com>
16
17 * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
18 give .debug and .reloc data characteristics.
19 (DOT_RELOC): New define for .reloc section string.
20 (coff_write_object_contents): Use DOT_RELOC instead of string.
21
848f5748
TT
222009-07-02 Tom Tromey <tromey@redhat.com>
23
24 * aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
25 * bfdwin.c (bfd_free_window): Cast to unsigned long.
26
dda46a27
L
272009-07-01 Nick Clifton <nickc@redhat.com>
28
29 * elf-m10300.c: Remove trailing white space.
30 * reloc.c: Likewise.
31
efde2f2c
NC
322009-07-01 Douglas B Rupp <rupp@gnat.com>
33
dda46a27 34 * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
efde2f2c 35 BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
dda46a27
L
36 * configure.in: Use them.
37 * configure: Regenerate.
38 * config.in: Regnerate.
39 * vmsutil.c: Include sysdep.h, remove ansidecl.h.
efde2f2c
NC
40 #define _BSD_SOURCE. Add comments.
41 (vms_file_stats_name): Calculate creation date based on available
42 runtime data. Return 1 for version instead of 0.
43
e1ec24c6
NC
442009-07-01 Nick Clifton <nickc@redhat.com>
45
46 PR 10072
47 * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle
48 to R_ARM_THM_PC8 relocation.
49
2709f570
NC
502009-06-29 Nick Clifton <nickc@redhat.com>
51
52 * elf-m10300.c (mn10300_elf_relax_section): Allow for the
53 different uses of the relocations addend when a symbol is in a
54 merged section.
55
83b89087
L
562009-06-27 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR ld/10337
59 * elf.c (bfd_section_from_shdr): Don't change sh_link for
60 SHT_REL/SHT_RELA sections on executable nor shared library.
61 Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
62 as a normal section.
63
be7035c6
NC
642009-06-25 Nick Clifton <nickc@redhat.com>
65
66 * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
67 symbols with SEC_MERGE flag.
68
bdeb4032
KT
692009-06-25 Kai Tietz <kai.tietz@onevision.com>
70
71 * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
72 give .debug and .reloc data characteristics.
73 (DOT_RELOC): New define for .reloc section string.
74 (coff_write_object_contents): Use DOT_RELOC instead of string.
75
b32e07d7
TG
762009-06-25 Tristan Gingold <gingold@adacore.com>
77
78 * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
79 (bfd_mach_o_canonicalize_dynamic_symtab)
80 (bfd_mach_o_get_synthetic_symtab): Defines.
81 (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
82 (TARGET_NAME): Use Mach-O specific functions for dynamic.
83
84 * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
85 for scattered relocations.
86 (bfd_mach_o_i386_print_thread): New function.
87 (bfd_mach_o_print_thread): Define.
88
89 * mach-o.c (text_section_names_xlat): Add an entry for __const.
90 (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
91 New functions extracted from ...
92 (bfd_mach_o_canonicalize_reloc): ... This. Simplified.
93 (bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
94 (bfd_mach_o_canonicalize_dynamic_reloc): New function.
95 (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
96 (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases.
97 (bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
98 Set name_str field.
99 (bfd_mach_o_scan_read_dylib): Ditto.
100 (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments,
101 reindent.
102 (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly
103 decode isym and flags on little endian targets. Set dysymtab field.
104 (bfd_mach_o_scan_start_address): Adjust for enum names.
105 (bfd_mach_o_lookup_section): Do not look for segments anymore.
106 (bfd_mach_o_print_section): Display bfd section name.
107 (bfd_mach_o_print_segment): Display none if no name.
108 (bfd_mach_o_print_dysymtab): Display next index for local, external
109 and undefined symbols.
110 (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
111 Display dylinker name. Display thread and unixthread commands content.
112 (bfd_mach_o_print_thread): New macro.
113
114 * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
115 (bfd_mach_o_ppc_thread_flavour): Ditto.
116 (bfd_mach_o_i386_thread_flavour): Ditto.
117 (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
118 (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
119 BFD_MACH_O_THREAD_STATE_NONE.
120 (bfd_mach_o_segment_command): Remove segment field.
121 (bfd_mach_o_thread_flavour): Field offset is now unsigned long.
122 (bfd_mach_o_dylinker_command): Remove section field, add name_str.
123 (bfd_mach_o_prebound_dylib_command): Ditto.
124 (bfd_mach_o_dylib_command): Ditto.
125 (bfd_mach_o_prebound_dylib_command): Remove section field.
126 (mach_o_data_struct): Add dysymtab field.
127 (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
128 (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
129 (bfd_mach_o_build_commands): Remove parameter names and attributes.
130 (bfd_mach_o_get_dynamic_reloc_upper_bound)
131 (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.
132
c41ba836
DK
1332009-06-25 Rafael Avila de Espindola <espindola@google.com>
134
135 * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
136 field of struct dirent.
137
3188b070
TG
1382009-06-23 Tristan Gingold <gingold@adacore.com>
139
140 * vms.c (vms_get_synthetic_symtab): Remove duplicate definition
141 of this macro. Fix indentation.
142
022f8312
CL
1432009-06-22 Christophe Lyon <christophe.lyon@st.com>
144
145 * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
146 destination for defined dynamic symbols when deciding whether to
147 insert a stub or not.
148 (allocate_dynrelocs): Make sure functions are not marked as Thumb
149 when actually accessed through a PLT, even when generating a
150 shared lib.
151
d297e807
TG
1522009-06-22 Tristan Gingold <gingold@adacore.com>
153
154 * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
155 the relocs array.
156
ceaf50a2
AM
1572009-06-22 Alan Modra <amodra@bigpond.net.au>
158
159 * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
160 * elf32-v850.c (v850_elf_relocate_section): Warning fix.
161
983bddc8
AM
1622009-06-22 Alan Modra <amodra@bigpond.net.au>
163
164 * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.
165
f8703194
L
1662009-06-19 H.J. Lu <hongjiu.lu@intel.com>
167
168 * elflink.c (elf_link_add_object_symbols): Avoid warning
169 from -Wjump-misses-init in gcc 4.5.0.
170
09a24cbf
L
1712009-06-19 H.J. Lu <hongjiu.lu@intel.com>
172
173 * elf32-i386.c (elf_i386_check_relocs): Properly check local
174 symbol on error.
175 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
176
4c544807
L
1772009-06-19 H.J. Lu <hongjiu.lu@intel.com>
178
179 * elf32-i386.c (elf_i386_tls_transition): Add a parameter,
180 r_symndx. Report local symbol name on error.
181 (elf_i386_check_relocs): Updated. Report local symbol name on
182 error.
183 (elf_i386_gc_sweep_hook): Updated.
184 (elf_i386_relocate_section): Likewise.
185
186 * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter,
187 r_symndx. Report local symbol name on error.
188 (elf64_x86_64_check_relocs): Updated. Report local symbol name
189 on error.
190 (elf64_x86_64_gc_sweep_hook): Updated.
191 (elf64_x86_64_relocate_section): Likewise.
192
b8674692
TG
1932009-06-19 Tristan Gingold <gingold@adacore.com>
194
195 * mach-o.c (bfd_mach_o_print_private_header): Fix format character.
196
046b007d
TG
1972009-06-19 Tristan Gingold <gingold@adacore.com>
198
199 * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype.
200 (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access.
201 (bfd_mach_o_valid): Ditto.
202 (bfd_mach_o_wide_p): Ditto.
203 (bfd_mach_o_canonicalize_reloc): Ditto.
204 (bfd_mach_o_build_commands): Ditto.
205 (bfd_mach_o_scan_read_thread): Ditto.
206 (bfd_mach_o_flatten_sections): Ditto.
207 (bfd_mach_o_scan_start_address): Ditto.
208 (bfd_mach_o_lookup_section): Ditto.
209 (bfd_mach_o_core_fetch_environment): Ditto.
210 (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib.
211 (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data.
212 (bfd_mach_o_scan_write_symtab): Ditto.
213 Use macros instead of hard-coded values.
214 (bfd_mach_o_scan_read_symtab_symbol): Make the function static.
215 Use bfd_mach_o_get_data instead of direct access. Use macros
216 instead of hard-coded values.
217 (bfd_mach_o_scan_read_symtab_strtab): Make the function static.
218 Remove sym argument and get section from mdata.
219 Move code into the else branch.
220 (bfd_mach_o_scan_read_symtab_symbols): Make the function static.
221 Remove sym argument and get section from mdata. Adjust code.
222 (bfd_mach_o_scan_read_dylib): Move assertion into the created
223 switch (which replaces consecutive if statements).
224 (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load
225 module table, table of content, indirect symbols and external
226 referenced symbols.
227 (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab
228 field.
229 (bfd_mach_o_scan_read_linkedit): New function.
230 (bfd_mach_o_scan_read_str): Ditto.
231 (bfd_mach_o_count_symbols): Simplify the code by using the symtab
232 field of mdata.
233 (bfd_mach_o_get_symtab_upper_bound): Remove check as
234 bfd_mach_o_count_symbols never returns an error.
235 (bfd_mach_o_canonicalize_symtab): Simplify the code by using the
236 symtab field (there might be only one symtab).
237 (bfd_mach_o_scan_read_command): Handle reexported dylib.
238 Handle sub frameworks, sub umbrella, sub library and sub client.
239 Read code signature and segment split info commands.
240 (bfd_mach_o_scan): Reindent.
241 (bfd_mach_o_xlat_name): New type.
242 (bfd_mach_o_print_flags): New function.
243 (bfd_mach_o_get_name): Ditto.
244 (bfd_mach_o_cpu_name): New variable.
245 (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name)
246 (bfd_mach_o_section_type_name)
247 (bfd_mach_o_section_attribute_name)
248 (bfd_mach_o_load_command_name): New variables.
249 (bfd_mach_o_print_private_header): New function.
250 (bfd_mach_o_print_section_map): New function extracted from
251 bfd_mach_o_print_private_bfd_data.
252 (bfd_mach_o_print_section): Ditto. Print more infos.
253 (bfd_mach_o_print_segment): Ditto.
254 (bfd_mach_o_print_dysymtab): Ditto.
255 (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle
256 load weak dylib, reexport dylib and id dylib.
257 Handle code signature and segment_split info.
258 Handle sub frameworks, sub umbrella, sub library and sub client.
259 (bfd_mach_o_section_get_nbr_indirect): New function.
260
261 * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment.
262 (bfd_mach_o_header_flags): New enum to define header flags.
263 (bfd_mach_o_section_attribute): New enum to replace ...
264 (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC,
265 BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG,
266 BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT,
267 BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS,
268 BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ...
269 these removed macros.
270 (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros.
271 (bfd_mach_o_dylib_module): New type.
272 (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New
273 macros.
274 (bfd_mach_o_dylib_table_of_content): New type.
275 (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro.
276 (bfd_mach_o_dylib_reference): New type.
277 (BFD_MACH_O_REFERENCE_SIZE): New macro.
278 (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded
279 modules, toc, references and indirect syms.
280 (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro.
281 (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were
282 unused). Add comment.
283 (bfd_mach_o_dylib_command): Ditto.
284 (bfd_mach_o_prebound_dylib_command): Ditto.
285 (bfd_mach_o_linkedit_command): New type.
286 (bfd_mach_o_str_command): New type.
287 (bfd_mach_o_load_command): Add linkedit and str fields.
288 (mach_o_data_struct): Add symtab field.
289 (bfd_get_mach_o_data): Renamed to ...
290 (bfd_mach_o_get_data): ... this new macro.
291 (bfd_mach_o_scan_read_symtab_symbol,
292 bfd_mach_o_scan_read_symtab_strtab,
293 bfd_mach_o_scan_read_symtab_symbols): Prototypes removed.
294
295 * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data
296 instead of direct access.
297
6d78d0b9
AM
2982009-06-19 Alan Modra <amodra@bigpond.net.au>
299
300 * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for
301 R_PPC_PLTREL24 relocs.
302 (ppc_elf_relocate_section): Likewise.
303
3ec01793
AM
3042009-06-19 Alan Modra <amodra@bigpond.net.au>
305
306 * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than
307 pointer to sym hash. Update all uses.
308 (update_plt_info): Likewise. Don't check addend here.
309
c2e61a4e
L
3102009-06-18 H.J. Lu <hongjiu.lu@intel.com>
311
312 * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use
313 bfd_sym_from_r_symndx.
314 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
315
87d72d41
AM
3162009-06-18 Alan Modra <amodra@bigpond.net.au>
317
318 * elf-bfd.h (struct sym_sec_cache): Delete.
319 (struct sym_cache): New.
320 (bfd_section_from_r_symndx): Delete prototype.
321 (bfd_sym_from_r_symndx): Define prototype.
322 * elf.c (bfd_section_from_r_symndx): Delete, replace with..
323 (bfd_sym_from_r_symndx): ..new function.
324 * elf32-arm.c: Update all uses of struct sym_sec_cache and
325 bfd_section_from_r_symndx to new struct and function.
326 * elf32-bfin.c: Likewise.
327 * elf32-hppa.c: Likewise.
328 * elf32-i386.c: Likewise.
329 * elf32-m32r.c: Likewise.
330 * elf32-m68hc1x.c: Likewise.
331 * elf32-m68hc1x.h: Likewise.
332 * elf32-m68k.c: Likewise.
333 * elf32-ppc.c: Likewise.
334 * elf32-s390.c: Likewise.
335 * elf32-sh.c: Likewise.
336 * elf64-ppc.c: Likewise.
337 * elf64-s390.c: Likewise.
338 * elf64-x86-64.c: Likewise.
339 * elfxx-sparc.c: Likewise.
340 * elfxx-sparc.h: Likewise.
341
14aae723
L
3422009-06-18 H.J. Lu <hongjiu.lu@intel.com>
343
344 * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf.
345 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
346
5e486aa1
NC
3472009-06-18 Nick Clifton <nickc@redhat.com>
348
349 * elflink.c (elf_link_sort_relocs): Return early if there are no
350 relocs to sort.
351
361dff73
DK
3522009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
353
32425da9
NC
354 Merge cegcc and mingw32ce target name changes from
355 CeGCC project:
361dff73 356
32425da9 357 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
361dff73
DK
358
359 * config.bfd: Add arm*-*-cegcc* target.
360
32425da9 361 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
361dff73
DK
362
363 * config.bfd: Add arm-*-mingw32ce* target.
364
e03a8ed8
L
3652009-06-17 H.J. Lu <hongjiu.lu@intel.com>
366
367 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
368 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
369 * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
370 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
371
3722009-06-17 H.J. Lu <hongjiu.lu@intel.com>
373
374 * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
375 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
376 * elf32-i386.c (elf_i386_check_relocs): Use it.
377 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
378
3792009-06-17 H.J. Lu <hongjiu.lu@intel.com>
380
381 * elf-bfd.h (elf_dyn_relocs): New.
382
383 * elf32-i386.c (elf_i386_dyn_relocs): Removed.
384 (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
385 elf_dyn_relocs.
386 (elf_i386_copy_indirect_symbol): Likewise.
387 (elf_i386_check_relocs): Likewise.
388 (elf_i386_gc_sweep_hook): Likewise.
389 (elf_i386_allocate_dynrelocs): Likewise.
390 (elf_i386_readonly_dynrelocs): Likewise.
391 (elf_i386_size_dynamic_sections): Likewise.
392
393 * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
394 (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
395 with elf_dyn_relocs.
396 (elf64_x86_64_copy_indirect_symbol): Updated.
397 (elf64_x86_64_check_relocs): Likewise.
398 (elf64_x86_64_gc_sweep_hook): Likewise.
399 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
400 (elf64_x86_64_allocate_dynrelocs): Likewise.
401 (elf64_x86_64_readonly_dynrelocs): Likewise.
402 (elf64_x86_64_size_dynamic_sections): Likewise.
403
64e77c6d
L
4042009-06-17 H.J. Lu <hongjiu.lu@intel.com>
405
406 * elf32-arm.c (create_got_section): Get existing .rela.got
407 section.
408 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
409 * elf32-lm32.c (create_got_section): Likewise.
410 * elf32-m32r.c (create_got_section): Likewise.
411 * elf32-ppc.c (ppc_elf_create_got): Likewise.
412 * elf32-s390.c (create_got_section): Likewise.
413 * elf32-sh.c (create_got_section): Likewise.
414 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
415 * elf64-s390.c (create_got_section): Likewise.
416 * elfxx-sparc.c (create_got_section): Likewise.
417
418 * elflink.c (_bfd_elf_create_got_section): Properly initialize
419 the GOT size.
420
d2149d72
L
4212009-06-16 H.J. Lu <hongjiu.lu@intel.com>
422
423 * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
424
425 * elf32-i386.c (elf_i386_local_hash): Removed.
426 (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
427 (elf_i386_get_local_sym_hash): Likewise.
428
429 * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
430 (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
431 (elf64_x86_64_get_local_sym_hash): Likewise.
432 * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
433 (get_local_sym_hash): Likewise.
434
cc3bd654
L
4352009-06-16 H.J. Lu <hongjiu.lu@intel.com>
436
437 * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
438 rel_got_sec and plt_sec.
439 (elfNN_ia64_relax_section): Updated.
440 (elfNN_ia64_create_dynamic_sections): Likewise.
441 (get_got): Likewise.
442 (allocate_dynrel_entries): Likewise.
443 (elfNN_ia64_size_dynamic_sections): Likewise.
444 (set_got_entry): Likewise.
445 (elfNN_ia64_choose_gp): Likewise.
446 (elfNN_ia64_relocate_section): Likewise.
447 (elfNN_ia64_finish_dynamic_symbol): Likewise.
448 (elfNN_ia64_finish_dynamic_sections): Likewise.
449
be3e406d
UW
4502009-06-16 Ulrich Weigand <uweigand@de.ibm.com>
451
452 * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
453 also for calls.
454
6de2ae4a
L
4552009-06-16 H.J. Lu <hongjiu.lu@intel.com>
456
457 * configure.in (elf): Add elf-ifunc.lo.
458
459 * configure: Regenerated.
460 * Makefile.in: Likewise.
461
462 * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
463 srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
464
465 * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
466 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
467 irelifunc.
468 (elf_i386_link_hash_table_create): Likewise.
469 (elf_i386_create_dynamic_sections): Likewise.
470 (elf_i386_check_relocs): Likewise.
471 (elf_i386_allocate_dynrelocs): Likewise.
472 (elf_i386_size_dynamic_sections): Likewise.
473 (elf_i386_relocate_section): Likewise.
474 (elf_i386_finish_dynamic_symbol): Likewise.
475 (elf_i386_finish_dynamic_sections): Likewise.
476 (elf_i386_create_got_section): Removed.
477
478 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
479 sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
480 irelifunc.
481 (elf64_x86_64_compute_jump_table_size): Updated.
482 (elf64_x86_64_link_hash_table_create): Likewise.
483 (elf64_x86_64_create_dynamic_sections): Likewise.
484 (elf64_x86_64_check_relocs): Likewise.
485 (elf64_x86_64_allocate_dynrelocs): Likewise.
486 (elf64_x86_64_size_dynamic_sections): Likewise.
487 (elf64_x86_64_relocate_section): Likewise.
488 (elf64_x86_64_finish_dynamic_symbol): Likewise.
489 (elf64_x86_64_finish_dynamic_sections): Likewise.
490 (elf64_x86_64_create_got_section): Removed.
491
492 * elflink.c (_bfd_elf_create_got_section): Use log_file_align
493 for pointer alignment. Set up section pointers.
494 (_bfd_elf_create_dynamic_sections): Likewise.
495 (_bfd_elf_create_ifunc_sections): Moved to ...
496 * elf-ifunc.c: Here. New.
497
498 * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
499 (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
500 Run "make dep-am".
501
81694485
NC
5022009-06-16 Doug Kwan <dougkwan@google.com>
503
6de2ae4a
L
504 * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
505 to bfd_signed_vma. Cast constant operands which are used in
506 offset related expressions to bfd_signed_vma type as appropriate.
81694485 507
6db7e006
MR
5082009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
509
510 * elf32-vax.c (elf_vax_plt_sym_val): New function.
511 (elf_backend_plt_sym_val): Define.
512
9b90d8fd
MR
5132009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
514
515 * elf32-vax.c (elf_vax_reloc_type_class): New function.
516 (elf_backend_reloc_type_class): Define.
517
04981bc1
MR
5182009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
519
520 * elf32-vax.c (elf_vax_relocate_section): For symbol references
521 from an executable to a shared library treat R_VAX_PC32
522 relocations as R_VAX_PLT32 ones.
523
886815b2
MR
5242009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
525
526 * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
527 symbols in GOT space calculation.
528 (elf_vax_relocate_section): Adjust accordingly.
529
6c4fb25a
MR
5302009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
531
532 * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
533 include <R11:R2>.
534
7b6021f1
MR
5352009-06-16 Maciej W. Rozycki <macro@linux-mips.org>
536
537 * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
538 attribute.
539 (elf_vax_relocate_section): Likewise.
540
188dbb07
L
5412009-06-15 H.J. Lu <hongjiu.lu@intel.com>
542
543 * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
544 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
545
048cbda4
L
5462009-06-15 H.J. Lu <hongjiu.lu@intel.com>
547
548 * elf32-i386.c (elf_i386_check_relocs): Reformat.
549 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
550
482c6ce9
L
5512009-06-15 H.J. Lu <hongjiu.lu@intel.com>
552
553 * Makefile.am: Run "make dep-am".
554 * Makefile.in: Regenerated.
555
eba077f2
L
5562009-06-15 H.J. Lu <hongjiu.lu@intel.com>
557
558 * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
559 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
560
ec68b083
NC
5612009-06-15 Nick Clifton <nickc@redhat.com>
562
563 * po/ru.po: New Russian translation.
564 * configure.in (ALL_LINGUAS): Add ru.
565 * configure: Regenerate.
566
b80ee1aa
L
5672009-06-14 H.J. Lu <hongjiu.lu@intel.com>
568
569 * elf32-i386.c: Remove duplicated comments.
570
44c4ea11
L
5712009-06-14 H.J. Lu <hongjiu.lu@intel.com>
572
573 PR ld/10270
574 * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
575 dynamic IFUNC pointer in non-shared object. Use .got.plt
576 for IFUNC definition in PIE.
577 (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
578 PIE locally.
579
580 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
581 dynamic IFUNC pointer in non-shared object. Use .got.plt
582 for IFUNC definition in PIE.
583 (elf64_x86_64_relocate_section): Resolve IFUNC definition in
584 PIE locally.
585
8b7e2992
L
5862009-06-13 H.J. Lu <hongjiu.lu@intel.com>
587
588 * elf32-i386.c (elf_i386_check_relocs): Properly report
589 local symbol for unhandled relocation against STT_GNU_IFUNC
590 symbol.
637fa7af 591 (elf_i386_relocate_section): Likewise.
8b7e2992 592 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
637fa7af 593 (elf64_x86_64_relocate_section): Likewise.
8b7e2992 594
c25bc9fc
L
5952009-06-13 H.J. Lu <hongjiu.lu@intel.com>
596
597 PR ld/10269
598 * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
599 (elf_i386_link_hash_table): Add loc_hash_table and
600 loc_hash_memory.
601 (elf_i386_local_hash): New.
602 (elf_i386_local_htab_hash): Likewise.
603 (elf_i386_local_htab_eq): Likewise.
604 (elf_i386_get_local_sym_hash): Likewise.
605 (elf_i386_link_hash_table_free): Likewise.
606 (elf_i386_allocate_local_dynrelocs): Likewise.
607 (elf_i386_finish_local_dynamic_symbol): Likewise.
608 (bfd_elf64_bfd_link_hash_table_free): Likewise.
609 (elf_i386_link_hash_table_create): Create loc_hash_table and
610 loc_hash_memory.
611 (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
612 (elf_i386_size_dynamic_sections): Likewise.
613 (elf_i386_relocate_section): Likewise.
614 (elf_i386_finish_dynamic_sections): Likewise.
615 (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
616 isn't NULL.
617
618 * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
619 (elf64_x86_64_link_hash_table): Add loc_hash_table and
620 loc_hash_memory.
621 (elf64_x86_64_local_hash): New.
622 (elf64_x86_64_local_htab_hash): Likewise.
623 (elf64_x86_64_local_htab_eq): Likewise.
624 (elf64_x86_64_get_local_sym_hash): Likewise.
625 (elf64_x86_64_link_hash_table_free): Likewise.
626 (elf64_x86_64_allocate_local_dynrelocs): Likewise.
627 (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
628 (bfd_elf64_bfd_link_hash_table_free): Likewise.
629 (elf64_x86_64_link_hash_table_create): Create loc_hash_table
630 and loc_hash_memory.
631 (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
632 symbols.
633 (elf64_x86_64_size_dynamic_sections): Likewise.
634 (elf64_x86_64_relocate_section): Likewise.
635 (elf64_x86_64_finish_dynamic_sections): Likewise.
636 (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
637 sym isn't NULL.
638
dec9d5df
PB
6392009-06-10 Philip Blundell <philb@gnu.org>
640
641 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
642 elf_sec->this_hdr == NULL.
643
92bc0e80
TG
6442009-06-12 Tristan Gingold <gingold@adacore.com>
645
646 * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
647 * bfd-in2.h: Regenerated.
648 * libbfd.h: Regenerated.
649
650 * mach-o.c (FILE_ALIGN): New macro.
651 (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
652 (bfd_mach_o_print_symbol): Ditto.
653 (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
654 (bfd_mach_o_get_reloc_upper_bound): New function.
655 (bfd_mach_o_canonicalize_reloc): Ditto.
656 (bfd_mach_o_scan_write_relocs): Ditto.
657 (bfd_mach_o_scan_write_section_32): Remove offset argument.
658 (bfd_mach_o_scan_write_section_64): Ditto.
659 (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data
660 written for load command. Do not compute section file offset.
661 (bfd_mach_o_scan_write_segment_64): Ditto.
662 (bfd_mach_o_scan_write_symtab): Compute file offset first.
663 Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to
664 Mach-O to ...
665 (bfd_mach_o_mangle_symbols): ... this new function.
046b007d 666 (bfd_mach_o_write_contents): Be sure to have load commands built.
92bc0e80
TG
667 Call bfd_mach_o_mangle_symbols.
668 (bfd_mach_o_build_commands): Adjust for filelen field.
669 Use FILE_ALIGN macro. Clear section file offset if section is empty.
670 Do not set symtab file offset anymore here.
671 (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
672 (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
673 Set reloc_count and rel_filepos section fields.
674 (bfd_mach_o_scan_read_section_32): Type of argument offset is now
675 unsigned int.
676 (bfd_mach_o_scan_read_section_64): Ditto.
677 (bfd_mach_o_scan_read_section): Ditto.
678 (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
679 bfd_mach_o_asymbol. Use unsigned int for file offset type.
680 (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
681 Handle weak-ref symbols.
682 (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
683 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
684 (bfd_mach_o_scan): Remove assignment to removed field.
685 (bfd_mach_o_mkobject_init): Ditto.
686 (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
687 (bfd_mach_o_bfd_reloc_type_lookup): New macro.
688 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
689 (bfd_mach_o_swap_reloc_in): Ditto.
690 (bfd_mach_o_swap_reloc_out): Ditto.
691
692 * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
693 (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
694 (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
695 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
696 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
697 (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
698 (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
699 (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
700 (BFD_MACH_O_N_WEAK_DEF): New macros.
701 Add comments.
702 (bfd_mach_o_section_type): Add new enumeration values.
703 (BFD_MACH_O_S_SELF_MODIFYING_CODE)
704 (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
705 (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
706 (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
707 macros.
708 (BFD_MACH_O_GENERIC_RELOC_VANILLA)
709 (BFD_MACH_O_GENERIC_RELOC_PAIR)
710 (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
711 (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
712 (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
713 (BFD_MACH_O_RELENT_SIZE): Ditto.
714 (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
715 (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
716 (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
717 (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
718 (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
719 (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
720 (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
721 (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
722 (bfd_mach_o_reloc_info): New struct.
723 (bfd_mach_o_asymbol): New struct.
724 (bfd_mach_o_symtab_command): The symbols field is now of type
725 bfd_mach_o_asymbol.
726 (bfd_mach_o_load_command): The offset and len fields are now of type
727 unsigned int.
728 (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
729 Add a filelen field. Add comments.
730 (bfd_mach_o_backend_data): New struct.
731 (bfd_mach_o_get_backend_data): New macro.
732 (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
733 bfd_mach_o_asymbol.
734 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
735 (bfd_mach_o_get_reloc_upper_bound): New prototype.
736 (bfd_mach_o_canonicalize_reloc): Ditto.
737
738 * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
739 duplicated macro. Now defined to _bfd_generic_is_local_label.
740 (TARGET_NAME_BACKEND): New macro...
741 (TARGET_NAME_BACKEND): ... used to name a new variable.
742 (TARGET_NAME): Define relocs table using bfd_mach_o, reference
743 Mach-O backend data.
744
745 * mach-o-i386.c (i386_howto_table): New variable.
746 (bfd_mach_o_i386_swap_reloc_in): New function.
747 (bfd_mach_o_i386_swap_reloc_out): Ditto.
748 (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
749 (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
750 (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
751 (bfd_mach_o_bfd_reloc_type_lookup)
752 (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
753
8c7d38e8
NC
7542009-06-11 Eric Paris <eparis@redhat.com>
755 Nick Clifton <nickc@redhat.com>
756
757 * opncls.c (_maybe_make_executable): New function. Gives execute
758 permission to an executable bfd that was opened for writing
759 provided that it is a regular file. Replaces common code found in...
760 (bfd_close): here and ...
761 (bfd_close_all_done): here.
762
f865a31d
AG
7632009-06-11 Anthony Green <green@moxielogic.com>
764
765 * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
766 * bfd-in2.h: Rebuilt.
767 * libbfd.h: Rebuilt.
768 * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
769 relocation support.
770 (moxie_reloc_map): Ditto.
771 Clean up copyright notice.
772
25b88f33
PP
7732009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
774
1372b818 775 * bfd-in2.h: bfd_mmap prototype.
25b88f33
PP
776 * bfdio.c (bfd_mmap): New function.
777 * libbfd.h (bfd_iovec): Add bmmap.
1372b818 778 * cache.c (cache_bmmap): New function.
25b88f33
PP
779 (cache_iovec): Initialize bmmap member.
780 * opencls.c (opncls_bmmap): New function.
781 (opncls_iovec): Initialize bmmap member.
782
c2f09c75
TG
7832009-06-09 Tristan Gingold <gingold@adacore.com>
784
785 * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
786 and stabstr_segment fields.
787 (mach_o_be_vec, mach_o_le_vec): Removed
788 (bfd_mach_o_version): New prototype.
789
790 * mach-o.c (bfd_mach_o_version): Make this function public.
791 (mach_o_wide_p): New function.
792 (bfd_mach_o_wide_p): Ditto.
793 (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
794 weird names.
795 (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
796 Search in the list only if the name starts with a dot.
797 (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
798 test. Check bfd_seek status.
799 (bfd_mach_o_scan_write_thread): Check bfd_seek status.
800 (bfd_mach_o_scan_write_section_32): Ditto.
801 (bfd_mach_o_scan_write_section_64): Ditto.
802 (bfd_mach_o_scan_write_section): Removed.
803 (bfd_mach_o_scan_write_segment): Split into ...
804 (bfd_mach_o_scan_write_segment_32): ... this and ...
805 (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
806 (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
807 (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
808 symbol table. Now returns a boolean.
809 (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
810 Adjust for status type.
811 (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
812 test. Write symbol table. Numbers the sections.
813 (bfd_mach_o_read_header): Check bfd_seek status.
814 Use mach_o_wide_p instead of hard-coded test.
815 (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
816 (bfd_mach_o_scan_read_section_64): Ditto.
817 (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
818 Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
819 handled common symbols.
820 (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
821 (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
822 (bfd_mach_o_scan_read_dylinker): Ditto.
823 (bfd_mach_o_scan_read_dylib): Ditto.
824 (bfd_mach_o_scan_read_thread): Ditto.
825 (bfd_mach_o_scan_read_symtab): Ditto.
826 Do not create a section for the stabs.
827 (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
828 (bfd_mach_o_scan_read_segment): Ditto.
829 (bfd_mach_o_scan_read_command): Ditto.
830 (bfd_mach_o_scan_start_address): Ditto.
831 (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
832 (bfd_mach_o_archive_p): Check bfd_seek status.
833 (bfd_mach_o_core_fetch_environment): Ditto.
834
835 * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
836
2a81c24a
L
8372009-06-06 H.J. Lu <hongjiu.lu@intel.com>
838
839 * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
840 (elf_i386_link_hash_table_create): Initialize irelifunc.
841 (elf_i386_check_relocs): Updated. Set up irelifunc for
842 shared objects.
843 (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
844 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
845 shared objects.
846 (elf_i386_relocate_section): Likewise.
847
848 * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
849 (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
850 (elf64_x86_64_check_relocs): Updated. Set up irelifunc for
851 shared objects.
852 (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
853 relocation for non-GOT reference of STT_GNU_IFUNC symbol in
854 shared objects.
855 (elf64_x86_64_relocate_section): Likewise.
856
857 * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
858 ...
859 (_bfd_elf_create_ifunc_sections): This.
860
c2f09c75 861 * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
2a81c24a
L
862 ...
863 (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc
864 for shared objects.
865
710ab287
L
8662009-06-06 H.J. Lu <hongjiu.lu@intel.com>
867
868 * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
869 relocation for R_386_32 against STT_GNU_IFUNC symbol when
870 building shared object. Check info->executable instead of
871 !info->shared when setting non_got_ref.
872 (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
873 for non-GOT reference of STT_GNU_IFUNC symbol in shared
874 object. Allocate GOT relocation agsinst STT_GNU_IFUNC
875 symbol if needed.
876 (elf_i386_relocate_section): Output dynamic relocation for
877 R_386_32 against STT_GNU_IFUNC symbol to get the real
878 function address when building shared object.
879 (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
880 relocation for STT_GNU_IFUNC symbol in shared object.
881
882 * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
883 dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
884 symbol when building shared object. Check info->executable
885 instead of !info->shared when setting non_got_ref.
886 (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
887 for non-GOT reference of STT_GNU_IFUNC symbol in shared
888 library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
889 if needed.
890 (elf64_x86_64_relocate_section): Output dynamic relocation
891 for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
892 function address when building shared object.
893 (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
894 relocation for STT_GNU_IFUNC symbol in shared object.
895
9e93c730
JK
8962009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
897
898 * Makefile.am: Run "make dep-am".
899 (BFD32_BACKENDS): Add mach-o-i386.lo.
900 (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
901 * Makefile.in: Regenerate.
902
74681fc4
AM
9032009-06-06 Alan Modra <amodra@bigpond.net.au>
904
905 * elf32-spu.c (spu_elf_relocate_section): Match overlay number
906 when looking for soft-icache stubs.
907
154a1ee5
TG
9082009-06-05 Tristan Gingold <gingold@adacore.com>
909
910 * mach-o.h: Update copyright year.
911 (bfd_mach_o_mach_header_magic): New enum.
912 (bfd_mach_o_cpu_subtype): Now an enum.
913 (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
914 (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
915 (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
916 (bfd_mach_o_load_command): Field type_required is now a boolean.
917 Reindent prototypes.
918 (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
919 (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
920 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
921 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
922 (bfd_mach_o_get_symtab_upper_bound): Ditto.
923 (bfd_mach_o_canonicalize_symtab): Ditto.
924 (bfd_mach_o_get_symbol_info): Ditto.
925 (bfd_mach_o_print_symbol): Ditto.
926 (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
927 (bfd_mach_o_make_empty_symbol): Ditto.
928 (bfd_mach_o_write_contents): Ditto.
929
930 * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
931 bfd_mach_o_mkobject): Defines.
932 (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
933 Do not check with target vector but with flavour.
934 (struct mach_o_section_name_xlat): New declaration.
935 (dwarf_section_names_xlat): Ditto.
936 (text_section_names_xlat): Ditto.
937 (data_section_names_xlat): Ditto.
938 (struct mach_o_segment_name_xlat): Ditto.
939 (segsec_names_xlat): Ditto.
940 (bfd_mach_o_convert_section_name_to_bfd): New function.
941 (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
942 (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
943 (bfd_mach_o_bfd_copy_private_section_data): Ditto.
944 (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
945 Accept any input and output flavour. Do not share private data
946 anymore.
947 (bfd_mach_o_count_symbols): Add a comment.
948 (bfd_mach_o_get_symtab_upper_bound): Make it public.
949 (bfd_mach_o_canonicalize_symtab): Ditto.
950 (bfd_mach_o_get_symbol_info): Ditto.
951 (bfd_mach_o_print_symbol): Ditto.
952 (bfd_mach_o_write_header): Now returns a boolean instead of an int.
953 Use constants instead of hard-coded values.
954 (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
955 values.
956 (bfd_mach_o_scan_write_section_64): Ditto.
957 (bfd_mach_o_scan_write_segment): Ditto.
958 Do not copy sections anymore.
959 (bfd_mach_o_write_contents): Make it public.
960 Remove dead code. Rewrite typeflag assignment.
961 (bfd_mach_o_build_commands): New function.
962 (bfd_mach_o_set_section_contents): Ditto.
963 (bfd_mach_o_make_empty_symbol): Make it public.
964 (bfd_mach_o_read_header): Make it static.
965 Convert to bfd_boolean.
966 Use constants instead of hard-coded values.
967 (bfd_mach_o_make_bfd_section): Call
968 bfd_mach_o_convert_section_name_to_bfd to create name.
969 (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
970 values.
971 (bfd_mach_o_scan_read_section_64): Ditto.
972 (bfd_mach_o_scan_read_segment): Do not create a bfd section for
973 a segment anymore. Use constants instead of hard-coded values.
974 (bfd_mach_o_scan_read_command): Fix style.
975 (bfd_mach_o_scan): Use constants instead of hard-coded values.
976 Get rid of BFD_IO_FUNCS.
977 (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
978 (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
979 (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
980 (bfd_mach_o_object_p): Removed.
981 (bfd_mach_o_gen_core_p): New function, replaces ...
982 (bfd_mach_o_core_p): ... deleted.
983 (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
984
985 * mach-o-i386.c: New file.
986 * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
987 * configure.in (TDEFINES): Add mach_o_i386_vec.
988 * configure: Regenerated.
989 * targets.c: Add mach_o_i386_vec.
990
991 * mach-o.c: Update copyright years.
992 (BFD_IO_FUNCS): Remove (was not used).
993 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
994 bfd_mach_o_slurp_extended_name_table,
995 bfd_mach_o_construct_extended_name_table,
996 bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
997 bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
998 bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
999 bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
1000 bfd_mach_o_get_section_contents_in_window,
1001 bfd_mach_o_bfd_is_local_label_name,
1002 bfd_mach_o_bfd_is_target_special_symbol,
1003 bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
1004 bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
1005 bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
1006 bfd_mach_o_minisymbol_to_symbol,
1007 bfd_mach_o_bfd_get_relocated_section_contents,
1008 bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
1009 bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
1010 bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
1011 bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
1012 bfd_mach_o_bfd_merge_private_bfd_data,
1013 bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
1014 bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
1015 bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
1016 bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
1017 bfd_mach_o_bfd_copy_private_header_data,
1018 bfd_mach_o_core_file_matches_executable_p): Move these defines ...
1019 * mach-o-target.c: ... here.
1020 Update copyright years.
1021
a1ef399e
AM
10222009-06-04 Alan Modra <amodra@bigpond.net.au>
1023
1024 * dep-in.sed: Don't use \n in replacement part of s command.
1025 * Makefile.am (DEP1): LC_ALL for uniq.
1026 Run "make dep-am".
1027 * Makefile.in: Regenerate.
1028
2e75bb35
L
10292009-06-03 H.J. Lu <hongjiu.lu@intel.com>
1030
1031 * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
1032 h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
1033 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
1034
0018b0a3
L
10352009-06-03 H.J. Lu <hongjiu.lu@intel.com>
1036
1037 * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
1038 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
1039 (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
1040 against STT_GNU_IFUNC symbols for static executables.
1041 (elf_i386_finish_dynamic_symbol): Load GOT entry with
1042 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
1043
1044 * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
1045 GOT entry for STT_GNU_IFUNC symbol with pointer equality.
1046 (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
1047 PLT entry for STT_GNU_IFUNC symbol with pointer equality.
1048
94313f36
RS
10492009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
1050
1051 * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
1052 symbols to be left unimported when linking statically.
1053 * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
1054 code when linking statically.
1055
7afd84dc
L
10562009-06-02 H.J. Lu <hongjiu.lu@intel.com>
1057
1058 * elf32-i386.c (elf_i386_check_relocs): Increment
1059 got.refcount for R_386_GOT32/R_386_GOTOFF relocations
1060 against STT_GNU_IFUNC symbol.
1061 (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
1062 local STT_GNU_IFUNC definition is used.
1063 (elf_i386_relocate_section): Handle got.offset != -1 for
1064 R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
1065 symbol.
1066
1067 * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
1068 got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
1069 relocations against STT_GNU_IFUNC symbol.
1070 (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
1071 local STT_GNU_IFUNC definition is used.
1072 (elf64_x86_64_relocate_section): Handle got.offset != -1
1073 for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
1074 STT_GNU_IFUNC symbol.
1075
cbe950e9
L
10762009-06-01 H.J. Lu <hongjiu.lu@intel.com>
1077
1078 PR ld/10205
1079 * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
1080 (elf_i386_reloc_type_lookup): Likewise.
1081 (R_386_tls): Removed.
1082 (R_386_irelative): New.
1083 (R_386_vt_offset): Updated.
1084 (elf_i386_rtype_to_howto): Likewise.
1085 (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
1086 (elf_i386_link_hash_table_create): Initialize igotplt,
1087 iplt and irelplt.
1088 (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
1089 (elf_i386_adjust_dynamic_symbol): Likewise.
1090 (elf_i386_allocate_dynrelocs): Likewise.
1091 (elf_i386_relocate_section): Likewise.
1092 (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
1093 sections.
1094 (elf_i386_finish_dynamic_symbol): When building a static
1095 executable, use .iplt, .igot.plt and .rel.iplt sections for
1096 STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for
1097 locally defined STT_GNU_IFUNC symbol.
1098
1099 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
1100 (x86_64_reloc_map): Likewise.
1101 (R_X86_64_standard): Updated.
1102 (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
1103 (elf64_x86_64_link_hash_table_create): Initialize igotplt,
1104 iplt and irelplt.
1105 (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
1106 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1107 (elf64_x86_64_allocate_dynrelocs): Likewise.
1108 (elf64_x86_64_relocate_section): Likewise.
1109 (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
1110 sections.
1111 (elf64_x86_64_finish_dynamic_symbol): When building a static
1112 executable, use .iplt, .igot.plt and .rela.iplt sections for
1113 STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation
1114 for locally defined STT_GNU_IFUNC symbol.
1115
1116 * reloc.c (BFD_RELOC_386_IRELATIVE): New.
1117 (BFD_RELOC_X86_64_IRELATIVE): Likewise.
1118
1119 * bfd-in2.h: Regenerated.
1120 * libbfd.h: Likewise.
1121
3aa14d16
L
11222009-06-01 H.J. Lu <hongjiu.lu@intel.com>
1123
1124 * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
1125 (_bfd_elf_make_ifunc_reloc_section): Removed.
1126 (_bfd_elf_is_ifunc_symbol): Likewise.
1127 (_bfd_elf_create_static_ifunc_sections): New.
1128
1129 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
1130 symbol check to ...
1131 (elf_link_add_object_symbols): Here.
1132 (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
1133 STT_GNU_IFUNC symbol.
1134 (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
1135 if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
1136 (IFUNC_INFIX): Removed.
1137 (get_ifunc_reloc_section_name): Likewise.
1138 (_bfd_elf_make_ifunc_reloc_section): Likewise.
1139 (_bfd_elf_is_ifunc_symbol): Likewise.
1140 (_bfd_elf_create_static_ifunc_sections): New.
1141
eb4ff4d6
L
11422009-05-29 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
1145 (create_got_section): Likewise.
1146 (allocate_dynrelocs): Likewise.
1147 (readonly_dynrelocs): Likewise.
1148 (set_tls_module_base): Likewise.
1149 (dtpoff_base): Likewise.
1150 (tpoff): Likewise.
1151 (elf_i386_link_hash_table_create): Updated.
1152 (elf_i386_create_dynamic_sections): Likewise.
1153 (elf_i386_check_relocs): Likewise.
1154 (elf_i386_size_dynamic_sections): Likewise.
1155 (elf_i386_relocate_section): Likewise.
1156
1157 * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
1158 (create_got_section): Likewise.
1159 (allocate_dynrelocs): Likewise.
1160 (readonly_dynrelocs): Likewise.
1161 (set_tls_module_base): Likewise.
1162 (dtpoff_base): Likewise.
1163 (tpoff): Likewise.
1164 (elf64_x86_64_link_hash_table_create): Updated.
1165 (elf64_x86_64_create_dynamic_sections): Likewise.
1166 (elf64_x86_64_check_relocs): Likewise.
1167 (elf64_x86_64_size_dynamic_sections): Likewise.
1168 (elf64_x86_64_relocate_section): Likewise.
1169
fc579192
NC
11702009-05-28 Nick Clifton <nickc@redhat.com>
1171
1172 * targets.c (_bfd_target_vector): Only include plugin target in
1173 all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
1174
5ebe2858
UW
11752009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
1176
1177 * elf32-spu.c (struct call_info): New member broken_cycle.
1178 (remove_cycle): Instead of physically removing call_info structures
1179 to break call graph cycles, mark them using the broken_cycle flag.
1180 (mark_overlay_section): Respect broken_cycle flag.
1181 (unmark_overlay_section): Likewise.
1182 (collect_lib_sections): Likewise.
1183 (collect_overlays): Likewise.
1184 (sum_stack): Likewise.
1185
34ad4cb0
UW
11862009-05-28 Ulrich Weigand <uweigand@de.ibm.com>
1187
1188 * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
1189 (mark_functions_via_relocs): Initialize callee->count to 1.
1190 (pasted_function): Likewise.
1191 (spu_elf_auto_overlay): Honor call counts when determining number
1192 of stubs required in software i-cache mode.
1193
fc579192
NC
11942009-05-27 Rafael Avila de Espindola <espindola@google.com>
1195
1196 * plugin.c (program_name): Remove.
1197 (plugin_program_name): New.
1198 (bfd_plugin_set_program_name): New.
1199 (try_load_plugin): Use plugin_program_name.
1200 * plugin.h (bfd_plugin_set_program_name): New.
1201
12022009-05-27 Rafael Avila de Espindola <espindola@google.com>
5691d22d
NC
1203
1204 * aclocal.m4: Include ../config/plugins.m4.
1205 * configure.in: Use AC_PLUGINS.
1206 * configure: Regenerate.
1207 * Makefile.in: Regenerate.
1208 * doc/Makefile.in: Regenerate.
1209
c8a1f254
NS
12102009-05-27 Nathan Sidwell <nathan@codesourcery.com>
1211
1212 * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
1213 link.
1214 * bout.c (b_out_bfd_relax_section): Reject relocatable links.
1215 * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
1216 * elf32-avr.c (elf32_avr_relax_section): Likewise.
1217 * elf32-frv.c (elf32_avr_relax_section): Likewise.
1218 * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
1219 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1220 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1221 * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
1222 * reloc.c (bfd_generic_relax_section): Likewise.
1223 * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
1224 * vms.c (vms_bfd_relax_section): Likewise.
1225
68d7e96a
L
12262009-05-26 H.J. Lu <hongjiu.lu@intel.com>
1227
1228 * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
1229
1230 * elf32-i386.c (is_indirect_symbol): Renamed to ...
1231 * elflink.c (_bfd_elf_is_ifunc_symbol): This.
1232
1233 * elf32-i386.c (allocate_dynrelocs): Updated.
1234 (elf_i386_relocate_section): Likewise.
1235 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1236 (elf64_x86_64_relocate_section): Likewise.
1237
1238 * elf64-x86-64.c (is_indirect_symbol): Removed.
1239
f12e7348
NC
12402009-05-26 Nick Clifton <nickc@redhat.com>
1241
1242 * po/id.po: Updated Indonesian translation.
1243
ce3c775b
NC
12442009-05-26 Rafael Avila de Espindola <espindola@google.com>
1245
1246 * Makefile.am: Run "make dep-am".
1247 (AM_CPPFLAGS): New.
1248 (LIBDL): New.
1249 (ALL_MACHINES): Add cpu-plugin.lo.
1250 (ALL_MACHINES_CFILES): Add cpu-plugin.c.
1251 (BFD32_BACKENDS): Add plugin.lo.
1252 (BFD32_BACKENDS_CFILES): Add plugin.c.
1253 (libbfd_la_LIBADD): Add LIBDL
1254 * archures.c (bfd_architecture): Add bfd_arch_plugin.
1255 (bfd_plugin_arch): Declare.
1256 * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
1257 * bfd.c (bfd): Add plugin_data.
1258 * config.bfd: Handle the plugin target.
1259 * configure.in: Check for --enable-plugins.
1260 (LT_INIT): Use the dlopen option.
1261 * cpu-plugin.c: New.
1262 * plugin.c: New.
1263 * plugin.h: New.
1264 * targets.c (plugin_vec): Declare.
1265 (_bfd_target_vector): Add plugin_vec.
1266 * Makefile.in: Regenerate.
1267 * bfd-in2.h: Regenerate.
1268 * configure: Regenerate.
1269
9e097a72
AM
12702009-05-26 Alan Modra <amodra@bigpond.net.au>
1271
1272 * dep-in.sed: Don't modify .o to .lo here. Output one filename
1273 per line with all lines having continuation backslash. Prefix
1274 first line with "A", following lines with "B".
1275 * Makefile.am (DEP): Don't use dep.sed here.
1276 (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use
1277 dep.sed here on dependencies, sort and uniq.
1278 * Makefile.in: Regenerate.
1279
d5acff2f
TG
12802009-05-25 Tristan Gingold <gingold@adacore.com>
1281
1282 * makefile.vms: Add verilog.obj to object list OBJS.
1283
5c93f09b
AM
12842009-05-24 Alan Modra <amodra@bigpond.net.au>
1285
1286 * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory
1287 for BFD_IN_MEMORY is cleared.
1288 (bfd_bwrite): Zero excess memory allocated.
1289
48229727
JB
12902009-05-22 Julian Brown <julian@codesourcery.com>
1291
1292 * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
1293 macros.
1294 (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
1295 (elf32_arm_stub_a8_veneer_blx): New stub sequences.
1296 (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
1297 arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
1298 (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
1299 (a8_erratum_fix, a8_erratum_reloc): New structs.
1300 (elf32_arm_link_hash_table): Add a8_erratum_fixes,
1301 num_a8_erratum_fixes, fix_cortex_a8 fields.
1302 (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
1303 (elf32_arm_add_stub): Split into two parts, creating...
1304 (elf32_arm_create_or_find_stub_sec): New function.
1305 (elf32_arm_final_link_relocate): Add forward declaration.
1306 (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
1307 relocations, multiple relocations per stub.
1308 (find_stub_size_and_template): New (using parts of arm_size_one_stub).
1309 (arm_size_one_stub): Use find_stub_size_and_template.
1310 (a8_reloc_compare): New.
1311 (find_thumb_glue): Add forward declaration.
1312 (cortex_a8_erratum_scan): New.
1313 (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
1314 (bfd_elf32_arm_set_cortex_a8_fix): New.
1315 (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
1316 (arm_map_one_stub): Add THUMB32_TYPE support.
1317 (a8_branch_to_stub_data): New.
1318 (make_branch_to_a8_stub): New.
1319 (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
1320 * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
1321 (bfd_elf32_arm_set_target_relocs): Add argument for controlling
1322 Cortex-A8 erratum workaround.
1323 * bfd-in2.h: Regenerate.
1324
2b3decb5
AM
13252009-05-22 Alan Modra <amodra@bigpond.net.au>
1326
1327 * Makefile.am: Run "make dep-am".
1328 * Makefile.in: Regenerate.
1329 * po/SRC-POTFILES.in: Regenerate.
1330
930e005c
AM
13312009-05-21 Alan Modra <amodra@bigpond.net.au>
1332
1333 * elflink.c (elf_link_input_bfd): Correct *pindex change in last
1334 commit.
1335
6e0b88f1
AM
13362009-05-21 Alan Modra <amodra@bigpond.net.au>
1337
1338 * elf-bfd.h (struct elf_backend_data
1339 <elf_backend_link_output_symbol_hook>): Return an int.
1340 * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
1341 symbols on deleted .opd entries.
1342 * elflink.c (elf_link_output_sym): Return without outputting sym
1343 if output_symbol_hook returns 2.
1344 (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
1345 Abort if we must not discard sym.
1346 (elf_link_input_bfd): Similarly, don't set finfo->indices for
1347 local syms.
1348 (bfd_elf_final_link): Adjust elf_link_output_sym calls.
1349 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
1350 elf_backend_link_output_symbol_hook return type change.
1351 * elf32-arm.c (output_arch_syminfo): Likewise.
1352 (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
1353 (elf32_arm_output_arch_local_syms): Likewise.
1354 * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
1355 * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
1356 (bfd_score_elf_link_output_symbol_hook): Likewise.
1357 * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1358 * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
1359 * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
1360 * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
1361 * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
1362 * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
1363 * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
1364 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
1365 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
1366 * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1367 * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1368
5ef11c02
AM
13692009-05-21 Alan Modra <amodra@bigpond.net.au>
1370
1371 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
1372 out of range .opd symbols.
1373
ebf12fbe
DK
13742009-05-21 Dave Korn <dave.korn.cygwin@gmail.com>
1375
1376 * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not
1377 fprintf_vma directly.
1378 * peXXigen.c (pe_print_edata): Likewise.
1379 (pe_print_pdata): Likewise.
1380 (_bfd_XX_print_ce_compressed_pdata): Likewise.
1381 (_bfd_XX_print_private_bfd_data_common): Likewise.
1382
c1711530
DK
13832009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
1384
1385 * cofflink.c (process_embedded_commands): Ignore "-aligncomm".
1386
22a8f80e 13872009-05-15 Andrew Stubbs <ams@codesourcery.com>
164e7efc 1388 Paul Brook <paul@codesourcery.com>
22a8f80e
PB
1389
1390 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
1391 fix discarded sections.
1392
335bd8f2
UW
13932009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1394
1395 * elf32-spu.c (mark_overlay_section): Move .init and .fini
1396 sections into the software icache.
1397
cdc83fba
UW
13982009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1399
1400 * elf32-spu.c (build_stub): Always build "compact" sofware
1401 i-cache stubs.
1402
97fc8d84
UW
14032009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1404
1405 * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
1406 (spu_elf_setup): Initialize it.
1407 (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
1408 Update to new-sytle cache manager data structures.
1409 (spu_elf_build_stubs): Generate new-style cache manager data
1410 structures and symbols.
1411 (spu_elf_auto_overlay): Update size computation.
1412
452de53c
UW
14132009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1414
1415 * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
1416 segments first amongst the program headers.
1417
d342a8b1
UW
14182009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1419
1420 * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
1421 into addresses for relocation types that look at high bits. Remove
1422 special handling of relocation overflow warnings.
1423
cc210763
UW
14242009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1425
1426 * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
1427 control flow graph between fragments of a function.
1428
c1ea05bb
UW
14292009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
1430
1431 * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
1432 generate only a 16-byte .toe section.
1433 (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
1434
bbb0fc04
AM
14352009-05-14 Alan Modra <amodra@bigpond.net.au>
1436
1437 * elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
1438 (spu_elf_place_overlay_data): ..here. New function.
1439 * elf32-spu.h (spu_elf_place_overlay_data): Declare.
1440
6e6718a3
AJ
14412009-05-13 Andrew Jenner <andrew@codesourcery.com>
1442
1443 * elf32-arm.c: Move sysdep.h to start of file.
1444
77ae44b0
AM
14452009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
1446
1447 * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
1448 start of overlays.
1449 (spu_elf_build_stubs): Don't define __icache_tagbase. Define
1450 __icache_tag_array and __icache_tag_array_size.
1451
51408ec2
AM
14522009-05-11 Masaki Muranaka <monaka@monami-software.com>
1453
1454 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
1455 ATTRIBUTE_UNUSED.
1456 (bfinfdpic_link_omit_section_dynsym): Likewise.
1457 (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
1458
2468f9c9
PB
14592009-05-05 Paul Brook <paul@codesourcery.com>
1460
1461 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
1462 * bfd-in2.h: Regenerate.
1463 * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
1464 (_arm_elf_section_data): Add text and exidx fields.
1465 (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
1466 insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
1467 copy_exidx_entry): New functions.
1468 (elf32_arm_write_section): Fixup .ARM.exidx contents.
1469
738a79f6
CL
14702009-05-05 Christophe lyon <christophe.lyon@st.com>
1471
1472 * elf32-arm.c (DEF_STUBS): New helper define.
1473 (DEF_STUB): Likewise.
1474 (stub_def): New type.
1475 (stub_definitions): New array, containing stub template pointers
1476 and sizes.
1477 (arm_size_one_stub): Make use of stub_definitions.
1478
09e2aba4
DK
14792009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
1480
1481 * elflink.c (find_version_for_sym): Remove from here, ...
1482 * linker.c (bfd_find_version_for_sym): ... rename, replace
1483 here, make public and update all callers.
1484 * bfd-in2.h: Regenerate.
1485
d8045f23
NC
14862009-04-30 Nick Clifton <nickc@redhat.com>
1487
1488 * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
1489 section pointer.
1490 (struct elf_obj_data): Add has_ifunc_symbols boolean.
1491 * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
1492 into a STT_GNU_IFUNC symbol type.
1493 (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
1494 type.
1495 (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
1496 the binary contains ifunc symbols.
1497 * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
1498 symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
1499 * elf32-i386.c (is_indirect_function): New function.
1500 (elf_i386_check_relocs): Create an ifunc output section.
1501 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1502 section if necessary.
1503 (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
1504 if necessary.
1505 (elf_i386_add_symbol_hook): New function. Set the
1506 has_ifunc_symbols field of the elf_obj_data structure if an ifunc
1507 symbol is encountered.
1508 (elf_backend_post_process_headers): Define.
1509 (elf_backend_add_symbol_hook): Define.
1510 (elf_i386_post_process_headers): Rename to
1511 elf_i388_fbsd_post_process_headers.
1512 * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
1513 (is_indirect_function): New function.
1514 (elf64_x86_64_check_relocs): Create an ifunc output section.
1515 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
1516 section if necessary.
1517 (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
1518 symbol if necessary.
1519 (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
1520 elf_obj_data structure if an ifunc symbol is encountered.
1521 (elf_backend_post_process_headers): Define.
1522 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
1523 if we have ifunc symbols to handle.
1524 (get_ifunc_reloc_section_name): New function. Computes the name
1525 for an ifunc section.
1526 (_bfd_elf_make_ifunc_reloc_section): New function. Creates a
1527 section to hold ifunc relocs.
1528 * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
1529 (bfd_print_symbol_vandf): Handle ifunc symbols.
1530 (bfd_decode_symclass): Likewise.
1531 * bfd-in2.h: Regenerate.
1532
96c23d59
JM
15332009-04-30 Joseph Myers <joseph@codesourcery.com>
1534
1535 * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
1536 MOVW and MOVT relocations in a shared library link.
1537
c067354b
NC
15382009-04-27 Anthony Green <green@moxielogic.com>
1539
1540 * verilog.c: New file.
1541 * Makefile.am (BFD32_LIBS): Add verilog.c.
1542 (BFD32_LIBS_CFILES): Add verilog.c.
1543 (verilog.lo): New build rule.
1544 * Makefile.in: Rebuilt.
1545 * targets.c: Add verilog support.
1546 * bfd.c (tdata union): Add Verilog private data field.
1547 * bfd-in2.h: Regenerate.
1548
325c681d
L
15492009-04-27 H.J. Lu <hongjiu.lu@intel.com>
1550
1551 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
1552 copy pe_opthdr.
1553
ba775898
DK
15542009-04-23 Matthias Klose <doko@ubuntu.com>
1555
2e28a5fc 1556 * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
ba775898 1557
155d87d7
CL
15582009-04-22 Christophe Lyon <christophe.lyon@st.com>
1559
1560 PR9743
1561 * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
1562 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
1563 (elf32_arm_size_stubs): Likewise.
1564 (record_thumb_to_arm_glue): Deleted unused function.
1565 (bfd_elf32_arm_process_before_allocation): No longer handle
1566 R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
1567 (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
1568 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
1569
3e6b1042
DJ
15702009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
1571
1572 * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
1573 (elf32_arm_write_section): Declare early.
1574 (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
1575 (arm_allocate_glue_section_space): Exclude empty sections.
1576 (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
1577 (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
1578 BFD.
1579 (elf32_arm_output_glue_section, elf32_arm_final_link): New.
1580 (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
1581 (elf32_arm_size_dynamic_sections): Allocate interworking
1582 sections here.
1583 (bfd_elf32_bfd_final_link): Define.
1584
4f360784
L
15852009-04-21 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
154a1ee5 1588
4f360784
L
1589 * coffcode.h (coff_compute_section_file_positions): Clear
1590 D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
1591
1592 * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
1593 force_minimum_alignment.
1594
1595 * libcoff.h: Regenerated.
1596
1597 * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
1598 (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
1599
1600 * peicode.h (pe_mkobject): Don't set force_minimum_alignment
1601 nor target_subsystem.
1602
1603 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
1604 force_minimum_alignment nor target_subsystem.
1605
e48570bb
DK
16062009-04-21 Kai Tietz <kai.tietz@onevision.com>
1607
1608 * coff-x86_64.c (PEI_HEADERS): Protect includes.
1609 (bfd_pe_print_pdata): Remove #ifdef PE variation.
1610 * pei-x86_64.c (PEI_HEADERS): Define to prevent double
1611 include in coff-x86_64.c of headers.
1612 (PDATA_ROW_SIZE): New define.
1613 (pex_regs[]): New static array.
1614 (pex64_get_runtime_function): New static function.
1615 (pex64_get_unwind_info): Likewise.
1616 (pex64_get_scope_entry): Likewise.
1617 (pex64_xdata_print_uwd_codes): Likewise.
1618 (pex64_get_section_by_rva): Likewise.
1619 (pex64_dump_xdata): Likewise.
1620 (pex64_bfd_print_pdata): Likewise.
1621 (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
1622 * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
1623 * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
1624
383c383f 16252009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
4f360784
L
1626 Alan Modra <amodra@bigpond.net.au>
1627 Dave Korn <dave.korn.cygwin@gmail.com>
383c383f
AM
1628
1629 * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
1630 long names and non-NUL-terminated strings.
1631
b6b450f1
L
16322009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 * bfd-in2.h: Regenerated.
1635
d9118602
L
16362009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1637
1638 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
1639 IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
1640
92dd4511
L
16412009-04-17 H.J. Lu <hongjiu.lu@intel.com>
1642
1643 PR binutils/10074
1644 * coffcode.h (bfd_pei_p): New.
1645
1646 * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
1647 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
1648 bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
1649 bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
1650 bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
1651 i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
1652
1653 * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
1654 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
1655 bfd_efi_rtdrv_x86_64_vec,
1656 bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
1657 bfd_efi_ia64_vec with bfd_pei_ia64_vec.
1658 * targets.c: Likewise.
1659
1660 * configure: Regenerated.
1661 * libcoff.h: Likewise.
1662 * Makefile.in: Likewise.
1663
1664 * efi-app-ia32.c: Removed.
1665 * efi-app-x86_64.c: Likewise.
1666 * efi-bsdrv-ia32.c: Likewise.
1667 * efi-bsdrv-ia64.c: Likewise.
1668 * efi-bsdrv-x86_64.c: Likewise.
1669 * efi-rtdrv-ia32.c: Likewise.
1670 * efi-rtdrv-ia64.c: Likewise.
1671 * efi-rtdrv-x86_64.c: Likewise.
1672 * efi-rtdrv-ia32.c: Likewise.
1673
1674 * efi-app-ia64.c: Moved to ...
1675 * pei-ia64.c: This.
1676 (TARGET_SYM): Set to bfd_pei_ia64_vec.
1677 (TARGET_NAME): Set to pei-ia64.
1678
1679 * libpei.h (bfd_target_pei_p): Removed.
1680 (bfd_target_pei_arch): Likewise.
1681 (bfd_target_efi_app_p): Likewise.
1682 (bfd_target_efi_app_arch): Likewise.
1683 (bfd_target_efi_bsdrv_p): Likewise.
1684 (bfd_target_efi_bsdrv_arch): Likewise.
1685 (bfd_target_efi_rtdrv_p): Likewise.
1686 (bfd_target_efi_rtdrv_arch): Likewise.
1687 (bfd_pe_executable_p): Likewise.
1688
1689 * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
1690 efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
1691 (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
1692 and efi-rtdrv-ia32.c.
1693 (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
1694 efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
1695 efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
1696 (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
1697 efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
1698 efi-rtdrv-x86_64.c. Add pei-ia64.c.
1699 (efi-app-ia64.lo): Removed.
1700 (efi-bsdrv-ia32.lo): Likewise.
1701 (efi-rtdrv-ia32.lo): Likewise.
1702 (efi-app-ia64.lo): Likewise.
1703 (efi-bsdrv-ia64.lo): Likewise.
1704 (efi-rtdrv-ia64.lo): Likewise.
1705 (efi-app-x86_64.lo): Likewise.
1706 (efi-bsdrv-x86_64.lo): Likewise.
1707 (efi-rtdrv-x86_64.lo): Likewise.
1708 (pei-ia64.lo): New.
1709
1710 * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
1711 with bfd_pei_p.
1712 (arch_type): Removed.
1713 (pe_arch): Likewise.
1714 (pe_bfd_object_p): Just return coff_object_p.
1715
1716 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
1717 bfd_pe_executable_p with bfd_pei_p.
1718
69c5861e
CL
17192009-04-17 Christophe Lyon <christophe.lyon@st.com>
1720
1721 * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
1722 PLT entries to an undefined symbol when generating a shared
1723 library.
1724
e9cd0660
NC
17252009-04-17 Nick Clifton <nickc@redhat.com>
1726
1727 PR 9909
1728 * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
1729
3023e3f6
RS
17302009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
1731
1732 * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
1733 * aout-target.h (MY_bfd_define_common_symbol): Likewise.
1734 * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
1735 * binary.c (binary_bfd_define_common_symbol): Likewise.
1736 * bout.c (b_out_bfd_define_common_symbol): Likewise.
1737 * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
1738 * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
1739 * coffcode.h (coff_bfd_define_common_symbol): Likewise.
1740 * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
1741 * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
1742 * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
1743 * ieee.c (ieee_bfd_define_common_symbol): Likewise.
1744 * ihex.c (ihex_bfd_define_common_symbol): Likewise.
1745 * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
1746 * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
1747 * mmo.c (mmo_bfd_define_common_symbol): Likewise.
1748 * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
1749 * oasys.c (oasys_bfd_define_common_symbol): Likewise.
1750 * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
1751 * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
1752 * som.c (som_bfd_define_common_symbol): Likewise.
1753 * srec.c (srec_bfd_define_common_symbol): Likewise.
1754 * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
1755 * versados.c (versados_bfd_define_common_symbol): Likewise.
1756 * vms.c (vms_bfd_define_common_symbol): Likewise.
1757 * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
1758 * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
1759 * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
1760 (pmac_xcoff_vec): Likewise.
1761 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1762 (aix5coff64_vec): Likewise.
1763 * linker.c (bfd_generic_define_common_symbol): New function.
1764 * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
1765 (_bfd_define_common_symbol): New field.
1766 * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
1767 * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
1768 (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
1769 symbols here.
1770 * bfd-in2.h: Regenerate.
1771 * libbfd.h: Likewise.
1772 * libcoff.h: Likewise.
1773
20135e4c
NC
17742009-04-15 Anthony Green <green@moxielogic.com>
1775
1776 * targets.c: Add moxie support.
1777 * Makefile.am: Ditto.
1778 * Makefile.in: Rebuilt.
1779 * cpu-moxie.c, elf32-moxie.c: New files.
1780 * archures.c: Add moxie support.
1781 * configure.in: Add moxie support.
1782 * configure: Rebuilt.
1783 * config.bfd, archures.c: Add moxie support.
1784 * bfd-in2.h: Rebuilt.
1785
82b5c97a
CL
17862009-04-15 Christophe Lyon <christophe.lyon@st.com>
1787
1788 * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
1789 branch to an undef weak symbol into a jump to next instruction if
1790 a PLT entry will be created.
1791
0408dee6
DK
17922009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
1793
1794 * coffgen.c (make_a_section_from_file): Set the backend long
1795 section names enable if long section names found on input.
1796 * coffcode.h: Extend long section names documentation to match.
1797
a0c402a5
L
17982009-04-08 H.J. Lu <hongjiu.lu@intel.com>
1799
1800 * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
1801 machine code.
1802
4d28413b
DD
18032009-04-07 DJ Delorie <dj@redhat.com>
1804
1805 * archures.c: Add bfd_mach_mep_c5.
1806 * bfd-in2.h: Likewise.
1807 * cpu-mep.c: Add bfd_c5_arch.
1808 * elf32-mep.c: Support it.
1809
bb6198d2
L
18102009-04-07 H.J. Lu <hongjiu.lu@intel.com>
1811
1812 * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
1813 info->callbacks->einfo.
1814 * linker.c (_bfd_generic_section_already_linked): Likewise.
1815
bcb012d3
DD
18162009-04-06 DJ Delorie <dj@redhat.com>
1817
1818 * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
1819
db1fe6e9
L
18202009-04-06 H.J. Lu <hongjiu.lu@intel.com>
1821
1822 * coff-x86_64.c (bfd_pe_print_pdata): Defined to
1823 _bfd_pex64_print_pdata only if PE is defined.
1824
1825 * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
1826 (_bfd_pex64_print_pdata): This.
1827
1828 * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
1829 (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
1830 is defined.
1831
c7c7219d
KT
18322009-04-05 Kai Tietz <kai.tietz@onevision.com>
1833
1834 * coff-x86_64.c (bfd_pe_print_pdata): Define as
1835 _bfd_pep_print_x64_pdata.
1836 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
1837 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
1838
3df502ae
SA
18392009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
1840
154a1ee5 1841 * elf32-xtensa.c (relax_property_section): Always set r_offset
3df502ae
SA
1842 to zero.
1843
d3626fb0
CL
18442009-04-02 Christophe Lyon <christophe.lyon@st.com>
1845
1846 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
1847 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
1848 branch stubs.
1849 (elf32_arm_stub_type): New enum values for the two new stubs.
1850 (arm_type_of_stub): Make use of the two new stubs.
1851 (arm_size_one_stub): Handle the two new stubs.
1852
fe723c87
MT
18532009-04-01 Matt Thomas <matt@netbsd.org>
1854
1855 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
1856 hidden symbols into the GOT or PLT.GOT.
154a1ee5 1857 (elf_vax_relocate_section): Do not emit a PCREL reloc
fe723c87
MT
1858 into a shared object if it is against a hidden symbol.
1859
ee698300
RS
18602009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1861
1862 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
1863 and know_contains_shared_object_p.
1864 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
1865 Cache the result in the archive_info table.
1866 (xcoff_auto_export_p): Add an "info" parameter and update the
1867 call to xcoff_archive_contains_shared_object_p.
1868 (xcoff_mark_auto_exports): Update accordingly.
1869 (xcoff_post_gc_symbol): Likewise.
1870
54e2dbe0
RS
18712009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1872
1873 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
1874 rather than C_EXT.
1875
2e470849
RS
18762009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1877
1878 * coff-rs6000.c (member_layout): New structure.
1879 (archive_iterator): Likewise.
1880 (member_layout_init): New function.
1881 (archive_iterator_begin): Likewise.
1882 (archive_iterator_next): Likewise.
1883 (xcoff_write_armap_old): Use the new iterator functions.
1884 (do_shared_object_padding): Delete.
1885 (xcoff_write_armap_big): Use the new iterator functions. Simplify
1886 handling of arch_info.
1887 (xcoff_write_archive_contents_old): Allocate arelt_data in the
1888 first loop rather than the second. Allocate a member header if
1889 there isn't one, then work out the stat information and length
1890 in the first loop too. Use the new iterators for the second loop.
1891 (xcoff_write_archive_contents_big): Likewise.
1892
24c611d1
RS
18932009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1894
1895 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
1896 (bfd_xcoff_set_archive_import_path): Likewise.
1897 * bfd-in2.h: Regenerate.
1898 * xcofflink.c: Include libiberty.h.
1899 (xcoff_archive_info): New structure.
1900 (xcoff_archive_info_hash): New function.
1901 (xcoff_archive_info_eq): Likewise.
1902 (xcoff_get_archive_info): Likewise.
1903 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
1904 (bfd_xcoff_split_import_path): New function.
1905 (bfd_xcoff_set_archive_import_path): Likewise.
1906 (xcoff_set_import_path): Move earlier in file.
1907 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
1908 object to the the directory part of the bfd's filename. Get the
1909 import path and filename of an archive object from the archive's
1910 xcoff_tdata, initializing it if necessary. Update use of
1911 import_file_id.
1912 (bfd_link_input_bfd): Update use of import_file_id.
1913 (xcoff_write_global_symbol): Likewise.
1914
d286971a
RS
19152009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1916
1917 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
1918
19192009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
1920
1921 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
1922 a .loader section for relocatable links.
1923 (xcoff_need_ldrel_p): New function.
1924 (xcoff_mark): Use it.
1925 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
1926 a loader section.
1927 (xcoff_build_ldsym): New function, split out from...
1928 (xcoff_build_ldsyms): ...here. Rename to...
1929 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
1930 call xcoff_build_ldsym, if there's a loader section.
1931 (xcoff_build_loader_section): New function, extracted verbatim from...
1932 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
1933 there's a loader section. Only add an __rtinit loader symbol
1934 if there's a loader section. Update after above name change.
1935 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
1936 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
1937 and xcoff_create_ldrel.
1938 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
1939 (xcoff_reloc_link_order): Likewise, but only call it if there's
1940 a loader section. Use xcoff_symbol_section.
1941 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
1942 if there's a loader section.
1943
8707bb87
RS
19442009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
1945
1946 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
1947
e780aef2
CL
19482009-04-01 Christophe Lyon <christophe.lyon@st.com>
1949
1950 * elf32-arm.c (group_sections): Rewrite loops for better
1951 readability.
1952
c301e700
DD
19532009-03-30 DJ Delorie <dj@redhat.com>
1954
1955 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
1956 relocs when doing a relocatable link.
1957
3895f852
MM
19582009-03-28 Mark Mitchell <mark@codesourcery.com>
1959
1960 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
1961 "ERROR:", in error messages.
1962 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
1963 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
1964 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
1965 (elf32_arm_merge_eabi_attributes): Likewise.
1966 (elf32_arm_merge_private_bfd_data): Likewise.
1967
ea882e87
NC
19682009-03-27 Nick Clifton <nickc@redhat.com>
1969
1970 * section.c (bfd_get_section_contents): Detect and handle the case
1971 where a section has the SEC_IN_MEMORY flag set but no actual
1972 contents allocated.
1973
9433b9b1
AM
19742009-03-26 Alan Modra <amodra@bigpond.net.au>
1975
1976 PR 6494
1977 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
1978 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
1979 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
1980 if we don't find matching PT_LOAD when copying.
1981
dc1aa734
SR
19822009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1983
1984 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
1985 the reloc descriptions.
1986
34d3d6b9
HPN
19872009-03-25 Hans-Peter Nilsson <hp@axis.com>
1988
1989 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1990 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
1991 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
1992
34274ccc
L
19932009-03-24 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
1996 (bfd_i386_arch_intel_syntax): Likewise.
1997 (i8086_arch): Likewise.
1998 (bfd_x86_64_arch): Likewise.
1999
019c5a2e
HPN
20002009-03-24 Hans-Peter Nilsson <hp@axis.com>
2001
6718f446
HPN
2002 * elf32-cris.c (cris_elf_relocate_section): <case
2003 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
2004 symbols for non-allocated sections. Don't check whether to
2005 generate R_CRIS_DTPMOD for non-allocated sections.
2006 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
2007 handle relocation GC:ing if applied to non-allocated section.
2008 (cris_elf_check_relocs): Similar.
2009
019c5a2e
HPN
2010 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
2011 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
2012 when emitting a known TP offset in the GOT.
2013
ffcfec52
AM
20142009-03-23 Alan Modra <amodra@bigpond.net.au>
2015
2016 * elf64-ppc.c (synthetic_opd): Delete.
2017 (compare_symbols): Look for .opd name rather than section match.
2018 (ppc64_elf_get_synthetic_symtab): Likewise.
2019
c6dd29ce
AM
20202009-03-21 Alan Modra <amodra@bigpond.net.au>
2021
2022 * elf32-ppc.c (is_pic_glink_stub): Delete.
2023 (is_nonpic_glink_stub): New function.
2024 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
2025 than first pic one.
2026 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
2027
8c21ca21
AK
20282009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2029 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2030
2031 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
4f360784 2032 macros for visibilty and locality checks.
8c21ca21
AK
2033 (elf_s390_adjust_dynamic_symbol): Likewise.
2034 (allocate_dynrelocs): Likewise.
2035 (elf_s390_relocate_section): Likewise.
2036 (elf_s390_finish_dynamic_symbol): Likewise.
2037 * elf64-s390.c (elf_s390_check_relocs): Likewise.
2038 (elf_s390_adjust_dynamic_symbol): Likewise.
2039 (allocate_dynrelocs): Likewise.
2040 (elf_s390_relocate_section): Likewise.
2041 (elf_s390_finish_dynamic_symbol): Likewise.
2042
156621f3
KT
20432009-03-19 Kai Tietz <kai.tietz@onevision.com>
2044
2045 * bfd-in2.h: Regenerated.
2046 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
2047 for debugging sections and map memory read/write dependent on
2048 SEC_COFF_NOREAD.
2049 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
2050 without memory read flags set.
2051 * section.c: Add SEC_COFF_NOREAD to section flags.
2052
d1fa68d3
AS
20532009-03-19 Andreas Schwab <schwab@linux-m68k.org>
2054
2055 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
2056 for format string.
2057
ad2adbc8
AM
20582009-03-19 Alan Modra <amodra@bigpond.net.au>
2059
2060 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
2061 "no overlays" return. If there are overlays, create overlay
2062 manager entry symbols here, so that..
2063 (spu_elf_build_stubs): ..we don't need to set them up here.
2064 Simplify entry symbol tests.
2065 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
2066
67cc5033
MK
20672009-03-18 Mark Kettenis <kettenis@gnu.org>
2068
d1fa68d3 2069 * elf.c (elfcore_grok_openbsd_procinfo)
67cc5033
MK
2070 (elfcore_grok_openbsd_note): New functions.
2071 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
2072
8d25cc3d
AM
20732009-03-18 Alan Modra <amodra@bigpond.net.au>
2074
3889c459 2075 * vms-hdr.c: Don't include alloca.h.
8d25cc3d
AM
2076 * elf32-m68hc1x.c: Include alloca-conf.h.
2077 * xsym.c: Likewise.
2078 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
2079 * som.c: Likewise.
2080 * Makefile.am: Run "make dep-am".
2081 * Makefile.in: Regenerate.
2082
a89e6478
DJ
20832009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2084
2085 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
2086
a7e11ee1
AM
20872009-03-17 Alan Modra <amodra@bigpond.net.au>
2088
2089 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
2090 Add compact_stub.
2091 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
2092 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
2093 ovly_return fields with ovly_entry[2]. Adjust all users.
2094 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
2095 when soft-icache.
2096 (spu_elf_build_stubs): Likewise.
2097 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
2098 ovly_flavour changes. Update all callers.
2099 (ovl_stub_size_log2): New function.
2100 (build_stub): Handle compact icache stubs. Use different manager
2101 entry point for stubs in non-icache area.
2102 (spu_elf_size_stubs): Don't allocate space for indirect branch
2103 descriptors.
2104 (spu_elf_build_stubs): And don't built them.
2105
607a83c9
AS
21062009-03-16 Andrew Stubbs <ams@codesourcery.com>
2107
2108 * dwarf2.c (read_section): Always use rawsize, if available.
2109
588f62fc
AM
21102009-03-16 Alan Modra <amodra@bigpond.net.au>
2111
2112 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
2113 of rawsize and size for buffer.
2114
a14c90c1
UW
21152009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2116
2117 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
2118 parameter just because fixed sections fit into local store.
2119 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
2120 generating overlays if fixed sections plus reserved stack
2121 and heap space fit into local store.
2122
30c665df
AM
21232009-03-15 Alan Modra <amodra@bigpond.net.au>
2124
2125 * elf32-spu.c (build_stub): Correct icache set_id.
2126 (spu_elf_relocate_section): Likewise.
2127
f95942a3
RS
21282009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2129
2130 * xcofflink.c (xcoff_link_check_archive_element): Only free the
2131 symbol table if it was created by the current call.
2132
670562e9
RS
21332009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2134
2135 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
2136 class XMC_DS rather than XMC_UA.
2137
b64232cc
RS
21382009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2139
2140 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
2141 bfd_boolean export_defineds parameter with an unsigned int
2142 auto_export_flags parameter.
2143 * bfd-in2.h: Regenerate.
2144 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
2145 split out from xcoff_build_ldsyms.
2146 (xcoff_covered_by_expall_p): New function.
2147 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
2148 but with extra code to handle -bexpfull and -bexpall.
2149 (xcoff_mark_auto_exports): New function.
2150 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
2151 a function should be automatically exported.
2152 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
2153 parameter with an auto_export_flags parameter. Update ldinfo
2154 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
2155 exported symbols.
2156
7d504122
RS
21572009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2158
2159 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
2160 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
2161 init and fini functions. Do garbage collection for objects
2162 without an entry point too.
2163
8602d4fe
RS
21642009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2165
2166 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
2167 check whether a symbol has csect information.
2168 (coff_print_aux): Likewise.
2169 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
2170 information for C_AIX_WEAKEXT too.
2171 (_bfd_xcoff_swap_aux_out): Likewise.
2172 (xcoff_reloc_type_br): Handle defweak symbols too.
2173 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
2174 information for C_AIX_WEAKEXT too.
2175 (_bfd_xcoff64_swap_aux_out): Likewise.
2176 (xcoff64_reloc_type_br): Handle defweak symbols too.
2177 * coffgen.c (coff_print_symbol): Handle auxillary function
2178 information for C_AIX_WEAKEXT too.
2179 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
2180 instead of BSF_GLOBAL if the L_WEAK flag is set.
2181 (xcoff_dynamic_definition_p): New function.
2182 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
2183 defines h. Don't change h if ldsym isn't the definition. Otherwise,
2184 always take the symbol class from the ldsym. Use weak bfd symbol
2185 types for weak ldsyms.
2186 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
2187 Fix the check for whether a definition is from a shared object.
2188 Allow redefinitions of weak symbols.
2189 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
2190 (xcoff_keep_symbol_p): Likewise.
2191 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
2192 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
2193 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
2194 but mark them as L_WEAK.
2195 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
2196 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
2197
5b49f6dc
RS
21982009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2199
2200 * xcofflink.c (xcoff_mark): When walking the relocations,
2201 only mark the target symbol or the target section, not both.
2202 (xcoff_final_definition_p): New function.
2203 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
2204 symbol is a valid definition of the associated output symbol.
2205 Use XCOFF_ALLOCATED to stop the same hash table entry having
2206 two output symbols.
2207 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
2208 keeping a symbol.
2209 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
2210
c4037431
RS
22112009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2212
2213 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
2214 symbols as XMC_XO.
2215
3df13c4a
RS
22162009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2217
2218 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
2219 * libcoff.h: Regenerate.
2220 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
2221 line-number counts in the bfd's lineno_counts field.
2222 Don't keep per-csect line-number counts.
2223 (xcoff_sweep): Don't update per-csect line-number counts.
2224 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
2225 entries in each output section.
2226 (xcoff_link_input_bfd): Get the number of line numbers from
2227 the bfd's lineno_counts field, rather than recalculating it
2228 from scratch. Fix the range check when updating C_BINCL and
2229 C_EINCL symbols.
2230 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
2231 here. Don't expect csects to have line-number counts.
2232
e450936a
RS
22332009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2234
2235 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
2236 * libcoff.h: Regenerate.
2237 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
2238 "skip" logic from xcoff_link_input_bfd.
2239 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
2240 objects in a dynamic link, rather than checking whether csectpp
2241 is null. Always allocate debug_index for other objects,
2242 and always go through the loop. Update the type of debug_index
2243 after the change above. Read the auxillary csect information
2244 and use xcoff_keep_symbol_p to decide whether a symbol should
2245 be kept. Set its debug_index to -2 if not.
2246 (xcoff_link_input_bfd): Update the type of debug_index after
2247 the change above and always expect it to be nonnull. Use it to
2248 test whether a symbol should be stripped, rather than making the
2249 decision here. Postpone all symbol creation to the second pass.
2250
47dfb2ca
RS
22512009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2252
2253 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
2254 creating a descriptor.
2255 (xcoff_sweep): Don't mark toc_section unless it's needed.
2256 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
2257 when marking every bfd.
2258 (xcoff_link_input_bfd): Skip all TOC anchors.
2259 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
2260 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
2261 to -1; call xcoff_find_tc0 instead.
2262
4cc02a02
RS
22632009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2264
2265 * libcoff-in.h (xcoff_section_tdata): Update commentary.
2266 * libcoff.h: Regenerate.
2267 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
2268 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
2269 the previous symbol's csect. Treat last_symndx as an inclusive value
2270 and simplify its handling.
2271 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
2272 symbols with the right csect. Don't mark rsec when processing
d1fa68d3 2273 relocations against undefined or absolute sections.
4cc02a02
RS
2274 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
2275 of bfd_und_section_ptr.
2276 (xcoff_link_input_bfd): Likewise.
2277
858ef0ce
RS
22782009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2279
2280 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
2281 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
2282 flag is set. Assert that all undefined symbols are either
2283 imported or defined by a dynamic object.
2284 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
2285 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
2286 handling to all relocations. Only set XCOFF_CALLED for function
2287 symbols.
2288 (xcoff_find_function): New function, split out from...
2289 (bfd_xcoff_export_symbol) ...here.
2290 (xcoff_set_import_path): New function, split out from...
2291 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
2292 meaning of XCOFF_CALLED.
2293 (xcoff_mark_symbol): If we mark an undefined and unimported
2294 symbol, find some way of defining it. If the symbol is a function
2295 descriptor, fill in its definition automatically. If the symbol
2296 is a function, mark its descriptor and allocate room for global
2297 linkage code. Otherwise mark the symbol as implicitly imported.
2298 Move the code for creating function descriptors from...
d1fa68d3 2299 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
858ef0ce
RS
2300 check for symbols that were implicitly defined.
2301 (xcoff_mark): Don't count any dynamic relocations against
2302 function symbols.
2303 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
2304 in the xcoff link info.
2305 (xcoff_link_input_bfd): Remove handling of undefined and
2306 unexported symbols.
2307
12b2cce9
RS
23082009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2309
2310 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
2311 if the target is absolute. Fix comment typo.
2312 (xcoff_ppc_relocate_section): Remove FIXME.
2313 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
2314 if the target is absolute.
2315
0e3212ad
RS
23162009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2317
2318 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
2319 R_POS and R_NEG relocations against absolute symbols to the
2320 .loader section.
2321
d19d97e9
RS
23222009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2323
2324 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
2325 to 2 for bfd_mach_ppc_620.
2326
e5231592
RS
23272009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
2328
2329 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
2330 * configure.in: Likewise.
2331 * configure: Regenerate.
2332
3516e984
L
23332009-03-13 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 PR binutils/9945
2336 * elf.c (assign_section_numbers): Generate symbol table if there
2337 is any relocation in output.
2338 (_bfd_elf_compute_section_file_positions): Likewise.
2339
ce98a316
NC
23402009-03-13 Nick Clifton <nickc@redhat.com>
2341
2342 PR 9934
2343 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
2344 * elflink.c (elf_link_read_relocs_from_section): Use
2345 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
2346 relocs but no symbol table.
2347 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
2348
c4fb387b
L
23492009-03-12 H.J. Lu <hongjiu.lu@intel.com>
2350
2351 PR ld/9938
2352 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
2353 to check ___tls_get_addr.
2354
2355 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
2356 strncmp to check __tls_get_addr.
2357
53638231
AS
23582009-03-12 Andrew Stubbs <ams@codesourcery.com>
2359
2360 * dwarf2.c (read_section): Always check the offset, even when the
2361 section has been read before.
2362
09e8c3bf
L
23632009-03-11 H.J. Lu <hongjiu.lu@intel.com>
2364
2365 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
2366 comments.
2367
36e4dce6
CD
23682009-03-11 Chris Demetriou <cgd@google.com>
2369
2370 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
2371 * bfd-in2.h: Regenerate.
2372 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
2373 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
2374 mode.
2375 (bsd_write_armap): Likewise.
2376 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
2377 flag is set, do nothing.
2378 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
2379 for timestamp.
2380
9b175a76
UW
23812009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2382
2383 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
2384 used to update stack pointer.
2385
f501de17
DA
23862009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2387
2388 PR binutils/9921
2389 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
2390 for unknown symbols in absolute section.
2391
d11fd249
NC
23922009-03-06 Nick Clifton <nickc@redhat.com>
2393
2394 * po/es.po: Updated Spanish translation.
2395
8cd931b7
CL
23962009-03-05 Christophe Lyon <christophe.lyon@st.com>
2397
2398 * elf32-arm.c (group_sections): Take next section size into
2399 account before accepting to group it.
2400
5fa9e92f
CL
24012009-03-05 Christophe Lyon <christophe.lyon@st.com>
2402
2403 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
2404 PLT entries.
2405 (elf32_arm_final_link_relocate): Likewise.
2406
b92997d6
AM
24072009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
2408
2409 PR 9923
2410 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
2411
727fc41e
AM
24122009-03-04 Alan Modra <amodra@bigpond.net.au>
2413
2414 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
2415 * section.c (struct bfd_section): Add has_tls_get_addr_call.
2416 (BFD_FAKE_SECTION): Init new flag.
2417 * ecoff.c (bfd_debug_section): Likewise.
2418 * bfd-in2.h: Regenerate.
2419 * libbfd.h: Regenerate.
2420 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
2421 (ppc_elf_reloc_type_lookup): Handle new relocs.
2422 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
2423 without marker relocs.
2424 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2425 if section has no old-style calls.
2426 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
2427 Don't try to optimize new-style __tls_get_addr call when handling
2428 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2429 relocs.
2430 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
2431 (ppc64_elf_reloc_type_lookup): Handle new relocs.
2432 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
2433 without marker relocs.
2434 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
2435 if section has no old-style calls. Set toc_ref for new relocs as
2436 appropriate.
2437 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
2438 Don't try to optimize new-style __tls_get_addr call when handling
2439 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
2440 relocs.
2441
51dec227
AM
24422009-03-04 Alan Modra <amodra@bigpond.net.au>
2443
2444 PR 6768
2445 * configure.in: Test for ld --as-needed support. Link shared
2446 libbfd against libm.
2447 * configure: Regenerate.
2448
a1f7ca36
AM
24492009-03-03 Alan Modra <amodra@bigpond.net.au>
2450
2451 * Makefile.am: Run "make dep-am".
2452 * Makefile.in: Regenerate.
2453
c3b7224a
NC
24542009-03-02 Qinwei <qinwei@sunnorth.com.cn>
2455
2456 * elf32-score7.c: New file.
2457 * elf32-score.h: New file.
2458 * elf32-score.c: Add code to support score 7. Set score7 as the
2459 default.
2460 * cpu-score.c: Add score7 architecure.
2461 (compatibile): New function.
2462 * Makefile.am: Add rules for building elf32-score7 object.
2463 * Makefile.in: Regenerate.
2464 * configure.in: Add elf32-score7 object to score vectors.
2465 * configure: Regenerate.
2466 * reloc.c: Add score7 relocs.
2467 * archures.c: Add score3 and score7 machine numbers.
2468 * bfd-in2.h: Regenerate.
2469 * libbfd.h: Regenerate.
2470
58e24671
RW
24712009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2472
2473 * configure: Regenerate.
2474
5887528b
DA
24752009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2476
d45b7d74
DA
2477 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
2478 (elf32_hppa_check_relocs): Use it.
2479
5887528b
DA
2480 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
2481 elf64-hppa.c.
2482 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2483 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2484 (elf_hppa_is_dynamic_loader_symbol): Likewise.
2485 (elf_hppa_record_segment_addrs): Likewise.
2486 (elf_hppa_final_link): Likewise.
2487 (elf_hppa_relocate_insn): Likewise.
2488 (elf_hppa_final_link_relocate): Likewise.
2489 (elf64_hppa_relocate_section): Likewise.
2490 * elf64-hppa.c: Insert above.
2491
a03bd320
DA
24922009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2493
2494 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
2495 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
2496 (elf_hppa_relocate_section): Likewise.
2497 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
2498 from struct elf_link_hash_entry. Add count field.
2499 (struct elf64_hppa_dyn_hash_table): Delete.
2500 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
2501 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
2502 (hppa_elf_hash_entry, eh_name): Define.
2503 (elf64_hppa_new_dyn_hash_entry): Delete.
2504 (elf64_hppa_dyn_hash_lookup): Delete.
2505 (elf64_hppa_dyn_hash_traverse): Delete.
2506 (get_dyn_name): Delete.
2507 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
2508 of struct elf64_hppa_dyn_hash_entry *.
2509 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
2510 allocate_global_data_plt, allocate_global_data_stub,
2511 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
2512 Likewise.
2513 (hppa64_link_hash_newfunc): New.
2514 (elf64_hppa_hash_table_create): Rework.
2515 (count_dyn_reloc): Likewise.
2516 (hppa64_elf_local_refcounts): New.
2517 (elf64_hppa_check_relocs): Rework using standard technique for recording
2518 local DLT, PLT and OPD reference counts.
2519 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
2520 elf_link_hash_entry *.
2521 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
2522 allocate_global_data_plt, allocate_global_data_stub,
2523 allocate_global_data_opd, allocate_dynrel_entries,
2524 elf64_hppa_adjust_dynamic_symbol,
2525 elf64_hppa_mark_milli_and_exported_functions): Likewise.
2526 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
2527 Use hppa_link_hash_table. Rework.
2528 (elf64_hppa_link_output_symbol_hook): Rework.
2529 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
2530 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
2531 elf64_hppa_finish_dynamic_sections): Likewise.
2532
ebe24dd4
CL
25332009-02-26 Christophe Lyon <christophe.lyon@st.com>
2534
2535 * elf32-arm.c (stub_reloc_type): Removed.
2536 (insn_sequence): Renamed reloc_type field to r_type.
2537 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
2538 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
2539 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
2540 (elf32_arm_stub_type): Add new enum entries for the new stubs.
2541 (arm_stub_is_thumb): Catch new stubs.
2542 (arm_type_of_stub): Handle new stubs.
2543 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
2544 (bfd_elf32_arm_process_before_allocation): Remove useless
2545 condition.
2546
b9d678e0
L
25472009-02-25 H.J. Lu <hongjiu.lu@intel.com>
2548
2549 * elf.c (elf_find_function): Use is_function_type to check
2550 function symbol.
2551
56fb3749
SA
25522009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
2553
2554 * xtensa-modules.c: Revert to previous version 1.11 due
2555 to inadvertant commit.
2556
658ff993
SA
25572009-02-24 Sterling Augustine <sterling@tensilica.com>
2558
2559 * elf32-xtensa.c (text_action_add): Separate test for action
2560 type. Break if saved action is ta_widen_insn at same offset.
2561
cf3eccff
DJ
25622009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
2563
2564 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
2565 to elf32_arm_stub_long_branch_any_arm_pic.
2566 (elf32_arm_stub_long_branch_any_thumb_pic): New.
2567 (enum elf32_arm_stub_type, arm_type_of_stub)
2568 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
2569 separately.
2570
07d72278
DJ
25712009-02-24 Joseph Myers <joseph@codesourcery.com>
2572
2573 * elf32-arm.c (PREV_SEC): Update comment.
2574 (group_sections): Rename argument to stubs_always_after_branch.
2575 Reverse the list and place stubs at the end of input sections.
2576 Undefine NEXT_SEC.
2577 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
2578
4e31c731
DJ
25792009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2580
2581 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
2582 Fix formatting.
2583 (arm_size_one_stub): Remove unnecessary break.
2584 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
2585
25862009-02-23 Christophe Lyon <christophe.lyon@st.com>
461a49ca
DJ
2587
2588 * elf32-arm.c (stub_insn_type): New type.
2589 (stub_reloc_type): Likewise.
2590 (insn_sequence): Likewise.
2591 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
2592 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
2593 (elf32_arm_stub_long_branch_thumb_only): Likewise.
2594 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
2595 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
2596 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
2597 (elf32_arm_stub_hash_entry): Add new helper fields.
2598 (stub_hash_newfunc): Initialize these new fields.
2599 (arm_build_one_stub): Encode Arm and Thumb instructions separately
2600 to take endianness into account.
2601 (arm_size_one_stub): Compute size of stubs using insn_sequence.
2602 (arm_map_one_stub): Code is now more generic, thanks to
2603 insn_sequence.
2604
c2b4a39d
CL
26052009-02-23 Christophe Lyon <christophe.lyon@st.com>
2606
2607 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
2608 code.
2609 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
2610 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
2611 BLX is not available. Fix typo in warning message. Add comments
2612 and improve formatting.
2613 (arm_build_one_stub): Adjust to new
2614 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
2615 (arm_map_one_stub): Likewise.
2616
0c376465 26172009-02-23 Tristan Gingold <gingold@adacore.com>
a60a89d6
TG
2618 Eric Botcazou <ebotcazou@adacore.com>
2619 Douglas B Rupp <rupp@gnat.com>
0c376465
TG
2620
2621 * vms.h: Update copyright year, fix comments, reorder declarations.
2622 (_bfd_save_vms_section): Remove the prototype.
2623 (EGPS_S_V_NO_SHIFT): New constant.
2624 (bfd_vms_set_section_flags): New prototype.
2625 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
2626 constants.
2627 (EGSY_S_W_FLAGS): Ditto.
2628 (EGSY_S_V_QUAD_VAL): Ditto.
2629 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
2630 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
2631 EGST_S_B_NAMLNG): Ditto.
2632 (ESRF_S_B_NAMLNG): Ditto.
2633 (ETIR_S_C_HEADER_SIZE): Ditto.
2634 (EGPS_S_V_ALLOC_64BIT): Ditto.
2635 (DST_S_C_EPILOG): Ditto.
2636 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
2637 (DST_S_C_SRC_INCRLNUM_B): Ditto.
2638 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
2639 (DST_S_L_PCLINE_UNSLONG): Ditto.
2640 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
2641 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
2642 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
2643 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
2644 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
2645 (DST_S_B_SRC_UNSBYTE): Ditto.
2646 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
2647 Add prototypes.
2648 (vms_section, vms_reloc): Remove types.
2649 (hdr_struc): Replaced by ...
2650 (hdr_struct): ... new type.
2651 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
2652 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
2653 (EMH_DATE_LENGTH): Ditto.
2654 (eom_struc): Replaced by ...
2655 (eom_struct): ... new type.
2656 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
2657 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
2658 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
2659 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
2660 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
2661 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
2662 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
2663 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
2664 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
2665 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
2666 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
2667 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
2668 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
2669 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
2670 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
2671 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
2672 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
2673 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
2674 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
2675 (enum file_type_enum): New type.
2676 (struct location_struct): Removed.
2677 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
2678 (struct funcinfo, struct module): Ditto.
2679 (struct vms_private_data_struct): Update fields.
2680 (struct vms_section_data_struct): New type.
2681
2682 * vms.c: Update copyright year, fix comments,
2683 Fix includes for DECC, add prototypes.
2684 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
2685 some initializers.
2686 Use flavour to set is_vax, location_stack is removed.
2687 (struct pair): Declare.
2688 (fill_section_ptr): Initialize variables at declaration.
2689 Add guard to set SECTION_SYM flag, handlde und section.
2690 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
2691 (_bfd_vms_slurp_object_records): New function, replaces previous
2692 vms_object_p.
2693 (vms_slurp_module): New function.
2694 (vms_slurp_image): Ditto.
2695 (vms_object_p): Complete rewrite.
2696 (vms_mkobject): Use is_vax field to slect architecture.
2697 (free_reloc_stream): New function.
2698 (vms_convert_to_var): Ditto.
2699 (vms_convert_to_var_1): Ditto.
2700 (vms_convert_to_var_unix_filename): Ditto.
2701 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
2702 VAR format on VMS.
2703 (vms_new_section_hook): Set alignment to 0, allocate private data.
2704 (vms_get_section_contents): Load content.
2705 (vms_get_symbol_info): Handle undefined section.
2706 (vms_find_nearest_line): Handle.
2707 (alloc_reloc_stream): New function.
2708 (vms_slurp_reloc_table): Ditto.
2709 (vms_get_reloc_upper_bound): Make it real.
2710 (vms_canonicalize_reloc): Do the real work.
2711 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
2712 ALPHA_R_BOH.
2713 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
2714 (vms_set_arch_mach): Check arch.
2715 (vms_set_section_contents): Copy the content after allocation.
2716 (vms_alpha_vec): Update object flags.
2717
2718 * vms-tir.c: Update copyright year, fix comments,
2719 add prototypes for new functions.
2720 (dst_define_location): New function.
2721 (dst_restore_location): New function.
2722 (dst_retrieve_location): New function.
2723 (dst_check_allocation): New function.
2724 (image_dump): Call dst_check_allocation.
2725 (image_write_b): Ditto.
2726 (image_write_w): Ditto.
2727 (image_write_l): Ditto.
2728 (image_write_q): Ditto.
2729 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
2730 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
2731 CTL_STKDL.
2732 Call error handler instead of abort if name is not known.
2733 (etir_sta): Add quarter_relocs argument and set it.
2734 Fix cast.
2735 (etir_sto): Ditto.
2736 (etir_opr): Ditto, return FALSE in case of error.
2737 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
2738 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
2739 (etir_stc): Add quarter_relocs argument and set it, fix cast.
2740 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
2741 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
2742 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
2743 Return FALSE in case of error.
2744 (tir_sta): Change sign of psect.
2745 (tir_ctl): Ditto.
2746 (tir_cmd): Fix cast. Makes tir_table static const.
2747 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
2748 add argument to explain.
2749 (analyze_etir): Initialize maxptr, add quarter_relocs
2750 declaration, move some declarations into inner scopes.
2751 Handle quarter_relocs and STO_IMM.
2752 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
2753 (_bfd_vms_slurp_relocs): New function.
2754 (_bfd_vms_decode_relocs): New function.
2755 (sto_imm): Rewritten.
2756 (start_first_etbt_record): New function.
2757 (start_another_etbt_record): Ditto.
2758 (etir_output_check): Ditto.
2759 (defer_reloc_p): Ditto.
2760 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
2761 a for-loop. Correctly deals with contents, deals with .vmsdebug,
2762 rewritte relocations handling.
2763 (_bfd_vms_write_tbt): Removed.
2764 (_bfd_vms_write_dbg): Ditto.
2765
2766 * vms-misc.c: Update copyright year, Fix comments.
2767 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
2768 (maybe_adjust_record_pointer_for_object): New function.
2769 (_bfd_vms_get_first_record): New function, replaces ...
2770 (_bfd_vms_get_record): .. removed.
2771 (_bfd_vms_get_object_record): New function.
2772 (_bfd_vms_get_object_record): New function.
2773 (vms_get_remaining_object_record): New function, replaces ...
2774 (_bfd_vms_get_next_record): ... removed.
2775 (add_new_contents): Removed.
2776 (_bfd_save_vms_section): Removed.
2777 (_bfd_get_vms_section): Removed.
2778 (_bfd_vms_output_flush): Write in VAR format.
2779 (new_symbol): Don't make UND section.
2780
2781 * vms-hdr.c: Update copyright year, update list of record handled.
2782 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
2783 (_bfd_vms_write_hdr): Strip vms and unix patches,
2784 add comments, truncate module name at 31 characters,
2785 use constants instead of hard-coded value,
2786 write BFD version instead of a fixed string.
2787 (_bfd_vms_slurp_ihd): New function.
2788 (_bfd_vms_slurp_isd): Ditto.
2789 (_bfd_vms_slurp_ihs): Ditto.
2790 (new_module): Ditto.
2791 (parse_module): Ditto
2792 (build_module_list): Ditto.
2793 (module_find_nearest_line): Ditto.
2794 (_bfd_vms_find_nearest_dst_line): Ditto.
2795 (vms_slurp_debug): Ditto.
2796 (_bfd_vms_slurp_dbg): Ditto.
2797 (_bfd_vms_slurp_tbt): Ditto.
2798 (_bfd_vms_write_dbg): Ditto.
2799 (_bfd_vms_write_tbt): Ditto.
2800
2801 * vms-gsd.c: Update copyright year, update list of records handled.
2802 (EVAX_LITERALS_NAME): New macro.
2803 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
2804 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
2805 (register_universal_symbol): New function and prototype.
2806 (_bfd_vms_slurp_gsd): Fix indentations and casts,
2807 improve debug messages,
2808 use constants instead of hard-coded value,
2809 fix missing endianness conversion,
2810 handle global symbol (SYMG).
2811 (bfd_vms_set_section_flags): New function.
2812 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
2813 handle section literals,
2814 fix indentation,
2815 handle section bfd and vms flags,
2816 don't output LIB$INITIALIZE symbol,
2817 fix handling of weak symbols,
2818 fix evax vs vax procedure descriptor,
2819 handle absolute symbols.
2820
2821 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
2822 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
2823
2824 * makefile.vms (DEFS): Fix flags for VMS.
2825
2826 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
2827
2828 * bfd-in2.h: Regenerated.
2829 * libbfd.h: Regenerated.
2830
47149254
CC
28312009-02-20 Cary Coutant <ccoutant@google.com>
2832
2833 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
2834 in struct stat.
2835
6b1cecf3
DK
28362009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
2837
2838 PR gas/7059
2839 * coffcode.h (coff_write_object_contents): Don't let the string
2840 table offset overflow the s_name field when using long section names.
2841
88183869
DK
28422009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
2843
2844 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
2845 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
2846 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2847 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
2848 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
2849 (bfd_pmac_xcoff_backend_data): Likewise.
2850 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
2851 (bfd_xcoff_aix5_backend_data): Likewise.
2852 (xcoff64_write_object_contents): Delete unused long_section_names
2853 local variable.
2854 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
2855 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
2856 struct non-const.
2857 * coffcode.h (documentation): Update to describe long section names.
2858 (COFFLONGSECTIONCATHELPER): New helper macro.
2859 (BLANKOR1TOODD): Likewise.
2860 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
2861 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
2862 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
2863 (bfd_coff_set_long_section_names_allowed): New function.
2864 (bfd_coff_set_long_section_names_disallowed): Likewise.
2865 (struct bfd_coff_backend_data): Add new backend hook function
2866 pointer _bfd_coff_set_long_section_names.
2867 (bfd_coff_set_long_section_names): New backend hook.
2868 (coff_write_object_contents): Only generate long section names if
2869 bfd_coff_long_section_names() indicates they are currently enabled.
2870 (bfd_coff_std_swap_table): Make non-const, and initialise long
2871 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
2872 (ticoff0_swap_table): Likewise to both.
2873 (ticoff1_swap_table): Again, likewise to both.
2874 * coffgen.c (make_a_section_from_file): Allow long section names
2875 as inputs even if not currently allowed for outputs.
2876 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
2877 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
2878 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2879 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2880 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
2881 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2882 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2883 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
2884 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
2885 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2886 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
2887 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
2888 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
2889 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
2890 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
2891 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
2892 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
2893 * libcoff-in.h: Update copyright year to cause updated copyright
2894 year in generated libcoff.h, and fix typo.
2895 * libcoff.h: Regenerated.
2896 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
2897 (_bfd_ecoff_no_long_sections): Add prototype.
2898 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
2899 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
2900 defined by an including .c file.
2901 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
2902 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
2903 (ticoff1_swap_table): Likewise to both.
2904
90d8a22c
CL
29052009-02-18 Christophe Lyon <christophe.lyon@st.com>
2906
2907 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
2908 stub. Catch default case error.
2909 (arm_map_one_stub): Add missing Thumb mapping symbol.
2910
12123067
NC
29112009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
2912
2913 PR 9841
2914 * elf32-avr.c: Handle case where no local symbos exist correctly.
2915
fea2b4d6
CL
29162009-02-16 Christophe Lyon <christophe.lyon@st.com>
2917
2918 bfd/
2919 * elf32-arm.c (arm_long_branch_stub,
2920 arm_thumb_v4t_long_branch_stub,
2921 arm_thumb_thumb_long_branch_stub,
2922 arm_thumb_arm_v4t_long_branch_stub,
2923 arm_thumb_arm_v4t_short_branch_stub,
2924 arm_pic_long_branch_stub):
2925 Renamed to elf32_arm_stub_long_branch_any_any,
2926 elf32_arm_stub_long_branch_v4t_arm_thumb,
2927 elf32_arm_stub_long_branch_thumb_only,
2928 elf32_arm_stub_long_branch_v4t_thumb_arm,
2929 elf32_arm_stub_short_branch_v4t_thumb_arm,
2930 elf32_arm_stub_long_branch_any_any_pic.
2931 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
2932 arm_thumb_thumb_stub_long_branch,
2933 arm_thumb_arm_v4t_stub_long_branch,
2934 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
2935 Renamed to arm_stub_long_branch_any_any,
2936 arm_stub_long_branch_v4t_arm_thumb,
2937 arm_stub_long_branch_thumb_only,
2938 arm_stub_long_branch_v4t_thumb_arm,
2939 arm_stub_short_branch_v4t_thumb_arm,
2940 arm_stub_long_branch_any_any_pic.
2941
13e0a874
DA
29422009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2943
2944 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
2945 in branch offset check.
2946
3a71aa26
AM
29472009-02-15 Alan Modra <amodra@bigpond.net.au>
2948
2949 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
2950 add toc.symndx and toc.add.
2951 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
2952 Set up toc.add.
2953 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
2954 callers.
2955 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
2956 (branch_reloc_hash_match): New function, extracted from..
2957 (ppc64_elf_tls_optimize): ..here.
2958 (ppc64_elf_relocate_section): Properly set addends when optimizing
2959 tls sequences. Avoid unnecessary reading and writing of insns.
2960 Only redo reloc when symbol changed. Bypass symbol checks when
2961 using tlsld_got.
2962 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
2963 (branch_reloc_hash_match): New function, extracted from..
2964 (ppc_elf_tls_optimize): ..here.
2965 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
2966 Don't clear addend on zapped __tls_get_addr reloc.
2967
2c2b4ed4
NC
29682009-02-12 Nick Clifton <nickc@redhat.com>
2969
2970 PR 9827
2971 * elflink.c (bfd_elf_final_link): When counting the relocations,
2972 if the header size has not been set yet then assume that it will
2973 match the output section's reloc type.
2974
453f5985
NS
29752009-02-12 Nathan Sidwell <nathan@codesourcery.com>
2976
2977 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
2978 relocatable link.
2979
3209bffa
AM
29802009-02-09 Alan Modra <amodra@bigpond.net.au>
2981
2982 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
2983 (find_function): Likewise.
2984 (pasted_function): Don't error if no prior function found.
2985 (discover_functions): Revert 2008-12-10 change. Extend first
2986 function range to start of section.
2987
813c8a3c
DA
29882009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2989
2990 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
2991 functions to C90.
2992 * elf64-hppa.h: Likewise.
2993
2d0f9ad9
JM
29942009-02-06 Joseph Myers <joseph@codesourcery.com>
2995
2996 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
2997 .sbss handling.
2998
50e00962
AM
29992009-02-04 Alan Modra <amodra@bigpond.net.au>
3000
3001 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
3002 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
3003
52b6b6b9
JM
30042009-02-03 Sandip Matte <sandip@rmicorp.com>
3005
3006 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
3007 * archures.c (bfd_mach_mips_xlr): Define.
3008 * bfd-in2.h: Regenerate.
3009 * cpu-mips.c (I_xlr): Define.
3010 (arch_info_struct): Add XLR entry.
3011 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
3012 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
3013 (mips_mach_extensions): Add XLR entry.
3014
654c3c9f
EW
30152009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
3016
3017 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
3018
31dd3154
JM
30192009-02-03 Carlos O'Donell <carlos@codesourcery.com>
3020
3021 * configure.in: AC_SUBST pdfdir.
d1fa68d3 3022 * Makefile.am: Add install-pdf, install-pdf-am
31dd3154
JM
3023 and install-pdf-recursive targets. Define pdfdir.
3024 * doc/Makefile.am: Define pdf__strip_dir. Add
3025 install-pdf and install-pdf-am targets.
d1fa68d3 3026 * po/Make-in: Add install-pdf target.
31dd3154
JM
3027 * configure: Regenerate.
3028 * Makefile.in: Regenerate
3029 * doc/Makefile.in: Regenerate.
3030
cf869cce
NC
30312009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3032
3033 * bfd-in2.h: Regenerate.
3034 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
3035 fields from n_entries to n_slots where appropriate, update comments.
3036 (HOWTO): Add TLS relocations.
3037 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
3038 (enum elf_m68k_got_offset_size): New enum.
3039 (struct elf_m68k_got_entry.type): Move field to ...
3040 (struct elf_m68k_got_entry_key): ... here. Update all uses.
3041 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
3042 functions.
3043 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
3044 functions.
3045 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
3046 fields into n_entries array. Update comments.
3047 (elf_m68k_init_got): Simplify, update all uses.
3048 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
3049 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
3050 GOT entries; update name, update all uses.
3051 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
3052 (elf_m68k_get_got_entry): Update.
3053 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
3054 simplify.
3055 (elf_m68k_remove_got_entry_type): Simplify.
3056 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
3057 (elf_m68k_can_merge_gots): Update.
3058 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
3059 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
3060 GOT entries, simplify.
3061 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
3062 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
3063 field, remove obsoleted local_n_entries field.
3064 (elf_m68k_partition_multi_got_2): New static function.
3065 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
3066 update.
3067 (elf_m68k_remove_got_entry_type): Update.
3068 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
d1fa68d3 3069 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
cf869cce
NC
3070 update of sgot->size and srelgot->size.
3071 (elf_m68k_gc_sweep_hook): Update.
3072 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
3073 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
3074 TLS relocations.
3075 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
3076 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
3077
c1a0a41f
DD
30782009-02-02 DJ Delorie <dj@redhat.com>
3079
3080 * elf32-mep.c (config_names): Regenerate configuration.
3081
72a80a16
AM
30822009-02-02 Alan Modra <amodra@bigpond.net.au>
3083
3084 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
3085 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
3086 * elf.c (bfd_elf_get_str_section): Make static.
3087 (bfd_elf_find_section): Delete.
3088 * libbfd.h: Regenerate.
3089
273f4430
JK
30902009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3091
3092 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
3093 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
3094
010e5ae2
AM
30952009-01-31 Alan Modra <amodra@bigpond.net.au>
3096
3097 * elflink.c (on_needed_list): New function.
3098 (elf_link_add_object_symbols): Link in --as-needed libs if they
3099 satisfy undefined symbols in other libs.
3100
33a7ffc2
JM
31012009-01-30 Julian Brown <julian@codesourcery.com>
3102
3103 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
3104 EXEC_P or DYNAMIC flags, and skip sections which are being linked
3105 with --just-symbols (-R).
3106
13d72a14
AN
31072009-01-29 Adam Nemet <anemet@caviumnetworks.com>
3108
3109 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
3110 high_pc in order to properly sign-extend VMAs.
3111
d334575b 31122009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
d1fa68d3
AS
3113 Mark Shinwell <shinwell@codesourcery.com>
3114 Catherine Moore <clm@codesourcery.com>
d334575b
JM
3115
3116 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
3117
528aeb62
CM
31182009-01-28 Catherine Moore <clm@codesourcery.com>
3119
3120 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
3121 SEC_LOAD for dynamic relocation sections.
3122
f6f05983
HPN
31232009-01-27 Hans-Peter Nilsson <hp@axis.com>
3124
3125 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
3126 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
3127 the size of local TLS data.
3128
27cc28f9
AS
31292009-01-27 Andreas Schwab <schwab@suse.de>
3130
3131 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
3132 architectures in the archive.
3133
b3bf42d8
HPN
31342009-01-27 Hans-Peter Nilsson <hp@axis.com>
3135
f551b6f0
HPN
3136 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
3137 <R_CRIS_32_DTPREL>: Correct relocation value.
3138
b3bf42d8
HPN
3139 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
3140 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
3141 symbols with non-default visibility.
3142
9bc4e62b
NS
31432009-01-26 Nathan Sidwell <nathan@codesourcery.com>
3144
3145 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
3146 describing the trampolines.
3147 (ppc_elf_relocate_section): Update relocs to describe the
3148 trampolines.
3149
aeaf6540
DA
31502009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3151
3152 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
3153 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
3154 and R_PARISC_PCREL12F relocations.
3155
1e8fa21e
AM
31562009-01-24 Alan Modra <amodra@bigpond.net.au>
3157
3158 PR 6022
3159 * elflink.c (find_version_for_sym): New function split out from,
3160 but without export_dynamic test, ..
3161 (_bfd_elf_link_assign_sym_version): ..here.
3162 (_bfd_elf_export_symbol): Use it.
3163
28caa186
AM
31642009-01-23 Alan Modra <amodra@bigpond.net.au>
3165
3166 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
3167 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
3168 * elflink.c: ..here, somewhat modified.
3169 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
3170 _bfd_elf_link_find_version_dependencies,
3171 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
3172 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
3173 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
3174 declare..
3175 * elflink.c: ..and make static here.
3176 (_bfd_elf_link_find_version_dependencies): Adjust for removal
3177 of output_bfd from struct elf_find_verdep_info.
3178 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
3179 struct elf_info_failed.
3180 (bfd_elf_size_dynamic_sections): Adjust.
3181
be04437d
AM
31822009-01-22 Alan Modra <amodra@bigpond.net.au>
3183
3184 PR 6832
3185 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
3186 after comp_unit_find_line call.
3187
58f9615c
NC
31882009-01-21 Nick Clifton <nickc@redhat.com>
3189
3190 PR 9769
3191 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
3192 tm_gmtoff field in struct tm.
3193
fb266b8b
AM
31942009-01-21 Alan Modra <amodra@bigpond.net.au>
3195
3196 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
3197 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
3198 sections in soft-icache lines unless non_ia_text. Don't add
3199 rodata if doing so would exceed line size.
3200
451ffe63
HPN
32012009-01-19 Hans-Peter Nilsson <hp@axis.com>
3202
3203 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
3204 types than bfd_link_hash_indirect, before early return, call
3205 _bfd_elf_link_hash_copy_indirect.
3206
5aa6ff7c
AS
32072009-01-19 Andrew Stubbs <ams@codesourcery.com>
3208
3209 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
3210 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
3211 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
3212 (elf_backend_obj_attrs_order): New define.
3213 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
3214 (elfNN_bed): Add elf_backend_obj_attrs_order.
3215
3483fe2e
AS
32162009-01-19 Andrew Stubbs <ams@codesourcery.com>
3217
3218 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
3219 (obj_attr_size): Likewise.
3220 (write_obj_attribute): Likewise.
3221 (_bfd_elf_copy_obj_attributes): Likewise.
3222 (_bfd_elf_parse_attributes): Likewise.
3223 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
3224 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
3225 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
3226 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
3227 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
3228 with macros.
3229
2d0bb761
AS
32302009-01-19 Andrew Stubbs <ams@codesourcery.com>
3231
3232 * elf-attrs.c (is_default_attr): Support defaultless attributes.
3233 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
3234 (bfd_elf_add_obj_attr_string): Likewise.
3235 (bfd_elf_add_obj_attr_int_string): Likewise.
3236 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
3237 * elf-bfd.h (struct obj_attribute): Document new flag bit.
3238 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
3239 Tag_nodefaults has no default value.
3240 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
3241 comment to reflect the new state.
3242
a77e83b7
AM
32432009-01-19 Alan Modra <amodra@bigpond.net.au>
3244
3245 PR 9695
3246 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
3247 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
3248 (adjust_z_magix): Delete dead code handling QMAGIC.
3249
f6d29e26
KT
32502009-01-16 Kai Tietz <kai.tietz@onevision.com>
3251
3252 * coffcode.h (styp_to_sec_flags): Correct interpretation of
3253 IMAGE_SCN_MEM_DISCARDABLE.
3254
29670fb9
AM
32552009-01-16 Alan Modra <amodra@bigpond.net.au>
3256
3257 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
3258 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
3259 * configure.in (commonbfdlib): Delete.
3260 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
3261 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
3262 is available, not just for linux.
3263 * po/SRC-POTFILES.in: Regenerate.
3264 * Makefile.in: Regenerate.
3265 * configure: Regenerate.
3266
91e22acd
AS
32672009-01-15 Andrew Stubbs <ams@codesourcery.com>
3268 Julian Brown <julian@codesourcery.com>
3269
3270 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
3271 ARM attributes in ABI 2.07.
3272 * elf32-arm.c (get_secondary_compatible_arch): New function.
3273 (set_secondary_compatible_arch): New function.
3274 (tag_cpu_arch_combine): New function.
3275 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
3276 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
3277 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
3278 make it fit with order_01243.
3279 Add support for Tag_also_compatible_with,
3280 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
3281 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
3282 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
3283 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
3284 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
3285 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
3286 Rework the way unknown attributes are handled.
3287 Defer errors until all attributes have been processed.
3288
7b86a9fa
AS
32892009-01-15 Andrew Stubbs <ams@codesourcery.com>
3290
3291 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
3292 bfd_elf_add_obj_attr_int_string.
3293 Read Tag_compatibility from its new location in the attribute array,
3294 rather than the attribute list.
3295 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
3296 bfd_elf_add_obj_attr_int_string.
3297 (_bfd_elf_parse_attributes): Likewise.
3298 (_bfd_elf_merge_object_attributes): There's now only one
3299 Tag_compatibility, and it's in the array, not the list.
3300 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
3301 Tag_compatibility.
3302 (bfd_elf_add_obj_attr_compat): Rename to
3303 bfd_elf_add_obj_attr_int_string.
3304 (bfd_elf_add_proc_attr_compat): Rename to
3305 bfd_elf_add_proc_attr_int_string.
3306 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
3307 Tag_compatibility.
3308
01e1a5bc
NC
33092009-01-15 Douglas B Rupp <rupp@gnat.com>
3310
3311 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
3312 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
3313 (vmsutil.lo): Add dependency rule.
3314 * Makefile.in: Regenerate.
3315 * config.bfd (ia64*-*-*vms*): Add case.
3316 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
3317 * configure: Regenerate.
3318 * vmsutil.c: New file.
3319 * vmsutil.h: New file.
3320 * elf-bfd.h (struct bfd_elf_special_section): Change type of
3321 attr to bfd_vma.
3322 * elfxx-ia64.c (elfNN_vms_post_process_headers,
3323 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
3324 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
3325 elfNN_vms_object_p): New functions
3326 * targets.c (bfd_elf64_ia64_vms_vec): New target.
3327
a33dafc3
L
33282009-01-14 H.J. Lu <hongjiu.lu@intel.com>
3329
3330 PR ld/9727
3331 * elflink.c (elf_gc_sweep): Exclude the group section if the
3332 first member of the section group is excluded.
3333
13c0e967
AM
33342009-01-14 Alan Modra <amodra@bigpond.net.au>
3335
3336 PR 9735
3337 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
3338 saved filename, use bfd_alloc rather than bfd_malloc for it.
3339
460e679b
AM
33402009-01-13 Alan Modra <amodra@bigpond.net.au>
3341
3342 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
3343
25076afa
AM
33442009-01-13 Alan Modra <amodra@bigpond.net.au>
3345
3346 * elf32-spu.c (remove_cycles): Always set call->max_depth.
3347
37107878
AM
33482009-01-12 Alan Modra <amodra@bigpond.net.au>
3349
3350 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
3351
cd4a7468
AM
33522009-01-12 Alan Modra <amodra@bigpond.net.au>
3353
3354 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
3355 num_lines_log2.
3356 (struct got_entry): Add br_addr.
3357 (struct call_info): Add priority.
3358 (struct function_info): Add lr_store and sp_adjust.
3359 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
3360 (spu_elf_find_overlays): For soft-icache, mark any section within cache
3361 area as an overlay, and check that no other overlays exist. Look up
3362 icache overlay manager entry sym.
3363 (BRA_STUBS, BRA, BRASL): Define.
3364 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
3365 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
3366 in branch insn.
3367 (count_stub, build_stub): Support soft-icache.
3368 (build_spuear_stubs, process_stubs): Adjust build_stub call.
3369 (spu_elf_size_stubs): Size soft-icache stubs.
3370 (overlay_index): New function.
3371 (spu_elf_build_stubs): Make static. Support soft-icache.
3372 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
3373 (find_function_stack_adjust): Save lr store and stack adjust insn
3374 offsets.
3375 (maybe_insert_function): Adjust find_function_stack_adjust call.
3376 (mark_functions_via_relocs): Retrieve priority.
3377 (remove_cycles): Only warn about pruned arcs when stack_analysis.
3378 (sort_calls): Sort by priority first.
3379 (mark_overlay_section): Ignore .ovl.init.
3380 (sum_stack): Only print when stack_analysis.
3381 (print_one_overlay_section): New function, extracted from..
3382 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
3383 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
3384 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
3385 analysis. Call spu_elf_build_stubs.
3386 (spu_elf_relocate_section): For soft-icache encode overlay index
3387 into addresses.
3388 (spu_elf_output_symbol_hook): Support soft-icache.
3389 (spu_elf_modify_program_headers: Likewise.
37107878 3390
cd4a7468
AM
3391 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
3392 num_regions to num_lines. Add line_size and max_branch.
3393 (enum _ovly_flavour): Add ovly_soft_icache.
3394 (spu_elf_build_stubs): Delete.
3395
80c29487
JK
33962009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
3399 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
3400
1bc86aea
HPN
34012009-01-07 Hans-Peter Nilsson <hp@axis.com>
3402
3403 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
3404 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
3405 the program, the known offset starts at the negative size of the
3406 TLS section.
3407 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
3408 Similar.
3409
3baa454d 34102009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
75606e85 3411
3baa454d 3412 * config.bfd: Add lm32-*-rtems*.
75606e85 3413
9dbe8890
L
34142009-01-03 H.J. Lu <hongjiu.lu@intel.com>
3415
3416 * coff-ppc.c: Add 2009 to Copyright.
3417 * elf32-cris.c: Likewise.
3418 * elflink.c: Likewise.
3419
0bdf8d40
HPN
34202009-01-03 Hans-Peter Nilsson <hp@axis.com>
3421
3422 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
3423 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
3424
54ac0771
L
34252009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3426
3427 PR ld/9679
3428 * elflink.c (elf_merge_st_other): New.
3429 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
3430 hide them if needed.
3431 (elf_link_add_object_symbols): Updated.
3432
d8880531
L
34332009-01-02 H.J. Lu <hongjiu.lu@intel.com>
3434
3435 PR ld/9676
3436 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
3437 ref_dynamic and dynamic_def fields when setting def_regular
3438 to 1.
3439
b70b5c14
NC
34402009-01-02 Curtis Mackie <curtmackevo@gmail.com>
3441
3442 PR 9682
3443 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
3444 literal.
3445
d8880531 3446For older changes see ChangeLog-2008
56882138
AM
3447\f
3448Local Variables:
3449mode: change-log
3450left-margin: 8
3451fill-column: 74
3452version-control: never
3453End:
This page took 0.62041 seconds and 4 git commands to generate.