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