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