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