* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
2
3 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
4 for format string.
5
6 2009-03-19 Alan Modra <amodra@bigpond.net.au>
7
8 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
9 "no overlays" return. If there are overlays, create overlay
10 manager entry symbols here, so that..
11 (spu_elf_build_stubs): ..we don't need to set them up here.
12 Simplify entry symbol tests.
13 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
14
15 2009-03-18 Mark Kettenis <kettenis@gnu.org>
16
17 * elf.c (elfcore_grok_openbsd_procinfo)
18 (elfcore_grok_openbsd_note): New functions.
19 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
20
21 2009-03-18 Alan Modra <amodra@bigpond.net.au>
22
23 * vms-hdr.c: Don't include alloca.h.
24 * elf32-m68hc1x.c: Include alloca-conf.h.
25 * xsym.c: Likewise.
26 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
27 * som.c: Likewise.
28 * Makefile.am: Run "make dep-am".
29 * Makefile.in: Regenerate.
30
31 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
32
33 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
34
35 2009-03-17 Alan Modra <amodra@bigpond.net.au>
36
37 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
38 Add compact_stub.
39 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
40 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
41 ovly_return fields with ovly_entry[2]. Adjust all users.
42 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
43 when soft-icache.
44 (spu_elf_build_stubs): Likewise.
45 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
46 ovly_flavour changes. Update all callers.
47 (ovl_stub_size_log2): New function.
48 (build_stub): Handle compact icache stubs. Use different manager
49 entry point for stubs in non-icache area.
50 (spu_elf_size_stubs): Don't allocate space for indirect branch
51 descriptors.
52 (spu_elf_build_stubs): And don't built them.
53
54 2009-03-16 Andrew Stubbs <ams@codesourcery.com>
55
56 * dwarf2.c (read_section): Always use rawsize, if available.
57
58 2009-03-16 Alan Modra <amodra@bigpond.net.au>
59
60 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
61 of rawsize and size for buffer.
62
63 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
64
65 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
66 parameter just because fixed sections fit into local store.
67 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
68 generating overlays if fixed sections plus reserved stack
69 and heap space fit into local store.
70
71 2009-03-15 Alan Modra <amodra@bigpond.net.au>
72
73 * elf32-spu.c (build_stub): Correct icache set_id.
74 (spu_elf_relocate_section): Likewise.
75
76 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
77
78 * xcofflink.c (xcoff_link_check_archive_element): Only free the
79 symbol table if it was created by the current call.
80
81 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
82
83 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
84 class XMC_DS rather than XMC_UA.
85
86 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
87
88 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
89 bfd_boolean export_defineds parameter with an unsigned int
90 auto_export_flags parameter.
91 * bfd-in2.h: Regenerate.
92 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
93 split out from xcoff_build_ldsyms.
94 (xcoff_covered_by_expall_p): New function.
95 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
96 but with extra code to handle -bexpfull and -bexpall.
97 (xcoff_mark_auto_exports): New function.
98 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
99 a function should be automatically exported.
100 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
101 parameter with an auto_export_flags parameter. Update ldinfo
102 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
103 exported symbols.
104
105 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
106
107 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
108 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
109 init and fini functions. Do garbage collection for objects
110 without an entry point too.
111
112 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
113
114 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
115 check whether a symbol has csect information.
116 (coff_print_aux): Likewise.
117 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
118 information for C_AIX_WEAKEXT too.
119 (_bfd_xcoff_swap_aux_out): Likewise.
120 (xcoff_reloc_type_br): Handle defweak symbols too.
121 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
122 information for C_AIX_WEAKEXT too.
123 (_bfd_xcoff64_swap_aux_out): Likewise.
124 (xcoff64_reloc_type_br): Handle defweak symbols too.
125 * coffgen.c (coff_print_symbol): Handle auxillary function
126 information for C_AIX_WEAKEXT too.
127 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
128 instead of BSF_GLOBAL if the L_WEAK flag is set.
129 (xcoff_dynamic_definition_p): New function.
130 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
131 defines h. Don't change h if ldsym isn't the definition. Otherwise,
132 always take the symbol class from the ldsym. Use weak bfd symbol
133 types for weak ldsyms.
134 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
135 Fix the check for whether a definition is from a shared object.
136 Allow redefinitions of weak symbols.
137 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
138 (xcoff_keep_symbol_p): Likewise.
139 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
140 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
141 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
142 but mark them as L_WEAK.
143 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
144 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
145
146 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
147
148 * xcofflink.c (xcoff_mark): When walking the relocations,
149 only mark the target symbol or the target section, not both.
150 (xcoff_final_definition_p): New function.
151 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
152 symbol is a valid definition of the associated output symbol.
153 Use XCOFF_ALLOCATED to stop the same hash table entry having
154 two output symbols.
155 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
156 keeping a symbol.
157 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
158
159 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
160
161 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
162 symbols as XMC_XO.
163
164 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
165
166 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
167 * libcoff.h: Regenerate.
168 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
169 line-number counts in the bfd's lineno_counts field.
170 Don't keep per-csect line-number counts.
171 (xcoff_sweep): Don't update per-csect line-number counts.
172 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
173 entries in each output section.
174 (xcoff_link_input_bfd): Get the number of line numbers from
175 the bfd's lineno_counts field, rather than recalculating it
176 from scratch. Fix the range check when updating C_BINCL and
177 C_EINCL symbols.
178 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
179 here. Don't expect csects to have line-number counts.
180
181 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
182
183 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
184 * libcoff.h: Regenerate.
185 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
186 "skip" logic from xcoff_link_input_bfd.
187 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
188 objects in a dynamic link, rather than checking whether csectpp
189 is null. Always allocate debug_index for other objects,
190 and always go through the loop. Update the type of debug_index
191 after the change above. Read the auxillary csect information
192 and use xcoff_keep_symbol_p to decide whether a symbol should
193 be kept. Set its debug_index to -2 if not.
194 (xcoff_link_input_bfd): Update the type of debug_index after
195 the change above and always expect it to be nonnull. Use it to
196 test whether a symbol should be stripped, rather than making the
197 decision here. Postpone all symbol creation to the second pass.
198
199 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
200
201 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
202 creating a descriptor.
203 (xcoff_sweep): Don't mark toc_section unless it's needed.
204 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
205 when marking every bfd.
206 (xcoff_link_input_bfd): Skip all TOC anchors.
207 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
208 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
209 to -1; call xcoff_find_tc0 instead.
210
211 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
212
213 * libcoff-in.h (xcoff_section_tdata): Update commentary.
214 * libcoff.h: Regenerate.
215 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
216 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
217 the previous symbol's csect. Treat last_symndx as an inclusive value
218 and simplify its handling.
219 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
220 symbols with the right csect. Don't mark rsec when processing
221 relocations against undefined or absolute sections.
222 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
223 of bfd_und_section_ptr.
224 (xcoff_link_input_bfd): Likewise.
225
226 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
227
228 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
229 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
230 flag is set. Assert that all undefined symbols are either
231 imported or defined by a dynamic object.
232 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
233 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
234 handling to all relocations. Only set XCOFF_CALLED for function
235 symbols.
236 (xcoff_find_function): New function, split out from...
237 (bfd_xcoff_export_symbol) ...here.
238 (xcoff_set_import_path): New function, split out from...
239 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
240 meaning of XCOFF_CALLED.
241 (xcoff_mark_symbol): If we mark an undefined and unimported
242 symbol, find some way of defining it. If the symbol is a function
243 descriptor, fill in its definition automatically. If the symbol
244 is a function, mark its descriptor and allocate room for global
245 linkage code. Otherwise mark the symbol as implicitly imported.
246 Move the code for creating function descriptors from...
247 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
248 check for symbols that were implicitly defined.
249 (xcoff_mark): Don't count any dynamic relocations against
250 function symbols.
251 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
252 in the xcoff link info.
253 (xcoff_link_input_bfd): Remove handling of undefined and
254 unexported symbols.
255
256 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
257
258 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
259 if the target is absolute. Fix comment typo.
260 (xcoff_ppc_relocate_section): Remove FIXME.
261 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
262 if the target is absolute.
263
264 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
265
266 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
267 R_POS and R_NEG relocations against absolute symbols to the
268 .loader section.
269
270 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
271
272 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
273 to 2 for bfd_mach_ppc_620.
274
275 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
276
277 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
278 * configure.in: Likewise.
279 * configure: Regenerate.
280
281 2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
282
283 PR binutils/9945
284 * elf.c (assign_section_numbers): Generate symbol table if there
285 is any relocation in output.
286 (_bfd_elf_compute_section_file_positions): Likewise.
287
288 2009-03-13 Nick Clifton <nickc@redhat.com>
289
290 PR 9934
291 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
292 * elflink.c (elf_link_read_relocs_from_section): Use
293 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
294 relocs but no symbol table.
295 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
296
297 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
298
299 PR ld/9938
300 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
301 to check ___tls_get_addr.
302
303 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
304 strncmp to check __tls_get_addr.
305
306 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
307
308 * dwarf2.c (read_section): Always check the offset, even when the
309 section has been read before.
310
311 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
312
313 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
314 comments.
315
316 2009-03-11 Chris Demetriou <cgd@google.com>
317
318 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
319 * bfd-in2.h: Regenerate.
320 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
321 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
322 mode.
323 (bsd_write_armap): Likewise.
324 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
325 flag is set, do nothing.
326 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
327 for timestamp.
328
329 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
330
331 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
332 used to update stack pointer.
333
334 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
335
336 PR binutils/9921
337 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
338 for unknown symbols in absolute section.
339
340 2009-03-06 Nick Clifton <nickc@redhat.com>
341
342 * po/es.po: Updated Spanish translation.
343
344 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
345
346 * elf32-arm.c (group_sections): Take next section size into
347 account before accepting to group it.
348
349 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
350
351 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
352 PLT entries.
353 (elf32_arm_final_link_relocate): Likewise.
354
355 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
356
357 PR 9923
358 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
359
360 2009-03-04 Alan Modra <amodra@bigpond.net.au>
361
362 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
363 * section.c (struct bfd_section): Add has_tls_get_addr_call.
364 (BFD_FAKE_SECTION): Init new flag.
365 * ecoff.c (bfd_debug_section): Likewise.
366 * bfd-in2.h: Regenerate.
367 * libbfd.h: Regenerate.
368 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
369 (ppc_elf_reloc_type_lookup): Handle new relocs.
370 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
371 without marker relocs.
372 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
373 if section has no old-style calls.
374 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
375 Don't try to optimize new-style __tls_get_addr call when handling
376 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
377 relocs.
378 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
379 (ppc64_elf_reloc_type_lookup): Handle new relocs.
380 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
381 without marker relocs.
382 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
383 if section has no old-style calls. Set toc_ref for new relocs as
384 appropriate.
385 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
386 Don't try to optimize new-style __tls_get_addr call when handling
387 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
388 relocs.
389
390 2009-03-04 Alan Modra <amodra@bigpond.net.au>
391
392 PR 6768
393 * configure.in: Test for ld --as-needed support. Link shared
394 libbfd against libm.
395 * configure: Regenerate.
396
397 2009-03-03 Alan Modra <amodra@bigpond.net.au>
398
399 * Makefile.am: Run "make dep-am".
400 * Makefile.in: Regenerate.
401
402 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
403
404 * elf32-score7.c: New file.
405 * elf32-score.h: New file.
406 * elf32-score.c: Add code to support score 7. Set score7 as the
407 default.
408 * cpu-score.c: Add score7 architecure.
409 (compatibile): New function.
410 * Makefile.am: Add rules for building elf32-score7 object.
411 * Makefile.in: Regenerate.
412 * configure.in: Add elf32-score7 object to score vectors.
413 * configure: Regenerate.
414 * reloc.c: Add score7 relocs.
415 * archures.c: Add score3 and score7 machine numbers.
416 * bfd-in2.h: Regenerate.
417 * libbfd.h: Regenerate.
418
419 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
420
421 * configure: Regenerate.
422
423 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
424
425 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
426 (elf32_hppa_check_relocs): Use it.
427
428 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
429 elf64-hppa.c.
430 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
431 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
432 (elf_hppa_is_dynamic_loader_symbol): Likewise.
433 (elf_hppa_record_segment_addrs): Likewise.
434 (elf_hppa_final_link): Likewise.
435 (elf_hppa_relocate_insn): Likewise.
436 (elf_hppa_final_link_relocate): Likewise.
437 (elf64_hppa_relocate_section): Likewise.
438 * elf64-hppa.c: Insert above.
439
440 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
441
442 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
443 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
444 (elf_hppa_relocate_section): Likewise.
445 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
446 from struct elf_link_hash_entry. Add count field.
447 (struct elf64_hppa_dyn_hash_table): Delete.
448 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
449 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
450 (hppa_elf_hash_entry, eh_name): Define.
451 (elf64_hppa_new_dyn_hash_entry): Delete.
452 (elf64_hppa_dyn_hash_lookup): Delete.
453 (elf64_hppa_dyn_hash_traverse): Delete.
454 (get_dyn_name): Delete.
455 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
456 of struct elf64_hppa_dyn_hash_entry *.
457 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
458 allocate_global_data_plt, allocate_global_data_stub,
459 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
460 Likewise.
461 (hppa64_link_hash_newfunc): New.
462 (elf64_hppa_hash_table_create): Rework.
463 (count_dyn_reloc): Likewise.
464 (hppa64_elf_local_refcounts): New.
465 (elf64_hppa_check_relocs): Rework using standard technique for recording
466 local DLT, PLT and OPD reference counts.
467 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
468 elf_link_hash_entry *.
469 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
470 allocate_global_data_plt, allocate_global_data_stub,
471 allocate_global_data_opd, allocate_dynrel_entries,
472 elf64_hppa_adjust_dynamic_symbol,
473 elf64_hppa_mark_milli_and_exported_functions): Likewise.
474 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
475 Use hppa_link_hash_table. Rework.
476 (elf64_hppa_link_output_symbol_hook): Rework.
477 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
478 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
479 elf64_hppa_finish_dynamic_sections): Likewise.
480
481 2009-02-26 Christophe Lyon <christophe.lyon@st.com>
482
483 * elf32-arm.c (stub_reloc_type): Removed.
484 (insn_sequence): Renamed reloc_type field to r_type.
485 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
486 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
487 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
488 (elf32_arm_stub_type): Add new enum entries for the new stubs.
489 (arm_stub_is_thumb): Catch new stubs.
490 (arm_type_of_stub): Handle new stubs.
491 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
492 (bfd_elf32_arm_process_before_allocation): Remove useless
493 condition.
494
495 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
496
497 * elf.c (elf_find_function): Use is_function_type to check
498 function symbol.
499
500 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
501
502 * xtensa-modules.c: Revert to previous version 1.11 due
503 to inadvertant commit.
504
505 2009-02-24 Sterling Augustine <sterling@tensilica.com>
506
507 * elf32-xtensa.c (text_action_add): Separate test for action
508 type. Break if saved action is ta_widen_insn at same offset.
509
510 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
511
512 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
513 to elf32_arm_stub_long_branch_any_arm_pic.
514 (elf32_arm_stub_long_branch_any_thumb_pic): New.
515 (enum elf32_arm_stub_type, arm_type_of_stub)
516 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
517 separately.
518
519 2009-02-24 Joseph Myers <joseph@codesourcery.com>
520
521 * elf32-arm.c (PREV_SEC): Update comment.
522 (group_sections): Rename argument to stubs_always_after_branch.
523 Reverse the list and place stubs at the end of input sections.
524 Undefine NEXT_SEC.
525 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
526
527 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
528
529 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
530 Fix formatting.
531 (arm_size_one_stub): Remove unnecessary break.
532 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
533
534 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
535
536 * elf32-arm.c (stub_insn_type): New type.
537 (stub_reloc_type): Likewise.
538 (insn_sequence): Likewise.
539 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
540 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
541 (elf32_arm_stub_long_branch_thumb_only): Likewise.
542 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
543 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
544 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
545 (elf32_arm_stub_hash_entry): Add new helper fields.
546 (stub_hash_newfunc): Initialize these new fields.
547 (arm_build_one_stub): Encode Arm and Thumb instructions separately
548 to take endianness into account.
549 (arm_size_one_stub): Compute size of stubs using insn_sequence.
550 (arm_map_one_stub): Code is now more generic, thanks to
551 insn_sequence.
552
553 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
554
555 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
556 code.
557 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
558 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
559 BLX is not available. Fix typo in warning message. Add comments
560 and improve formatting.
561 (arm_build_one_stub): Adjust to new
562 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
563 (arm_map_one_stub): Likewise.
564
565 2009-02-23 Tristan Gingold <gingold@adacore.com>
566 Eric Botcazou <ebotcazou@adacore.com>
567 Douglas B Rupp <rupp@gnat.com>
568
569 * vms.h: Update copyright year, fix comments, reorder declarations.
570 (_bfd_save_vms_section): Remove the prototype.
571 (EGPS_S_V_NO_SHIFT): New constant.
572 (bfd_vms_set_section_flags): New prototype.
573 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
574 constants.
575 (EGSY_S_W_FLAGS): Ditto.
576 (EGSY_S_V_QUAD_VAL): Ditto.
577 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
578 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
579 EGST_S_B_NAMLNG): Ditto.
580 (ESRF_S_B_NAMLNG): Ditto.
581 (ETIR_S_C_HEADER_SIZE): Ditto.
582 (EGPS_S_V_ALLOC_64BIT): Ditto.
583 (DST_S_C_EPILOG): Ditto.
584 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
585 (DST_S_C_SRC_INCRLNUM_B): Ditto.
586 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
587 (DST_S_L_PCLINE_UNSLONG): Ditto.
588 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
589 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
590 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
591 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
592 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
593 (DST_S_B_SRC_UNSBYTE): Ditto.
594 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
595 Add prototypes.
596 (vms_section, vms_reloc): Remove types.
597 (hdr_struc): Replaced by ...
598 (hdr_struct): ... new type.
599 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
600 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
601 (EMH_DATE_LENGTH): Ditto.
602 (eom_struc): Replaced by ...
603 (eom_struct): ... new type.
604 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
605 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
606 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
607 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
608 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
609 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
610 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
611 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
612 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
613 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
614 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
615 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
616 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
617 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
618 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
619 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
620 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
621 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
622 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
623 (enum file_type_enum): New type.
624 (struct location_struct): Removed.
625 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
626 (struct funcinfo, struct module): Ditto.
627 (struct vms_private_data_struct): Update fields.
628 (struct vms_section_data_struct): New type.
629
630 * vms.c: Update copyright year, fix comments,
631 Fix includes for DECC, add prototypes.
632 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
633 some initializers.
634 Use flavour to set is_vax, location_stack is removed.
635 (struct pair): Declare.
636 (fill_section_ptr): Initialize variables at declaration.
637 Add guard to set SECTION_SYM flag, handlde und section.
638 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
639 (_bfd_vms_slurp_object_records): New function, replaces previous
640 vms_object_p.
641 (vms_slurp_module): New function.
642 (vms_slurp_image): Ditto.
643 (vms_object_p): Complete rewrite.
644 (vms_mkobject): Use is_vax field to slect architecture.
645 (free_reloc_stream): New function.
646 (vms_convert_to_var): Ditto.
647 (vms_convert_to_var_1): Ditto.
648 (vms_convert_to_var_unix_filename): Ditto.
649 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
650 VAR format on VMS.
651 (vms_new_section_hook): Set alignment to 0, allocate private data.
652 (vms_get_section_contents): Load content.
653 (vms_get_symbol_info): Handle undefined section.
654 (vms_find_nearest_line): Handle.
655 (alloc_reloc_stream): New function.
656 (vms_slurp_reloc_table): Ditto.
657 (vms_get_reloc_upper_bound): Make it real.
658 (vms_canonicalize_reloc): Do the real work.
659 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
660 ALPHA_R_BOH.
661 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
662 (vms_set_arch_mach): Check arch.
663 (vms_set_section_contents): Copy the content after allocation.
664 (vms_alpha_vec): Update object flags.
665
666 * vms-tir.c: Update copyright year, fix comments,
667 add prototypes for new functions.
668 (dst_define_location): New function.
669 (dst_restore_location): New function.
670 (dst_retrieve_location): New function.
671 (dst_check_allocation): New function.
672 (image_dump): Call dst_check_allocation.
673 (image_write_b): Ditto.
674 (image_write_w): Ditto.
675 (image_write_l): Ditto.
676 (image_write_q): Ditto.
677 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
678 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
679 CTL_STKDL.
680 Call error handler instead of abort if name is not known.
681 (etir_sta): Add quarter_relocs argument and set it.
682 Fix cast.
683 (etir_sto): Ditto.
684 (etir_opr): Ditto, return FALSE in case of error.
685 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
686 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
687 (etir_stc): Add quarter_relocs argument and set it, fix cast.
688 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
689 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
690 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
691 Return FALSE in case of error.
692 (tir_sta): Change sign of psect.
693 (tir_ctl): Ditto.
694 (tir_cmd): Fix cast. Makes tir_table static const.
695 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
696 add argument to explain.
697 (analyze_etir): Initialize maxptr, add quarter_relocs
698 declaration, move some declarations into inner scopes.
699 Handle quarter_relocs and STO_IMM.
700 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
701 (_bfd_vms_slurp_relocs): New function.
702 (_bfd_vms_decode_relocs): New function.
703 (sto_imm): Rewritten.
704 (start_first_etbt_record): New function.
705 (start_another_etbt_record): Ditto.
706 (etir_output_check): Ditto.
707 (defer_reloc_p): Ditto.
708 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
709 a for-loop. Correctly deals with contents, deals with .vmsdebug,
710 rewritte relocations handling.
711 (_bfd_vms_write_tbt): Removed.
712 (_bfd_vms_write_dbg): Ditto.
713
714 * vms-misc.c: Update copyright year, Fix comments.
715 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
716 (maybe_adjust_record_pointer_for_object): New function.
717 (_bfd_vms_get_first_record): New function, replaces ...
718 (_bfd_vms_get_record): .. removed.
719 (_bfd_vms_get_object_record): New function.
720 (_bfd_vms_get_object_record): New function.
721 (vms_get_remaining_object_record): New function, replaces ...
722 (_bfd_vms_get_next_record): ... removed.
723 (add_new_contents): Removed.
724 (_bfd_save_vms_section): Removed.
725 (_bfd_get_vms_section): Removed.
726 (_bfd_vms_output_flush): Write in VAR format.
727 (new_symbol): Don't make UND section.
728
729 * vms-hdr.c: Update copyright year, update list of record handled.
730 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
731 (_bfd_vms_write_hdr): Strip vms and unix patches,
732 add comments, truncate module name at 31 characters,
733 use constants instead of hard-coded value,
734 write BFD version instead of a fixed string.
735 (_bfd_vms_slurp_ihd): New function.
736 (_bfd_vms_slurp_isd): Ditto.
737 (_bfd_vms_slurp_ihs): Ditto.
738 (new_module): Ditto.
739 (parse_module): Ditto
740 (build_module_list): Ditto.
741 (module_find_nearest_line): Ditto.
742 (_bfd_vms_find_nearest_dst_line): Ditto.
743 (vms_slurp_debug): Ditto.
744 (_bfd_vms_slurp_dbg): Ditto.
745 (_bfd_vms_slurp_tbt): Ditto.
746 (_bfd_vms_write_dbg): Ditto.
747 (_bfd_vms_write_tbt): Ditto.
748
749 * vms-gsd.c: Update copyright year, update list of records handled.
750 (EVAX_LITERALS_NAME): New macro.
751 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
752 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
753 (register_universal_symbol): New function and prototype.
754 (_bfd_vms_slurp_gsd): Fix indentations and casts,
755 improve debug messages,
756 use constants instead of hard-coded value,
757 fix missing endianness conversion,
758 handle global symbol (SYMG).
759 (bfd_vms_set_section_flags): New function.
760 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
761 handle section literals,
762 fix indentation,
763 handle section bfd and vms flags,
764 don't output LIB$INITIALIZE symbol,
765 fix handling of weak symbols,
766 fix evax vs vax procedure descriptor,
767 handle absolute symbols.
768
769 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
770 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
771
772 * makefile.vms (DEFS): Fix flags for VMS.
773
774 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
775
776 * bfd-in2.h: Regenerated.
777 * libbfd.h: Regenerated.
778
779 2009-02-20 Cary Coutant <ccoutant@google.com>
780
781 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
782 in struct stat.
783
784 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
785
786 PR gas/7059
787 * coffcode.h (coff_write_object_contents): Don't let the string
788 table offset overflow the s_name field when using long section names.
789
790 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
791
792 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
793 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
794 * coff-mips.c (mips_ecoff_backend_data): Likewise.
795 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
796 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
797 (bfd_pmac_xcoff_backend_data): Likewise.
798 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
799 (bfd_xcoff_aix5_backend_data): Likewise.
800 (xcoff64_write_object_contents): Delete unused long_section_names
801 local variable.
802 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
803 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
804 struct non-const.
805 * coffcode.h (documentation): Update to describe long section names.
806 (COFFLONGSECTIONCATHELPER): New helper macro.
807 (BLANKOR1TOODD): Likewise.
808 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
809 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
810 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
811 (bfd_coff_set_long_section_names_allowed): New function.
812 (bfd_coff_set_long_section_names_disallowed): Likewise.
813 (struct bfd_coff_backend_data): Add new backend hook function
814 pointer _bfd_coff_set_long_section_names.
815 (bfd_coff_set_long_section_names): New backend hook.
816 (coff_write_object_contents): Only generate long section names if
817 bfd_coff_long_section_names() indicates they are currently enabled.
818 (bfd_coff_std_swap_table): Make non-const, and initialise long
819 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
820 (ticoff0_swap_table): Likewise to both.
821 (ticoff1_swap_table): Again, likewise to both.
822 * coffgen.c (make_a_section_from_file): Allow long section names
823 as inputs even if not currently allowed for outputs.
824 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
825 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
826 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
827 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
828 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
829 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
830 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
831 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
832 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
833 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
834 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
835 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
836 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
837 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
838 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
839 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
840 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
841 * libcoff-in.h: Update copyright year to cause updated copyright
842 year in generated libcoff.h, and fix typo.
843 * libcoff.h: Regenerated.
844 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
845 (_bfd_ecoff_no_long_sections): Add prototype.
846 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
847 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
848 defined by an including .c file.
849 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
850 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
851 (ticoff1_swap_table): Likewise to both.
852
853 2009-02-18 Christophe Lyon <christophe.lyon@st.com>
854
855 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
856 stub. Catch default case error.
857 (arm_map_one_stub): Add missing Thumb mapping symbol.
858
859 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
860
861 PR 9841
862 * elf32-avr.c: Handle case where no local symbos exist correctly.
863
864 2009-02-16 Christophe Lyon <christophe.lyon@st.com>
865
866 bfd/
867 * elf32-arm.c (arm_long_branch_stub,
868 arm_thumb_v4t_long_branch_stub,
869 arm_thumb_thumb_long_branch_stub,
870 arm_thumb_arm_v4t_long_branch_stub,
871 arm_thumb_arm_v4t_short_branch_stub,
872 arm_pic_long_branch_stub):
873 Renamed to elf32_arm_stub_long_branch_any_any,
874 elf32_arm_stub_long_branch_v4t_arm_thumb,
875 elf32_arm_stub_long_branch_thumb_only,
876 elf32_arm_stub_long_branch_v4t_thumb_arm,
877 elf32_arm_stub_short_branch_v4t_thumb_arm,
878 elf32_arm_stub_long_branch_any_any_pic.
879 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
880 arm_thumb_thumb_stub_long_branch,
881 arm_thumb_arm_v4t_stub_long_branch,
882 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
883 Renamed to arm_stub_long_branch_any_any,
884 arm_stub_long_branch_v4t_arm_thumb,
885 arm_stub_long_branch_thumb_only,
886 arm_stub_long_branch_v4t_thumb_arm,
887 arm_stub_short_branch_v4t_thumb_arm,
888 arm_stub_long_branch_any_any_pic.
889
890 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
891
892 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
893 in branch offset check.
894
895 2009-02-15 Alan Modra <amodra@bigpond.net.au>
896
897 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
898 add toc.symndx and toc.add.
899 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
900 Set up toc.add.
901 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
902 callers.
903 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
904 (branch_reloc_hash_match): New function, extracted from..
905 (ppc64_elf_tls_optimize): ..here.
906 (ppc64_elf_relocate_section): Properly set addends when optimizing
907 tls sequences. Avoid unnecessary reading and writing of insns.
908 Only redo reloc when symbol changed. Bypass symbol checks when
909 using tlsld_got.
910 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
911 (branch_reloc_hash_match): New function, extracted from..
912 (ppc_elf_tls_optimize): ..here.
913 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
914 Don't clear addend on zapped __tls_get_addr reloc.
915
916 2009-02-12 Nick Clifton <nickc@redhat.com>
917
918 PR 9827
919 * elflink.c (bfd_elf_final_link): When counting the relocations,
920 if the header size has not been set yet then assume that it will
921 match the output section's reloc type.
922
923 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
924
925 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
926 relocatable link.
927
928 2009-02-09 Alan Modra <amodra@bigpond.net.au>
929
930 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
931 (find_function): Likewise.
932 (pasted_function): Don't error if no prior function found.
933 (discover_functions): Revert 2008-12-10 change. Extend first
934 function range to start of section.
935
936 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
937
938 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
939 functions to C90.
940 * elf64-hppa.h: Likewise.
941
942 2009-02-06 Joseph Myers <joseph@codesourcery.com>
943
944 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
945 .sbss handling.
946
947 2009-02-04 Alan Modra <amodra@bigpond.net.au>
948
949 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
950 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
951
952 2009-02-03 Sandip Matte <sandip@rmicorp.com>
953
954 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
955 * archures.c (bfd_mach_mips_xlr): Define.
956 * bfd-in2.h: Regenerate.
957 * cpu-mips.c (I_xlr): Define.
958 (arch_info_struct): Add XLR entry.
959 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
960 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
961 (mips_mach_extensions): Add XLR entry.
962
963 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
964
965 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
966
967 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
968
969 * configure.in: AC_SUBST pdfdir.
970 * Makefile.am: Add install-pdf, install-pdf-am
971 and install-pdf-recursive targets. Define pdfdir.
972 * doc/Makefile.am: Define pdf__strip_dir. Add
973 install-pdf and install-pdf-am targets.
974 * po/Make-in: Add install-pdf target.
975 * configure: Regenerate.
976 * Makefile.in: Regenerate
977 * doc/Makefile.in: Regenerate.
978
979 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
980
981 * bfd-in2.h: Regenerate.
982 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
983 fields from n_entries to n_slots where appropriate, update comments.
984 (HOWTO): Add TLS relocations.
985 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
986 (enum elf_m68k_got_offset_size): New enum.
987 (struct elf_m68k_got_entry.type): Move field to ...
988 (struct elf_m68k_got_entry_key): ... here. Update all uses.
989 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
990 functions.
991 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
992 functions.
993 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
994 fields into n_entries array. Update comments.
995 (elf_m68k_init_got): Simplify, update all uses.
996 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
997 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
998 GOT entries; update name, update all uses.
999 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
1000 (elf_m68k_get_got_entry): Update.
1001 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
1002 simplify.
1003 (elf_m68k_remove_got_entry_type): Simplify.
1004 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
1005 (elf_m68k_can_merge_gots): Update.
1006 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
1007 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
1008 GOT entries, simplify.
1009 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
1010 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
1011 field, remove obsoleted local_n_entries field.
1012 (elf_m68k_partition_multi_got_2): New static function.
1013 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
1014 update.
1015 (elf_m68k_remove_got_entry_type): Update.
1016 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1017 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
1018 update of sgot->size and srelgot->size.
1019 (elf_m68k_gc_sweep_hook): Update.
1020 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1021 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
1022 TLS relocations.
1023 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
1024 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
1025
1026 2009-02-02 DJ Delorie <dj@redhat.com>
1027
1028 * elf32-mep.c (config_names): Regenerate configuration.
1029
1030 2009-02-02 Alan Modra <amodra@bigpond.net.au>
1031
1032 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
1033 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
1034 * elf.c (bfd_elf_get_str_section): Make static.
1035 (bfd_elf_find_section): Delete.
1036 * libbfd.h: Regenerate.
1037
1038 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
1041 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
1042
1043 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1044
1045 * elflink.c (on_needed_list): New function.
1046 (elf_link_add_object_symbols): Link in --as-needed libs if they
1047 satisfy undefined symbols in other libs.
1048
1049 2009-01-30 Julian Brown <julian@codesourcery.com>
1050
1051 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
1052 EXEC_P or DYNAMIC flags, and skip sections which are being linked
1053 with --just-symbols (-R).
1054
1055 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
1056
1057 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
1058 high_pc in order to properly sign-extend VMAs.
1059
1060 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1061 Mark Shinwell <shinwell@codesourcery.com>
1062 Catherine Moore <clm@codesourcery.com>
1063
1064 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
1065
1066 2009-01-28 Catherine Moore <clm@codesourcery.com>
1067
1068 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
1069 SEC_LOAD for dynamic relocation sections.
1070
1071 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1072
1073 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
1074 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
1075 the size of local TLS data.
1076
1077 2009-01-27 Andreas Schwab <schwab@suse.de>
1078
1079 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
1080 architectures in the archive.
1081
1082 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1083
1084 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
1085 <R_CRIS_32_DTPREL>: Correct relocation value.
1086
1087 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
1088 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
1089 symbols with non-default visibility.
1090
1091 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1092
1093 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
1094 describing the trampolines.
1095 (ppc_elf_relocate_section): Update relocs to describe the
1096 trampolines.
1097
1098 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1099
1100 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
1101 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
1102 and R_PARISC_PCREL12F relocations.
1103
1104 2009-01-24 Alan Modra <amodra@bigpond.net.au>
1105
1106 PR 6022
1107 * elflink.c (find_version_for_sym): New function split out from,
1108 but without export_dynamic test, ..
1109 (_bfd_elf_link_assign_sym_version): ..here.
1110 (_bfd_elf_export_symbol): Use it.
1111
1112 2009-01-23 Alan Modra <amodra@bigpond.net.au>
1113
1114 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
1115 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
1116 * elflink.c: ..here, somewhat modified.
1117 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
1118 _bfd_elf_link_find_version_dependencies,
1119 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
1120 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
1121 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
1122 declare..
1123 * elflink.c: ..and make static here.
1124 (_bfd_elf_link_find_version_dependencies): Adjust for removal
1125 of output_bfd from struct elf_find_verdep_info.
1126 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
1127 struct elf_info_failed.
1128 (bfd_elf_size_dynamic_sections): Adjust.
1129
1130 2009-01-22 Alan Modra <amodra@bigpond.net.au>
1131
1132 PR 6832
1133 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
1134 after comp_unit_find_line call.
1135
1136 2009-01-21 Nick Clifton <nickc@redhat.com>
1137
1138 PR 9769
1139 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
1140 tm_gmtoff field in struct tm.
1141
1142 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1143
1144 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
1145 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
1146 sections in soft-icache lines unless non_ia_text. Don't add
1147 rodata if doing so would exceed line size.
1148
1149 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
1150
1151 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
1152 types than bfd_link_hash_indirect, before early return, call
1153 _bfd_elf_link_hash_copy_indirect.
1154
1155 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1156
1157 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
1158 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
1159 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
1160 (elf_backend_obj_attrs_order): New define.
1161 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
1162 (elfNN_bed): Add elf_backend_obj_attrs_order.
1163
1164 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1165
1166 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
1167 (obj_attr_size): Likewise.
1168 (write_obj_attribute): Likewise.
1169 (_bfd_elf_copy_obj_attributes): Likewise.
1170 (_bfd_elf_parse_attributes): Likewise.
1171 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
1172 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
1173 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
1174 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
1175 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
1176 with macros.
1177
1178 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1179
1180 * elf-attrs.c (is_default_attr): Support defaultless attributes.
1181 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
1182 (bfd_elf_add_obj_attr_string): Likewise.
1183 (bfd_elf_add_obj_attr_int_string): Likewise.
1184 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
1185 * elf-bfd.h (struct obj_attribute): Document new flag bit.
1186 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
1187 Tag_nodefaults has no default value.
1188 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
1189 comment to reflect the new state.
1190
1191 2009-01-19 Alan Modra <amodra@bigpond.net.au>
1192
1193 PR 9695
1194 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
1195 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
1196 (adjust_z_magix): Delete dead code handling QMAGIC.
1197
1198 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
1199
1200 * coffcode.h (styp_to_sec_flags): Correct interpretation of
1201 IMAGE_SCN_MEM_DISCARDABLE.
1202
1203 2009-01-16 Alan Modra <amodra@bigpond.net.au>
1204
1205 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
1206 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
1207 * configure.in (commonbfdlib): Delete.
1208 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
1209 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
1210 is available, not just for linux.
1211 * po/SRC-POTFILES.in: Regenerate.
1212 * Makefile.in: Regenerate.
1213 * configure: Regenerate.
1214
1215 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1216 Julian Brown <julian@codesourcery.com>
1217
1218 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
1219 ARM attributes in ABI 2.07.
1220 * elf32-arm.c (get_secondary_compatible_arch): New function.
1221 (set_secondary_compatible_arch): New function.
1222 (tag_cpu_arch_combine): New function.
1223 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
1224 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
1225 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
1226 make it fit with order_01243.
1227 Add support for Tag_also_compatible_with,
1228 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
1229 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
1230 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
1231 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
1232 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
1233 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
1234 Rework the way unknown attributes are handled.
1235 Defer errors until all attributes have been processed.
1236
1237 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1238
1239 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
1240 bfd_elf_add_obj_attr_int_string.
1241 Read Tag_compatibility from its new location in the attribute array,
1242 rather than the attribute list.
1243 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
1244 bfd_elf_add_obj_attr_int_string.
1245 (_bfd_elf_parse_attributes): Likewise.
1246 (_bfd_elf_merge_object_attributes): There's now only one
1247 Tag_compatibility, and it's in the array, not the list.
1248 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
1249 Tag_compatibility.
1250 (bfd_elf_add_obj_attr_compat): Rename to
1251 bfd_elf_add_obj_attr_int_string.
1252 (bfd_elf_add_proc_attr_compat): Rename to
1253 bfd_elf_add_proc_attr_int_string.
1254 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
1255 Tag_compatibility.
1256
1257 2009-01-15 Douglas B Rupp <rupp@gnat.com>
1258
1259 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
1260 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
1261 (vmsutil.lo): Add dependency rule.
1262 * Makefile.in: Regenerate.
1263 * config.bfd (ia64*-*-*vms*): Add case.
1264 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
1265 * configure: Regenerate.
1266 * vmsutil.c: New file.
1267 * vmsutil.h: New file.
1268 * elf-bfd.h (struct bfd_elf_special_section): Change type of
1269 attr to bfd_vma.
1270 * elfxx-ia64.c (elfNN_vms_post_process_headers,
1271 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
1272 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
1273 elfNN_vms_object_p): New functions
1274 * targets.c (bfd_elf64_ia64_vms_vec): New target.
1275
1276 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
1277
1278 PR ld/9727
1279 * elflink.c (elf_gc_sweep): Exclude the group section if the
1280 first member of the section group is excluded.
1281
1282 2009-01-14 Alan Modra <amodra@bigpond.net.au>
1283
1284 PR 9735
1285 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
1286 saved filename, use bfd_alloc rather than bfd_malloc for it.
1287
1288 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1289
1290 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
1291
1292 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1293
1294 * elf32-spu.c (remove_cycles): Always set call->max_depth.
1295
1296 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1297
1298 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
1299
1300 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1301
1302 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
1303 num_lines_log2.
1304 (struct got_entry): Add br_addr.
1305 (struct call_info): Add priority.
1306 (struct function_info): Add lr_store and sp_adjust.
1307 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
1308 (spu_elf_find_overlays): For soft-icache, mark any section within cache
1309 area as an overlay, and check that no other overlays exist. Look up
1310 icache overlay manager entry sym.
1311 (BRA_STUBS, BRA, BRASL): Define.
1312 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
1313 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
1314 in branch insn.
1315 (count_stub, build_stub): Support soft-icache.
1316 (build_spuear_stubs, process_stubs): Adjust build_stub call.
1317 (spu_elf_size_stubs): Size soft-icache stubs.
1318 (overlay_index): New function.
1319 (spu_elf_build_stubs): Make static. Support soft-icache.
1320 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
1321 (find_function_stack_adjust): Save lr store and stack adjust insn
1322 offsets.
1323 (maybe_insert_function): Adjust find_function_stack_adjust call.
1324 (mark_functions_via_relocs): Retrieve priority.
1325 (remove_cycles): Only warn about pruned arcs when stack_analysis.
1326 (sort_calls): Sort by priority first.
1327 (mark_overlay_section): Ignore .ovl.init.
1328 (sum_stack): Only print when stack_analysis.
1329 (print_one_overlay_section): New function, extracted from..
1330 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
1331 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
1332 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
1333 analysis. Call spu_elf_build_stubs.
1334 (spu_elf_relocate_section): For soft-icache encode overlay index
1335 into addresses.
1336 (spu_elf_output_symbol_hook): Support soft-icache.
1337 (spu_elf_modify_program_headers: Likewise.
1338
1339 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
1340 num_regions to num_lines. Add line_size and max_branch.
1341 (enum _ovly_flavour): Add ovly_soft_icache.
1342 (spu_elf_build_stubs): Delete.
1343
1344 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1345
1346 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
1347 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
1348
1349 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1350
1351 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1352 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
1353 the program, the known offset starts at the negative size of the
1354 TLS section.
1355 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
1356 Similar.
1357
1358 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1359
1360 * config.bfd: Add lm32-*-rtems*.
1361
1362 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
1363
1364 * coff-ppc.c: Add 2009 to Copyright.
1365 * elf32-cris.c: Likewise.
1366 * elflink.c: Likewise.
1367
1368 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
1369
1370 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
1371 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
1372
1373 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 PR ld/9679
1376 * elflink.c (elf_merge_st_other): New.
1377 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
1378 hide them if needed.
1379 (elf_link_add_object_symbols): Updated.
1380
1381 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1382
1383 PR ld/9676
1384 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
1385 ref_dynamic and dynamic_def fields when setting def_regular
1386 to 1.
1387
1388 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
1389
1390 PR 9682
1391 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
1392 literal.
1393
1394 For older changes see ChangeLog-2008
1395 \f
1396 Local Variables:
1397 mode: change-log
1398 left-margin: 8
1399 fill-column: 74
1400 version-control: never
1401 End:
This page took 0.058982 seconds and 4 git commands to generate.