]> Git Repo - binutils.git/blame - bfd/ChangeLog
* ld-cris/libdso-3.d, ld-cris/dso-3.s, ld-cris/noglob1.s,
[binutils.git] / bfd / ChangeLog
CommitLineData
aecc8f8a
AM
12002-07-08 Alan Modra <[email protected]>
2
3 * elf.c: Formatting.
4 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
5 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
6 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
7 segments.
8
e9168c1e
MM
92002-07-07 Mark Mitchell <[email protected]>
10 Alan Modra <[email protected]>
11
12 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
13 account the impact of relocation count overflow when computing
14 section offsets.
15 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
16 or not to apply the PE COFF reloc overflow handling. Fix a
17 fencepost error in deciding whether or not to use that technique.
18
6cdc0ccc
AM
192002-07-07 Alan Modra <[email protected]>
20
21 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
22 change type of locsyms.
23 (bfd_elf_get_elf_syms): Declare.
24 * elf.c (bfd_elf_get_elf_syms): New function.
25 (group_signature): Use bfd_elf_get_elf_syms.
26 (bfd_section_from_r_symndx): Likewise.
27 * elfcode.h (elf_slurp_symbol_table): Likewise.
28 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
29 (elf_link_add_object_symbols): Likewise. Reorganise to increase
30 locality of various data structures. Properly free internal relocs.
31 (elf_bfd_final_link): Properly free internal relocs.
32 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
33 (elf_link_input_bfd): Likewise.
34 (elf_gc_mark): Likewise. Properly free internal relocs.
35 (elf_gc_sweep): Properly free internal relocs.
36 (elf_reloc_symbol_deleted_p): No need to swap syms in.
37 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
38 internal relocs.
39 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
40 Properly free possibly cached info.
41 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
42 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
43 symbol swapping code.
44 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
45 Properly free possibly cached info.
46 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
47 (mn10300_elf_relax_delete_bytes): Likewise.
48 (mn10300_elf_symbol_address_p): Likewise.
49 (mn10300_elf_get_relocated_section_contents): Likewise.
50 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
51 (elf32_h8_relax_delete_bytes): Likewise.
52 (elf32_h8_symbol_address_p): Likewise.
53 (elf32_h8_get_relocated_section_contents): Likewise.
54 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
55 (m32r_elf_relax_delete_bytes): Likewise.
56 (m32r_elf_get_relocated_section_contents): Likewise.
57 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
58 elf_section_data to determine whether cached.
59 (sh_elf_relax_section): As above for elf-m10200.c.
60 (sh_elf_relax_delete_bytes): Likewise.
61 (sh_elf_get_relocated_section_contents): Likewise.
62 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
63 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
64 reading of local syms.
65 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
66 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
67 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
68 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
69 relocs.
70 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
71 free internal relocs and section contents. Don't read symbols.
72 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
73 (elf32_hppa_size_stubs): Don't free local syms.
74 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
75 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
76 possibly cached info.
77 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
78 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
79 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
80 all_local_syms.
81 (get_local_syms): Delete function.
82 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
83 on exit.
84 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
85
b3212001
JW
862002-07-05 Jim Wilson <[email protected]>
87
88 * syms.c (decode_section_type): New.
89 (bfd_decode_symclass): Call decode_section_type.
90
894bb1ee
JJ
912002-07-04 Jakub Jelinek <[email protected]>
92
93 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
94 section content start.
95 Reported by Michael Schumacher <[email protected]>.
96
bc0ba537
AM
972002-07-04 Alan Modra <[email protected]>
98
99 * section.c (_bfd_strip_section_from_output): Remove unnecessary
100 link order code. Don't actually remove the output section here;
101 Just set a flag for the linker to do so.
102 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
103 sections when setting up output section dynsyms.
104
797fc050
AM
1052002-07-04 Alan Modra <[email protected]>
106
107 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
108 fudge.
109 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
110 libs here instead.
111
99881371
MS
1122002-07-02 Martin Schwidefsky <[email protected]>
113
114 * elf64-s390.c (create_got_section): Set .got section alignment to
115 8 bytes.
116 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
117
47d9a591
AM
1182002-07-02 Alan Modra <[email protected]>
119
120 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
121
179d3252
JT
1222002-07-01 Matt Thomas <[email protected]>
123
124 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
125 to EF_VAX_*.
126
4a14403c
TS
1272002-07-01 Thiemo Seufer <[email protected]>
128
129 * elfxx-mips.c (ABI_64_P): Fix comment.
130 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
131 new section names for N64 ABI.
132 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
133 (mips_elf_calculate_relocation): Code formatting.
134 (mips_elf_create_dynamic_relocation): Likewise.
135 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
136 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
137 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
138 in any NewABI.
139 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
140 for NewABI.
141 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
142 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
143 here, too.
144
607c0e09
AS
1452002-07-01 Andreas Schwab <[email protected]>
146
147 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
148 R_X86_64_64 to R_X86_64_RELATIVE.
149
ba26fd96
AM
1502002-07-01 John David Anglin <[email protected]>
151
152 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
153 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
154 Run "make dep-am".
155 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
156 host_aout_vec.
157 * configure.in (vaxbsd_vec): Add.
158 * targets.c (vaxbsd_vec): Add.
159 * Makefile.in: Rebuild.
160 * configure: Rebuild.
161 * po/SRC-POTFILES.in: Rebuild.
162
1e2f5b6e
AM
1632002-07-01 Alan Modra <[email protected]>
164
165 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
166 examining to gc_mark_hook, rather than the bfd.
167 (elf_gc_sections): Adjust.
168 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
169 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
170 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
171 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
172 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
173 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
174 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
175 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
176 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
177 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
178 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
179 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
180 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
181 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
182 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
183 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
184 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
185 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
186 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
187 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
188 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
189 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
190 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
191 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
192 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
193 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
194 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
195 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
196 redundant local sym tests.
197 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
198 (link_hash_newfunc): Init is_entry.
199 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
200 (ppc64_elf_link_hash_table_create): Init all_local_syms.
201 (create_linkage_sections): Use bfd_make_section_anyway rather than
202 bfd_make_section.
203 (ppc64_elf_mark_entry_syms): New function.
204 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
205 up opd entry to function section map.
206 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
207 relocs that reference the opd section.
208 (edit_opd): New function.
209 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
210 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
211 (get_local_syms): Do so here. Exit if we already have local syms.
212 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
213 read local syms on non-ELF input.
214 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
215 than duplicating it's function here. Adjust free of internal
216 relocs to suit.
217 (ppc64_elf_relocate_section): Adjust local syms in opd section.
218 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
219 * elf32-hppa.c (elf32_hppa_size_stubs): Call
220 _bfd_elf32_link_read_relocs rather than duplicating it's function
221 here. Adjust free of internal relocs to suit.
222
1b71fb54
AJ
2232002-07-01 Andreas Jaeger <[email protected]>
224
225 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
226 are not allowed in shared libs code, enforce -fPIC.
227
8d28f606
HPN
2282002-06-29 Hans-Peter Nilsson <[email protected]>
229
230 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
231 trailing zero-sequences when there's previous left-over data.
232
5ac81c74
JL
2332002-06-27 John David Anglin <[email protected]>
234
235 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
236 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
237 and opd_rel_sec in order for starting rela section. Check _raw_size.
238 (elf_backend_reloc_type_class): Define.
239
91a4d569
AM
2402002-06-27 Kevin Buettner <[email protected]>
241
242 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
243 DWARF2 formats.
244
feee612b
AM
2452002-06-27 Alan Modra <[email protected]>
246
247 * cpu-powerpc.c: Comment on ordering of arch_info.
248 * elf32-ppc.c (ppc_elf_object_p): New function.
249 (elf_backend_object_p): Define.
250 * elf64-ppc.c (ppc64_elf_object_p): New function.
251 (elf_backend_object_p): Define.
252
a4e6cefc
JT
2532002-06-26 Jason Thorpe <[email protected]>
254
255 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
256 * configure: Regenerate.
257
dae2dd0d
NC
2582002-06-25 Jason Eckhardt <[email protected]>
259
260 * dwarf2.c (decode_line_info): Check unit->addr_size
261 to read in the proper number of prologue bytes.
262
680f9d5c
NC
2632002-06-25 Nick Clifton <[email protected]>
264
265 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
266 aix5coff64_vec if 64-bit bfd support has been enabled.
91a4d569
AM
267 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
268 been enabled.
dae2dd0d 269
680f9d5c
NC
270 * targets.c (_bfd_target_vector[]): Only include
271 aix5coff64_vec if 64-bit bfd support has been enabled.
272
d4c88bbb
AM
2732002-06-25 Alan Modra <[email protected]>
274
275 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
276 * elf32-hppa.c (hppa_add_stub): Likewise.
277 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
278 * elflink.h (elf_add_default_symbol): Fix comment typo.
279 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
280 (elf_link_add_object_symbols): Likewise.
281 (elf_link_assign_sym_version): Likewise.
282 * hash.c (bfd_hash_lookup): Likewise.
283 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
284 * section.c (bfd_get_unique_section_name): Likewise.
285 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
286 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
287 (assign_section_numbers): Likewise.
288 (_bfd_elfcore_make_pseudosection): Likewise.
289 (elfcore_grok_lwpstatus): Likewise.
290 (elfcore_grok_win32pstatus): Likewise.
291 (elfcore_write_note): Constify input params. Use PTR instead of
292 void *. Include terminating NUL in namesz. Correct padding.
293 Support NULL "name" param. Use memcpy instead of strcpy.
294 (elfcore_write_prpsinfo): Constify input params.
295 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
296 (elfcore_write_lwpstatus): Likewise.
297 (elfcore_write_pstatus): Likewise.
298 (elfcore_write_prfpreg): Likewise.
299 (elfcore_write_prxfpreg): Likewise.
300 * elf-bfd.h (elfcore_write_note): Update declaration.
301 (elfcore_write_prpsinfo): Likewise.
302 (elfcore_write_prstatus): Likewise.
303 (elfcore_write_pstatus): Likewise.
304 (elfcore_write_prfpreg): Likewise.
305 (elfcore_write_prxfpreg): Likewise.
306 (elfcore_write_lwpstatus): Likewise.
307
b0ac09d2
NC
3082002-06-25 Jason Eckhardt <[email protected]>
309
310 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
311 symbols of type stProc and stStaticProc.
312
3132002-06-25 Nick Clifton <[email protected]>
314
315 * ecoff.c: VArious formatting fixes.
316
021d6096
AM
3172002-06-25 Alan Modra <[email protected]>
318
319 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
320
82e51918
AM
3212002-06-25 Alan Modra <[email protected]>
322
323 * aout-adobe.c: Don't compare against "true" or "false.
324 * aout-target.h: Likewise.
325 * aoutx.h: Likewise.
326 * archive.c: Likewise.
327 * bout.c: Likewise.
328 * cache.c: Likewise.
329 * coff-a29k.c: Likewise.
330 * coff-alpha.c: Likewise.
331 * coff-i386.c: Likewise.
332 * coff-mips.c: Likewise.
333 * coff-or32.c: Likewise.
334 * coff64-rs6000.c: Likewise.
335 * coffcode.h: Likewise.
336 * coffgen.c: Likewise.
337 * cpu-ns32k.c: Likewise.
338 * ecoff.c: Likewise.
339 * ecofflink.c: Likewise.
340 * elf.c: Likewise.
341 * elf32-arm.h: Likewise.
342 * elf32-cris.c: Likewise.
343 * elf32-d30v.c: Likewise.
344 * elf32-i386.c: Likewise.
345 * elf32-mcore.c: Likewise.
346 * elf32-ppc.c: Likewise.
347 * elf32-sh.c: Likewise.
348 * elf32-sh64.c: Likewise.
349 * elf32-v850.c: Likewise.
350 * elf64-alpha.c: Likewise.
351 * elf64-sh64.c: Likewise.
352 * elfcode.h: Likewise.
353 * elfcore.h: Likewise.
354 * elflink.h: Likewise.
355 * elfxx-mips.c: Likewise.
356 * i386os9k.c: Likewise.
357 * ieee.c: Likewise.
358 * libbfd.c: Likewise.
359 * linker.c: Likewise.
360 * mmo.c: Likewise.
361 * nlm32-alpha.c: Likewise.
362 * nlm32-i386.c: Likewise.
363 * nlm32-ppc.c: Likewise.
364 * nlm32-sparc.c: Likewise.
365 * nlmcode.h: Likewise.
366 * oasys.c: Likewise.
367 * pdp11.c: Likewise.
368 * peicode.h: Likewise.
369 * reloc.c: Likewise.
370 * som.c: Likewise.
371 * srec.c: Likewise.
372 * tekhex.c: Likewise.
373 * vms.c: Likewise.
374 * xcofflink.c: Likewise.
375 * elf64-sparc.c: Edit comment to not use "== false".
376
377 * aoutf1.h: Don't use "? true : false".
378 * ecoff.c: Likewise.
379 * format.c: Likewise.
380 * ieee.c: Likewise.
381 * linker.c: Likewise.
382 * mmo.c: Likewise.
383 * oasys.c: Likewise.
384
48fc70a2
AM
3852002-06-23 H.J. Lu <[email protected]>
386
387 * elflink.h (elf_link_add_archive_symbols): For the default
388 version, check references with only one `@' first.
389
47b7c2db
AM
3902002-06-23 John David Anglin <[email protected]>
391
392 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
393 function.
394 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
395 symbol table.
396 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
397 (elf64_hppa_size_dynamic_sections): Revise to use
398 elf64_hppa_mark_milli_and_exported_functions.
399 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
400 symbols out of dynamic symbol table.
401
f5d44ba0
AM
4022002-06-23 Alan Modra <[email protected]>
403
bb3fff1e
AM
404 * Makefile.in: Regenerate.
405 * libbfd.h: Regenerate.
406 * bfd-in2.h: Regenerate.
407 * configure: Regenerate.
408 * po/SRC-POTFILES.in: Regenerate.
409
f5d44ba0
AM
410 * elflink.h: Comment typo fixes.
411
4122002-06-23 H.J. Lu <[email protected]>
413
414 * elf-bfd.h (elf_link_loaded_list): New structure.
415 (elf_link_hash_table): Add "loaded".
416 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
417 * elflink.h (elf_link_check_versioned_symbol): New function.
418 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
419
cc36acdf
NC
4202002-06-19 Nick Clifton <[email protected]>
421
422 * elflink.h (size_dynamic_sections): If the target does not
f5d44ba0 423 support an ELF style hash table, return true, indicating that
cc36acdf
NC
424 nothing needed to be done, rather than false, indicating that the
425 section's size could not be computed.
426
4e5ba5b7
DB
4272002-06-18 Dave Brolley <[email protected]>
428
429 From Catherine Moore, Michael Meissner, Dave Brolley:
430 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
431 * targets.c: Support bfd_elf32_frv_vec.
432 * reloc.c: Add FRV relocs.
433 * configure.in: Add support for bfd-elf32-frv-vec.
434 * config.bfd (targ_cpu): Add support for frv-*-elf.
435 * archures.c: Add frv arch and machines.
436 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
437 (ALL_MACHINES_CFILES): Add cpu-frv.c.
438 (BFD32_BACKENDS): Add elf32-frv.lo.
439 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
440 (cpu-frv.lo): New target.
441 (elf32-frv.lo): New target.
442 * cpu-frv.c: New file.
443 * elf32-frv.c: New file.
444
7ece0d85
JJ
4452002-06-18 Jakub Jelinek <[email protected]>
446
447 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
448 e_shnum == 0.
449 Only read the first section header if e_shoff is non-zero.
450 Don't consider e_shstrndx if there are no sections.
451
57fb03ac
TR
4522002-06-17 Tom Rix <[email protected]>
453
454 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
f5d44ba0 455 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
57fb03ac
TR
456 complain_overflow_bitfield.
457
341ca622
AM
4582002-06-17 Alan Modra <[email protected]>
459
767e34d1
AM
460 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
461 (bfd_fdopenr): Likewise.
462 (bfd_openstreamr): Likewise.
463 (bfd_openw): Likewise.
464
341ca622
AM
465 * targets.c: Sort target vecs.
466 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
467 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
468 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
469 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
470 * configure.in: Sort target vecs. Add m88kmach3_vec.
471 * configure: Regenerate.
472
dfbbae4c
HPN
4732002-06-16 Hans-Peter Nilsson <[email protected]>
474
475 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
476 bpo_reloc_no to break sort order ties, not address of items.
477
d663e1cd
JL
4782002-06-16 John David Anglin <[email protected]>
479
480 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
481 Skip excluded sections in determing __gp value.
482 (elf_hppa_final_link_relocate): Use the symbol's address in
483 R_PARISC_FPTR64 relocations that don't need an opd entry.
484 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
485 (elf64_hppa_finalize_dynreloc): Likewise.
486 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
487 (elf64_hppa_finish_dynamic_symbol): Break up assert.
488
a8295218
NC
4892002-06-14 Sergey Grigoriev <[email protected]>
490
491 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
492 alignment for .bss, .data and .text sections so that sse and sse2
493 code will work.
494 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
495
4962002-06013 J"orn Rennecke <[email protected]>
5d9b5481
JR
497
498 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
499 sh[1234]*-elf*.
500
3db4b612
JL
5012002-06-12 John David Anglin <[email protected]>
502
2cb69dd3
JL
503 * elflink.h (elf_bfd_final_link): Improve error handling for missing
504 dynamic sections.
505
3db4b612
JL
506 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
507 for a symbol that has no output section.
508 (allocate_dynrel_entries): Correct comment.
509 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
510 unless we want one.
511 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
512 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
513 with no section. Remove unnecessary parentheses.
514
f3813499
TR
5152002-06-11 Tom Rix <[email protected]>
516
517 * coffcode.h (coff_compute_section_file_positions): Add data
518 section to AIX loader alignment check.
519
f5d44ba0 520 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
f3813499
TR
521 alignment to 4 bytes.
522 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
523 power accessor macro.
524 (do_shared_object_padding): Remove invalid assertion.
525
0ebaf185
RS
5262002-06-10 Richard Sandiford <[email protected]>
527
528 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
529 for removed output sections.
530
ebe3e2d1
NC
5312002-06-10 Geoffrey Keating <[email protected]>
532
533 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
534 htab_alloc.
535 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
536
0b14c2aa
L
5372002-06-08 H.J. Lu <[email protected]>
538
539 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
540 work around a long long bug in gcc 2.96 on mips.
541
3c2bfad6
JT
5422002-06-08 Jason Thorpe <[email protected]>
543
544 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
545 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
546 Regenerate dependency lists.
547 * Makefile.in: Regenerate.
548 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
549 vax1knetbsd_vec to targ_selvecs.
550 * configure.in: Add vax1knetbsd_vec.
551 * configure: Regenerate.
552 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
553 * vax1knetbsd.c: New file.
554 * vaxnetbsd.c: Update copyright years.
555 (TARGET_PAGE_SIZE): Set to 0x1000.
556 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
557
91149be3
JT
5582002-06-08 Matt Thomas <[email protected]>
559
560 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
561
21e15248
AM
5622002-06-08 Alan Modra <[email protected]>
563
564 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
565
986b7daa
AM
5662002-06-08 Alan Modra <[email protected]>
567
e90b95f6
AM
568 * Makefile.am: Run "make dep-am".
569 * Makefile.in: Regenerate.
570
3f9c735e
AM
571 * armnetbsd.c: Replace CONST with const.
572 * corefile.c: Likewise.
573 * elf32-dlx.c: Likewise.
574 * elf64-mips.c: Likewise.
575 * mmo.c: Likewise.
576 * ns32knetbsd.c: Likewise.
577
986b7daa
AM
578 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
579 table is elf64-sparc.
580
5a659663
TS
5812002-06-08 Thiemo Seufer <[email protected]>
582
583 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
584 Fix RELA addends to get not shifted in the result. Don't do special
585 handling of R_MIPS_64 for NewABI.
586
9bab7074
AM
5872002-06-07 Alan Modra <[email protected]>
588
589 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
590 (NAME(aout,slurp_reloc_table)): Likewise.
591 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
592 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
593 (xcoff_write_archive_contents_big): Likewise.
594 (xcoff_generate_rtinit): Likewise.
595 (xcoff_generate_rtinit): Likewise, and check error return.
596 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
597 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
598 (coff_get_normalized_symtab): Likewise.
599 (coff_make_empty_symbol): Likewise.
600 (bfd_coff_set_symbol_class): Likewise.
601 * cofflink.c (coff_link_add_symbols): Likewise.
602 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
603 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
604 (bfd_ecoff_write_accumulated_debug): Likewise.
605 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
606 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
607 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
608 * ieee.c (do_with_relocs): Use bfd_zalloc.
609 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
610 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
611 (NAME(aout,slurp_reloc_table)): Likewise.
612 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
613 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
614 * som.c (som_build_and_write_symbol_table): Likewise.
615 (som_slurp_string_table): Likewise.
616 (som_slurp_symbol_table): Likewise.
617 (som_bfd_ar_write_symbol_stuff): Likewise.
618 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
619 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
620 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
621 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
622 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
623
1126897b
AM
6242002-06-07 Alan Modra <[email protected]>
625
626 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
627 "group" union.
628 (elf_group_name): Update.
629 (elf_group_id): Define.
630 (bfd_elf_set_group_contents): Declare.
631 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
632 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
633 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
634 that sym for the signature.
635 (_bfd_elf_compute_section_file_positions): Don't call
636 set_group_contents for "ld -r" case.
637 (swap_out_syms): Use bfd_zalloc.
638 * elflink.h (elf_link_add_archive_symbols): Likewise.
639 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
640 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
641
3fad3c7c
AM
6422002-06-07 Alan Modra <[email protected]>
643
644 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
645 relocs in opd for non-shared too.
646
76f99c63
JL
6472002-06-06 Jeffrey Law <[email protected]
648
649 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
650 relocations.
651
7217313c
NC
6522002-06-06 Nick Clifton <[email protected]>
653
654 * merge.c: Include libiberty.h.
655 * elf-strtab.c: Include libiberty.h.
656
6cb22815
AM
6572002-06-06 Elias Athanasopoulos <[email protected]>
658
659 * peXXigen.c (pe_print_idata): Remove unused variable.
660
1ed89aa9
NC
6612002-06-06 David Heine <[email protected]>
662
663 * elf.c (assign_file_positions_for_segments): Remove unallocated
664 sections from the section to segment mapping for PT_LOAD segments.
665 Update comment about empty loadable segments.
666
644c4c80
RS
6672002-06-06 Richard Sandiford <[email protected]>
668
669 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
670 is within the .stabstr section.
671
f8ecb12b
AM
6722002-06-06 Alan Modra <[email protected]>
673
674 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
675 are "const PTR", not "const PTR *".
676 (bfd_elf32_swap_symbol_in): Likewise.
677 (bfd_elf64_swap_symbol_in): Likewise.
678 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
679 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
680 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
681 (elf_link_add_object_symbols): Likewise.
682 (elf_link_record_local_dynamic_symbol): Likewise.
683 (elf_link_input_bfd): Likewise.
684 (elf_gc_mark): Likewise.
685 (elf_reloc_symbol_deleted_p): Likewise.
686 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
687 (mn10200_elf_relax_delete_bytes): Likewise.
688 (mn10200_elf_symbol_address_p): Likewise.
689 (mn10200_elf_get_relocated_section_contents): Likewise.
690 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
691 (mn10300_elf_relax_section): Likewise.
692 (mn10300_elf_relax_delete_bytes): Likewise.
693 (mn10300_elf_symbol_address_p): Likewise.
694 (mn10300_elf_get_relocated_section_contents): Likewise.
695 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
696 (elf32_h8_relax_delete_bytes): Likewise.
697 (elf32_h8_symbol_address_p): Likewise.
698 (elf32_h8_get_relocated_section_contents): Likewise.
699 * elf32-hppa.c (get_local_syms): Likewise.
700 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
701 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
702 * elf32-sh.c (sh_elf_relax_section): Likewise.
703 (sh_elf_relax_delete_bytes): Likewise.
704 (sh_elf_get_relocated_section_contents): Likewise.
705 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
706 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
707 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
708 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
709 * elf64-ppc.c (get_local_syms): Likewise.
710 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
711 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
712
1ed89aa9 7132002-06-05 J"orn Rennecke <[email protected]>
7a33bc10
JR
714
715 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
716
73ff0d56
AM
7172002-06-05 Alan Modra <[email protected]>
718
9dce4196
AM
719 * elf.c (group_signature): Swap in the whole symbol, and handle
720 extracting section symbol names.
721 (setup_group): Add comment.
722 (set_group_contents): When called from objcopy or ld, arrange for
723 section contents to be written. Write group member output section
724 indices to allow objcopy to reorganize sections.
725 (_bfd_elf_copy_private_section_data): Copy group info.
726
73ff0d56
AM
727 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
728 (bfd_elf32_swap_symbol_in): Update prototype.
729 (bfd_elf64_swap_symbol_in): Likewise.
730 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
731 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
732 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
733 (elf_link_add_object_symbols): Likewise.
734 (elf_link_record_local_dynamic_symbol): Likewise.
735 (elf_link_input_bfd): Likewise.
736 (elf_gc_mark): Likewise.
737 (elf_reloc_symbol_deleted_p): Likewise.
738 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
739 (mn10200_elf_relax_delete_bytes): Likewise.
740 (mn10200_elf_symbol_address_p): Likewise.
741 (mn10200_elf_get_relocated_section_contents): Likewise.
742 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
743 (mn10300_elf_relax_section): Likewise.
744 (mn10300_elf_relax_delete_bytes): Likewise.
745 (mn10300_elf_symbol_address_p): Likewise.
746 (mn10300_elf_get_relocated_section_contents): Likewise.
747 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
748 (elf32_h8_relax_delete_bytes): Likewise.
749 (elf32_h8_symbol_address_p): Likewise.
750 (elf32_h8_get_relocated_section_contents): Likewise.
751 * elf32-hppa.c (get_local_syms): Likewise.
752 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
753 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
754 * elf32-sh.c (sh_elf_relax_section): Likewise.
755 (sh_elf_relax_delete_bytes): Likewise.
756 (sh_elf_get_relocated_section_contents): Likewise.
757 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
758 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
759 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
760 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
761 * elf64-ppc.c (get_local_syms): Likewise.
762 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
763 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
764 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
765 * elf64-alpha.c (alpha_elf_size_info): Likewise.
766 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
767 * elf64-mips.c (mips_elf64_size_info): Likewise.
768 * elf64-s390.c (s390_elf64_size_info): Likewise.
769 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
770
53bfd6b4
MR
7712002-06-05 Maciej W. Rozycki <[email protected]>
772
773 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
774 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
775 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
776 _bfd_mips_elf_ignore_discarded_relocs.
777 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
778
d4df96e6
L
7792002-06-05 H.J. Lu <[email protected]>
780
781 * elfxx-mips.c (mips_elf_calculate_relocation): Call
782 _bfd_elf_rel_local_sym for STT_SECTION relocations against
783 the SEC_MERGE section.
784
e61463e1
AM
7852002-06-05 Alan Modra <[email protected]>
786
3cac74d0
AM
787 * coff-alpha.c: Update copyright date.
788 * coff-mips.c: Likewise.
789 * xcoff-target.h: Likewise.
790
e61463e1
AM
791 * bfd-in.h: Remove "taken from the source" comment.
792 * libbfd-in.h: Likewise.
793 * libcoff-in.h: Likewise.
794 * bfd-in2.h: Regenerate.
795 * libbfd.h: Regenerate.
796 * libcoff.h: Regenerate.
797
798 * elf.c (bfd_elf_discard_group): Return true.
799 * elf-bfd.h (bfd_elf_discard_group): Declare.
800 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
801 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
802 * bfd.c (bfd_discard_group): Define.
803 * targets.c (struct bfd_target): Add _bfd_discard_group.
804 (BFD_JUMP_TABLE_LINK): Here too.
805 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
806 * aout-adobe.c (aout_32_bfd_discard_group): Define.
807 * aout-target.h (MY_bfd_discard_group): Define.
808 * aout-tic30.c (MY_bfd_discard_group): Define.
809 * binary.c (binary_bfd_discard_group): Define.
810 * bout.c (b_out_bfd_discard_group): Define.
811 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
812 * coffcode.h (coff_bfd_discard_group): Define.
813 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
814 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
815 * i386msdos.c (msdos_bfd_discard_group): Define.
816 * i386os9k.c (os9k_bfd_discard_group): Define.
817 * ieee.c (ieee_bfd_discard_group): Define.
818 * ihex.c (ihex_bfd_discard_group): Define.
819 * mmo.c (mmo_bfd_discard_group): Define.
820 * nlm-target.h (nlm_bfd_discard_group): Define.
821 * oasys.c (oasys_bfd_discard_group): Define.
822 * ppcboot.c (ppcboot_bfd_discard_group): Define.
823 * som.c (som_bfd_discard_group): Define.
824 * srec.c (srec_bfd_discard_group): Define.
825 * tekhex.c (tekhex_bfd_discard_group): Define.
826 * versados.c (versados_bfd_discard_group): Define.
827 * vms.c (vms_bfd_discard_group): Define.
828 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
829 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
830 (aix5coff64_vec): Likewise.
831 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
832
9cba27b2
JT
8332002-06-04 Jason Thorpe <[email protected]>
834
835 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
836 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
837 (elf32-sh64-com.lo): New dependency list.
838 * Makefile.in: Regenerate.
839 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
840 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
841 elf32-sh64-com.lo.
842 * configure: Regenerate.
843 * elf32-sh64.c (sh64_address_in_cranges)
844 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
845 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
846 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
847 * elf32-sh64-com.c: ...here. New file.
848
8d2c33be
AM
8492002-06-04 Alan Modra <[email protected]>
850
851 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
852 ATTRIBUTE_UNUSED on used params.
853 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
854 before calling bfd_section_from_elf_index on local syms.
855 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
856
5b0e55b6
JT
8572002-06-04 Jason Thorpe <[email protected]>
858
859 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
860 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
861 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
862 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
863 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
864 * Makefile.in: Regenerate.
865 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
866 (sh64-*-netbsd*): New targets.
867 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
868 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
869 * configure: Regenerate.
870 * elf32-sh64-nbsd.c: New file.
871 * elf64-sh64-nbsd.c: New file.
872 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
873 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
874 bfd_elf64_sh64lnbsd_vec.
875
b885599b
AM
8762002-06-04 Alan Modra <[email protected]>
877
878 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
879 (bfd_section_from_shdr): Likewise. Set section name of group
880 sections from signature.
881 (group_signature): Split out from setup_group. Ensure symbol table
882 is available.
883 (bfd_elf_discard_group): New function.
884 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
885 .gnu.linkonce* sections if they are members of a group.
886 (set_group_contents): Set GRP_COMDAT flag.
887 * section.c (bfd_discard_group): New function.
888 * bfd-in.h (bfd_elf_discard_group): Declare.
889 * bfd-in2.h: Regenerate.
890 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
891 (elf_linkonce_p): Define.
892
90937f86
AM
8932002-06-04 Alan Modra <[email protected]>
894
895 * elf.c (bfd_section_from_shdr): Make "name" const.
896 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
897 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
898 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
899 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
900 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
901 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
902 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
903 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
904 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
905 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
906 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
907
cf6fb9ce
MR
9082002-06-03 Maciej W. Rozycki <[email protected]>
909
910 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
911 ABI.
912
cedb70c5
KH
9132002-06-02 Kazu Hirata <[email protected]>
914
915 * elf32-arc.c: Fix formatting.
916 * elf32-arm.h: Likewise.
917 * elf32-cris.c: Likewise.
918 * elf32-dlx.c: Likewise.
919 * elf32-hppa.c: Likewise.
920 * elf32-i386.c: Likewise.
921 * elf32-i386qnx.c: Likewise.
922 * elf32-or32.c: Likewise.
923 * elf32-s390.c: Likewise.
924 * elf32-sh64.c: Likewise.
925 * elf32-vax.c: Likewise.
926 * elf32-xstormy16.c: Likewise.
927 * elf64-alpha.c: Likewise.
928 * elf64-mmix.c: Likewise.
929 * elf64-ppc.c: Likewise.
930 * elf64-s390.c: Likewise.
931 * elf64-sh64.c: Likewise.
932 * elf64-x86-64.c: Likewise.
933
048d873d
RH
9342002-06-02 Richard Henderson <[email protected]>
935
936 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
937 null when there are no got entries for a symbol.
938 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
939 uninitialized variable warning.
940
4a67a098
RH
9412002-06-01 Richard Henderson <[email protected]>
942
943 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
944 undefined symbols here.
945 (elf64_alpha_relax_section): Do it here. Also test for not
946 defined in the current module.
947 (elf64_alpha_relocate_section_r): Split out of ...
948 (elf64_alpha_relocate_section): ... here. Don't dereference
949 NULL when looking up local got entries.
950
f44f99a5
RH
9512002-06-01 Richard Henderson <[email protected]>
952
953 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
954 symbols from JSR relaxation.
955 (elf64_alpha_size_plt_section_1): New.
956 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
957 (elf64_alpha_size_rela_got_1): ... here.
958 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
959 (elf64_alpha_size_rela_got_section): ... here.
960 (elf64_alpha_size_plt_section): New.
961 (elf64_alpha_relax_section): Call them.
962 (elf64_alpha_size_got_sections): Remove output_bfd arg.
963 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
964
9e756d64
RH
9652002-06-01 Richard Henderson <[email protected]>
966
967 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
968 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
969 in shared libraries. Fix DTPRELHI and TPRELHI value.
970 (INSN_ADDQ, INSN_RDUNIQ): New.
971 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
972 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
973 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
974 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
975 Handle GOTDTPREL and GOTTPREL relocations.
976 (elf64_alpha_relax_gprelhilo): New.
977 (elf64_alpha_relax_tls_get_addr): New.
978 (elf64_alpha_relax_find_tls_segment): New.
979 (elf64_alpha_relax_section): Handle TLS relocations.
980 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
981 (elf64_alpha_check_relocs): Set it.
982
c853d7f6
RH
9832002-06-01 Richard Henderson <[email protected]>
984
b646261c
RH
985 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
986
c853d7f6
RH
987 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
988 check; don't suppress dynamic relocs for non-allocated sections.
989
d7e41a96
RH
990 * elf64-alpha.c: Remove dead code.
991
5f333394
AM
9922002-05-31 Alan Modra <[email protected]>
993
08e0ee05
AM
994 * bfd-in2.h: Regenerate.
995 * libbfd.h: Regenerate.
996 * po/SRC-POTFILES.in: Regenerate.
997
5f333394
AM
998 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
999 space for bss .plt.
1000
caf47ea6
AM
10012002-05-31 Graeme Peterson <[email protected]>
1002
1003 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
1004 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
1005 Run "make dep-am".
1006 * Makefile.in: Regenerate.
1007 * config.bfd: Add i[3456]86-*-nto-qnx* support.
1008 * configure.in: Add bfd_elf32_i386qnx_vec support.
1009 * configure: Regenerate.
1010 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
1011 is_contained_by_filepos, and copy_private_bfd_data_p.
1012 * elf.c (assign_file_positions_for_segments): Call backend
1013 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
1014 (IS_CONTAINED_BY_FILEPOS): Define.
1015 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
1016 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
1017 Fix non-K&R call to _bfd_error_handler.
1018 (_bfd_elf_copy_private_section_data): Use backend
1019 copy_private_bfd_data_p.
1020 * elf32-i386.c: Don't include elfxx-target.h when
1021 ELF32_I386_C_INCLUDED is defined.
1022 * elf32-i386qnx.c: New QNX elf backend file.
1023 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
1024 elf_backend_is_contained_by_filepos, and
1025 elf_backend_do_copy_private_bfd_data.
1026 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
1027
5bc56484
AM
10282002-05-31 Alan Modra <[email protected]>
1029
1030 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
1031 Move other similar defines to start of file.
1032
1b164155
TR
10332002-05-30 Tom Rix <[email protected]>
1034
1035 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
1036 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
1037
3765b1be
RH
10382002-05-30 Richard Henderson <[email protected]>
1039
1040 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
1041 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
1042 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
1043 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
1044 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
1045 (struct alpha_elf_obj_tdata): Rename total_got_entries and
1046 n_local_got_entries to total_got_size and local_got_size.
1047 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
1048 (alpha_got_entry_size): New.
1049 (elf64_alpha_relax_with_lituse): Use it.
1050 (elf64_alpha_relax_without_lituse): Likewise.
1051 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
1052 (get_got_entry): New.
1053 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
1054 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
1055 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
1056 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
1057 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
1058 (elf64_alpha_calc_got_offsets): Likewise.
1059 (alpha_dynamic_entries_for_reloc): New.
1060 (elf64_alpha_calc_dynrel_sizes): Use it.
1061 (elf64_alpha_size_dynamic_sections): Likewise.
1062 (elf64_alpha_relocate_section): Handle TLS relocations.
1063 * reloc.c: Add Alpha TLS relocations.
1064 * bfd-in2.h, libbfd.h: Rebuild.
1065
5e226794
NC
10662002-05-29 Ralf Habacker <[email protected]>
1067
1068 * peXXigen.c (pe_print_idata): Remove double printed
1069 import table lines; add Bound-To comment.
1070
90ace9e9
JT
10712002-05-29 Matt Thomas <[email protected]>
1072
1073 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
1074 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
1075 (elf32-vax.lo): New rule.
1076 * Makefile.in: Regenerate.
1077 * configure.in (bfd_elf32_vax_vec)
1078 (vaxnetbsd_vec): New vectors.
1079 * configure: Regenerate.
1080 * config.bfd (vax-*-netbsdelf*)
1081 (vax-*-netbsdaout*)
1082 (vax-*-netbsd*): New targets.
1083 * elf32-vax.c: New file.
1084 * reloc.c: Add VAX relocations.
1085 * bfd-in2.h: Regenerate.
1086 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
1087
4a253e81
JT
10882002-05-29 Jason Thorpe <[email protected]>
1089
1090 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
1091 and bfd_elf32_bigarm_vec to targ_selvecs.
1092
6e7c73dd
CF
10932002-05-29 Ralf Habacker <[email protected]>
1094
1095 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
1096 with auto-imported symbols.
1097
8afb0e02
NC
10982002-05-29 Adam Nemet <[email protected]>
1099
1100 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
1101 sections only record bfd.
9bab7074 1102 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
8afb0e02 1103 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
9bab7074 1104 * bfd-in2.h: Regenerate.
8afb0e02 1105
a95653f5
NC
11062002-05-28 Nick Clifton <[email protected]>
1107
1108 * syms.c (_bfd_stab_section_find_nearest_line): Move
1109 declaration and initialisation of saw_line and saw_func out of
1110 for loop.
1111
7cdc5bba
AM
11122002-05-29 Alan Modra <[email protected]>
1113
1114 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
1115 (bfd_elf64_get_symbol_info): Define.
1116 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
1117
4c7aad1c
AM
11182002-05-29 Andrey Volkov <[email protected]>
1119
1120 * cpu-h8300.c: Make default h8300 machine first in machine list.
1121
d172d4ba
NC
11222002-05-28 Kuang Hwa Lin <[email protected]>
1123
1124 * config.bfd: Added DLX configuraton.
1125 * Makefile.am: Added DLX configuraton.
1126 * configure.in: Added DLX configuraton.
1127 * archures.c: Add DLX architecure.
1128 * reloc.c: Add DLX relocs.
1129 * targets.c: Added DLX target vector.
1130 * configure: Regenerate.
1131 * Makefile.in: Regenreate.
1132 * bfd-in2.h: Regenreate.
1133 * elf32-dlx.c: New file: Support DLX target.
1134 * cpu-dlx.c: New file: Support DLX target.
1135
d1329ca3
AM
11362002-05-25 Alan Modra <[email protected]>
1137
428d0de3
AM
1138 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
1139
d1329ca3
AM
1140 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
1141 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
1142 strings to point inside function code sym string.
1143 (func_desc_adjust): Likewise.
1144 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
1145
3bab7989
ML
11462002-05-24 Michal Ludvig <[email protected]>
1147
1148 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
1149 (elf64_x86_64_grok_psinfo): Added.
1150
436e8db0
NC
11512002-05-24 TAMURA Kent <[email protected]>
1152
1153 * config.bfd: Add a target for i386-netbsdpe.
1154
ea1e4b0d
AM
11552002-05-24 Alan Modra <[email protected]>
1156
1157 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
1158 and is_func_descriptor.
1159 (func_desc_adjust): Hide function code sym in shared libs unless
1160 there is a matching exported function descriptor sym.
1161
13ae64f3
JJ
11622002-05-23 Jakub Jelinek <[email protected]>
1163
1164 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
1165 for symbols from SHF_TLS section.
1166 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
1167 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
1168 (map_sections_to_segments): Build PT_TLS segment if necessary.
1169 (assign_file_positions_for_segments): Likewise.
1170 (get_program_header_size): Account for PT_TLS segment.
1171 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
1172 SEC_THREAD_LOCAL sections to STT_TLS.
1173 * reloc.c: Add 386 and IA-64 TLS relocs.
1174 * section.c (SEC_THREAD_LOCAL): Define.
1175 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
1176 Remove.
1177 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
1178 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
1179 unconditionally.
1180 (struct elf_final_link_info): Add first_tls_sec.
1181 (elf_bfd_final_link): Set first_tls_sec.
1182 Compute elf_hash_table (info)->tls_segment.
1183 (elf_link_output_extsym): Handle STT_TLS symbols.
1184 (elf_link_input_bfd): Likewise.
1185 * syms.c (BSF_THREAD_LOCAL): Define.
1186 * bfd-in2.h: Rebuilt.
1187 * libbfd.h: Rebuilt.
1188 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
1189 elf_i386_mkobject, elf_i386_object_p): New functions.
1190 (elf_howto_table): Add TLS relocs.
1191 (elf_i386_reloc_type_lookup): Support TLS relocs.
1192 (elf_i386_info_to_howto_rel): Likewise.
1193 (struct elf_i386_link_hash_entry): Add tls_type.
1194 (struct elf_i386_obj_tdata): New.
1195 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
1196 New macros.
1197 (struct elf_i386_link_hash_table): Add tls_ldm_got.
1198 (link_hash_newfunc): Clear tls_type.
1199 (elf_i386_check_relocs): Support TLS relocs.
1200 (elf_i386_gc_sweep_hook): Likewise.
1201 (allocate_dynrelocs): Likewise.
1202 (elf_i386_size_dynamic_sections): Likewise.
1203 (elf_i386_relocate_section): Likewise.
1204 (elf_i386_finish_dynamic_symbol): Likewise.
1205 (bfd_elf32_mkobject, elf_backend_object_p): Define.
1206 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
1207 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
1208 want_tprel, want_dtpmod, want_dtprel.
1209 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
1210 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
1211 R_IA64_LTOFF_TPREL22.
1212 (elf_code_to_howto_index): Add TLS relocs.
1213 (elfNN_ia64_check_relocs): Support TLS relocs.
1214 (allocate_global_data_got): Account for TLS .got data.
1215 (allocate_dynrel_entries): Account for TLS dynamic relocations.
1216 (elfNN_ia64_install_value): Supprt TLS relocs.
1217 (set_got_entry): Support TLS relocs.
1218 (elfNN_ia64_relocate_section): Likewise.
1219
c62e1cc3
NC
12202002-05-23 Nick Clifton <[email protected]>
1221
1222 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
1223 BLX reloc round the relocation up rather than down.
1224 * coff-arm.c (coff_arm_relocate_section): Likewise.
1225
c5a43a5d
L
12262002-05-21 H.J. Lu ([email protected])
1227
1228 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
1229 definition.
1230
afbe61cf
AM
12312002-05-22 Alan Modra <[email protected]>
1232
1233 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
1234 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
1235
9c07fe7c
AM
12362002-05-22 Alan Modra <[email protected]>
1237
1238 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
1239 unresolved relocs.
1240 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
1241
21611032
TS
12422002-05-21 Thiemo Seufer <[email protected]>
1243
1244 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
1245 non-ELF targets.
1246
41241523
TS
12472002-05-21 Thiemo Seufer <[email protected]>
1248
1249 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
1250 an error value.
1251 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
1252 return with false on error.
1253 (elf_link_input_bfd): Check reloc_emitter return value.
1254
658f2588
JT
12552002-05-21 Jason Thorpe <[email protected]>
1256
1257 * config.bfd (armeb-*-netbsdelf*): New target.
1258
c862ae31
AM
12592002-05-20 Alan Modra <[email protected]>
1260
1261 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
1262 at the plt call stub.
1263
6dd14845
TS
12642002-05-19 Thiemo Seufer <[email protected]>
1265
1266 * cpu-mips.c (mips_compatible): Don't try to check machine
1267 compatibility.
1268
a58d9c34
TR
12692002-05-18 Tom Rix <[email protected]>
1270
1271 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
1272
ef60b7ff
AM
12732002-05-17 Alan Modra <[email protected]>
1274
1275 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
1276 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
1277 we've already warned about an undefined symbol. Report more
1278 detail on reloc errors.
1279
a703a6ea
AM
12802002-05-17 Alan Modra <[email protected]>
1281
1282 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
1283 * configure.in: Invoke AM_INSTALL_LIBBFD.
1284 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
1285 (install_libbfd): .. New target.
1286 (uninstall_libbfd): Likewise.
1287 (install-bfdlibLTLIBRARIES): Likewise.
1288 (uninstall-bfdlibLTLIBRARIES): Likewise.
1289 (bfdlibdir): New.
1290 (bfdincludedir): New.
1291 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
1292 * aclocal.m4: Regenerate.
1293 * configure: Regenerate.
1294 * Makefile.in: Regenerate.
1295
2c13d98b
NC
12962002-05-17 Stuart Balfour <[email protected]>
1297
1298 * hash.c (bfd_hash_lookup): Remove computation of len from inside
1299 hash loop.
1300
629936c5
NC
13012002-05-16 Nick Clifton <[email protected]>
1302
1303 * config.bfd: Add targets for sh64-linux (little endian and
1304 big endian).
1305
e4cf60a8
NC
13062002-05-15 Laurent Pinchart <[email protected]>
1307
1308 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
1309 is located in the same section as the import table. Instead
1310 check, and if necessary load the section containing the thunk.
1311
d1e66cd4
NC
13122002-05-15 Nick Clifton <[email protected]>
1313
1314 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
ea1e4b0d
AM
1315 bfd_bread.
1316 (xcoff64_core_file_matches_executable_p): Replace bfd_read
1317 with bfd_bread.
d1e66cd4 1318
2d653fc7
AM
13192002-05-15 Alan Modra <[email protected]>
1320
1321 * aix5ppc-core.c: Warning fixes.
1322 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1323 * aout-target.h (MY_bfd_link_just_syms): Define.
1324 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1325 * bfd.c (bfd_link_just_syms): Define.
1326 * binary.c (binary_bfd_link_just_syms): Define.
1327 * bout.c (b_out_bfd_link_just_syms): Define.
1328 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1329 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1330 * coffcode.h (coff_bfd_link_just_syms): Define.
1331 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1332 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1333 (_bfd_elf_link_just_syms): Declare.
1334 * elf.c (_bfd_elf_link_just_syms): New function.
1335 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1336 sections haven't already been discarded by the linker.
1337 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1338 sections and SEC_MERGE sections.
1339 (elf_bfd_discard_info): Similarly here.
1340 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1341 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1342 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1343 * ieee.c (ieee_bfd_link_just_syms): Define.
1344 * ihex.c (ihex_bfd_link_just_syms): Define.
1345 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1346 (_bfd_generic_link_just_syms): Declare.
1347 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1348 * linker.c (_bfd_generic_link_just_syms): New function.
1349 * mmo.c (mmo_bfd_link_just_syms): Define.
1350 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1351 * oasys.c (oasys_bfd_link_just_syms): Define.
1352 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1353 * som.c (som_bfd_link_just_syms): Define.
1354 * srec.c (srec_bfd_link_just_syms): Define.
1355 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1356 (BFD_JUMP_TABLE_LINK): And here.
1357 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1358 * versados.c (versados_bfd_link_just_syms): Define.
1359 * vms.c (vms_bfd_link_just_syms): Define.
1360 * libbfd.h: Regenerate.
1361 * bfd-in2.h: Regenerate.
1362
cb7394f2
TS
13632002-05-15 Thiemo Seufer <[email protected]>
1364
1365 * elf32-mips.c: Remove superfluous definitions copied from
1366 elfxx-mips.c.
1367 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
1368 SGIish vectors to check the special case.
1369 (mips_elf_hi16_reloc): Fix comment.
1370 (mips_elf_got16_reloc): Likewise.
1371 (_bfd_mips_elf32_gprel16_reloc): Likewise.
1372 (elf_reloc_map): Code cleanup.
1373 (mips_reloc_map): Add comment.
1374 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
1375 (mips_elf32_rtype_to_howto): Likewise.
1376 (mips_elf32_discard_info): Likewise.
1377 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
1378 lead to IRIX compatibility now.
1379
8dc1a139
TS
13802002-05-15 Thiemo Seufer <[email protected]>
1381
1382 * elfxx-mips.c: Call it IRIX, not Irix in comments.
1383
2051e1b5
JT
13842002-05-13 Jason Thorpe <[email protected]>
1385
1386 * config.bfd (shle-*-netbsdelf*): Add target which includes
1387 sh64 support.
1388
83954261
AM
13892002-05-13 David Edelsohn <[email protected]>
1390
1391 * configure.in: Revert 2002-04-07. Instead, auto-configure
1392 HAVE_ST_C_IMPL.
1393 * configure: Regenerate.
1394 * config.in: Regenerate.
1395 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
1396 or AIX_5_CORE.
1397
a9bf1154
NC
13982002-05-11 Federico G. Schwindt <[email protected]>
1399
1400 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
1401 corefiles as well.2
1402 * configure: Regenerate.
1403
3129eb7a
AM
14042002-05-13 Alan Modra <[email protected]>
1405
1406 * Makefile.am (install-data-local): Install headers to
1407 $(exec_prefix)/include.
1408 * Makefile.in: Regenerate.
1409
a9a32010
DJ
14102002-05-11 Ralf Corsepius <[email protected]>
1411 Daniel Jacobowitz <[email protected]>
1412
1413 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
1414 map BFD_RELOC_RVA.
1415
14162002-05-11 Federico G. Schwindt <[email protected]>
690cc98b
NC
1417
1418 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
1419 hppa*-*-openbsd*): New targets.
1420 * configure.in (alpha*-*-openbsd*): Set COREFILE.
1421 * configure: Regenerate.
1422
f1f0d9ab
TR
14232002-05-10 Tom Rix <[email protected]>
1424
ea1e4b0d 1425 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
f1f0d9ab
TR
1426 xcoff64_ppc_relocate_section.
1427 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
1428 * libxcoff.h: Common xcoff_reloc_type function declaration.
1429
c432ba1a
AM
14302002-05-10 Alan Modra <[email protected]>
1431
16a10388 1432 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
90937f86 1433 added in 2002-05-09 commit.
16a10388 1434
c432ba1a
AM
1435 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
1436 don't look for stubs on all undefined syms.
1437
4a335f3d
AM
14382002-05-09 Alan Modra <[email protected]>
1439
8fc39d5d
AM
1440 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
1441 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
1442 pcrel_offset.
1443
4a335f3d
AM
1444 * elf32-i386.c (elf_howto_table): Comments.
1445 (elf_i386_relocate_section): Handle more relocs for relocatable
1446 linking and against SEC_MERGE sections.
1447
41fcb14e
AM
14482002-05-08 Alan Modra <[email protected]>
1449
1450 * elf32-ppc.c (ppc_elf_create_got): New function.
1451 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
ea1e4b0d 1452 _bfd_elf_create_dynamic_sections. Correct .plt flags.
41fcb14e
AM
1453 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
1454 _bfd_elf_create_got_section.
1455
b491616a
AM
14562002-05-07 Alan Modra <[email protected]>
1457
1458 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
1459 * elfxx-target.h (elf_backend_rela_normal): Define.
1460 (elfNN_bed): Init rela_normal.
1461 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
1462 for section symbols here if rela_normal. Simplify abs section test.
1463 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
1464 return immediately. Remove code handling relocatable linking.
1465 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1466 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1467 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1468 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1469 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1470 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1471 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1472 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1473 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1474 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1475 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1476 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1477 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1478 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1479 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
1480 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1481 * elf-m10200.c (elf_backend_rela_normal): Define.
1482 * elf-m10300.c (elf_backend_rela_normal): Define.
1483 * elf32-fr30.c (elf_backend_rela_normal): Define.
1484 * elf32-i370.c (elf_backend_rela_normal): Define.
1485 * elf32-i860.c (elf_backend_rela_normal): Define.
1486 * elf32-m68k.c (elf_backend_rela_normal): Define.
1487 * elf32-mcore.c (elf_backend_rela_normal): Define.
1488 * elf32-openrisc.c (elf_backend_rela_normal): Define.
1489 * elf32-ppc.c (elf_backend_rela_normal): Define.
1490 * elf32-s390.c (elf_backend_rela_normal): Define.
1491 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
1492 * elf64-ppc.c (elf_backend_rela_normal): Define.
1493 * elf64-s390.c (elf_backend_rela_normal): Define.
1494 * elf64-x86-64.c (elf_backend_rela_normal): Define.
1495 * elfxx-ia64.c (elf_backend_rela_normal): Define.
1496 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
1497 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
1498
df212a7e
NC
14992002-05-06 Nick Clifton <[email protected]>
1500
1501 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
1502 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
1503
3decf53c
AM
15042002-05-06 Alan Modra <[email protected]>
1505
1506 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
1507 when not relocatable. Fix reloc_emitter call for K&R.
1508
f46c2da6
AM
15092002-05-04 Alan Modra <[email protected]>
1510
1511 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
1512 reloading local sym addend mistakenly removed in 2002-05-01 change.
1513
1514 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
1515 (read_abbrevs): Change "offset" param to bfd_vma.
1516 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
1517 Change "abbrev_offset" to bfd_vma.
1518 (read_indirect_string): Use correct conversion chars in error
1519 message format string, cast bfd_vma's to unsigned long.
1520 (read_abbrevs): Likewise.
1521 (read_attribute_value): Likewise.
1522 (decode_line_info): Likewise.
1523 (scan_unit_for_functions): Likewise.
1524 (parse_comp_unit): Likewise.
1525
59862849
TR
15262002-05-04 Tom Rix <[email protected]>
1527
1528 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
1529 (coff_swap_reloc_out): Same.
1530 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
1531 (xcoff_swap_reloc_out): Same.
1532 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
1533 case some 16 bit relocs. Add reloc value to output.
1534 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
ea1e4b0d 1535 R_RBR. Improve names.
59862849
TR
1536 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
1537 (bfd_xcoff_backend_data): Update with new reloc swap names.
1538 (bfd_pmac_xcoff_backend_data) : Same.
1539 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
1540 (xcoff64_swap_reloc_out): Same.
ea1e4b0d 1541 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
59862849 1542 R_POS. Add reloc value to output.
ea1e4b0d
AM
1543 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1544 bit R_RBR. Improve names, masks.
59862849
TR
1545 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1546 (bfd_xcoff_backend_data): Update with new reloc swap names.
1547 (bfd_xcoff_aix5_backend_data) : Same.
1548
b4655ea9
AM
15492002-05-04 Alan Modra <[email protected]>
1550
1551 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1552 bfd_count top_index, input_list, all_local_syms.
1553 (elf32_hppa_setup_section_lists): New function, split from
1554 elf32_hppa_size_stubs.
1555 (elf32_hppa_next_input_section): Likewise.
1556 (group_sections): Likewise.
1557 (get_local_syms): Likewise.
1558 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1559 stubs on undefined syms too.
1560 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
8fc39d5d 1561 Only access htab elf fields when we have an elf hash table.
b4655ea9
AM
1562 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1563 (elf32_hppa_next_input_section): Declare.
1564
301e3139
AM
15652002-05-04 Bob Byrnes <[email protected]>
1566
1567 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1568 _bfd_new_bfd.
1569
7c5fcef7
L
15702002-05-03 H.J. Lu ([email protected])
1571
1572 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1573 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1574 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1575 to hide a global symbol.
1576 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
ea1e4b0d 1577 forced_local to true.
7c5fcef7 1578
84de6048
RH
15792002-05-02 Richard Henderson <[email protected]>
1580
1581 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1582 vs SHN_UNDEF to zero.
1583
805fc799
AM
15842002-05-02 Alan Modra <[email protected]>
1585
c061c2d8
AM
1586 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1587 16 bit reloc.
1588 <R_PPC64_SECTOFF_DS>: Likewise.
1589 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1590 SECTOFF reloc.
1591 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1592 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1593 SECTOFF reloc.
1594
805fc799
AM
1595 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1596 (ppc64_elf_ha_reloc): New function.
1597 (ppc64_elf_brtaken_reloc): New function.
1598 (ppc64_elf_sectoff_reloc): New function.
1599 (ppc64_elf_sectoff_ha_reloc): New function.
1600 (ppc64_elf_toc_reloc): New function.
1601 (ppc64_elf_toc_ha_reloc): New function.
1602 (ppc64_elf_toc64_reloc): New function.
1603 (ppc64_elf_unhandled_reloc): New function.
1604 (ppc64_elf_howto_raw): Use the above.
1605 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1606 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1607 <R_PPC64_SECTOFF_DS>: Likewise.
1608 (IS_ABSOLUTE_RELOC): Update.
1609 (struct ppc_link_hash_table): Add have_undefweak.
1610 (ppc64_elf_link_hash_table_create): Init.
1611 (func_desc_adjust): Set have_undefweak.
1612 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1613 add the .sfpr blr when have_undefweak.
1614 (ppc64_elf_setup_section_lists): Check hash table flavour.
1615 (ppc64_elf_next_input_section): Move output_section->owner test to
1616 ppc64elf.em.
1617 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1618 and relocatable test. Return TOCstart and don't set elf_gp.
1619 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1620 offset calculation. Add assert on weak sym branch tweaks.
1621 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1622 (ppc64_elf_toc): Declare.
1623 (ppc64_elf_next_input_section): Update.
ea1e4b0d 1624
818c39a3
AM
16252002-05-01 Alan Modra <[email protected]>
1626
1627 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1628 file_name.
1629
721956f4
AM
16302002-05-01 Alan Modra <[email protected]>
1631
1632 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1633 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1634 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1635 call branches. Correct undefined weak destination.
1636 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1637 .sfpr, and correct case where either only savef* or restf* is
1638 needed.
1639
1640 Long branch stubs, multiple stub sections.
1641 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1642 (ppc64_elf_next_input_section): Declare.
1643 * elf64-ppc.c: Move linker-only prototypes.
1644 (STUB_SUFFIX): Define.
1645 (enum ppc_stub_type): New.
1646 (struct ppc_stub_hash_entry): New.
1647 (struct ppc_branch_hash_entry): New.
1648 (struct ppc_link_hash_entry): Add stub_cache, oh.
1649 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1650 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1651 Rename plt_overflow to stub_error.
1652 (ppc_stub_hash_lookup): Define.
1653 (ppc_branch_hash_lookup): Define.
1654 (stub_hash_newfunc): New function.
1655 (branch_hash_newfunc): New function.
1656 (link_hash_newfunc): Init new fields.
1657 (ppc64_elf_link_hash_table_create): Likewise.
1658 (ppc64_elf_link_hash_table_free): New function.
1659 (ppc_stub_name): New function.
1660 (ppc_get_stub_entry): New function.
1661 (ppc_add_stub): New function.
1662 (create_linkage_sections): Use bfd_make_section_anyway. Create
1663 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1664 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1665 and set up for plt call stubs. Link func and func desc syms.
1666 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1667 (func_desc_adjust): Avoid hash lookup when func desc sym available
1668 via shortcut, and set links when processing.
1669 (ppc64_elf_hide_symbol): Likewise.
1670 (allocate_dynrelocs): Don't allocate stub section here.
1671 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1672 Remove sstub code.
1673 (ppc_type_of_stub): New function.
1674 (build_one_stub): Delete.
1675 (ppc_build_one_stub): New function.
1676 (ppc_size_one_stub): New function.
1677 (ppc64_elf_setup_section_lists): New function.
1678 (ppc64_elf_next_input_section): New function.
1679 (group_sections): New function.
1680 (get_local_syms): New function.
1681 (ppc64_elf_size_stubs): Rewrite.
1682 (ppc64_elf_build_stubs): Rewrite.
1683 (ppc64_elf_relocate_section): Look up stub entry for REL24
1684 relocs. Don't propagate REL14* to dynamic objects. Look for long
1685 branch stubs if REL14* or REL24 relocs won't reach.
1686 (bfd_elf64_bfd_link_hash_table_free): Define.
1687
09c2219b
MM
16882002-04-30 Mark Mitchell <[email protected]>
1689
1690 * bfd/config.bfd: Add support for powerpc-*-windiss.
1691
07b678c0
TR
16922002-04-30 Tom Rix <[email protected]>
1693
1694 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1695 symbol names into the hash table.
1696
dbe341c6
TR
16972002-04-28 Tom Rix <[email protected]>
1698
1699 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
ea1e4b0d 1700 calulating relocations.
dbe341c6 1701 (xcoff_complain_overflow) : Function table for relocation errors.
ea1e4b0d
AM
1702 (xcoff_ppc_relocate_section): Use relocation and complain function
1703 tables.
1704 (xcoff_complain_overflow_unsigned_func): New complain function.
dbe341c6
TR
1705 (xcoff_complain_overflow_signed_func): Same.
1706 (xcoff_complain_overflow_bitfield_func): Same.
1707 (xcoff_complain_overflow_dont_func): Same.
1708 (xcoff_reloc_type_crel): New recot function.
1709 (xcoff_reloc_type_br): Same.
1710 (xcoff_reloc_type_ba): Same.
1711 (xcoff_reloc_type_toc): Same.
1712 (xcoff_reloc_type_rel): Same.
1713 (xcoff_reloc_type_neg): Same.
1714 (xcoff_reloc_type_pos): Same.
1715 (xcoff_reloc_type_fail): Same.
1716 (xcoff_reloc_type_noop): Same.
1717 * libxcoff.h : Declare common parts for xcoff64.
1718 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
ea1e4b0d 1719 and complain function tables.
dbe341c6 1720
985142a4
AM
17212002-04-28 Alan Modra <[email protected]>
1722
1723 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1724 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1725
eba91044
AM
17262002-04-26 Alan Modra <[email protected]>
1727
e54fdaa5
AM
1728 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1729 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1730
a50c1845
AM
1731 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1732 same as the output before calling elf_link_input_bfd.
1733
eba91044
AM
1734 * coffcode.h (coff_compute_section_file_positions): Set
1735 section_tail after shuffling section list.
1736
3c25c5f6
NC
17372002-04-24 Christian Groessler <[email protected]>
1738
1739 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1740 addresses are 23bit with a special layout, not plain 32bit
1741 values. Prevent relocation of immediate values.
1742
40d32fc6
CD
17432002-04-24 Chris G. Demetriou <[email protected]>
1744
1745 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1746 MIPS-16 ASE flags are set, print something to indicate that.
1747
067fa4a6
AM
17482002-04-23 Alan Modra <[email protected]>
1749
1750 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1751 under which a plt call stub is used.
1752 (final_link_relocate): Similarly.
1753 (allocate_plt_static): Clear h-plabel except when plt entry is
1754 exclusively used for a plabel.
1755 (allocate_dynrelocs): Use the above to simplify plt sizing.
1756 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1757 (elf32_hppa_link_hash_table_create): Init.
1758 (BL22_RP): Define.
1759 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1760 (elf32_hppa_check_relocs): Set has_22bit_branch.
1761
1762 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1763 (final_link_relocate): Likewise.
1764
af40ce3c
JJ
17652002-04-22 Jakub Jelinek <[email protected]>
1766
1767 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1768 search table if some FDE is DW_EH_PE_aligned encoded either.
1769 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1770
09ae86c2
JJ
17712002-04-22 Richard Smith <[email protected]>
1772 Jakub Jelinek <[email protected]>
1773
1774 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1775 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1776 encoded personality.
1777 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1778 for CIE/FDE removal.
1779
deeb2cd7
TR
17802002-04-20 Tom Rix <[email protected]>
1781
1782 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1783
99dc0092
AM
17842002-04-20 Alan Modra <[email protected]>
1785
aa3d5824
AM
1786 * archures.c (bfd_lookup_arch): Move the list order comment..
1787 (struct bfd_arch_info): ..to where it belongs.
1788 * bfd-in2.h: Regenerate.
1789
99dc0092
AM
1790 * archures.c (bfd_lookup_arch): Add comment on list order.
1791 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1792 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1793 is always at head of list.
1794
7831a775
NC
17952002-04-18 Nick Clifton <[email protected]>
1796
1797 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1798 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1799 definition of these functions for ARM_WINCE builds as they are
1800 not used.
ea1e4b0d 1801 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
7831a775
NC
1802 for ARM_WINCE builds.
1803
18042002-04-18 Nick Clifton <[email protected]>
1805
ea1e4b0d 1806 * coff-arm.c (bfd_arm_process_before_allocation):
7831a775
NC
1807
18082002-04-17 J"orn Rennecke <[email protected]>
a44d7f9c
JR
1809
1810 * cpu-sh.c (scan_mach): Delete.
1811 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1812 (bfd_sh_arch): Likewise.
1813
3d8dbe36
NC
18142002-04-16 Nick Clifton <[email protected]>
1815
1816 * ihex.c (ihex_write_object_contents): Fix check for records
1817 crossing 64K boundaries.
1818
4ab82700
AM
18192002-04-16 Alan Modra <[email protected]>
1820
1821 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1822 type rather than just assuming entries are ELF.
1823 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1824 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1825 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1826 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1827 rather than elf_link_hash_entry.
1828
036fe0fe
RH
18292002-04-15 Richard Henderson <[email protected]>
1830
1831 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1832 n32 binaries.
1833
c4f3d130
NC
18342002-04-15 Michael Snyder <[email protected]>
1835
1836 * opncls.c (bfd_close): Write contents if writeable.
1837 Minor formatting tidy-ups.
1838
4ab82700 18392002-04-15 Alan Modra <[email protected]>
27242387
AM
1840
1841 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1842
0c04d169
MS
18432002-04-12 Michael Snyder <[email protected]>
1844
1845 * bfd-in.h (bfd_get_section_lma): New access macro.
1846 Minor white-space fix-up.
1847
89d4966f
AM
18482002-04-12 Alan Modra <[email protected]>
1849
1850 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1851 header pad.
1852
8d0da3c2
DD
18532002-04-09 DJ Delorie <[email protected]>
1854
1855 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1856
05793179
NC
18572002-04-09 Casper S. Hornstrup <[email protected]>
1858
1859 * coffcode.h (coff_read_word): New.
1860 (coff_compute_checksum): New.
1861 (coff_apply_checksum): New.
1862 (coff_write_object_contents): Call coff_apply_checksum () to
1863 apply checksum to PE image.
1864
46fe4e66
AM
18652002-04-08 Randolph Chung <[email protected]>
1866
1867 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1868 (elf32_hppa_final_link): Split out sorting logic to..
1869 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1870 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1871
3b5b409c
AC
18722002-04-07 Andrew Cagney <[email protected]>
1873
1874 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1875 pattern.
1876 * configure: Re-generate.
1877
ac7b6ceb
AC
18782002-04-07 Andrew Cagney <[email protected]>
1879
1880 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1881 is greater or equal to 4.3.3.
1882 * configure: Regenerate.
1883 Fix PR gdb/344.
1884
44aa49bb
HPN
18852002-04-05 Hans-Peter Nilsson <[email protected]>
1886
1887 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1888 R_CRIS_32_PCREL>: Fix typo in name.
1889 (cris_elf_check_relocs): Always create .rela.got here when
1890 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1891 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1892 assume it's created.
1893
e2d34d7d
DJ
18942002-04-04 Daniel Jacobowitz <[email protected]>
1895
1896 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1897 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1898 define.
1899 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1900 * bfd.c (bfd_link_hash_table_free): Define.
1901 * binary.c (binary_bfd_link_hash_table_free): Define.
1902 * bout.c (b_out_bfd_link_hash_table_free): Define.
1903 * coff-rs6000.c (rs6000coff_vec): Include
1904 _bfd_generic_link_hash_table_free.
1905 (pmac_xcoff_vec): Likewise.
1906 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1907 (aix5coff64_vec): Likewise.
1908 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1909 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
1910 (bfd_elf32_bfd_link_hash_table_free): Define.
1911 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
1912 (bfd_elf32_bfd_link_hash_table_free): Define.
1913 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
1914 define.
1915 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
1916 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
1917 * ieee.c (ieee_bfd_link_hash_table_free): Define.
1918 * ihex.c (ihex_bfd_link_hash_table_free): Define.
1919 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
1920 (_bfd_generic_link_hash_table_free): Add prototype.
1921 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
1922 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
1923 * linker.c (_bfd_generic_link_hash_table_free): New function.
1924 * mmo.c (mmo_bfd_link_hash_table_free): Define.
1925 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
1926 * oasys.c (oasys_bfd_link_hash_table_free): Define.
1927 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
1928 * som.c (som_bfd_link_hash_table_free): Define.
1929 * srec.c (srec_bfd_link_hash_table_free): Define.
1930 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
1931 * versados.c (versados_bfd_link_hash_table_free): Define.
1932 * vms.c (vms_bfd_link_hash_table_free): New function.
1933 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
1934
1935 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
1936 instead of bfd_alloc.
1937 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1938 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
1939 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
1940 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
1941 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
1942 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1943 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
1944 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
1945 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1946 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1947 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1948 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1949 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1950 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
1951 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
1952 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1953 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1954 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1955 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
1956 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
1957 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1958 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
1959 * m68klinux.c (linux_link_hash_table_create): Likewise.
1960 * sparclinux.c (linux_link_hash_table_create): Likewise.
1961 * sunos.c (sunos_link_hash_table_create): Likewise.
1962 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1963
1964 * targets.c: Add _bfd_link_hash_table_free to xvec.
1965
1966 * bfd-in2.h: Regenerate.
1967 * libbfd.h: Regenerate.
1968 * libcoff.h: Regenerate.
1969
830629ab
AM
19702002-04-04 Alan Modra <[email protected]>
1971
1972 * dep-in.sed: Cope with absolute paths.
1973 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
1974 Run "make dep-am".
1975 * Makefile.in: Regenerate.
1976 * coff-arm.c: Fix copyright date.
1977 * cpu-h8300.c: Likewise.
1978 * cpu-i370.c: Likewise.
1979 * cpu-s390.c: Likewise.
1980 * cpu-mips.c: Likewise.
1981 * po/SRC-POTFILES.in: Regenerate.
1982
c6e90b02
TS
19832002-04-04 Thiemo Seufer <[email protected]>
1984
1985 * Makefile.am: Add elfxx-mips.c to the known backends.
1986 (elf32-mips.lo): remove dependency to coff/external.h.
1987 * Makefile.in: Regenerate.
1988 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
1989 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
1990 accordingly.
1991 * configure: Regenerate.
1992 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
1993 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
1994 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
1995 MIPS specific backend functions.
1996 * elf32-mips.c: Moved most code to elfxx-mips.c.
1997 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
1998 static.
1999 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
2000 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
2001 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
2002 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
2003 interface to allow selection of the right REL or RELA howto table.
2004 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
2005 static. Let it refuse n32 objects.
2006 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
2007 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
2008 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
2009 (elf32_mips_ignore_discarded_relocs): Rename from
2010 _bfd_elf32_mips_ignore_discarded_relocs.
2011 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
2012 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
2013 (elf_mips_howto_table_rela): Remove.
2014 * elf64-mips.c: Moved most code to elfxx-mips.c.
2015 (bfd_elf64_bfd_reloc_type_lookup): Make static.
2016 (mips_elf64_rtype_to_howto): New function.
2017 (mips_elf64_object_p): Likewise.
2018 (elf64_mips_irix_compat): Likewise.
2019 * elfxx-mips.c: New file containing common code merged together from
2020 elf32-mips.c and elf64-mips.c.
2021 * elfxx-mips.h: New file containing MIPS specific prototypes from
2022 elf-bfd.h.
2023 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
2024 elf_backend_mips_rtype_to_howto.
2025
d8dce692
AM
20262002-04-04 Alan Modra <[email protected]>
2027
2028 * srec.c (MAXCHUNK, Chunk): Revise comments.
2029 (srec_write_record): Correct buffer size.
2030 (srec_write_header): Do without intermediate buffer.
2031 (srec_write_section): Validate Chunk.
2032 (srec_write_terminator): Pass NULL instead of dummy buffer.
2033 (srec_write_symbols): Pass file and symbol names directly to
2034 bfd_bwrite so sprintf won't overflow buffer.
2035
b88a866a
JJ
20362002-04-03 Jakub Jelinek <[email protected]>
2037
2038 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
2039 PC relative relocs against hidden symbols.
2040 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2041
d7866f04
AM
20422002-04-03 Alan Modra <[email protected]>
2043
2044 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
2045 LMAs, loop over segments until p_vaddr and p_memsz specify an
2046 extent enclosing the section.
2047
9e81ee67
NC
20482002-04-02 Nick Clifton <[email protected]>
2049
2050 * ihex.c (ihex_write_object_contents): Do not allow records to
2051 cross a 64K boundary - wrap if necessary.
2052
d2b64500
JT
20532002-04-01 Nathan Williams <[email protected]>
2054
2055 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
2056 which caused the returned LWP ID to always be 0.
2057
e36f7d53
RH
20582002-04-01 Richard Henderson <[email protected]>
2059
2060 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2061 (elf32_sparc_relocate_section): Use it to figure out when to
2062 initialize .got entries.
2063 * elf64-sparc.c: Similarly.
2064
e92d460e
AM
20652002-03-28 Alan Modra <[email protected]>
2066
2067 * linker.c (link_action): Ignore duplicate warning syms.
2068 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
2069 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
2070 (elf_adjust_dynamic_symbol): Likewise.
2071 (elf_export_symbol): Likewise.
2072 (elf_link_find_version_dependencies): Likewise.
2073 (elf_link_assign_sym_version): Likewise.
2074 (elf_link_sec_merge_syms): Likewise.
2075 (elf_link_output_extsym): Likewise.
2076 (elf_gc_sweep_symbol): Likewise.
2077 (elf_gc_propagate_vtable_entries_used): Likewise.
2078 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2079 (elf_gc_allocate_got_offsets): Likewise.
2080 (elf_collect_hash_codes): Likewise.
2081 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
2082 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2083 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2084 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
2085 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
2086 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
2087 (elf_cris_discard_excess_dso_dynamics): Likewise.
2088 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
2089 (mark_PIC_calls): Likewise.
2090 (allocate_plt_static): Likewise.
2091 (allocate_dynrelocs): Likewise.
2092 (readonly_dynrelocs): Likewise.
2093 * elf32-i386.c (allocate_dynrelocs): Likewise.
2094 (readonly_dynrelocs): Likewise.
2095 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
2096 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
2097 * elf32-mips.c (mips_elf_output_extsym): Likewise.
2098 (mips_elf_sort_hash_table_f): Likewise.
2099 (mips_elf_check_mips16_stubs): Likewise.
2100 * elf32-s390.c (allocate_dynrelocs): Likewise.
2101 (readonly_dynrelocs): Likewise.
2102 * elf32-sh.c (sh_elf_discard_copies): Likewise.
2103 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
2104 (xstormy16_relax_plt_realloc): Likewise.
2105 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2106 (elf64_alpha_output_extsym): Likewise.
2107 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
2108 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
2109 (mips_elf64_check_mips16_stubs): Likewise.
2110 (mips_elf64_output_extsym): Likewise.
2111 * elf64-ppc.c (func_desc_adjust): Likewise.
2112 (allocate_dynrelocs): Likewise.
2113 (readonly_dynrelocs): Likewise.
2114 * elf64-s390.c (allocate_dynrelocs): Likewise.
2115 (readonly_dynrelocs): Likewise.
2116 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
2117 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
2118 (readonly_dynrelocs): Likewise.
2119 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
2120 * aoutx.h (aout_link_write_other_symbol): Likewise.
2121 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
2122 (_bfd_coff_write_global_sym): Likewise.
2123 * i386linux.c (linux_tally_symbols): Likewise.
2124 * m68klinux.c (linux_tally_symbols): Likewise.
2125 * sparclinux.c (linux_tally_symbols): Likewise.
2126 * pdp11.c (aout_link_write_other_symbol): Likewise.
2127 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
2128 * xcofflink.c (xcoff_build_ldsyms): Likewise.
2129 (xcoff_write_global_symbol): Likewise.
2130
2131 * cofflink.c (_bfd_coff_final_link): Formatting.
2132 * cpu-mips.c (mips_compatible): Make static, prototype.
2133 * elf32-i386.c (elf_i386_check_relocs): Formatting.
2134 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
2135 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
2136 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
2137 (mips_elf64_final_link): Likewise.
2138 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
2139 prototype.
2140
2106126f
NC
21412002-03-27 Nick Clifton <[email protected]>
2142
2143 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
2144 (SWAP_OUT_RELOC_OFFSET): Define.
2145
b99d1833
AM
21462002-03-27 Gregory Steuck <[email protected]>
2147
2148 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
2149 terminating NULL if empty symbol table.
2150 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
2151
ad43ed4c
L
21522002-03-26 H.J. Lu ([email protected])
2153
2154 * elflink.h (elf_link_input_bfd): Revert the last change since
2155 the gcc exception handling isn't fixed yet.
2156
3851fca4
L
21572002-03-26 H.J. Lu ([email protected])
2158
2159 * elflink.h (elf_link_input_bfd): Complain about relocations
2160 against local symbols in discarded sections.
2161
b91afed7
AM
21622002-03-26 Alan Modra <[email protected]>
2163
2164 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2165
dba143ef
AM
21662002-03-23 Alan Modra <[email protected]>
2167
2168 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2169 section file offset for !SEC_LOAD sections.
2170
ee29b9fb
RE
21712002-03-21 Richard Earnshaw <[email protected]>
2172
830629ab
AM
2173 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
2174 <case R_ARM_GOT>): Handle relocations to Thumb functions.
ee29b9fb 2175
54327882
AM
21762002-03-21 Alan Modra <[email protected]>
2177
2178 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
2179 Whitespace changes.
2180 * archive.c: Update copyright date.
2181 * bfd-in2.h: Regenerate.
2182 * libbfd.h: Regenerate.
2183 * Makefile.am: Run "make dep-am"
2184 * Makefile.in: Regenerate.
2185 * po/SRC-POTFILES.in: Regenerate.
2186
1ee24f27
DJ
21872002-03-20 Daniel Jacobowitz <[email protected]>
2188
2189 * dwarf2.c (struct funcinfo): Move up.
2190 (lookup_address_in_function_table): New argument function_ptr.
2191 Set it.
2192 (lookup_address_in_line_table): New argument function. If function
2193 is non-NULL, use it to handle ``addr'' before the first line note of
2194 the function.
2195 (comp_unit_find_nearest_line): Update and swap calls to
2196 lookup_address_in_function_table and lookup_address_in_line_table.
2197 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
2198 N_SLINE encountered if we see an N_FUN before any N_SLINE.
2199
51b9608c
TR
22002002-03-20 Tom Rix <[email protected]>
2201
ea1e4b0d 2202 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
51b9608c 2203 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
ea1e4b0d 2204 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
51b9608c 2205
789c90aa
TR
22062002-03-19 Tom Rix <[email protected]>
2207
ea1e4b0d 2208 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
789c90aa
TR
2209 dynamic objects in archives.
2210
1da54d81
HPN
22112002-03-19 Hans-Peter Nilsson <[email protected]>
2212
2213 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
2214 STT_NOTYPE symbols to STT_OBJECT.
2215
7831a775 22162002-03-18 Jan Hubicka <[email protected]>
beb43bb9
JH
2217
2218 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
2219
eb1e0e80
NC
22202002-03-18 Tom Rix <[email protected]>
2221
2222 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
2223 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
2224 * coff-rs6000 (do_pad) : New function for archive padding.
2225 (do_copy) : New function for object file copying in archives.
2226 (do_shared_object_padding) : New function for padding shared
2227 objects to their text section alignment in archives.
2228 (bfd_xcoff_ar_achive_set_magic) : Stub.
2229 (xcoff_write_armap_big) : Use do_copy and do_pad.
2230 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
2231 do_copy and do_pad.
2232 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
ea1e4b0d 2233 bfd_xcoff_magic_number.
eb1e0e80
NC
2234 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
2235 fop.
2236 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
2237 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
2238 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
2239 * rs6000-core.c : Update copyright date.
ea1e4b0d 2240 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
eb1e0e80
NC
2241 csectpp.
2242 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
2243 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
2244 (coff_set_flags) : Use bfd_xcoff_magic_number.
2245 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
2246 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
2247 * Makefile.am : Same.
2248 * config.bfd : Same.
2249 * targets.c : Same.
2250 * configure : Regnerate.
2251 * Makefile.in : Same.
2252 * bfd-in2.h : Same.
2253
a1c259a1
NC
22542002-03-18 Nick Clifton <[email protected]>
2255
2256 * po/fr.po: Updated version.
2257
4dae1ae7
AM
22582002-03-18 Alan Modra <[email protected]>
2259
2260 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
2261 * libbfd.h: Regenerate.
2262 * archive.c (coff_write_armap): Pass on failures from
2263 bfd_write_bigendian_4byte_int.
2264
36b4f6e7
L
22652002-03-14 H.J. Lu <[email protected]>
2266
2267 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
2268 error to bfd_error_nonrepresentable_section for reinit_array
2269 section in DSO.
2270
a1aefc76
NC
22712002-03-14 Nick Clifton <[email protected]>
2272
a181be0a
NC
2273 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
2274 OR it in rather than replacing previously selected flags.
2275
a1aefc76
NC
2276 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
2277 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
2278
c119f9b8
AM
22792002-03-14 Alan Modra <[email protected]>
2280
2281 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
2282 (N): Use the above.
2283 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
2284 ensure reloc size matches before calling elf_link_input_bfd.
2285 Add an assert to check reloc size when counting output relocs.
2286
c295a511
NC
22872002-03-14 Nick Clifton <[email protected]>
2288
2289 * mmo.c (mmo_get_loc): Return NULL rather than false.
2290
9ce88e60
NC
22912002-03-13 Nick Clifton <[email protected]>
2292
2293 * po/fr.po: Updated version.
2294
4ddafab0
AM
22952002-03-13 Alan Modra <[email protected]>
2296
b74fa2cd
AM
2297 * archures.c (bfd_default_compatible): Test bits_per_word.
2298 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
2299 bfd_default_compatible.
2300 * cpu-i370.c (i370_compatible): Likewise.
2301 * cpu-sparc.c (sparc_compatible): Likewise.
2302 * cpu-h8300.c (compatible): Test in->arch == out->arch.
2303
40b829d4
AM
2304 * elflink.h: Formatting fixes.
2305 (elf_link_output_extsym): Merge undefined and undef weak cases.
2306
4ddafab0
AM
2307 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
2308 when word size of input matches output word size.
2309
dd53c801
AJ
23102002-03-12 Andreas Jaeger <[email protected]>
2311
2312 * cpu-i386.c (i386_compatible): New. Use it instead of
2313 bfd_default_compatible.
2314
aa066ac8
L
23152002-03-07 H.J. Lu ([email protected])
2316
2317 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
2318 as the type for bfd_reloc_val.
2319
1bf42538
JL
23202002-03-05 John David Anglin <[email protected]>
2321
2322 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2323 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2324 (elf_hppa_final_link_relocate): Correct relocations for indirect
2325 references to local data through the DLT. Fix .opd creation for
2326 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2327 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2328 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2329 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2330 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2331 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2332 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2333
86eaf01e
JJ
23342002-03-05 Jakub Jelinek <[email protected]>
2335
2336 * merge.c (_bfd_merge_sections): Don't segfault if there
2337 is nothing to merge due to GC.
2338
c44233aa
AM
23392002-03-05 Alan Modra <[email protected]>
2340
039cc25f
AM
2341 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2342 symbols that have been forced local.
2343
c44233aa
AM
2344 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2345 to output forced local syms for non-shared link.
2346 (elf_link_output_extsym): Tweak condition for calling backend
2347 adjust_dynamic_symbol so that previous behaviour is kept.
2348 Whitespace changes throughout file.
2349
25e27870
L
23502002-03-04 H.J. Lu <[email protected]>
2351
2352 * elf.c (bfd_section_from_shdr): Handle special sections,
2353 .init_array, .fini_array and .preinit_array.
2354 (elf_fake_sections): Likewise.
2355
2356 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2357 DT entry only if the section is in output for .init_array,
2358 .fini_array and .preinit_array. Complain about .preinit_array
2359 section in DSO.
2360 (elf_bfd_final_link): Warn zero size for .init_array,
2361 .fini_array and .preinit_array sections.
2362
2363 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
2364 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
2365 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
2366 .preinit_array.
2367
bb2a49f2
AM
23682002-03-04 Alan Modra <[email protected]>
2369
2370 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
2371 * configure: Regenerate.
2372
38487e5e
TR
23732002-03-02 Tom Rix <[email protected]>
2374
c44233aa
AM
2375 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
2376 symbolic equiv.
38487e5e
TR
2377 * coff-rs6000.c (xcoff_howto_table): Same.
2378
30831527
RH
23792002-03-01 David Mosberger <[email protected]>
2380
2381 * elflink.h (size_dynamic_sections): If section named
2382 ".preinit_array" exists, create DT_PREINIT_ARRAY and
2383 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
2384 ".init_array" and ".fini_array".
2385 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
2386 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
2387 DT_FINI_ARRAY.
2388
c8e5ddc8
AM
23892002-02-26 Andrew Macleod <[email protected]>
2390
2391 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
2392 dynsyms.
2393
96e0dda4
AM
23942002-02-25 Alan Modra <[email protected]>
2395
1c5b6bf8
AM
2396 * elf64-hppa.h: Update copyright date.
2397
96e0dda4
AM
2398 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
2399 (ppc64_elf_relocate_section): Don't generate power4 style branch
2400 hints for *_BRTAKEN and *_BRNTAKEN relocs.
2401
0fb19cbc
JJ
24022002-02-22 Jakub Jelinek <[email protected]>
2403
2404 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
2405 last patch.
2406 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2407
c434dee6
AJ
24082002-02-21 Andreas Jaeger <[email protected]>
2409
2410 * elf64-x86-64.c: Major rework that introduces all recent changes
2411 to the x86-64 backend. Get a closer match to elf32-i386.
2412 (struct elf64_x86_64_dyn_relocs): Rename from
2413 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
2414 all users.
2415 (struct elf64_x86_64_link_hash_table): Add short cuts to some
2416 sections.
2417 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
2418 remove casts, initialize new hash members.
2419 (create_got_section): New.
2420 (elf64_x86_64_create_dynamic_sections): New.
2421 (elf64_x86_64_copy_indirect_symbol): New.
2422 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
2423 relocs, .got or .relgot here but do it in allocate_dynrelocs.
2424 Reference count possible .plt and .got entries. Don't test input
2425 section SEC_READONLY here to try to avoid copy relocs, and keep
2426 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
2427 DF_TEXTREL here. Delay setting of variables until needed. Cache
2428 pointer to "sreloc" section in elf_section_data. Tweak condition
2429 under which .got created. Report files with bad relocation
2430 section names.
2431 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
2432 Reference count possible .plt entries. Don't deallocate .got and
2433 .relgot space here.
2434 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
2435 do copy reloc processing for weakdefs. Remove redundant casts and
2436 aborts. Delay setting of vars until needed. Move creation of
2437 dynamic symbols and allocation of .plt and .rela.plt to
2438 allocate_dynrelocs. Replace BFD_ASSERT with abort.
2439 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2440 (allocate_dynrelocs): New.
2441 (readonly_dynrelocs): New.
2442 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
2443 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
2444 Zero out the dynamic allocated content space.
2445 (elf64_x86_64_discard_copies): Removed.
2446 (elf64_x86_64_relocate_section): Make use of dynamic section
2447 short-cuts. Localise vars, and delay setting. Better error
2448 reporting, replace BFD_ASSERT with abort. Check
2449 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
2450 regular object file and tread the weak definition as the normal
2451 one. Don't discard relocs for undefweak or undefined symbols and
2452 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
2453 relocs.
2454 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
2455 symbols that have been forced local. Use same test to decide if
2456 we can use a relative reloc for got as relocate_section. Expand
2457 SHN_UNDEF comment. Move expressions out of function calls.
2458 Replace BFD_ASSERT with abort.
2459 (bfd_elf64_bfd_final_link): Removed.
2460 (elf_backend_copy_indirect_symbol): Define.
2461
ff3a6ee3
TR
24622002-02-20 Tom Rix <[email protected]>
2463
2464 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
2465 (_bfd_xcoff_reloc_type_lookup): Use it.
2466 * coff64-rs6000.c (xcoff64_howto_table): Same.
2467 (xcoff64_reloc_type_lookup): Same.
c434dee6 2468
a68d41fb
AM
24692002-02-20 Peter Schauer <[email protected]>
2470
2471 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
2472 little endian.
2473
befc3abb
MS
24742002-02-19 Martin Schwidefsky <[email protected]>
2475
2476 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
2477 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
2478 * bfd-in2.h: Regenerate.
2479 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
2480 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
2481 with "s390:64-bit".
2482 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
2483 (elf_s390_reloc_type_lookup): Likewise.
2484 (elf_s390_check_relocs): Likewise.
2485 (elf_s390_gc_sweep_hook): Likewise.
2486 (elf_s390_relocate_section): Likewise.
2487 (elf_s390_object_p): Use renamed architecture define.
2488 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2489
6eeeec9b
FCE
24902002-02-19 Frank Ch. Eigler <[email protected]>
2491
2492 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2493
0bb2d96a
JJ
24942002-02-19 Jakub Jelinek <[email protected]>
2495
2496 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
2497 absptr -> pcrel optimization for shared libs.
2498 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
2499 library cannot be converted to pcrel.
2500 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
2501 relative.
2502 * elf32-i386.c (elf_i386_relocate_section): If
2503 _bfd_elf_section_offset returned -2, skip, but make sure the
2504 relocation is installed.
2505 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
2506 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2507 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2508 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2509 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2510 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2511 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2512 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2513 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2514 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2515 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2516 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2517 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2518 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2519 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
2520 _bfd_elf_section_offset returning -2 the same way as -1.
2521 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
2522 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
2523 and BFD_ASSERT.
2524 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2525
69f284c7
TR
25262002-02-18 Tom Rix <[email protected]>
2527
2528 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
2529 (bfd_xcoff_size_dynamic_sections): Same.
2530 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
2531 (bfd_xcoff_size_dynamic_sections): Same.
2532 * coff-rs6000.c (xcoff_generate_rtinit): Same.
2533 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
2534 * libxcoff.h (struct xcoff_backend_data_rec): Same.
2535 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
2536 * bfd-in2.h: Regenerate.
2537
82bd7b59
AM
25382002-02-18 Alan Modra <[email protected]>
2539
2540 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2541 (struct ppc_link_hash_table): Add sfpr.
2542 (ppc64_elf_link_hash_table_create): Init it.
2543 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2544 .glink out to..
2545 (create_linkage_sections): ..here. Make .sfpr too.
2546 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2547 dynobj early.
2548 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2549 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2550 ._restf* functions, and create as needed.
2551 (func_desc_adjust): Only force_local for shared libs.
2552
ef1355e8
NC
25532002-02-18 David O'Brien <[email protected]>
2554
2555 * configure.in: Bump version number post 2.12 branching.
2556 * configure: Regenerate.
2557
dfa36a69
HPN
25582002-02-17 Hans-Peter Nilsson <[email protected]>
2559
2560 * mmo.c: Correct and improve comments.
2561 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2562 zero-pad. Use input to fill up non-empty bfd buffer.
2563 (mmo_flush_chunk): New function.
2564 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2565 changed. Don't emit location specifier if VMA is same as
2566 *LAST_VMAP after omitting leading zero contents. Call
2567 mmo_flush_chunk before emitting location specifier.
2568 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2569 with mmo_write_loc_chunk calls.
2570 (mmo_internal_write_section): Call mmo_flush_chunk after
2571 mmo_write_chunk.
2572 (mmo_write_symbols_and_terminator): Move :Main to first position
2573 in symbol array. Add faked one if it does not exist if there are
2574 other symbols. Don't add it if there are no symbols at all. Move
2575 out test for value of :Main from symbol loop. Rename table
2576 fakemain to maintable and variable mainsym to fakemain.
2577
ccf00ab6
RH
25782002-02-15 Richard Henderson <[email protected]>
2579
2580 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2581 section with no got matches any got. Simplify error generaion.
2582
88eaccc2
AM
25832002-02-15 Alan Modra <[email protected]>
2584
fd96f80f
AM
2585 Support arbitrary length fill patterns.
2586 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2587 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2588 Call default_data_link_order.
2589 (default_fill_link_order): Delete.
2590 (default_data_link_order): New function.
2591 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2592 of bfd_fill_link_order with bfd_data_link_order.
2593 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2594 * elf64-mips.c (mips_elf64_final_link): Likewise.
2595
88eaccc2
AM
2596 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2597 Correct value returned in "end" for "0x<non-hex>".
2598
e2fd756b
NC
25992002-02-14 Nick Clifton <[email protected]>
2600
2601 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2602 (scan): Test against 'mach' field in info structure.
2603
edd29cf9
AM
26042002-02-14 Alan Modra <[email protected]>
2605
2606 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2607
1e30956e 26082002-02-14 Matt Fredette <[email protected]>
76f57f3a
JT
2609
2610 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2611 EF_M68000.
2612
bf36db18
NC
26132002-02-13 Nick Clifton <[email protected]>
2614
2615 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
edd29cf9
AM
2616 non-zero physical addresses when adjusting the LMAs of new
2617 sections.
bf36db18 2618
189c6563
AM
26192002-02-12 John David Anglin <[email protected]>
2620
2621 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2622 from _bfd_elf_hppa_gen_reloc_type.
2623 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2624 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2625 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2626 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2627
e948afaf
AO
26282002-02-12 Alexandre Oliva <[email protected]>
2629
2630 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2631 loading its contents if there's nothing to do in it.
2632
19397422
AM
26332002-02-12 Alan Modra <[email protected]>
2634
0ad3a73b
AM
2635 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2636 64k boundary.
2637
19397422
AM
2638 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2639 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2640 (ppc64_elf_finish_dynamic_sections): Set values for them.
2641
51316059
MS
26422002-02-11 Michael Snyder <[email protected]>
2643
2644 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2645 * elf.c (elfcore_grok_pstatus): Add prototype.
2646 (elfcore_grok_lwpstatus): Add prototype.
2647 (elfcore_write_lwpstatus): New function.
2648 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2649
518313c3
AO
26502002-02-11 Alexandre Oliva <[email protected]>
2651
2652 * elf32-sh.c: Added missing prototypes.
2653 * elf32-sh64.c: Likewise.
2654 (sh_elf_align_loads): Mark unused args as such.
2655 * elf64-sh64.c: Added missing prototypes.
2656 (struct elf_sh64_link_hash_entry): Fix typo.
2657 (sh_elf64_relocate_section): Fix info argument passed to
2658 _bfd_elf_section_offset.
2659
2c73f9d8
AM
26602002-02-11 Alan Modra <[email protected]>
2661
2662 * Makefile.am: "make dep-am".
2663 * Makefile.in: Regenerate.
2664 * aclocal.m4: Regenerate.
2665 * config.in: Regenerate.
2666 * configure: Regenerate.
2667
d426c6b0
DJ
26682002-02-10 Daniel Jacobowitz <[email protected]>
2669
2670 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2671 variable warnings.
2672 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2673 comparison warning.
2674 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2675 cast warnings for the common case.
2676
e58ee0cd
HPN
26772002-02-10 Hans-Peter Nilsson <[email protected]>
2678
2679 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2680 vectors.
2681 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2682 vectors.
2683
7793f4d0
RH
26842002-02-09 Richard Henderson <[email protected]>
2685
2686 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2687 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2688 (elf64_alpha_relocate_section): Likewise.
2689 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2690 * bfd-in2.h, libbfd.h: Rebuild.
2691
7e799044
HPN
26922002-02-09 Hans-Peter Nilsson <[email protected]>
2693
2694 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2695 that base-plus-offset reloc accounting is consistent.
2696 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2697 up to date for undefined symbols.
2698
027d73eb
EC
26992002-02-08 Eric Christopher <[email protected]>
2700
2701 From Rainer Orth <[email protected]>
2702
2703 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2704 sections for the O32 ABI.
2705
517662d4
CD
27062002-02-08 Chris Demetriou <[email protected]>
2707
2708 * elf32-arm.h: Fix formatting of _("...").
2709 * elf32-d10v.c: Likewise.
2710 * elf32-m68k.c: Likewise.
2711 * elf32-mips.c: Likewise.
2712
5e37cc46
NC
27132002-02-08 Ivan Guzvinec <[email protected]>
2714
2715 * coff-or32.c: Fix compile time warning messages.
2716
fbca6ad9
AO
27172002-02-08 Alexandre Oliva <[email protected]>
2718
2719 Contribute sh64-elf.
2720 2002-01-23 Alexandre Oliva <[email protected]>
2721 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2722 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2723 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2724 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2725 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2726 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2727 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2728 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2729 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2730 New relocs.
2731 * libbfd.h, bfd-in2.h: Rebuilt.
2732 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2733 (sh_reloc_map): Map them.
2734 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2735 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2736 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2737 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2738 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2739 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2740 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2741 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2742 datalabel_got_offset.
2743 (sh_elf_link_hash_newfunc): Initialize it.
2744 (sh_elf_relocate_section): Augment the scope of
2745 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2746 GOT and GOTOFF handling to new SHmedia relocation types. Support
2747 GOT_BIAS.
2748 (sh_elf_check_relocs): Likewise.
2749 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2750 PLT entries using movi_shori_putval. Support GOT_BIAS.
2751 (sh_elf_finish_dynamic_sections): Likewise.
2752 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2753 relocation, it's now done by the caller.
2754 (GOT_BIAS): New.
2755 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2756 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2757 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2758 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2759 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2760 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2761 sh64_elf64_hash_table): New.
2762 (sh_elf64_howto_table): Introduce new relocs.
2763 (sh_elf64_info_to_howto): Accept new PIC relocs.
2764 (sh_elf64_relocate_section): Augment the scope of
2765 seen_stt_datalabel. Support new PIC relocs.
2766 (sh_elf64_check_relocs): Support new PIC relocs.
2767 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2768 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2769 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2770 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2771 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2772 movi_shori_putval, movi_3shori_putval,
2773 sh64_elf64_create_dynamic_sections,
2774 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2775 sh64_elf64_size_dynamic_sections,
2776 sh64_elf64_finish_dynamic_symbol,
2777 sh64_elf64_finish_dynamic_sections): New.
2778 (elf_backend_create_dynamic-sections,
2779 bfd_elf64_bfd_link_hash_table_create,
2780 elf_backend_adjust_dynamic_symbol,
2781 elf_backend_size_dynamic_sections,
2782 elf_backend_finish_dynamic_symbol,
2783 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2784 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2785 elf_backend_got_header_size, elf_backend_plt_header_size):
2786 Define.
2787 2001-05-16 Alexandre Oliva <[email protected]>
2788 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2789 match official numbers and names; moved unmaching ones to the
2790 range 0xf2-0xff.
2791 * elf32-sh64.c, elf64-sh64.c: Likewise.
2792 2001-03-12 DJ Delorie <[email protected]>
2793 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2794 sections.
2795 2001-03-12 DJ Delorie <[email protected]>
2796 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2797 be aligned.
2798 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2799 2001-01-14 Hans-Peter Nilsson <[email protected]>
2800 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2801 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2802 .cranges section with SEC_SORT_ENTRIES set.
2803 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2804 incoming sorted .cranges section.
2805 (sh64_bfd_elf_copy_private_section_data): New.
2806 (sh64_elf_final_write_processing): Only sort .cranges and modify
2807 start address if called by linker.
2808 2001-01-08 Ben Elliston <[email protected]>
2809 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2810 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2811 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2812 2001-01-06 Hans-Peter Nilsson <[email protected]>
2813 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2814 line. Add comments before all entries.
2815 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2816 comment.
2817 (sh_elf64_reloc): Correct head comment.
2818 (sh_elf64_relocate_section): Correct spacing.
2819 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2820 instead call reloc_dangerous callback.
2821 <case R_SH_SHMEDIA_CODE>: New case.
2822 (sh_elf64_gc_mark_hook): Correct spacing.
2823 (sh_elf64_check_relocs): Ditto.
2824 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2825 New case.
2826 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2827 functions.
2828 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2829 clarify describing comment. Add comments before all entries.
2830 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2831 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2832 2001-01-06 Hans-Peter Nilsson <[email protected]>
2833 Sort .cranges section in final link. Prepare to set bit 0 on
2834 entry address.
2835 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2836 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2837 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2838 .cranges section.
2839 (sh64_backend_section_from_shdr): New, to recognize
2840 SHT_SH5_CR_SORTED on incoming .cranges section.
2841 (elf_backend_section_from_shdr): Define.
2842 (sh64_elf_final_write_processing): Sort outgoing .cranges
2843 section. (New, temporarily disabled:) Set bit 0 on entry address
2844 according to ISA type.
2845 (sh64_find_section_for_address): New.
2846 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2847 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2848 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2849 bfd_malloc, not xmalloc.
2850 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2851 global.
2852 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2853 temporarily disabled) setting bit 0 on entry address.
2854 (elf_backend_final_write_processing): Define.
2855 2001-01-05 Hans-Peter Nilsson <[email protected]>
2856 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2857 be a proper relocation for PTA and PTB rather than a marker.
2858 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2859 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2860 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2861 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2862 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2863 Zero src_mask.
2864 * elf64-sh64.c: Ditto.
2865 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2866 * elf32-sh64.c: Include opcodes/sh64-opc.h
2867 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2868 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2869 parameters. No unused parameters. Caller changed.
2870 <case R_SH_PT_16>: New case.
2871 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2872 * Makefile.in: Regenerate.
2873 2000-12-30 Hans-Peter Nilsson <[email protected]>
2874 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2875 all code sections.
2876 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2877 (sh64_elf_merge_private_data): Ditto.
2878 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2879 to access stored section flags.
2880 (sh64_elf_final_write_processing): Return immediately unless
2881 called by linker. Use sh64_elf_section_data (cranges) to get size
2882 of linker-generated cranges entries.
2883 (sh64_elf_copy_private_data): Add missing "return true".
2884 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2885 (sh_elf64_merge_private_data): Ditto.
2886 2000-12-19 Hans-Peter Nilsson <[email protected]>
2887 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2888 elf64-sh64.c:sh64_elf_fake_sections.
2889 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2890 2000-12-18 Hans-Peter Nilsson <[email protected]>
2891 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2892 (sh64_elf_final_write_processing): New.
2893 (elf_backend_final_write_processing): Define.
2894 (sh64_elf_fake_sections): Get header flags from tdata field.
2895 (sh64_elf_copy_private_data): Do not call
2896 sh64_elf_copy_private_data_internal, just copy e_flags field.
2897 (sh64_elf_merge_private_data): Do not call
2898 sh64_elf_copy_private_data_internal.
2899 2000-12-12 Hans-Peter Nilsson <[email protected]>
2900 Remove EF_SH64_ABI64, let ELF size make difference.
2901 Remove SH64-specific BFD section flag.
2902 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2903 containing SHmedia through elf_section_data (asect)->tdata
2904 non-zero, not using a BFD section flag.
2905 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2906 (sh64_elf_merge_private_data): Similar.
2907 (elf_backend_section_flags): Don't define.
2908 (sh64_elf_backend_section_flags): Delete.
2909 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
2910 not EF_SH64_ABI64.
2911 (sh_elf64_merge_private_data): Similar.
2912 * section.c (Section flags definitions): Don't define
2913 SEC_SH_ISA_SHMEDIA.
2914 (bfd-in2.h): Regenerate.
2915 2000-12-09 Hans-Peter Nilsson <[email protected]>
2916 Make DataLabel references work with partial linking.
2917 * elf32-sh64.c: Fix formatting.
2918 (sh64_elf_link_output_symbol_hook): New.
2919 (elf_backend_link_output_symbol_hook): Define to
2920 sh64_elf_link_output_symbol_hook.
2921 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
2922 undefined if partial linking. Adjust sanity check.
2923 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
2924 (elf_backend_link_output_symbol_hook): Define to
2925 sh64_elf64_link_output_symbol_hook.
2926 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
2927 undefined if partial linking. Adjust sanity check.
2928 2000-12-07 Hans-Peter Nilsson <[email protected]>
2929 Implement semantics for inter-file DataLabel references.
2930 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
2931 (sh64_elf64_add_symbol_hook): New.
2932 (sh_elf64_relocate_section): If passing an indirect symbol with
2933 st_type STT_DATALABEL on the way to a symbol with st_other
2934 STO_SH5_ISA32, do not bitor 1 to the relocation.
2935 (elf_backend_add_symbol_hook): Define to
2936 sh64_elf64_add_symbol_hook.
2937 * elf64-sh32.c: Tweak comments.
2938 (DATALABEL_SUFFIX): Define.
2939 (sh64_elf_add_symbol_hook): New.
2940 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
2941 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
2942 symbol with st_type STT_DATALABEL on the way to a symbol with
2943 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
2944 2000-12-05 Hans-Peter Nilsson <[email protected]>
2945 Pass through STT_DATALABEL.
2946 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
2947 (elf_backend_get_symbol_type): Define.
2948 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
2949 (elf_backend_get_symbol_type): Define.
2950 2000-11-30 Hans-Peter Nilsson <[email protected]>
2951 * elf32-sh64.c: Tweak comments.
2952 (sh64_elf_copy_private_data_internal): Add prototype.
2953 (bfd_elf32_bfd_set_private_flags): Define.
2954 (sh64_elf_copy_private_data_internal): Compare machine name, not
2955 textual BFD target name, to check whether to copy section flag
2956 SHF_SH5_ISA32.
2957 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
2958 Tweak section-contents-type-mismatch message.
2959 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
2960 Validize reloc-types.
2961 * elf64-sh64.c: New file.
2962 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
2963 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
2964 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
2965 Regenerate dependencies.
2966 * Makefile.in: Regenerate.
2967 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
2968 bfd_elf64_sh64l_vec.
2969 * configure.in: Handle bfd_elf64_sh64_vec and
2970 bfd_elf64_sh64l_vec.
2971 * configure: Regenerate.
2972 * po/POTFILES.in: Regenerate.
2973 * po/bfd.pot: Regenerate.
2974 2000-11-29 Hans-Peter Nilsson <[email protected]>
2975 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
2976 anything else but EF_SH64 and EF_SH64_ABI64.
2977 (sh64_elf_merge_private_data): Emit error for anything else but
2978 EF_SH64 and EF_SH64_ABI64.
2979 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
2980 from targ_selvecs.
2981 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
2982 bfd_elf32_sh64l_vec as a temporary measure.
2983 * configure: Regenerate.
2984 2000-11-27 Hans-Peter Nilsson <[email protected]>
2985 * cpu-sh.c (arch_info_struct): Include sh5 item
2986 unconditionalized.
2987 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
2988 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
2989 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
2990 * elf32-sh64.c: Tweak comments.
2991 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
2992 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
2993 (sh64_elf_copy_private_data_internal): Wrap long line.
2994 (sh64_elf_merge_private_data): Rewrite to allow objects from
2995 SH64 subsets to be linked together.
2996 (INCLUDE_SHMEDIA): Define.
2997 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
2998 Parenthesize plus-expression inside or-expression.
2999 <global symbol>: Ditto.
3000 (sh_elf_set_mach_from_flags): Remove code refusing
3001 deleted EF_SH64_32BIT_ABI flag.
3002 2000-11-26 Hans-Peter Nilsson <[email protected]>
3003 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
3004 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
3005 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
3006 (sh_elf_relocate_section) <local symbol>: Or 1 in
3007 calculation of relocation if sym->st_other & STO_SH5_ISA32.
3008 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
3009 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
3010 relocation.
3011 2000-11-24 Hans-Peter Nilsson <[email protected]>
3012 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
3013 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
3014 Regenerate dependencies.
3015 * Makefile.in: Regenerate.
3016 * archures.c: Add bfd_mach_sh5.
3017 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
3018 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
3019 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
3020 * configure: Regenerate.
3021 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
3022 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
3023 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3024 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
3025 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
3026 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
3027 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
3028 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
3029 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
3030 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
3031 in item for SH5.
3032 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
3033 for SHmedia relocs.
3034 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
3035 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
3036 shmedia_prepare_reloc, goto final_link_relocate if it returns
3037 non-zero, else fail as before.
3038 (sh_elf_set_mach_from_flags): Provide function only if not defined
3039 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
3040 (sh_elf_set_private_flags): Provide function only if not defined
3041 as a macro.
3042 (sh_elf_copy_private_data): Similar.
3043 (sh_elf_merge_private_data): Similar.
3044 * section.c (SEC_SH_ISA_SHMEDIA): New.
3045 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
3046 * elf32-sh64.c: New file.
3047 * libbfd.h: Regenerate.
3048 * bfd-in2.h: Regenerate.
3049 * po/POTFILES.in: Regenerate.
3050 * po/bfd.pot: Regenerate.
3051 * bfd-in2.h: Regenerate.
3052 * libbfd.h: Regenerate.
3053
e108f470
DJ
30542002-02-07 Daniel Jacobowitz <[email protected]>
3055
3056 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
3057 been included, not drag it in.
3058 * bfd-in2.h: Regenerate.
3059
259d18a3
L
30602002-02-06 H.J. Lu ([email protected])
3061
3062 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
3063 the mach and ISA fields if necessary.
3064
f13b834e
NC
30652002-02-06 Nick Clifton <[email protected]>
3066
3067 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
3068 ARM architecture when an F_ARM_5 flag is detected, since we cannot
3069 be sure exactly which architecture this represents.
3070
82f6addb
NC
30712002-02-05 Nick Clifton <[email protected]>
3072
3073 * po/tr.po: Updated translation.
3074
899f54f5
AM
30752002-02-05 Alan Modra <[email protected]>
3076
3077 From Jimi X <[email protected]>
3078 * archures (bfd_mach_ppc64): Define.
3079 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
3080 (bfd_powerpc_arch): Define.
3081 * bfd-in2.h: Regenerate.
3082 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
3083 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
3084 (bfd_powerpc_archs): Add default powerpc64 arch.
3085
248866a8
AM
30862002-02-05 Alan Modra <[email protected]>
3087
3088 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
3089 against section syms in readonly sections. Don't do the global
3090 sym check if we find one.
3091 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
3092 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
0a6958db 3093 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
248866a8
AM
3094 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
3095 (elf_s390_grok_prstatus): Add missing prototype.
3096
4fa5c2a8
HPN
30972002-02-04 Hans-Peter Nilsson <[email protected]>
3098
3099 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
3100 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
3101 Call bfd_get_section_by_name only once. Initialize
3102 bpodata->n_bpo_relocs_this_section.
3103 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
3104 referring to DSOs.
3105 (bpo_reloc_request_sort_fn): Don't use difference of values as
3106 return-value.
3107
537c972e
DB
31082002-02-02 David O'Brien <obrien@FreeBSD>
3109
3110 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
3111 version 4.5 and later the same as 5-CURRENT.
3112 * configure: Re-generate.
3113
006336b8
JT
31142002-02-02 Jason Thorpe <[email protected]>
3115
3116 * config.bfd (hppa*-*-netbsd*): New target.
3117
6c571f00
PT
31182002-01-31 Philipp Thomas <[email protected]>
3119
19397422
AM
3120 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
3121 to front of message. Unify messages with elf32-arm.h. Use
3122 commas where neccessary.
3123 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
3124 ERROR in messages. Unify messages with coff-arm.c. Correct
3125 VFP/FPA error message.
3126 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
3127 APCS-32 for translation.
6c571f00 3128
930b4cb2
HPN
31292002-02-01 Hans-Peter Nilsson <[email protected]>
3130
3131 Perform on-demand global register allocation from
3132 R_MMIX_BASE_PLUS_OFFSET relocs.
3133 * elf64-mmix.c (struct bpo_reloc_section_info, struct
3134 bpo_reloc_request, struct bpo_greg_section_info): New.
3135 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
3136 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
3137 _bfd_mmix_check_all_relocs,
3138 _bfd_mmix_prepare_linker_allocated_gregs,
3139 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
3140 (elf_mmix_howto_table): Correct src_mask for most relocs.
3141 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
3142 case.
3143 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
3144 case. Fix typo in comment. New label do_mmix_reloc.
3145 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
3146 store first object file with a base-plus-offset reloc. Call
3147 mmix_elf_check_common_relocs for the part common with mmo.
3148 (mmix_elf_final_link): Write out linker-allocated register
3149 contents section.
3150 (elf_backend_gc_sweep_hook): Define.
3151 (bfd_elf64_bfd_relax_section): Define.
3152
3153 * mmo.c: Don't include <ctype.h>
3154 (mmo_init): Correct init-once logic.
3155
3e36d993
TR
31562002-02-01 Tom Rix <[email protected]>
3157
3158 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
3159
ba323545
AM
31602002-02-01 Alan Modra <[email protected]>
3161
3162 * Makefile.am: Run "make dep-am"
3163 * Makefile.in: Regenerate.
3164
012884d6
DB
31652002-01-31 David O'Brien <obrien@FreeBSD>
3166
3167 * configure.in: Recognize the differences in core files from FreeBSD
3168 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
3169 5-CURRENT.
3170 * configure: Regenerate.
3171
3b16e843
NC
31722002-01-31 Ivan Guzvinec <[email protected]>
3173
3174 * coff-or32.c: New file.
3175 * cpu-or32.c: New file.
3176 * elf32-or32.c: New file.
3177 * archures.c: Add support for or32.
3178 * targets.c: Add support for or32.
3179 * bfd-in2.h: Regenerate.
7dc0ab31 3180 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3b16e843
NC
3181 coff_write_object_contents): Add support for or32.
3182 * config.bfd: Add target.
3183 * configure.in: Add support for or32.
3184 * configure: Regenerate.
3185 * Makefile.am: Add support for or32.
3186 * Makefile.in: Regenerate.
3b16e843
NC
3187 * po/SRC-POTFILES.in: Add or32 files.
3188 * po/bfd.pot: Regenerate.
7dc0ab31 3189
caf8ca8e
NC
31902002-01-31 Nick Clifton <[email protected]>
3191 Don Lindsay <[email protected]>
3192
3193 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
3194 false' with a return of a bfd_reloc_ error code.
3195
e5dfef09
HPN
31962002-01-31 Hans-Peter Nilsson <[email protected]>
3197
3198 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3199 unexport unreferenced symbols when --export-dynamic. Call
3200 _bfd_elf_strtab_delref when unexporting.
3201
4e4770d0
DJ
32022002-01-30 Daniel Jacobowitz <[email protected]>
3203
3204 * bfd-in.h: Include <stdbool.h> if it is available.
3205 * bfd-in2.h: Regenerated.
3206
e1fa50e7
AM
32072002-01-31 Alan Modra <[email protected]>
3208
3209 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
3210 not go via the plt.
3211
b5f79c76
NC
32122002-01-30 Nick Clifton <[email protected]>
3213
b5f79c76
NC
3214 * archures.c: Tidy up formatting of embedded comments.
3215 * bfd.c: Tidy up formatting of embedded comments.
7dc0ab31 3216 * bfd-in.h: Fix formatting of comments.
b5f79c76
NC
3217 * reloc.c: Tidy up formatting of ordinary & embedded comments.
3218 * section.c: Tidy up formatting of embedded comments.
3219 * syms.c: Tidy up formatting of embedded comments.
3220 * targets.c: Tidy up formatting of embedded comments.
3221
3222 * bfd-in2.h: Regenerate.
3223
ca09e32b
NC
32242002-01-30 Nick Clifton <[email protected]>
3225
3226 * vms-tir.c (cmd_name): New function.
3227 (tir_cmd_name): New function.
3228 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
3229 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
3230 Fix formatting.
7dc0ab31 3231
ca09e32b
NC
3232 * peXXigen.c (pe_print_idata): Rearrange message to aid in
3233 translation.
3234 (pe_print_pdata): Rearrange message to aid in translation.
3235
3236 * libbfd.c (warn_deprecated): Rearrange error message to aid in
3237 translation.
3238
3239 * ihex.c (ihex_write_object_contents): Fix spelling typo.
3240
3241 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
3242
3243 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
3244 message to aid in translation.
3245
3246 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
3247 to aid in translation.
3248
3249 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
3250
7dc0ab31 32512002-01-30 Philipp Thomas <[email protected]>
ae1a89b7
PT
3252
3253 * coff-arm.c, elf32-elf.h: Unify messages.
3254
05f64ac6
NC
32552002-01-30 Nick Clifton <[email protected]>
3256
3257 * po/sv.po: Updated translation.
3258
f5a3e38a
NC
32592002-01-30 Philipp Thomas <[email protected]>
3260
3261 * dwarf2.c (read_abbrev): Use full section name in error message.
3262 (decode_line_info): Likewise.
661a3fd4
NC
3263
3264 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
3265 message.
3266
d926e03d
AM
32672002-01-30 Alan Modra <[email protected]>
3268
3269 * elf64-ppc.c (func_desc_adjust): Only provide missing function
3270 descriptor symbols for undefined function code syms. Clear
3271 ELF_LINK_NON_ELF so that they can stay weak.
3272
030d18fb 32732002-01-29 Chris Demetriou <[email protected]>
7dc0ab31 3274 Mitch Lichtenberg <[email protected]>
030d18fb
CD
3275
3276 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
3277 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
3278 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
3279 generation.
3280 * bfd-in2.h: Regenerate.
3281
fcc76bea
CD
32822002-01-29 Chris Demetriou <[email protected]>
3283
3284 * elf32-mips.c: Add additional comments about HI16 relocation
3285 processing.
3286 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
3287 pc-relative relocations. (Reverts change made on 2001-10-31.)
3288 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
3289 for pc-relative relocations.
3290 (mips_elf_calculate_relocation): Add a comment about a kludge
3291 in the R_MIPS_GNU_REL_HI16 handling.
3292 (_bfd_mips_elf_relocate_section): Implement that kludge;
3293 adjust pc-relative HI16 relocation for difference in HI16 and
3294 LO16 addresses, since it can't easily be done in
3295 mips_elf_calculate_relocation.
3296
f9cd9119
MS
32972002-01-29 Martin Schwidefsky <[email protected]>
3298
3299 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
3300 relocations with PC32 relocations for undefined or weak symbols.
3301 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
3302 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
3303
702248bb
JT
33042002-01-28 Jason Thorpe <[email protected]>
3305
3306 * elfcore.h (elf_core_file_p): Improve comment for last change.
3307
4867be41
DJ
33082002-01-27 Daniel Jacobowitz <[email protected]>
3309
3310 * configure: Regenerated.
3311
a94cef6a
JT
33122002-01-27 Jason Thorpe <[email protected]>
3313
3314 * elfcore.h (elf_core_file_p): Set the machine architecture
3315 before processing the program headers.
3316
7562a296
HPN
33172002-01-26 Hans-Peter Nilsson <[email protected]>
3318
966abd70
HPN
3319 * configure.in <64-bit configuration>: If using gcc, check and
3320 emit error for egcs-1.1.2.
3321 * configure: Regenerate.
3322
e8eab623
NC
33232002-01-26 Egor Duda <[email protected]>
3324
3325 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3326 as possible to avoid stack corruption.
3327
73896efb
RH
33282002-01-26 Richard Henderson <[email protected]>
3329
3330 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3331 for non-allocated sections.
3332
33332002-01-25 Mark Kettenis <[email protected]>
c106e334
MK
3334
3335 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3336 prstat.pr_reg even if it is a struct.
3337
73896efb 33382002-01-25 Steve Ellcey <[email protected]>
254ed743
NC
3339
3340 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3341
3d66c4f7
NC
33422002-01-25 Philipp Thomas <[email protected]>
3343
3344 * coffgen.c (coff_print_symbol): Don't mark info message
3345 for translation.
3346
9460ecda
NC
33472002-01-25 Nick Clifton <[email protected]>
3348
3349 * po/fr.po: Updated translation.
3350 * po/es.po: Updated translation.
3351
cc9ff76a
AM
33522002-01-25 Philipp Thomas <[email protected]>
3353
3354 * coff-alpha.c (alpha_relocate_section): Unify warning message
3355 for GP relative relocations without GP defined.
3356 * coff-mips.c (mips_relocate_section): Likewise.
3357
c68836a9
AM
33582002-01-25 Alan Modra <[email protected]>
3359
3360 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3361 unsigned overflow when new_offset < old_offset.
3362
e8eab623 33632002-01-24 Philipp Thomas <[email protected]>
391154e9
NC
3364
3365 * bfd.c (_bfd_abort): Fix typo.
3366
8ba89f17
RH
33672002-01-23 Richard Henderson <[email protected]>
3368
3369 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
3370 plt entries for undefweak symbols.
3371
c6953948
NC
33722002-01-23 Steve Ellcey <[email protected]>
3373
3374 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
3375 DEFAULT_VECTOR.
3376 (bfd_elf64_ia64_hpux_big_vec): Ditto.
3377 (bfd_elf32_h8300_vec): Ditto.
3378
41bd81ab
AM
33792002-01-23 Alan Modra <[email protected]>
3380
3381 * elf64-ppc.c: Remove stale part of ABI comment.
3382 (NO_OPD_RELOCS): Define.
3383 (ppc64_elf_check_relocs): Use it.
3384 (ppc64_elf_relocate_section): Here too.
3385 (build_one_stub): Don't point function syms at the stub. Instead,
3386 hijack plt.offset.
3387 (ppc64_elf_relocate_section): Check whether REL24 relocs should
3388 really go to the stub. Make all dynamic relocs in opd against
3389 locals.
3390 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
3391 plt.offset.
3392
f304919d
RH
33932002-01-22 Richard Henderson <[email protected]>
3394
3395 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
3396
c0ef99a7
AM
33972002-01-22 Alan Modra <[email protected]>
3398
60ee0d4a
AM
3399 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
3400 TOC_BASE_OFF adjustment.
3401
c0ef99a7
AM
3402 * Makefile.am: Run "make dep-am".
3403 * Makefile.in: Regenerate.
3404 * po/SRC-POTFILES.in: Regenerate.
3405
64328b46
AM
34062002-01-22 John David Anglin <[email protected]>
3407
3408 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
3409 host defines.
3410
59953665 34112002-01-21 Hans-Peter Nilsson <[email protected]>
58255df3
HPN
3412
3413 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
3414 Check for and emit error if sgot is NULL at this point.
3415
9596feea
JT
34162002-01-21 Jason Thorpe <[email protected]>
3417
3418 * config.bfd (ia64*-*-netbsd*): New target.
3419
7b45c6e1
AM
34202002-01-21 Thomas Klausner <[email protected]>
3421
3422 * som.c (som_write_space_strings): Comment typo fix.
3423
e5094212
AM
34242002-01-21 Alan Modra <[email protected]>
3425
e86ce104
AM
3426 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
3427 is_func_descriptor fields.
3428 (link_hash_newfunc): Init them.
3429 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
3430 dot are candidates for plt entries. When processing .opd relocs,
3431 set function descriptor strings to point inside function code
3432 string, and set new ppc_link_hash_entry fields.
3433 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
3434 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
3435 function descriptors. It's now done in..
3436 (func_desc_adjust): New.
3437 (ppc64_elf_func_desc_adjust): New.
3438 (define elf_backend_always_size_sections): Define.
3439 (ppc64_elf_hide_symbol): New.
3440 (define elf_backend_hide_symbol): Define.
3441 (allocate_dynrelocs): Remove code looking up function descriptors
3442 as that has been done earlier.
3443 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
3444 table.
3445 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
3446 up function descriptor.
3447 (build_one_stub): Look up the function code sym. Check for
3448 invalid plt offsets.
3449 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
3450 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
3451
e5094212
AM
3452 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
3453 boolean param.
3454 (_bfd_elf_link_hash_hide_symbol): Likewise.
3455 * elflink.h (elf_link_add_object_symbols): Adjust call to
3456 elf_backend_hide_symbol.
3457 (elf_fix_symbol_flags): Likewise.
3458 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
3459 than bfd_alloc.
3460 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
3461 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
3462 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3463 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
3464 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
3465 and adjust to suit.
3466 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
3467 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
3468 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3469
40b8271b
AM
34702002-01-18 Alan Modra <[email protected]>
3471
3472 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
3473 dynamic function descriptor symbol, not the associated function
3474 symbol.
3475
55baa95b
EC
34762002-01-17 Eric Christopher <[email protected]>
3477
3478 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
3479
328577ad
NC
34802002-01-17 Nick Clifton <[email protected]>
3481
3482 * po/bfd.pot: Regenerate.
3483 * po/fr.po: Regenerate.
3484
af746e92
AM
34852002-01-17 Alan Modra <[email protected]>
3486
3487 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
3488 Remove "Elf_Internal_Shdr *" param.
3489 (_bfd_mips_elf_section_from_bfd_section): Ditto.
3490 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
3491 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
3492 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
3493 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
3494 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
3495 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
3496 function to override special sections. Remove hdr arg from
3497 backend call, and don't loop.
3498
175e9962
EC
34992002-01-16 Eric Christopher <[email protected]>
3500
3501 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
3502 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
3503 relocations requiring gp0 and gp.
3504
96a846ea
RE
35052002-01-16 Richard Earnshaw <[email protected]>
3506
175e9962 3507 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
96a846ea
RE
3508 EF_ARM_VFP_FLOAT.
3509 (elf32_arm_print_private_bfd_data): Likewise.
3510
af3ae48d
NC
35112002-01-16 Nick Clifton <[email protected]>
3512
3513 * po/tr.po: Import new version.
3514
10ed1bba
AM
35152002-01-16 Alan Modra <[email protected]>
3516
3517 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
3518 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
3519 (ORI_R0_R0_0): Correct.
3520
5d1634d7
AM
35212002-01-16 Alan Modra <[email protected]>
3522
3523 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
3524 when plt_not_loaded.
3525 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
3526 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
3527 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
3528 (ppc64_elf_glink_code): Delete.
3529 (PPC64_ELF_GLINK_SIZE): Delete.
3530 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
3531 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
3532 ORI_R0_R0_0): Define.
3533 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
3534 (struct ppc_link_hash_table): Add sstub and plt_overflow.
3535 (ppc64_elf_link_hash_table_create): Init them.
3536 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
3537 Don't copy to shared lib.
3538 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
3539 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
3540 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3541 room for .stub and .glink code.
3542 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3543 DT_PPC64_GLINK.
3544 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3545 bfd_elf64_bfd_final_link.
3546 (bfd_elf64_bfd_final_link): Don't define.
3547 (ppc64_elf_size_stubs): New.
3548 (build_plt_stub): New.
3549 (build_one_stub): New.
3550 (ppc64_elf_build_stubs): New.
3551 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3552 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3553 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3554 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3555 case output sections not separate. Adjust DT_RELASZ to not
3556 include plt relocs. Set reserved got entry. Set got and plt
3557 entry size.
3558 (elf_backend_got_header_size): Set to 8.
3559 * elf64-ppc.h: New file.
3560
c601ffdb
AM
35612002-01-16 Alan Modra <[email protected]>
3562
3563 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3564 sections, use bfd_section_list_remove.
3565 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3566 * elflink.h (elf_link_add_object_symbols): When removing all
3567 sections, use bfd_section_list_clear.
3568
8fb4cb7f
NC
35692002-01-15 Nick Clifton <[email protected]>
3570
3571 * po/sv.po: New file: Swedish translation.
3572 * configure.in (ALL_LINGUAS): Add sv.
3573 * configure: Regenerate.
3574
d3c456e9
JJ
35752002-01-15 Jakub Jelinek <[email protected]>
3576
3577 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3578 * elf.c (merge_sections_remove_hook): New function.
3579 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3580 _bfd_merge_sections.
3581 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3582 * libbfd.h: Rebuilt.
3583 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3584 Call remove_hook if a SEC_EXCLUDE section is encountered.
3585
1f7fd478
NC
35862002-01-15 Nick Clifton <[email protected]>
3587
3588 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3589 (xstormy16_reloc_map): Initialise new field with correct howto
3590 table.
3591 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3592 howto entry.
3593
b87011e9
MS
35942002-01-10 Michael Snyder <[email protected]>
3595
3596 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3597 (elfcore_write_pstatus): Use long instead of pid_t;
3598 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3599
175e9962 36002002-01-09 Jason Thorpe <[email protected]>
b4db1224
JT
3601
3602 * elf.c: Update copyright years.
3603 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3604 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3605
7c76fa91
MS
36062002-01-08 Michael Snyder <[email protected]>
3607
3608 Add capability to write corefile note sections, for gdb.
3609 * elf.c (elfcore_write_note): New function.
3610 (elfcore_write_prpsinfo): New function.
3611 (elfcore_write_prstatus): New function.
3612 (elfcore_write_pstatus): New function.
3613 (elfcore_write_prfpreg): New function.
3614 (elfcore_write_prxfpreg): New function.
97996af6 3615 * elf-bfd.h: Add prototypes for above functions.
7c76fa91 3616
e1fddb6b
AO
36172002-01-08 Alexandre Oliva <[email protected]>
3618
3619 * elf.c (elf_fake_sections): Propagate errors from
3620 elf_backend_fake_section.
3621
8d05742f
JT
36222002-01-07 Jason Thorpe <[email protected]>
3623
3624 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3625 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3626 (elf32-sh-nbsd.lo): New rule.
3627 * Makefile.in: Regenerate.
3628 * config.bfd (sh*le-*-netbsdelf*): New target.
3629 (sh*-*-netbsdelf*): New target.
3630 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3631 (bfd_elf32_shnbsd_vec): New vector.
3632 (bfd_elf32_shlnbsd_vec): New vector.
3633 * configure: Regenerate.
3634 * elf32-sh-nbsd.c: New file.
3635 * targets.c: Update copyright years.
175e9962 3636 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
8d05742f
JT
3637 bfd_elf32_shnbsd_vec.
3638
1dba4cb4
AH
36392002-01-07 Aldy Hernandez <[email protected]>
3640
3641 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3642
47b22aef
GK
36432002-01-07 Geoffrey Keating <[email protected]>
3644
3645 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3646 of a symbol in a section that will be deleted.
3647
be2d1673
NC
36482002-01-07 Nick Clifton <[email protected]>
3649
3650 * po/es.po: New file: Spanish translation.
3651 * configure.in (ALL_LINGUAS): Add es.
3652 * configure: Regenerate.
3653
d9cf1b54
AM
36542002-01-06 Steve Ellcey <[email protected]>
3655
3656 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3657 argument so we can handle HP-UX specially.
3658 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3659 (elfNN_hpux_backend_section_from_bfd_section): New for support
3660 of SHN_IA_64_ANSI_COMMON.
3661 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3662 (is_unwind_section_name): Add special HP-UX support.
3663 (elfNN_ia64_section_from_shdr): Add support for more sections.
3664 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3665 add support for more sections.
3666 (elfNN_ia64_additional_program_headers): Modify
3667 is_unwind_section_name call.
3668 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3669 only one unwind section in segment.
3670
3f3c5c34
AM
36712002-01-06 Alan Modra <[email protected]>
3672
3673 * syms.c (_bfd_generic_make_empty_symbol): New function.
3674 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3675 _bfd_generic_make_empty_symbol.
3676 * libbfd.h: Regenerate.
3677 * bfd-in2.h: Regenerate.
3678 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3679 (hppabsd_core_get_symtab_upper_bound): Don't define.
3680 (hppabsd_core_get_symtab): Likewise.
3681 (hppabsd_core_print_symbol): Likewise.
3682 (hppabsd_core_get_symbol_info): Likewise.
3683 (hppabsd_core_bfd_is_local_label_name): Likewise.
3684 (hppabsd_core_get_lineno): Likewise.
3685 (hppabsd_core_find_nearest_line): Likewise.
3686 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3687 (hppabsd_core_read_minisymbols): Likewise.
3688 (hppabsd_core_minisymbol_to_symbol): Likewise.
3689 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3690 Formatting fixes.
3691 * hpux-core.c: Similarly.
3692 * irix-core.c: Similarly.
3693 * osf-core.c: Similarly.
3694 * sco5-core.c: Similarly.
3695 * binary.c (binary_make_empty_symbol): Remove function, define as
3696 _bfd_generic_make_empty_symbol.
3697 * ihex.c (ihex_make_empty_symbol): Likewise.
3698 * mmo.c (mmo_make_empty_symbol): Likewise.
3699 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3700 * srec.c (srec_make_empty_symbol): Likewise.
3701 * versados.c (versados_make_empty_symbol): Likewise.
3702 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3703 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3704 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3705 rather than _bfd_vms_make_empty_symbol.
3706 * vms-misc.c (new_symbol): Likewise.
3707
3f0a7f7f
AM
37082002-01-05 Alan Modra <[email protected]>
3709
9e7b37b3
AM
3710 * section.c (bfd_section_init): Remove unnecessary initialisations.
3711 (bfd_section_list_clear): New function.
3712 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3713 (_bfd_strip_section_from_output): Use them.
3714 * coffcode.h (coff_set_alignment_hook): Likewise.
3715 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3716 * elf64-mips.c (mips_elf64_final_link): Likewise.
3717 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3718 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3719 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3720 * bfd-in2.h: Regenerate.
3721
3722 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3723 rather than doing our own section handling. Clean up after errors
3724 with bfd_release and bfd_section_list_clear. Handle unexpected
3725 flags.
3726 * aoutf1.h (sunos4_core_file_p): Likewise.
3727 * aix386-core.c (aix386_core_file_p): Likewise.
3728 * cisco-core.c (cisco_core_file_validate): Likewise.
3729 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3730 * trad-core.c (trad_unix_core_file_p): Likewise.
3731
3732 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3733 with bfd_release and bfd_section_list_clear.
3734 * hpux-core.c (hpux_core_core_file_p): Likewise.
3735 * irix-core.c (irix_core_core_file_p): Likewise.
3736 * lynx-core.c (lynx_core_file_p): Likewise.
3737 * osf-core.c (osf_core_core_file_p): Likewise.
3738 * rs6000-core.c (rs6000coff_core_p): Likewise.
3739 * sco5-core.c (sco5_core_file_p): Likewise.
3740
3f0a7f7f
AM
3741 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3742 sign extension adjustments without conditionals.
3743
a3aa38ee
JJ
37442002-01-04 Jakub Jelinek <[email protected]>
3745
3746 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3747 CIE at .eh_frame start is removed due to no FDEs referencing it.
3748
8a8b2d4b
AJ
37492002-01-04 Jason Thorpe <[email protected]>
3750
3751 * config.bfd (x86_64-*-netbsd*): New target.
3752 * configure.in (x86_64-*-netbsd*): Set COREFILE
3753 to netbsd-core.lo.
3754 * configure: Regenerated.
3755
04b5af89
TR
37562002-01-03 Tom Rix <[email protected]>
3757
3758 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3759 for recent bfd_make_section_anyway change.
3760
51c5503b
NC
37612002-01-03 Nick Clifton <[email protected]>
3762
3763 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3764 R_ARM_THM_PC11 reloc.
3765
07f7c046
NC
37662002-01-02 Nick Clifton <[email protected]>
3767
3768 * configure.in (LINGUAS): Add ja.
3769 * configure: Regenerate.
3770 * po/ja.po: Import from translation project's web site.
3771
5eefb65f
NC
37722002-01-02 Nick Clifton <[email protected]>
3773
3774 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3775 messages to ease translation into other languages.
3776
39e90f10 3777For older changes see ChangeLog-0001
56882138
AM
3778\f
3779Local Variables:
3780mode: change-log
3781left-margin: 8
3782fill-column: 74
3783version-control: never
3784End:
This page took 0.709385 seconds and 4 git commands to generate.