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