* targets.c (bfd_target_list): Don't return the default target twice.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2002-10-21 Alan Modra <amodra@bigpond.net.au>
2
3 * targets.c (bfd_target_list): Don't return the default target twice.
4
5 2002-10-21 Elias Athanasopoulos <eathan@otenet.gr>
6
7 * archive.c (_bfd_archive_bsd_update_armap_timestamp): Replace
8 perror with bfd_perror.
9
10 2002-10-19 H.J. Lu <hjl@gnu.org>
11
12 * elflink.h (elf_link_add_object_symbols): Correctly handle
13 DT_RPATH and DT_RUNPATH.
14
15 2002-10-19 Mark Kettenis <kettenis@gnu.org>
16
17 * elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.
18
19 2002-10-17 Denis Chertykov <denisc@overta.ru>
20
21 * elf32-ip2k.c (ELF_MACHINE_ALT1): Define alternate machine code
22 for ip2k port.
23
24 2002-10-17 Alan Modra <amodra@bigpond.net.au>
25
26 * elfxx-target.h (USE_REL): Don't define as 1.
27 * elf32-arm.h (USE_REL): Provide a default define of 0.
28 Use #if rather than #ifdef when testing USE_REL.
29 * elf32-m32r.c: Likewise.
30
31 * elf32-arc.c (USE_REL): Define as 1.
32 * elf32-d10v.c (USE_REL): Likewise.
33 * elf32-m32r.c (USE_REL): Likewise.
34 * elf32-m68hc11.c (USE_REL): Likewise.
35 * elf32-m68hc12.c (USE_REL): Likewise.
36 * elf32-or32.c (USE_REL): Likewise.
37 * elfarm-nabi.c (USE_REL): Likewise.
38
39 2002-10-16 Jakub Jelinek <jakub@redhat.com>
40
41 * config.bfd (s390-*-linux*): Add targ64_selvecs.
42 (s390x-*-linux*): Add targ_selvecs.
43
44 2002-10-16 Alan Modra <amodra@bigpond.net.au>
45
46 * Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
47 elf32-i386-fbsd.lo, elf32-i386qnx.lo, elf32-ppcqnx.lo,
48 elf32-sh-lin.lo, elf32-sh64-lin.lo, elf32-sh-nbsd.lo,
49 elf32-sh64-nbsd.lo, elf32-shqnx.lo. Add elf32-qnx.lo.
50 (BFD32_BACKENDS_CFILES): Likewise for corresponding C files.
51 (BFD64_BACKENDS): Remove elf64-sh64-lin.lo, elf64-sh64-nbsd.lo.
52 (BFD64_BACKENDS_CFILES): Likewise for corresponding C files.
53 (SOURCE_HFILES): Add elf32-qnx.h.
54 (BUILD_HFILES): Add bfdver.h.
55 Run "make dep-am".
56 * Makefile.in: Regenerate.
57 * configure.in Update bfd vector dependencies.
58 * configure: Regenerate.
59 * elf32-i386-fbsd.c: Delete. Move code to elf32-i386.c.
60 * elf32-i386qnx.c: Likewise.
61 * elf32-ppcqnx.c: Delete. Move code to elf32-ppc.c.
62 * elf32-sh-nbsd.c: Delete. Move code to elf32-sh.c.
63 * elf32-sh-lin.c: Likewise.
64 * elf32-shqnx.c: Likewise.
65 * elf32-sh64-lin.c: Delete. Move code to elf32-sh64.c.
66 * elf32-sh64-nbsd.c: Likewise.
67 * elf64-sh64-lin.c: Delete. Move code to elf64-sh64.c.
68 * elf64-sh64-nbsd.c: Likewise.
69 * elfarmqnx-nabi.c: Delete. Move code to elfarm-nabi.c.
70 * elf32-arm.h (ELF_MAXPAGESIZE): Always define.
71 * elf32-i386.c: Remove ELF_ARCH and ELF32_I386_C_INCLUDED tests.
72 * elf32-ppc.c: Remove ELF32_PPC_C_INCLUDED tests.
73 * elf32-qnx.h (elf_backend_set_nonloadable_filepos): Always define.
74 (elf_backend_is_contained_by_filepos): Likewise.
75 (elf_backend_copy_private_bfd_data_p): Likewise.
76 Globalize and move functions to..
77 * elf32-qnx.c: ..here. New file.
78 * elf32-sh.c: Remove ELF_ARCH and ELF32_SH_C_INCLUDED tests. Don't
79 emit target vectors when INCLUDE_SHMEDIA.
80 * elf32-sh64.c: Remove ELF_ARCH test. Move TARGET_* etc. defines to
81 end of file.
82 * elf64-sh64.c: Remove ELF_ARCH test.
83 * elfarm-nabi.c: Remove ELFARM_NABI_C_INCLUDED test.
84 * po/BLD-POTFILES.in: Regenerate.
85 * po/SRC-POTFILES.in: Regenerate.
86
87 2002-10-16 Alan Modra <amodra@bigpond.net.au>
88
89 * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
90 loaded with --just-symbols.
91
92 * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define.
93 * elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
94 * elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
95 * elfarmqnx-nabi.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define.
96
97 2002-10-15 Richard Henderson <rth@redhat.com>
98
99 * Makefile.am (BFD64_BACKENDS): Remove elf64-alpha-fbsd.
100 (BFD64_BACKENDS_CFILES): Likewise.
101 * configure.in (bfd_elf64_alpha_freebsd_vec): Use elf64-alpha.
102 * elf64-alpha-fbsd.c: Remove file, move code ...
103 * elf64-alpha.c: ... here.
104 * Makefile.in, configure: Rebuild.
105
106 2002-10-14 Richard Henderson <rth@redhat.com>
107
108 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: Increment
109 VALUE, not ADDEND.
110
111 2002-10-14 Stephen Clarke <stephen.clarke@superh.com>
112
113 * elf32-sh.c (elf_sh_link_hash_entry): Replace
114 datalabel_got_offset with union of datalabel_got
115 offset and refcount.
116 (sh_elf_link_hash_newfunc): Initialize datalabel_got.refcount.
117 (allocate_dynrelocs): Delete unnecessary code for
118 STT_DATALABEL type. Create entry in got for
119 datalabel version of symbol if datalabel_got.refcount > 0.
120 (sh_elf_relocate_section): Use datalabel_got union.
121 (sh_elf_gc_sweep_hook): Pull common code to initialize
122 h and eh out of switch statement. Declare seen_stt_datalabel.
123 Initialize it. Decrement datalabel_got.refcount for
124 got relocs when seen_stt_datalabel is true.
125 Decrement local_got_refcounts entry for datalabel got relocs
126 of local symbols.
127 (sh_elf_copy_indirect_symbol): Copy datalabel_got field over.
128 (sh_elf_check_relocs): Declare seen_stt_datalabel.
129 Initialize it. When seen_stt_datalabel is true, increment
130 datalabel_got refcount rather than got.refcount.
131 (sh_elf_finish_dynamic_symbol): Create relocs to
132 initialize got entry for datalabel version of symbol.
133
134 2002-10-14 Alan Modra <amodra@bigpond.net.au>
135
136 * Makefile.am: Run "make dep-am".
137 (BFD_H_FILES): Remove version.h.
138 * bfd-in.h (BFD_VERSION, BFD_VERSION_DATE, BFD_VERSION_STRING): Move..
139 * version.h: ..to here.
140 * configure.in (bfd_version_date): Remove.
141 (AC_OUTPUT): Make bfdver.h from version.h.
142 * bfd.c: #include "bfdver.h".
143 * vms-hdr.c: Likewise.
144 * Makefile.in: Regenerate.
145 * bfd-in2.h: Regenerate.
146 * configure: Regenerate.
147 * po/SRC-POTFILES.in: Regenerate.
148
149 2002-10-14 Alan Modra <amodra@bigpond.net.au>
150
151 * archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
152 bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64,
153 bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64,
154 bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850,
155 bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8,
156 bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple,
157 bfd_mach_ia64_elf64, bfd_mach_ia64_elf32,
158 bfd_mach_ip2022, bfd_mach_ip2022ext,
159 bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber.
160 * bfd-in2.h: Regenerate.
161
162 2002-10-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
163
164 * config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
165 endian vector to targ_selvecs.
166
167 2002-10-13 Alexandre Oliva <aoliva@redhat.com>
168
169 * elfxx-mips.c (mips_elf_calculate_relocation): Take
170 save_addend argument. Don't apply the 32-bit mask to a
171 GPREL32 value if it's to be used in another relocation. Don't
172 use forced-check computation of local_p to decide whether to
173 add gp0 to GPREL16 value. Don't use only the lowest 16 bits
174 of the addend of a non-in-place GPREL16 relocation.
175 (_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
176 mips_elf_calculate_relocation().
177
178 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
179
180 * elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
181 with symbols in other sections if we relaxed something; the sections
182 output offsets must be re-computed before.
183
184 2002-10-12 Stephane Carrez <stcarrez@nerim.fr>
185
186 * elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
187 handling to use Elf_Internal_Sym.
188 (m68hc11_elf_relax_delete_bytes): Likewise.
189
190 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
191
192 * elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
193 sh_elf_object_p, dtpoff_base): New functions.
194 (sh_elf_howto_table): Add TLS relocs.
195 (sh_reloc_map): Likewise.
196 (sh_elf_info_to_howto): Support TLS relocs.
197 (elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
198 (sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
199 New macros.
200 (sh_elf_obj_tdata): New.
201 (elf_sh_link_hash_table): Add tls_ldm_got.
202 (sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
203 (allocate_dynrelocs): Support TLS relocs.
204 (sh_elf_size_dynamic_sections): Likewise.
205 (sh_elf_relocate_section): Support TLS relocs. Don't try to find
206 .rela.got section when found already. Return false after printing
207 error about unresolvable relocation.
208 (sh_elf_gc_sweep_hook): Support TLS relocs.
209 (sh_elf_check_relocs): Likewise.
210 (sh_elf_finish_dynamic_symbol): Likewise.
211 (bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
212 * reloc.c: Add SH TLS relocs.
213 * bfd-in2.h, libbfd.h: Regenerate.
214
215 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
216
217 * Makefile.in: Regenerated.
218
219 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
220
221 * Makefile.am: Run dep-am.
222 (BFD_H_DEP): Add simple.c and linker.c.
223 (BFD32_LIBS): Add simple.lo.
224 (BFD32_LIBS_CFILES): Add simple.c.
225 * Makefile.in: Regenerated.
226 * bfd-in2.h: Regenerated.
227 * simple.c: New file.
228
229 2002-10-11 Alan Modra <amodra@bigpond.net.au>
230
231 * coff-arm.c (record_arm_to_thumb_glue): Avoid type-punned pointers.
232 (record_thumb_to_arm_glue): Likewise.
233 * ecoff.c (ecoff_link_add_externals): Likewise.
234 * elf32-arm.h (record_arm_to_thumb_glue): Likewise.
235 (record_thumb_to_arm_glue): Likewise.
236 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
237 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
238 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
239 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
240 * elf64-ppc.c (func_desc_adjust): Likewise.
241 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
242 (sh64_elf64_create_dynamic_sections): Likewise.
243 * elflink.c (_bfd_elf_create_got_section): Likewise.
244 (_bfd_elf_create_dynamic_sections): Likewise.
245 (_bfd_elf_create_linker_section): Likewise.
246 * elflink.h (elf_add_default_symbol): Likewise.
247 (elf_link_create_dynamic_sections): Likewise.
248 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
249 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Likewise.
250 * elfxx-mips.c (mips_elf_create_got_section): Likewise.
251 (_bfd_mips_elf_add_symbol_hook): Likewise.
252 (_bfd_mips_elf_create_dynamic_sections): Likewise.
253 * linker.c (generic_link_add_symbol_list): Likewise.
254 * xcofflink.c (xcoff_link_add_symbols): Likewise.
255
256 * elfxx-ia64.c (oor_brl, oor_ip): Conditionally define.
257
258 * elf64-ppc.c (edit_opd): Only zero opd syms when function is
259 completely removed. Correct local sym adjustment.
260
261 2002-10-10 Stephen Clarke <stephen.clarke@superh.com>
262
263 * elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
264 Correct mistake in calculation of address of .got.
265 * elf64-sh64.c (elf_sh64_pic_plt_entry_be,
266 elf_sh64_pic_plt_entry_le): Likewise.
267
268 2002-10-09 Richard Shann <richard.shann@superh.com>
269 Stephen Clarke <stephen.clarke@superh.com>
270
271 * Makefile.am: Add entries for elf32-sh64-lin.c and
272 elf64-sh64-lin.c. Regenerate.
273 * Makefile.in: Regenerate.
274 * config.bfd: Change sh64eb-*-linux* and sh64-*-linux*
275 to use sh64 vectors rather than sh vectors.
276 * configure.in: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
277 bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
278 * configure: Regenerate.
279 * elf32-sh64-lin.c: New file.
280 * elf64-sh64-lin.c: New file.
281 * targets.c: Add bfd_elf32_sh64lin_vec, bfd_elf32_sh64blin_vec,
282 bfd_elf64_sh64lin_vec, bfd_elf64_sh64blin_vec.
283
284 2002-10-08 H.J. Lu <hjl@gnu.org>
285
286 * elf32-i386.c (elf_i386_relocate_section): Re-arrange the
287 IE->LE transition for R_386_TLS_IE.
288
289 2002-10-08 Alan Modra <amodra@bigpond.net.au>
290
291 * elf64-ppc.c (edit_opd): Correct test for discarded sections.
292
293 2002-10-07 Mark Elbrecht <snowball3@softhome.net>
294
295 * cofflink.c (mark_relocs): Don't mark relocations in excluded
296 sections.
297
298 2002-10-07 Alan Modra <amodra@bigpond.net.au>
299
300 * elflink.h (elf_link_input_bfd): Remove BFD_VERSION_DATE dependent
301 code.
302
303 * elf64-ppc.c (ppc64_elf_build_stubs): Increment .glink indx.
304
305 2002-10-06 Alan Modra <amodra@bigpond.net.au>
306
307 * opncls.c: Formatting.
308 (_bfd_new_bfd): Use a smaller section hash table.
309
310 2002-10-05 Alexandre Oliva <aoliva@redhat.com>
311
312 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Set the type
313 of the other two relocations packed with a REL32 to NONE.
314
315 2002-10-02 Stephen Clarke <stephen.clarke@superh.com>
316
317 * elf32-sh.c (elf_sh_link_hash_entry): Add gotplt_refcount.
318 (sh_elf_link_hash_newfunc): Initialize it.
319 (allocate_dynrelocs): Transfer gotplt refs from plt.refcount
320 to got.refcount for symbols that are forced local or when
321 we have direct got refs.
322 (sh_elf_gc_sweep_hook): Adjust gotplt_refcount. Use it
323 to correctly adjust got.refcount and plt.refcount.
324 (sh_elf_copy_indirect_symbol): Copy gotplt_refcount across.
325 (sh_elf_check_relocs): Increment gotplt_refcount.
326
327 2002-10-01 Jakub Jelinek <jakub@redhat.com>
328
329 * elf32-i386.c (elf_i386_relocate_section): Fix
330 movl foo@indntpoff, %eax IE->LE transition.
331
332 2002-10-01 Jakub Jelinek <jakub@redhat.com>
333
334 * elf64-x86-64.c (elf64_x86_64_relocate_section): Change TLSGD
335 sequence and its transitions.
336
337 2002-10-01 Jakub Jelinek <jakub@redhat.com>
338
339 * elf32-i386.c (elf_i386_relocate_section): Resolve R_386_TLS_LDO_32
340 to st_value + addend in non-code sections.
341 * elf64-x86-64.c (elf64_x86_64_relocate_section): Resolve
342 R_X86_64_DTPOFF32 to st_value + addend in non-code sections.
343
344 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
345 Ken Raeburn <raeburn@cygnus.com>
346 Aldy Hernandez <aldyh@redhat.com>
347 Eric Christopher <echristo@redhat.com>
348 Richard Sandiford <rsandifo@redhat.com>
349
350 * archures.c (bfd_mach_mips4120, bfd_mach_mips5400): New.
351 (bfd_mach_mips5500): New.
352 * cpu-mips.c (I_mips4120, I_mips5400, I_mips5500): New.
353 (arch_info_struct): Add corresponding entries here.
354 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_4120,
355 E_MIPS_MACH_5400 and E_MIPS_MACH_5500.
356 (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4120,
357 bfd_mach_mips5400 and bfd_mach_mips5500.
358 (_bfd_mips_elf_mach_extends_p): New function.
359 (_bfd_mips_elf_merge_private_bfd_data): Use it to help merge
360 the EF_MIPS_MACH flags.
361 * bfd-in2.h: Regenerate.
362
363 2002-09-28 Jason Thorpe <thorpej@wasabisystems.com>
364
365 * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
366 .got sections.
367
368 2002-09-28 Alan Modra <amodra@bigpond.net.au>
369
370 * elf.c (map_sections_to_segments): Correct test for start of
371 writable section in the same page as end of read-only section.
372
373 2002-09-27 Matt Thomas <matt@3am-software.com>
374
375 * elf32-vax.c (elf_vax_check_relocs): Remove unused
376 local_got_refcounts usage. Remove allocation of got slot.
377 (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage.
378 Remove de-allocation of got slot.
379 (elf_vax_size_dynamic_section): Fix some indentation. Add hash
380 traversal for elf_vax_instantiate_got_entries. Allow empty .got
381 sections to be GC'ed.
382 (elf_vax_instantiate_got_entries): New function.
383 (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove
384 tests that are now handled by elf_vax_instantiate_got_entries.
385 Assert GOT entry falls within .got section size. Remove redundant
386 comparisions. Fix comments.
387
388 2002-09-27 Jakub Jelinek <jakub@redhat.com>
389
390 * reloc.c: Add x86-64 TLS relocs.
391 * bfd-in2.h, libbfd.h: Rebuilt.
392 * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit
393 relocs. Add TLS relocs.
394 (x86_64_reloc_map): Add TLS relocs.
395 (elf64_x86_64_info_to_howto): Adjust for added TLS relocs.
396 (struct elf64_x86_64_link_hash_entry): Add tls_type field.
397 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define.
398 (elf64_x86_64_hash_entry): Define.
399 (struct elf64_x86_64_obj_tdata): New.
400 (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define.
401 (struct elf64_x86_64_link_hash_table): Add tls_ld_got.
402 (link_hash_newfunc): Initialize tls_type.
403 (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got.
404 (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary.
405 (elf64_x86_64_mkobject): New.
406 (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata.
407 (elf64_x86_64_tls_transition): New.
408 (elf64_x86_64_check_relocs): Add r_type variable and use it.
409 Handle TLS relocs.
410 (elf64_x86_64_gc_sweep_hook): Handle TLS relocs.
411 (allocate_dynrelocs): Allocate GOT space for TLS relocs.
412 (elf64_x86_64_size_dynamic_sections): Likewise.
413 (dtpoff_base, tpoff): New.
414 (elf64_x86_64_relocate_section): Handle TLS relocs.
415 (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT
416 entries.
417 (bfd_elf64_mkobject): Define.
418
419 * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set
420 DF_STATIC_TLS if shared.
421
422 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
423
424 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneeded
425 empty relocation sections.
426
427 2002-09-26 Alan Modra <amodra@bigpond.net.au>
428
429 * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.
430 (ppc64_elf_build_stubs): Build them here instead.
431
432 2002-09-24 Jakub Jelinek <jakub@redhat.com>
433
434 * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVE
435 addend into r_addend, not *r_offset.
436 (elf32_sparc_finish_dynamic_symbol): Likewise.
437 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at
438 R_SPARC_RELATIVE's r_offset.
439
440 2002-09-23 Nathan Tallent <eraxxon@alumni.rice.edu>
441
442 * dwarf2.c (decode_line_info): Update to correctly decode
443 the (non-standard DWARF2) out-of-order address sequences
444 generated by the Intel C++ 6.0 compiler for ia64-Linux.
445
446 2002-09-23 Mark Elbrecht <snowball3@softhome.net>
447
448 * config.bfd: For DJGPP targets, match with any cpu and any machine.
449
450 2002-09-23 Alan Modra <amodra@bigpond.net.au>
451
452 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
453 for discarded FDEs. Remove redundant assignment.
454 * elflink.h (elf_bfd_discard_info): Save edited relocs.
455
456 2002-09-22 H.J. Lu <hjl@gnu.org>
457
458 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Don't merge
459 the relocation count between different .reloc sections.
460
461 2002-09-21 Alan Modra <amodra@bigpond.net.au>
462
463 * elf32-ppc.c (ppc_elf_relocate_section): Allow ".sbss.*" and
464 ".sdata.*" for R_PPC_SDAREL16, ".sbss2*" and ".sdata2*" for
465 R_PPC_EMB_SDA2REL. Similarly for R_PPC_EMB_SDA21 and
466 R_PPC_EMB_RELSDA.
467
468 * elfcode.h (elf_slurp_reloc_table_from_section): Make "symcount"
469 unsigned. Move "symcount" assignment out of loop.
470 * Makefile.am: Run "make dep-am".
471 * Makefile.in: Regenerate.
472 * configure: Regenerate.
473 * po/SRC-POTFILES.in: Regnerate.
474
475 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
476
477 * dwarf2.c (_bfd_dwarf2_find_nearest_line): If address length is
478 zero, set it to 8 for (non-standard) 64-bit DWARF2 formats
479 (e.g. IRIX64).
480
481 2002-09-19 Jakub Jelinek <jakub@redhat.com>
482
483 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Clear .got word
484 even if generating R_PPC_RELATIVE reloc.
485 (ppc_elf_relocate_section): Make sure relocation is performed
486 if skip == -2. Clear memory at r_offset when creating dynamic
487 relocation.
488
489 2002-09-19 Jakub Jelinek <jakub@redhat.com>
490
491 * reloc.c (BFD_RELOC_386_TLS_TPOFF, BFD_RELOC_386_TLS_IE,
492 BFD_RELOC_386_TLS_GOTIE): Add.
493 * bfd-in2.h, libbfd.h: Rebuilt.
494 * elf32-i386.c (elf_howto_table): Add R_386_TLS_TPOFF, R_386_TLS_IE
495 and R_386_TLS_GOTIE.
496 (elf_i386_reloc_type_lookup): Handle it.
497 (struct elf_i386_link_hash_entry): Change tls_type type to unsigned
498 char instead of enum, change GOT_* into defines.
499 (GOT_TLS_IE_POS, GOT_TLS_IE_NEG, GOT_TLS_IE_BOTH): Define.
500 (elf_i386_tls_transition): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
501 (elf_i386_check_relocs): Likewise. Avoid crash if local symbol is
502 accessed both as normal and TLS symbol. Move R_386_TLS_LDM and
503 R_386_PLT32 cases so that R_386_TLS_IE can fall through.
504 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
505 (elf_i386_gc_sweep_hook): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
506 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
507 (allocate_dynrelocs): Allocate 2 .got and 2 .rel.got entries if
508 tls_type is GOT_TLS_IE_BOTH.
509 (elf_i386_size_dynamic_sections): Likewise.
510 (elf_i386_relocate_section): Handle R_386_TLS_IE and R_386_TLS_GOTIE.
511 Handle R_386_TLS_LE_32 and R_386_TLS_LE in shared libs.
512 (elf_i386_finish_dynamic_symbol): Use tls_type & GOT_TLS_IE to catch
513 all 4 GOT_TLS_* TLS types.
514
515 2002-09-19 Nick Clifton <nickc@redhat.com>
516
517 * elflink.h (elf_fix_symbol_flags): When examining weak symbols,
518 follow indirect links.
519
520 2002-09-19 Nathan Tallent <eraxxon@alumni.rice.edu>
521
522 * ecoffswap.h (ecoff_swap_pdr_in) <isym, iline>: Update to
523 correctly sign-extend 32-bit ECOFF null values (0xffffffff, -1)
524 on 64 bit machines.
525 (ecoff_swap_sym_in) <iss>: Likewise.
526 * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Fix error reading
527 ECOFF information: 'ioptMax' refers to the actual *size*
528 of the optimization symtab, not the number of entries.
529
530 2002-09-19 Daniel Jacobowitz <drow@mvista.com>
531
532 * elf32-arm.h (elf32_arm_adjust_dynamic_symbol): Update
533 ELF_LINK_HASH_NEEDS_PLT logic.
534
535 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
536
537 * elfcode.h (elf_slurp_reloc_table_from_section): Check
538 correct relocation count.
539
540 2002-09-17 Daniel Jacobowitz <drow@mvista.com>
541
542 * bfd-in.h (bfd_get_dynamic_symcount): Define.
543 * bfd.c (struct _bfd): Add dynsymcount.
544 * bfd-in2.h: Regenerated.
545 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Set
546 abfd->dynsymcount.
547 * elfcode.h (elf_slurp_reloc_table_from_section): Check
548 for overflow.
549
550 2002-09-17 Stan Cox <scox@redhat.com>
551
552 * elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
553 (mips_elf64_final_gp): Don't make up gp value.
554 * elfn32-mips.c (mips_elf_final_gp): Likewise.
555 * elfxx-mips.c (_bfd_mips_elf_final_link): Always create
556 .MIPS.options/.options section.
557
558 2002-09-17 David O'Brien <obrien@FreeBSD.org>
559
560 * elf32-i386-fbsd.c: Always label using the EI_OSABI method.
561 It is benign for FreeBSD < 4.1. Minor reformatting.
562 * elf64-alpha-fbsd.c: Likewise.
563
564 2002-09-17 Jakub Jelinek <jakub@redhat.com>
565
566 * elf32-i386.c (elf_i386_relocate_section) [R_386_TLS_TPOFF32]: Negate
567 addend.
568
569 2002-09-17 Alan Modra <amodra@bigpond.net.au>
570
571 * elf64-alpha.c (alpha_elf_size_info): Make static.
572
573 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
574
575 * coff-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
576 * cpu-tic4x.c: Ditto.
577
578 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
579
580 * elf64-mips.c (define elf_backend_ignore_discarded_relocs): Remove
581 duplicate define.
582
583 2002-09-16 Bruno Haible <bruno@clisp.org>
584
585 * elf32-i386.c: Don't defined ELF_ARCH etc. if this file is included
586 by a target variant implementation.
587 * elf64-alpha.c: Likewise.
588 * elf32-i386-fbsd.c: New file.
589 * elf64-alpha-fbsd.c: New file.
590 * targets.c: Support bfd_elf32_i386_freebsd_vec and
591 bfd_elf64_alpha_freebsd_vec.
592 * configure.in: Accept the vectors bfd_elf32_i386_freebsd_vec,
593 bfd_elf64_alpha_freebsd_vec.
594 * Makefile.am (BFD32_BACKENDS): Add elf32-i386-fbsd.lo.
595 (BFD32_BACKENDS_CFILES): Add elf32-i386-fbsd.c.
596 (BFD64_BACKENDS): Add elf64-alpha-fbsd.lo.
597 (BFD64_BACKENDS_CFILES): Add elf64-alpha-fbsd.c.
598 (elf32-i386-fbsd.lo, elf64-alpha-fbsd.lo): Add dependencies.
599 * config.bfd: For FreeBSD targets, set targ_defvec to a FreeBSD
600 specific targets. Define OLD_FREEBSD_ABI_LABEL if appropriate.
601
602 2002-09-12 Jakub Jelinek <jakub@redhat.com>
603
604 * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is
605 NULL.
606 (elf_i386_relocate_section): Return false after printing error about
607 unresolvable relocation.
608
609 2002-09-12 Nick Clifton <nickc@redhat.com>
610
611 * elf32-arm.h (elf32_arm_final_link_relocate): Fix handling of
612 R_ARM_THM_PC11.
613
614 2002-09-11 Jeffrey Law <law@redhat.com>
615
616 * elf32-h8300.c (elf32_h8_relax_section): Fix typo.
617
618 2002-09-11 Andrew Haley <aph@cambridge.redhat.com>
619
620 * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and
621 line_ptr before deciding we've found a symbol.
622
623 2002-09-11 Nick Clifton <nickc@redhat.com>
624
625 * po/da.po: New Danish translation file.
626 * configure.in (LINGUAS): Add 'da'.
627 * configure: Regenerate.
628
629 2002-09-10 Michael Snyder <msnyder@redhat.com>
630
631 * irix-core.c (do_sections, do_sections64): New functions.
632 (irix_core_core_file_p): Call new functions do_sections,
633 do_sections64, depending on corefile (32-bit or 64-bit).
634
635 2002-09-09 Richard Henderson <rth@redhat.com>
636
637 * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M
638 and PCREL21F like PCREL21B.
639
640 2002-09-04 Kevin Buettner <kevinb@redhat.com>
641
642 * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default
643 vector.
644
645 2002-09-02 Nick Clifton <nickc@redhat.com>
646
647 * elf32-v850.c (v850_elf_final_link_relocate): Use helpful
648 names instead of cryptically overloaded bfd_reloc error
649 codes.
650 (v850_elf_relocate_section): Likewise.
651 (v850_elf_relax_section): Replace caching of external symbols
652 with caching of internal symbols obtained from calling
653 bfd_elf_get_elf_syms().
654 Fixup problems with freeing cached allocated memory blocks.
655
656 2002-09-02 Alan Modra <amodra@bigpond.net.au>
657
658 * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
659 (bfd_pj_arch): Use bfd_default_scan.
660 * cpu-v850.c (scan): Remove.
661 (N): Use bfd_default_scan.
662 * cpu-z8k.c (scan_mach): Remove.
663 (arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
664 first. Use bfd_default_scan.
665
666 * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
667 bfd_mach constants.
668 (ecoff_get_magic): Likewise.
669 * elf32-v850.c (v850_elf_object_p): Likewise.
670 (v850_elf_final_write_processing): Likewise.
671 * mipsbsd.c (MY(set_arch_mach)): Likewise.
672 (MY(write_object_contents)): Likewise.
673 * coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
674 * coffcode.h (coff_write_object_contents): Likewise.
675 (coff_set_arch_mach_hook): Add comment describing machine == 0.
676 Remove unnecessary "machine" assignments.
677 (coff_write_relocs): Test for the absolute section sym by testing
678 section and flags.
679
680 * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
681 and bfd_mach_i386_i386_intel_syntax.
682 * pdp11.c (NAME(aout,machine_type)): Likewise.
683
684 2002-08-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
685
686 * bfd-in.h (align_power): Cast constants to bfd_vma type.
687 * bfd-in2.h (align_power): Likewise.
688
689 2002-08-30 Alan Modra <amodra@bigpond.net.au>
690
691 * Makefile.am: Run "make dep-am".
692 * Makefile.in: Regenerate.
693
694 * cpu-avr.c (compatible): Don't use hard-coded mach constants.
695 * cpu-powerpc.c (powerpc_compatible): Likewise.
696 * cpu-rs6000.c (rs6000_compatible): Likewise.
697
698 2002-08-28 Catherine Moore <clm@redhat.com>
699
700 * elf32-v850.c (v850_elf_reloc_map): Add new relocs.
701 (v850-elf-reloc): Don't resolve pc relative relocs.
702 (v850_elf_ignore_reloc): New routine.
703 (v850_elf_final_link_relocate): Handle new relocs.
704 (v850_elf_relax_delete_bytes ): New routine.
705 (v850_elf_relax_section): New routine.
706 (bfd_elf32_bfd_relax_section): Define.
707 (HOWTO): New entries for new relocs.
708 * reloc.c (BFD_RELOC_V850_LONGCALL): New reloc.
709 (BFD_RELOC_V850_LONGJUMP): New reloc.
710 (BFD_RELOC_V850_ALIGN): New reloc.
711 * archures.c: Remove redundant v850ea architecture.
712 * cpu-v850.c: Remove redundant v850ea support.
713 * libbfd.h: Regenerate.
714 * bfd-in2.h: Regenerated.
715
716 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
717
718 * config.bfd: Add tic4x-*-*coff* and c4x-*-*coff* target.
719 * configure.in: Add tic4x_coff vector files.
720 * configure: Regenerate.
721 * Makefile.am: Add tic4x target.
722 * Makefile.in: Regenerate.
723
724 2002-08-27 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
725
726 * archures.c: Add the BFD arch type tic4x.
727 * bfd-in.h: Add BFD_IN_MEMORY flag.
728 * coff-tic4x.c: New file.
729 * coffswap.h (coff_swap_sym_out): Add preadjuster.
730 * cpu-tic4x.c: New file.
731 * targets.c: Added tic4x- in list of xvecs.
732 * ticoff.h: New file.
733 * bfd-in2.h: Regenerate.
734
735 2002-08-27 Adam Nemet <anemet@lnxw.com>
736
737 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Set the last
738 bit of DT_INIT and DT_FINI for Thumb functions.
739
740 2002-08-26 Alan Modra <amodra@bigpond.net.au>
741
742 * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.
743
744 2002-08-26 Alan Modra <amodra@bigpond.net.au>
745
746 * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8.
747
748 2002-08-24 Kaz Kojima <kkojima@rr.iij4u.or.jp>
749
750 * elf32-sh.c (sh_elf_copy_indirect_symbol): New.
751 (create_got_section, allocate_dynrelocs, readonly_dynrelocs):
752 Likewise.
753 (struct elf_sh_pcrel_relocs_copied): Removed.
754 (struct elf_sh_dyn_relocs): New.
755 (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied
756 field with dyn_relocs.
757 (struct elf_sh_link_hash_table): Add short-cuts to get dynamic
758 sections and sym_sec.
759 (sh_elf_link_hash_newfunc): Clear dyn_relocs.
760 (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec.
761 (sh_elf_create_dynamic_sections): Use create_got_section instead
762 of _bfd_elf_create_got_section.
763 (sh_elf_check_relocs): Likewise.
764 (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic
765 sections.
766 (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections,
767 sh_elf_relocate_section, sh_elf_check_relocs,
768 sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections):
769 Likewise.
770 (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the
771 dynamic relocations and avoiding the copy relocation when we
772 didn't find any dynamic relocations in the section which has
773 contents or is read-only.
774 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
775 (sh_elf_size_dynamic_sections): Don't reset the size of
776 .rela.got section even if dynamic_sections_created flag is off.
777 Don't use sh_elf_discard_copies. Scan all input bfd and use
778 allocate_dynrelocs. Call readonly_dynrelocs to determine
779 whether we need DT_TEXTREL.
780 (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine
781 whether the symbol was never referred to.
782 (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL.
783 (sh_elf_gc_sweep_hook): Fill with the real sweep function.
784 (sh_elf_check_relocs): Call create_got_section if the short-cut
785 to .got is null. Increment reference counters only instead of
786 allocating space on dynamic sections here. Don't conditionalize
787 uninitialized got.offset value when marking the symbol as a
788 global offset table entry. Keep relocations for symbols satisfied
789 by a dynamic library to avoid copy relocations for the symbol.
790 Set dynobj field of an elf hash table if needed.
791 (sh_elf_finish_dynamic_sections): Handle null section pointer
792 correctly.
793 (elf_backend_copy_indirect_symbol): Defined.
794 (elf_backend_can_refcount): Defined.
795
796 2002-08-23 Nick Clifton <nickc@redhat.com>
797
798 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Undo
799 previous change. Add comment explaining why.
800
801 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
802
803 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
804 contents of .got.plt[2] to tr0, not address of .got.plt.
805 (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
806 patching absolute plt entry. For shmedia plt entry, set bottom bit
807 of branch to plt0 as this is a branch to an shmedia instruction.
808 * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
809 Copy contents of .got.plt[2] to tr0, not address of .got.plt.
810 (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
811 branch to plt0.
812 (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
813 patching absolute plt entry. For shmedia plt entry, branch to
814 plt0 is now ptrel, so use relative offset. Set bottom bit of
815 branch target as it is a branch to an shmedia instruction.
816
817 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>,
818 Richard Shann <richard.shann@superh.com>
819
820 * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT
821 value if .init is an SHmedia function. Similarly for DT_FINI.
822 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
823
824 2002-08-23 Stephen Clarke <stephen.clarke@superh.com>
825
826 * elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
827 dynamic section.
828 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
829
830 2002-08-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
831
832 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple
833 byte read when reading the return address register column.
834
835 2002-08-22 Nick Clifton <nickc@redhat.com>
836
837 * config.bfd: Add powepc64-*-*bsd* target.
838
839 2002-08-22 Graeme Peterson <gp@qnx.com>
840
841 * Makefile.am: Add entries for elf32-shqnx.c
842 * Makefile.in: Regenerate.
843 * config.bfd: Add support sh-*-nto* target.
844 * configure.in: Add support for bfd_elf32_sh{l}qnx_vec.
845 * configure: Regenerate.
846 * elf32-qnx.h: Changed typo "elf_i386qnx_*" to "elf_qnx_*" .
847 * elf32-sh.c: Do not include elf32-target.h if
848 ELF32_SH_C_INCLUDED is defined.
849 * elf32-shqnx.c: New file: Support for QNX.
850 * targets.c: Add bfd_elf32_sh{l}qnx_vec.
851
852 2002-08-22 Nick Clifton <nickc@redhat.com>
853
854 * po/tr.po: Updated Turkish translation.
855
856 * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
857 symbols are not read.
858
859 2002-08-22 Alan Modra <amodra@bigpond.net.au>
860
861 * elf32-m68hc11.c: Formatting fixes.
862 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
863 * elf32-m68hc12.c: Formatting fixes.
864 (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
865
866 2002-08-22 Alan Modra <amodra@bigpond.net.au>
867
868 * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE and
869 SEC_DATA.
870 (pmac_xcoff_vec): Likewise.
871 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
872 (aix5coff64_vec): Likewise.
873
874 2002-08-22 Alan Modra <amodra@bigpond.net.au>
875
876 * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_data
877 param to elf_backend_copy_indirect_symbol.
878 (_bfd_elf_link_hash_copy_indirect): Likewise.
879 * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust
880 calls to copy_indirect_symbol.
881 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
882 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
883 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
884 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
885 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
886 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
887 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
888 * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
889 * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise.
890 * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly
891 test refcounts for "used" values.
892
893 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
894
895 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS to
896 argument declaration.
897
898 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
899
900 * archures.c (bfd_mach_ppc_e500): Added.
901 * bfd-in2.h: Rebuilt.
902 * cpu-powerpc.c (bfd_powerpc_archs): Added e500.
903
904 2002-08-19 Alan Modra <amodra@bigpond.net.au>
905
906 * elf32-m68hc12.c (elf_backend_can_gc_sections): False.
907
908 2002-08-17 Andrew Cagney <ac131313@redhat.com>
909
910 * elf.c (bfd_elf_get_elf_syms): Change type of `esym' to
911 `bfd_byte'.
912
913 2002-08-17 Stan Cox <scox@redhat.com>
914
915 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use the
916 IRIX 6 segment layout for NEWABI.
917
918 2002-08-16 Stephen Clarke <stephen.clarke@superh.com>
919
920 * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirect
921 symbols when looking for section referred to by a relocation.
922 * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
923
924 2002-08-15 Alan Modra <amodra@bigpond.net.au>
925
926 * elf32-i370.c: Move reloc enum to include/elf/i370.h.
927
928 2002-08-15 Hans-Peter Nilsson <hp@axis.com>
929
930 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Add
931 missing check for whether the symbol is referenced by DSO before
932 unexporting it as an unneeded dynamic symbol.
933
934 2002-08-14 H.J. Lu <hjl@gnu.org>
935
936 * libbfd.h: Regenerate.
937
938 2002-08-14 H.J. Lu <hjl@gnu.org>
939
940 * config.bfd: Always add 64bit vectors to 32bit Linux/mips.
941
942 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
943
944 * elf32-m68hc11.c (m68hc11_relax_group): New to relax group of
945 instructions.
946 (m68hc11_direct_relax): New to define table of relaxable instructions.
947 (find_relaxable_insn): New, find a relaxable insn.
948 (compare_reloc): New to compare two relocs.
949 (m68hc11_elf_relax_section): New, relax text sections.
950 (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs.
951 (elf32_m68hc11_check_relocs): New function for GC support.
952 (elf32_m68hc11_relocate_section): New function for GC support.
953 (bfd_elf32_bfd_relax_section): Define to support linker relaxation.
954 (elf_backend_check_relocs): Likewise.
955 (elf_backend_relocate_section): Likewise.
956
957 2002-08-13 H.J. Lu <hjl@gnu.org>
958
959 * elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count
960 definitions in shared objects when checking symbol with
961 undefined version.
962
963 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
964
965 * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.
966 (elf32_m68hc11_gc_sweep_hook): Likewise.
967 (elf_backend_gc_mark_hook): Define for GC section support.
968 (elf_backend_gc_sweep_hook): Likewise.
969 (elf_backend_can_gc_sections): Likewise.
970
971 * elf32-m68hc12.c: Likewise.
972
973 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
974
975 * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.
976 (_bfd_m68hc11_elf_merge_private_bfd_data): New function.
977 (_bfd_m68hc11_elf_set_private_flags): New function.
978 Use them to set/check/print ELF flags specific to 68HC11.
979
980 * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New.
981 (_bfd_m68hc12_elf_merge_private_bfd_data): New function.
982 (_bfd_m68hc12_elf_set_private_flags): New function.
983 Use them to set/check/print ELF flags specific to 68HC12.
984
985 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
986
987 * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;
988 fix masks for PC-rel relocs.
989 (m68hc11_elf_ignore_reloc): New function.
990
991 * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific
992 68HC12 banked addressing relocs.
993 (m68hc12_phys_addr): New to compute physical address of banked memory.
994 (m68hc12_phys_page): Likewise for page.
995 (m68hc12_addr_is_banked): New to see if address is in banked area.
996 (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
997
998 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
999
1000 * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,
1001 BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE,
1002 BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12.
1003 * bfd-in2.h: Regenerate.
1004
1005 2002-08-12 H.J. Lu <hjl@gnu.org>
1006
1007 * elflink.h (elf_add_default_symbol): Preserve section across
1008 elf_merge_symbol.
1009
1010 2002-08-09 Graeme Peterson <gp@qnx.com>
1011
1012 * Makefile.am: Add entries for elf32-ppcqnx.c, and add
1013 elf32-qnx.h dependency to elfarmqnx-nabi.c and elf32-i386qnx.c.
1014 * Makefile.in: Regenerate.
1015 * config.bfd: Add support for powerpc{le}-*-nto targets.
1016 * configure.in: Add support for bfd_elf32_powerpc{le}qnx_vec.
1017 * configure: Regenerate.
1018 * elf32-i386qnx.c: Moved backend functions into a QNX specific
1019 common file "elf32-qnx.h", and now include that file.
1020 * elf32-qnx.h: New file: QNX specific common elf backend.
1021 * elf32-ppc.c: Do not include elf32-target.h if
1022 ELF32_PPC_C_INCLUDED is defined.
1023 * elf32-ppcqnx.c: New file: Support for QNX.
1024 * elfarmqnx-nabi.c: Include elf32-qnx.h for qnx elf backend.
1025 * targets.c: Add bfd_elf32_powerpc{le}qnx_vec.
1026
1027 2002-08-09 Nick Clifton <nickc@redhat.com>
1028
1029 * po/sv.po: Updated Swedish translation.
1030
1031 2002-08-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1032
1033 * elfxx-mips.c (mips_elf_global_got_index): Avoid segfault if
1034 g->global_gotsym is NULL.
1035
1036 2002-08-08 H.J. Lu <hjl@gnu.org>
1037
1038 * elflink.h (elf_add_default_symbol): Don't warn if a definition
1039 overrides an indirect versioned symbol.
1040
1041 2002-08-08 Jakub Jelinek <jakub@redhat.com>
1042
1043 * elf32-i386.c (elf_i386_relocate_section): Fill in proper addend
1044 for R_386_TLS_TPOFF32 relocs against symndx 0.
1045
1046 2002-08-07 H.J. Lu <hjl@gnu.org>
1047
1048 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Check symbol
1049 with undefined version if needed.
1050 (elf_link_assign_sym_version): Match a default symbol with a
1051 version without definition. No need to hide the default
1052 definition separately.
1053
1054 2002-08-08 Alan Modra <amodra@bigpond.net.au>
1055
1056 * elflink.h (elf_link_output_extsym): Don't output symbols from
1057 SEC_EXCLUDE sections.
1058
1059 * aoutx.h (aout_link_write_symbols): Correct handling of warning syms.
1060
1061 2002-08-07 Alan Modra <amodra@bigpond.net.au>
1062
1063 * elf64-ppc.c (edit_opd): Arrange to drop symbols for discarded .opd
1064 entries.
1065
1066 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1067
1068 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Cast signedness
1069 mismatch.
1070
1071 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1072
1073 * elfxx-mips.c (ABI_64_P): Remove superfluous check.
1074
1075 2002-08-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1076
1077 * elf32-mips.c (mips_reloc_map): Fix typo.
1078
1079 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1080
1081 * xcofflink.c (xcoff_write_global_symbol): Set n_scnum for abs_section.
1082
1083 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1084
1085 * elf64-ppc.c (ppc64_elf_howto_raw): Zero all src_mask entries.
1086
1087 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1088
1089 * libxcoff.h: Use PARAMS on function declarations.
1090 * coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc.
1091 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
1092
1093 * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in
1094 addend.
1095 * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise.
1096
1097 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1098
1099 * coff-rs6000.c: Formatting fixes.
1100 (xcoff_calculate_relocation): Use PARAMS in declaration.
1101 (xcoff_complain_overflow): Likewise.
1102 (xcoff_ppc_relocate_section): Use old-style function pointer call.
1103 (bfd_xcoff_backend_data): Remove useless comments.
1104 (rs6000coff_vec): Likewise.
1105 (bfd_pmac_xcoff_backend_data): Likewise.
1106 (pmac_xcoff_vec): Likewise.
1107
1108 * coff64-rs6000.c: Formatting fixes.
1109 (xcoff64_calculate_relocation): Use PARAMS in declaration.
1110 (xcoff64_ppc_relocate_section): Use old-style function pointer call.
1111 (bfd_xcoff_backend_data): Remove useless comments.
1112 (rs6000coff64_vec): Likewise.
1113 (bfd_xcoff_aix5_backend_data): Likewise.
1114 (aix5coff64_vec): Likewise.
1115
1116 2002-08-06 Alan Modra <amodra@bigpond.net.au>
1117
1118 * coff-rs6000.c (xcoff_howto_table): Revert some of last change to
1119 mask entries. Use complain_overflow_dont for R_REF.
1120 (xcoff_reloc_type_ba): Revert last change.
1121 (xcoff_reloc_type_br): Likewise.
1122 (xcoff_reloc_type_crel): Likewise.
1123 (xcoff_ppc_relocate_section): Likewise.
1124 * coff64-rs6000.c (xcoff64_reloc_type_br): Likewise.
1125 (xcoff64_ppc_relocate_section): Likewise.
1126 (xcoff64_howto_table): Revert some of last change to mask entries.
1127 Use complain_overflow_dont for R_REF.
1128
1129 * coff-rs6000.c (xcoff_howto_table): Fix src_mask entries. Make all
1130 relocs with bitsize == 16 have size = 1.
1131 (xcoff_reloc_type_ba): Correct src_mask and dst_mask adjustment.
1132 (xcoff_reloc_type_br): Likewise.
1133 (xcoff_reloc_type_crel): Likewise.
1134 (xcoff_ppc_relocate_section): Set up src_mask and dst_mask correctly.
1135 * coff64-rs6000.c (xcoff64_reloc_type_br): Correct src_mask and
1136 dst_mask adjustment.
1137 (xcoff64_ppc_relocate_section): Set up src_mask and dst_mask correctly.
1138 (xcoff64_howto_table): Fix src_mask entries. Make all relocs with
1139 bitsize == 16 have size = 1.
1140
1141 2002-08-01 Denis Chertykov <denisc@overta.ru>
1142
1143 * elf32-ip2k.c: Processor manufacturer changed to Ubicom.
1144 (struct misc): New field isymbuf. All free_* fields removed.
1145 (symbol_value): Pass in internal syms. No need to swap syms in.
1146 (ip2k_elf_relax_section): Use bfd_elf_get_elf_syms. Properly free
1147 possibly cached info.
1148 (tidyup_after_error): Removed.
1149 (ip2k_elf_relax_section_pass1): Don't use removed fields of struct
1150 misc. Use new field.
1151 (adjust_all_relocations): Use internal syms. No need to swap syms
1152 in and out.
1153 (add_page_insn): Don't use removed fields of struct misc.
1154
1155 2002-08-01 Nick Clifton <nickc@redhat.com>
1156
1157 * elf32-arm.h: Revert previous delta.
1158
1159 2002-08-01 Nick Clifton <nickc@redhat.com>
1160
1161 * configure.in (AM_INIT_AUTOMAKE): Bump version number.
1162 * configure: Regenerate.
1163
1164 2002-07-31 H.J. Lu <hjl@gnu.org>
1165
1166 * config.bfd: Add x86-64 vector to Linux/i386 if 64bit BFD is
1167 selected.
1168
1169 2002-07-31 H.J. Lu <hjl@gnu.org>
1170
1171 * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
1172 is selected.
1173
1174 2002-07-31 Jakub Jelinek <jakub@redhat.com>
1175
1176 * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
1177 if _bfd_elf_link_hash_copy_indirect will swap got.refcount.
1178
1179 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1180
1181 * cpu-ns32k.c (_bfd_ns32k_put_immdeiate, _bfd_ns32k_get_immediate):
1182 There is no 8 byte relocation type for this architecture.
1183 (do_ns32k_reloc): Use bfd_vma instead of native types.
1184 (bfd_ns32k_put_immediate, _bfd_ns32k_relocate_contents) put_data
1185 returns void.
1186 (_bfd_ns32k_put_displacement): Don't check for overflow. We can
1187 rely on generic code to do that.
1188 * aout-ns32k.c (howto_table): Add appropriate overflow detection
1189 to all table entries.
1190 (_bfd_ns32k_relocate_contents): put_data returns void.
1191 * ns32k.h: (_bfd_ns32k_put_displacement, _bfd_ns32k_put_immediate)
1192 (_bfd_do_ns32k_reloc_contents): Fix prototypes. put data functions
1193 return void.
1194
1195 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1196
1197 * aoutx.h (aout_link_check_ar_symbols): Whether to include an
1198 archive object is target dependant.
1199
1200 2002-07-31 Adam Nemet <anemet@lnxw.com>
1201
1202 * elf32-arm.h (ARM_PLT_ENTRY_SIZE): Rename PLT_ENTRY_SIZE.
1203 (THUMB_PLT_ENTRY_SIZE): New macro.
1204 (PLT_ENTRY_SIZE): Return the appropriate *_PLT_ENTRY_SIZE.
1205 (elf32_arm_plt0_entry): Rename PLT_ENTRY_SIZE to
1206 ARM_PLT_ENTRY_SIZE.
1207 (elf32_arm_plt_entry): Likewise.
1208 (elf_backend_plt_header_size): Likewise.
1209 (elf32_thumb_plt0_entry): New global.
1210 (elf32_arm_finish_dynamic_sections): Use it. Put Thumb entries
1211 into .plt.thumb.
1212 (elf32_thumb_plt_entry): New global.
1213 (elf32_arm_finish_dynamic_symbol): Use it. Use .thumb.plt for
1214 Thumb entries. Set the bottom bit of the corresponding GOT entry
1215 for a Thumb PLT entry.
1216 (struct elf32_arm_plt_entry_info): New structure.
1217 (struct elf32_arm_link_hash_entry, plt_info): New member of this
1218 type.
1219 (elf32_arm_link_hash_newfunc): Initialize new member.
1220 (elf32_arm_final_link_relocate, R_ARM_THM_PC22 case): Handle
1221 relocations against the PLT.
1222 (elf32_arm_check_relocs, case R_ARM_PLT32 case): Set
1223 first_rel_type if this is the first time we encounter the symbol.
1224 (elf32_arm_check_relocs, case R_ARM_THM_PC22 case): New case.
1225 Determine if relocation needs a PLT entry. Set first_rel_type if
1226 this is the first time we encounter the symbol
1227 (elf32_arm_adjust_dynamic_symbol): Create PLT entries for Thumb
1228 functions as well.
1229 (elf32_arm_size_dynamic_sections): Handle .plt.thumb like .plt.
1230 (elf32_arm_create_dynamic_sections): New function. Create the
1231 .plt.thumb section.
1232 (elf_backend_create_dynamic_sections): Call it.
1233
1234 2002-07-31 Nick Clifton <nickc@redhat.com>
1235
1236 * bfd.c (bfd_alt_mach_code): Rename parameter 'index' to
1237 'alternative' in order to avoid shadowing global symbol of the
1238 same name.
1239 * bfd-in2.h: Regenerate.
1240 * libbfd.h: Regenerate.
1241 * libcoff.h: Regenerate.
1242
1243 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1244
1245 * Makefile.am: Add n32 ABI support.
1246 * Makefile.in: Regenerate.
1247 * config.bfd: Add n32 vectors to mips64*-*-linux* targets. Treat 64
1248 bit vectors for mips*-*-linux targets as optional.
1249 * configure.in: Add n32 ABI vectors.
1250 * configure: Regenerate.
1251 * elf32-mips.c (mips_elf32_object_p): Reject n32 ABI files.
1252 * elfn32-mips.c: New file, n32 ABI support.
1253 * targets.c: Add n32 ABI vectors.
1254
1255 2002-07-30 Graeme Peterson <gp@qnx.com>
1256
1257 * elfarmqnx-nabi.c: New file: Support for QNX.
1258 * config.bfd: Add support for arm-*-nto target.
1259 * configure.in: Add support for bfd_elf32_{big|little}armqnx_vec.
1260 * configure: Regenerate.
1261 * Makefile.am: Add entries for elfarmqnx-nabi.c.
1262 * Makefile.in: Regenerate.
1263 * elf32-arm.h (ELF_MAXPAGESIZE): Do not define if already defined.
1264 Do not define global function if ELFARM_NABI_C_INCLUDED is defined.
1265 * elfarm-nabi.c: Do not include elf32-arm.h if
1266 ELFARM_NABI_C_INCLUDED is defined.
1267 * targets.c: Add bfd_elf32_{big|little}armqnx_vec.
1268
1269 2002-07-30 Nick Clifton <nickc@redhat.com>
1270
1271 * po/sv.po: Updated Swedish translation.
1272
1273 2002-07-30 Jakub Jelinek <jakub@redhat.com>
1274
1275 * elf.c (elf_fake_sections): Fix up .tbss sh_size and sh_type.
1276
1277 2002-07-30 Alan Modra <amodra@bigpond.net.au>
1278
1279 * aoutx.h (some_aout_object_p): Clean up tdata properly on error.
1280 * archive.c (bfd_generic_archive_p): Likewise.
1281 * coff-rs6000.c (_bfd_xcoff_archive_p): Likewise.
1282 (_bfd_xcoff_archive_p): Use bfd_scan_vma in place of strtol.
1283 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
1284 (xcoff64_archive_p): Likewise.
1285 (xcoff64_openr_next_archived_file): Likewise.
1286 (xcoff64_archive_p): Clean up tdata properly on error.
1287 * coffgen.c (coff_real_object_p): Likewise.
1288 (coff_object_p): Release filehdr and opthdr.
1289 * ecoff.c (_bfd_ecoff_archive_p): Clean up tdata properly on error.
1290 * ieee.c (ieee_archive_p): Likewise.
1291 * ihex.c (ihex_object_p): Likewise.
1292 (ihex_mkobject): Always allocate tdata.
1293 * peicode.h (pe_ILF_object_p): Release bfd_alloc'd buffer on error.
1294 * srec.c (srec_mkobject): Always allocate tdata.
1295 (srec_object_p): Clean up tdata properly on error.
1296 (symbolsrec_object_p): Likewise.
1297 * versados.c (versados_object_p): Likewise.
1298 * vms-misc.c (_bfd_vms_get_record): Use bfd_malloc instead of malloc,
1299 and bfd_realloc instead of realloc.
1300 (add_new_contents): Use bfd_alloc instead of bfd_malloc for sections.
1301 * vms.c (vms_initialize): Always allocate tdata. Use bfd_alloc in
1302 place of bfd_malloc, simplifying error freeing. Free hash table too.
1303 (vms_object_p): Clean up tdata on error.
1304 (vms_mkobject): Don't complain on stderr if vms_initialize fails.
1305 (vms_close_and_cleanup): Adjust for bfd_alloc use.
1306
1307 2002-07-30 Alan Modra <amodra@bigpond.net.au>
1308
1309 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set e_flags.
1310
1311 2002-07-26 Chris Demetriou <cgd@broadcom.com>
1312
1313 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Merge ASE
1314 flags into resulting BFD.
1315
1316 2002-07-26 Alan Modra <amodra@bigpond.net.au>
1317
1318 From John Reiser <jreiser@BitWagon.com>
1319 * elf32-i386.c (elf_i386_link_hash_table_create): Clear
1320 tls_ldm_got.refcount.
1321
1322 2002-07-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1323
1324 * elf64-mips.c: Update TODO comment.
1325 (mips_elf64_higher_reloc,mips_elf64_highest_reloc,
1326 mips_elf64_gprel16_reloca): Remove prototypes.
1327 (mips16_jump_reloc,mips16_gprel_reloc): Add functions.
1328 (UNUSED_RELOC): Replace by EMPTY_RELOC.
1329 (mips_elf64_howto_table_rel): Use special R_MIPS_HI16 handling. Remove
1330 wrong comments. Remove disfunctional support of R_MIPS_HIGHER and
1331 R_MIPS_HIGHEST.
1332 (mips_elf64_howto_table_rela): Fix handling of R_MIPS_GPREL16 and
1333 R_MIPS_GOT16. Remove wrong comments.
1334 (elf_mips16_jump_howto,elf_mips16_gprel_howto,
1335 elf_mips_gnu_vtinherit_howto,elf_mips_gnu_vtentry_howto): New, code
1336 from elf32-mips.c.
1337 (mips_elf64_hi16_reloc): Fix formatting.
1338 (mips_elf64_higher_reloc,mips_elf64_highest_reloc): Remove.
1339 (mips_elf64_got16_reloc): Fix formatting. Remove superfluous code.
1340 Better comment. Fall back to R_MIPS_GOT_DISP instead of abort().
1341 (mips_elf64_gprel16_reloc): Make static. Add check for
1342 partial_inplace.
1343 (mips_elf64_gprel16_reloca): Remove.
1344 (mips_elf64_literal_reloc): New function.
1345 (mips_elf64_gprel32_reloc): Fix formatting.
1346 (mips_elf64_shift6_reloc): Fix comment. Make static.
1347 (mips16_jump_reloc,mips16_gprel_reloc): New functions, code from
1348 elf32-mips.c.
1349 (elf_reloc_map,mips_reloc_map): New mapping table, similiar as in
1350 elf32-mips.c
1351 (bfd_elf64_bfd_reloc_type_lookup): Use the mapping table. Enable GNU
1352 specific relocations.
1353 (mips_elf64_rtype_to_howto): Enable GNU specific relocations.
1354 (mips_elf64_object_p): Invert logic to check for SGI-ish ABI.
1355 (ELF_MAXPAGESIZE): Add comment.
1356
1357 2002-07-25 Nick Clifton <nickc@redhat.com>
1358
1359 * po/sv.po: Updated Swedish translation.
1360 * po/es.po: Updated Spanish translation.
1361 * po/fr.po: Updated French translation.
1362
1363 2002-07-25 Alan Modra <amodra@bigpond.net.au>
1364
1365 * elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
1366 as elf_link_record_local_dynamic_symbol.
1367 (_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
1368 (elf_link_record_local_dynamic_symbol): Declare. Now returns int.
1369 * elflink.h (elf_link_record_local_dynamic_symbol): Move to..
1370 * elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
1371 attempt is made to record a symbol in a discarded section, and
1372 return `2' in that case.
1373
1374 2002-07-24 Nick Clifton <nickc@redhat.com>
1375
1376 * po/sv.po: Updated Swedish translation.
1377 * po/es.po: Updated Spanish translation.
1378
1379 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1380
1381 * po/SRC-POTFILES.in: Regenerate.
1382
1383 * elf-hppa.h (elf_hppa_relocate_section): If relocatable, return
1384 immediately. Remove code handling relocatable linking.
1385 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1386 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1387 * elf32-fr30.c (elf32_frv_relocate_section): Likewise.
1388 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1389 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1390 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1391 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1392 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1393 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1394 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1395 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1396 * elf32-avr.c (elf_backend_rela_normal): Define.
1397 * elf32-cris.c: Likewise.
1398 * elf32-fr30.c: Likewise.
1399 * elf32-frv.c: Likewise.
1400 * elf32-h8300.c: Likewise.
1401 * elf32-hppa.c: Likewise.
1402 * elf32-ip2k.c: Likewise.
1403 * elf32-sparc.c: Likewise.
1404 * elf32-v850.c: Likewise.
1405 * elf32-vax.c: Likewise.
1406 * elf64-hppa.c: Likewise.
1407 * elf64-sparc.c: Likewise.
1408 * elf32-fr30.c (elf32_frv_relocate_section): Edit comment.
1409 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1410 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1411 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1412 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1413 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1414 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1415 * elf-m10200.c (USE_RELA): Don't define.
1416 * elf-m10300.c: Likewise.
1417 * elfarm-oabi.c: Likewise.
1418 * elf32-i370.c: Likewise.
1419 * elf32-ip2k.c: Likewise.
1420 * elf32-m68k.c: Likewise.
1421 * elf32-mcore.c: Likewise.
1422 * elf32-ppc.c: Likewise.
1423 * elf32-s390.c: Likewise.
1424 * elf32-vax.c: Likewise.
1425 * elf64-ppc.c: Likewise.
1426 * elf64-s390.c: Likewise.
1427 * elf64-x86-64.c: Likewise.
1428 * elfxx-ia64.c: Likewise.
1429 * elf32-avr.c (USE_REL): Don't undef.
1430 * elf32-ip2k.c: Likewise.
1431
1432 2002-07-23 Nick Clifton <nickc@redhat.com>
1433
1434 * elf-bfd.h (struct elf_backend_data): Add new bitfield
1435 'want_p_paddr_set_to_zero'.
1436 * elfxx-target.h: Set default value for want_p_paddr_set_to_zero
1437 to false;
1438 * elfxx-ia64.c: Set want_p_paddr_set_zero for HPUX target.
1439 * elf.c (copy_private_bfd_data): Test want_p_paddr_set_zero.
1440
1441 2002-07-23 Gabor Keresztfalvi <keresztg@mail.com>
1442
1443 * nlmcode.h (nlm_swap_auxiliary_headers_out): Swapped the order of
1444 the MeSsAgEs and CoPyRiGhT tags to make >=NW4.x NLM loaders to
1445 show the Copyright string.
1446 Minor formatting tidy ups.
1447
1448 2002-07-23 Nick Clifton <nickc@redhat.com>
1449
1450 * po/fr.po: Updated French translation.
1451 * po/sv.po: Updated Swedish translation.
1452
1453 2002-07-23 Alan Modra <amodra@bigpond.net.au>
1454
1455 * elflink.h (elf_link_input_bfd): Don't change internal symbols
1456 when outputting relocs.
1457
1458 2002-07-20 Jason Thorpe <thorpej@wasabisystems.com>
1459
1460 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only insert
1461 DT_PLTGOT into the dynamic section if there is a PLT.
1462
1463 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1464
1465 * elfxx-mips.c (_bfd_mips_elf_discard_info): New function, code from
1466 elf32-mips.c.
1467 (_bfd_mips_elf_write_section): Likewise.
1468 * elfxx-mips.h (_bfd_mips_elf_discard_info): New prototype.
1469 (_bfd_mips_elf_write_section): Likewise.
1470 * elf32-mips.c (elf32_mips_discard_info): Move to elfxx-mips.c.
1471 (elf32_mips_write_section): Likewise.
1472 * elf64-mips.c (_bfd_mips_elf_ignore_discarded_relocs): Use it.
1473 (_bfd_mips_elf_write_section): Likewise.
1474
1475 2002-07-19 Alan Modra <amodra@bigpond.net.au>
1476
1477 * elfxx-ia64.c: (elfNN_ia64_modify_segment_map): Properly scan
1478 PT_IA_64_UNWIND segments for a given section.
1479
1480 2002-07-17 H.J. Lu <hjl@gnu.org>
1481
1482 * Makefile.am: Fix a typo.
1483 * Makefile.in: Regenerate.
1484
1485 2002-07-15 Denis Chertykov <denisc@overta.ru>
1486 Frank Ch. Eigler <fche@redhat.com>
1487 Ben Elliston <bje@redhat.com>
1488 Alan Lehotsky <alehotsky@cygnus.com>
1489 John Healy <jhealy@redhat.com>
1490 Graham Stott <grahams@redhat.com>
1491 Jeff Johnston <jjohnstn@redhat.com>
1492
1493 * Makefile.am: Add support for ip2k.
1494 * Makefile.in: Regenerate.
1495 * doc/Makefile.in: Regenerate.
1496 * archures.c: Add support for ip2k.
1497 * config.bfd: Add support for ip2k.
1498 * configure.in: Add support for ip2k.
1499 * configure: Regenerate.
1500 * reloc.c: Add support for ip2k.
1501 * targets.c: Add support for ip2k.
1502 * bfd-in2.h: Regenerate.
1503 * libbfd.h: Regenerate.
1504 * cpu-ip2k.c: New file.
1505 * elf32-ip2k.c: New file.
1506
1507 2002-07-17 Ian Rickards <irickard@arm.com>
1508
1509 * dwarf2.c (concat_filename): If we can't establish the directory
1510 just return the filename.
1511
1512 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
1513
1514 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
1515
1516 2002-07-16 Alan Modra <amodra@bigpond.net.au>
1517
1518 * elflink.h: Formatting fixes, tidy prototypes.
1519 (elf_link_assign_sym_version): Move common code out of loop.
1520
1521 2002-07-16 Alan Modra <amodra@bigpond.net.au>
1522
1523 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
1524 reloc section size is zero. Correct reloc output location.
1525
1526 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1527
1528 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
1529 the final type for the e_fsel selector when generating PA2.0W code.
1530 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
1531 relocations.
1532
1533 2002-07-14 H.J. Lu <hjl@gnu.org>
1534
1535 * elflink.h (elf_link_assign_sym_version): Hide the default
1536 definition if there is a hidden versioned definition.
1537
1538 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
1539
1540 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
1541 dynamic reference test in assertion when initializing GOT with
1542 static contents. Just assert that there are either no dynamic
1543 sections, the symbol is defined in the regular objects or that the
1544 symbol is undef weak. Tweak comment.
1545 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
1546 only if the symbol isn't defined in the program and isn't undef
1547 weak.
1548 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
1549 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
1550 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
1551 (elf_cris_discard_excess_program_dynamics): Don't consider
1552 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
1553
1554 2002-07-11 Alan Modra <amodra@bigpond.net.au>
1555
1556 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
1557 unresolved debugging relocs in dynamic applications.
1558 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1559 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1560 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1561 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1562 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1563 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1564
1565 2002-07-10 Alan Modra <amodra@bigpond.net.au>
1566
1567 * elf64-ppc.c (ONES): Define.
1568 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
1569 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
1570 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
1571
1572 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
1573 (ppc64_elf_set_private_flags): Delete.
1574 (ppc64_elf_section_from_shdr): Delete.
1575 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
1576 (ppc64_elf_fake_sections): Delete.
1577 (bfd_elf64_bfd_set_private_flags): Don't define.
1578 (bfd_elf64_get_symbol_info): Likewise.
1579 (elf_backend_section_from_shdr): Likewise.
1580 (elf_backend_fake_sections): Likewise.
1581
1582 2002-07-10 Marco Walther <Marco.Walther@sun.com>
1583
1584 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
1585 when not already set.
1586 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
1587 (elf_backend_fake_sections): Define.
1588
1589 2002-07-10 Alan Modra <amodra@bigpond.net.au>
1590
1591 * merge.c (_bfd_merge_section): Remove redundant output_section check.
1592 Formatting.
1593 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
1594
1595 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
1596
1597 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
1598 NULL sym_hashes to just before use.
1599 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
1600 symbol with non-default visibility.
1601 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
1602 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
1603 Ditto.
1604 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
1605 symbol with non-default visibility.
1606 (cris_elf_check_relocs): At tests for local symbol before
1607 increasing h->plt.refcount, also check for non-default
1608 visibility. Ditto when checking for local symbol to eliminate
1609 pc-relative runtime relocs.
1610
1611 2002-07-08 Alan Modra <amodra@bigpond.net.au>
1612
1613 * elf.c: Formatting.
1614 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
1615 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
1616 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
1617 segments.
1618
1619 2002-07-07 Mark Mitchell <mark@codesourcery.com>
1620 Alan Modra <amodra@bigpond.net.au>
1621
1622 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
1623 account the impact of relocation count overflow when computing
1624 section offsets.
1625 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
1626 or not to apply the PE COFF reloc overflow handling. Fix a
1627 fencepost error in deciding whether or not to use that technique.
1628
1629 2002-07-07 Alan Modra <amodra@bigpond.net.au>
1630
1631 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
1632 change type of locsyms.
1633 (bfd_elf_get_elf_syms): Declare.
1634 * elf.c (bfd_elf_get_elf_syms): New function.
1635 (group_signature): Use bfd_elf_get_elf_syms.
1636 (bfd_section_from_r_symndx): Likewise.
1637 * elfcode.h (elf_slurp_symbol_table): Likewise.
1638 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
1639 (elf_link_add_object_symbols): Likewise. Reorganise to increase
1640 locality of various data structures. Properly free internal relocs.
1641 (elf_bfd_final_link): Properly free internal relocs.
1642 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
1643 (elf_link_input_bfd): Likewise.
1644 (elf_gc_mark): Likewise. Properly free internal relocs.
1645 (elf_gc_sweep): Properly free internal relocs.
1646 (elf_reloc_symbol_deleted_p): No need to swap syms in.
1647 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
1648 internal relocs.
1649 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
1650 Properly free possibly cached info.
1651 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
1652 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
1653 symbol swapping code.
1654 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
1655 Properly free possibly cached info.
1656 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
1657 (mn10300_elf_relax_delete_bytes): Likewise.
1658 (mn10300_elf_symbol_address_p): Likewise.
1659 (mn10300_elf_get_relocated_section_contents): Likewise.
1660 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
1661 (elf32_h8_relax_delete_bytes): Likewise.
1662 (elf32_h8_symbol_address_p): Likewise.
1663 (elf32_h8_get_relocated_section_contents): Likewise.
1664 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
1665 (m32r_elf_relax_delete_bytes): Likewise.
1666 (m32r_elf_get_relocated_section_contents): Likewise.
1667 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
1668 elf_section_data to determine whether cached.
1669 (sh_elf_relax_section): As above for elf-m10200.c.
1670 (sh_elf_relax_delete_bytes): Likewise.
1671 (sh_elf_get_relocated_section_contents): Likewise.
1672 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
1673 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
1674 reading of local syms.
1675 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
1676 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
1677 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
1678 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
1679 relocs.
1680 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
1681 free internal relocs and section contents. Don't read symbols.
1682 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
1683 (elf32_hppa_size_stubs): Don't free local syms.
1684 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
1685 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
1686 possibly cached info.
1687 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
1688 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
1689 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
1690 all_local_syms.
1691 (get_local_syms): Delete function.
1692 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
1693 on exit.
1694 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
1695
1696 2002-07-05 Jim Wilson <wilson@redhat.com>
1697
1698 * syms.c (decode_section_type): New.
1699 (bfd_decode_symclass): Call decode_section_type.
1700
1701 2002-07-04 Jakub Jelinek <jakub@redhat.com>
1702
1703 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
1704 section content start.
1705 Reported by Michael Schumacher <mike@hightec-rt.com>.
1706
1707 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1708
1709 * section.c (_bfd_strip_section_from_output): Remove unnecessary
1710 link order code. Don't actually remove the output section here;
1711 Just set a flag for the linker to do so.
1712 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
1713 sections when setting up output section dynsyms.
1714
1715 2002-07-04 Alan Modra <amodra@bigpond.net.au>
1716
1717 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
1718 fudge.
1719 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
1720 libs here instead.
1721
1722 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
1723
1724 * elf64-s390.c (create_got_section): Set .got section alignment to
1725 8 bytes.
1726 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
1727
1728 2002-07-02 Alan Modra <amodra@bigpond.net.au>
1729
1730 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
1731
1732 2002-07-01 Matt Thomas <matt@3am-software.com>
1733
1734 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
1735 to EF_VAX_*.
1736
1737 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1738
1739 * elfxx-mips.c (ABI_64_P): Fix comment.
1740 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
1741 new section names for N64 ABI.
1742 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
1743 (mips_elf_calculate_relocation): Code formatting.
1744 (mips_elf_create_dynamic_relocation): Likewise.
1745 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
1746 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
1747 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
1748 in any NewABI.
1749 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
1750 for NewABI.
1751 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
1752 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
1753 here, too.
1754
1755 2002-07-01 Andreas Schwab <schwab@suse.de>
1756
1757 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
1758 R_X86_64_64 to R_X86_64_RELATIVE.
1759
1760 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
1761
1762 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
1763 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
1764 Run "make dep-am".
1765 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
1766 host_aout_vec.
1767 * configure.in (vaxbsd_vec): Add.
1768 * targets.c (vaxbsd_vec): Add.
1769 * Makefile.in: Rebuild.
1770 * configure: Rebuild.
1771 * po/SRC-POTFILES.in: Rebuild.
1772
1773 2002-07-01 Alan Modra <amodra@bigpond.net.au>
1774
1775 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
1776 examining to gc_mark_hook, rather than the bfd.
1777 (elf_gc_sections): Adjust.
1778 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
1779 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
1780 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
1781 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
1782 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
1783 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
1784 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
1785 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
1786 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
1787 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
1788 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
1789 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
1790 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
1791 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
1792 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
1793 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
1794 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
1795 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
1796 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
1797 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
1798 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
1799 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1800 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
1801 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
1802 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
1803 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
1804 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
1805 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
1806 redundant local sym tests.
1807 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
1808 (link_hash_newfunc): Init is_entry.
1809 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
1810 (ppc64_elf_link_hash_table_create): Init all_local_syms.
1811 (create_linkage_sections): Use bfd_make_section_anyway rather than
1812 bfd_make_section.
1813 (ppc64_elf_mark_entry_syms): New function.
1814 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
1815 up opd entry to function section map.
1816 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
1817 relocs that reference the opd section.
1818 (edit_opd): New function.
1819 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
1820 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
1821 (get_local_syms): Do so here. Exit if we already have local syms.
1822 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
1823 read local syms on non-ELF input.
1824 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
1825 than duplicating it's function here. Adjust free of internal
1826 relocs to suit.
1827 (ppc64_elf_relocate_section): Adjust local syms in opd section.
1828 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
1829 * elf32-hppa.c (elf32_hppa_size_stubs): Call
1830 _bfd_elf32_link_read_relocs rather than duplicating it's function
1831 here. Adjust free of internal relocs to suit.
1832
1833 2002-07-01 Andreas Jaeger <aj@suse.de>
1834
1835 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
1836 are not allowed in shared libs code, enforce -fPIC.
1837
1838 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
1839
1840 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
1841 trailing zero-sequences when there's previous left-over data.
1842
1843 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
1844
1845 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
1846 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
1847 and opd_rel_sec in order for starting rela section. Check _raw_size.
1848 (elf_backend_reloc_type_class): Define.
1849
1850 2002-06-27 Kevin Buettner <kevinb@redhat.com>
1851
1852 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
1853 DWARF2 formats.
1854
1855 2002-06-27 Alan Modra <amodra@bigpond.net.au>
1856
1857 * cpu-powerpc.c: Comment on ordering of arch_info.
1858 * elf32-ppc.c (ppc_elf_object_p): New function.
1859 (elf_backend_object_p): Define.
1860 * elf64-ppc.c (ppc64_elf_object_p): New function.
1861 (elf_backend_object_p): Define.
1862
1863 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1864
1865 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
1866 * configure: Regenerate.
1867
1868 2002-06-25 Jason Eckhardt <jle@rice.edu>
1869
1870 * dwarf2.c (decode_line_info): Check unit->addr_size
1871 to read in the proper number of prologue bytes.
1872
1873 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
1874
1875 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
1876 aix5coff64_vec if 64-bit bfd support has been enabled.
1877 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
1878 been enabled.
1879
1880 * targets.c (_bfd_target_vector[]): Only include
1881 aix5coff64_vec if 64-bit bfd support has been enabled.
1882
1883 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1884
1885 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
1886 * elf32-hppa.c (hppa_add_stub): Likewise.
1887 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
1888 * elflink.h (elf_add_default_symbol): Fix comment typo.
1889 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
1890 (elf_link_add_object_symbols): Likewise.
1891 (elf_link_assign_sym_version): Likewise.
1892 * hash.c (bfd_hash_lookup): Likewise.
1893 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
1894 * section.c (bfd_get_unique_section_name): Likewise.
1895 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
1896 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
1897 (assign_section_numbers): Likewise.
1898 (_bfd_elfcore_make_pseudosection): Likewise.
1899 (elfcore_grok_lwpstatus): Likewise.
1900 (elfcore_grok_win32pstatus): Likewise.
1901 (elfcore_write_note): Constify input params. Use PTR instead of
1902 void *. Include terminating NUL in namesz. Correct padding.
1903 Support NULL "name" param. Use memcpy instead of strcpy.
1904 (elfcore_write_prpsinfo): Constify input params.
1905 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
1906 (elfcore_write_lwpstatus): Likewise.
1907 (elfcore_write_pstatus): Likewise.
1908 (elfcore_write_prfpreg): Likewise.
1909 (elfcore_write_prxfpreg): Likewise.
1910 * elf-bfd.h (elfcore_write_note): Update declaration.
1911 (elfcore_write_prpsinfo): Likewise.
1912 (elfcore_write_prstatus): Likewise.
1913 (elfcore_write_pstatus): Likewise.
1914 (elfcore_write_prfpreg): Likewise.
1915 (elfcore_write_prxfpreg): Likewise.
1916 (elfcore_write_lwpstatus): Likewise.
1917
1918 2002-06-25 Jason Eckhardt <jle@rice.edu>
1919
1920 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
1921 symbols of type stProc and stStaticProc.
1922
1923 2002-06-25 Nick Clifton <nickc@redhat.com>
1924
1925 * ecoff.c: VArious formatting fixes.
1926
1927 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1928
1929 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
1930
1931 2002-06-25 Alan Modra <amodra@bigpond.net.au>
1932
1933 * aout-adobe.c: Don't compare against "true" or "false.
1934 * aout-target.h: Likewise.
1935 * aoutx.h: Likewise.
1936 * archive.c: Likewise.
1937 * bout.c: Likewise.
1938 * cache.c: Likewise.
1939 * coff-a29k.c: Likewise.
1940 * coff-alpha.c: Likewise.
1941 * coff-i386.c: Likewise.
1942 * coff-mips.c: Likewise.
1943 * coff-or32.c: Likewise.
1944 * coff64-rs6000.c: Likewise.
1945 * coffcode.h: Likewise.
1946 * coffgen.c: Likewise.
1947 * cpu-ns32k.c: Likewise.
1948 * ecoff.c: Likewise.
1949 * ecofflink.c: Likewise.
1950 * elf.c: Likewise.
1951 * elf32-arm.h: Likewise.
1952 * elf32-cris.c: Likewise.
1953 * elf32-d30v.c: Likewise.
1954 * elf32-i386.c: Likewise.
1955 * elf32-mcore.c: Likewise.
1956 * elf32-ppc.c: Likewise.
1957 * elf32-sh.c: Likewise.
1958 * elf32-sh64.c: Likewise.
1959 * elf32-v850.c: Likewise.
1960 * elf64-alpha.c: Likewise.
1961 * elf64-sh64.c: Likewise.
1962 * elfcode.h: Likewise.
1963 * elfcore.h: Likewise.
1964 * elflink.h: Likewise.
1965 * elfxx-mips.c: Likewise.
1966 * i386os9k.c: Likewise.
1967 * ieee.c: Likewise.
1968 * libbfd.c: Likewise.
1969 * linker.c: Likewise.
1970 * mmo.c: Likewise.
1971 * nlm32-alpha.c: Likewise.
1972 * nlm32-i386.c: Likewise.
1973 * nlm32-ppc.c: Likewise.
1974 * nlm32-sparc.c: Likewise.
1975 * nlmcode.h: Likewise.
1976 * oasys.c: Likewise.
1977 * pdp11.c: Likewise.
1978 * peicode.h: Likewise.
1979 * reloc.c: Likewise.
1980 * som.c: Likewise.
1981 * srec.c: Likewise.
1982 * tekhex.c: Likewise.
1983 * vms.c: Likewise.
1984 * xcofflink.c: Likewise.
1985 * elf64-sparc.c: Edit comment to not use "== false".
1986
1987 * aoutf1.h: Don't use "? true : false".
1988 * ecoff.c: Likewise.
1989 * format.c: Likewise.
1990 * ieee.c: Likewise.
1991 * linker.c: Likewise.
1992 * mmo.c: Likewise.
1993 * oasys.c: Likewise.
1994
1995 2002-06-23 H.J. Lu <hjl@gnu.org>
1996
1997 * elflink.h (elf_link_add_archive_symbols): For the default
1998 version, check references with only one `@' first.
1999
2000 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
2001
2002 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
2003 function.
2004 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
2005 symbol table.
2006 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
2007 (elf64_hppa_size_dynamic_sections): Revise to use
2008 elf64_hppa_mark_milli_and_exported_functions.
2009 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
2010 symbols out of dynamic symbol table.
2011
2012 2002-06-23 Alan Modra <amodra@bigpond.net.au>
2013
2014 * Makefile.in: Regenerate.
2015 * libbfd.h: Regenerate.
2016 * bfd-in2.h: Regenerate.
2017 * configure: Regenerate.
2018 * po/SRC-POTFILES.in: Regenerate.
2019
2020 * elflink.h: Comment typo fixes.
2021
2022 2002-06-23 H.J. Lu <hjl@gnu.org>
2023
2024 * elf-bfd.h (elf_link_loaded_list): New structure.
2025 (elf_link_hash_table): Add "loaded".
2026 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
2027 * elflink.h (elf_link_check_versioned_symbol): New function.
2028 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
2029
2030 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
2031
2032 * elflink.h (size_dynamic_sections): If the target does not
2033 support an ELF style hash table, return true, indicating that
2034 nothing needed to be done, rather than false, indicating that the
2035 section's size could not be computed.
2036
2037 2002-06-18 Dave Brolley <brolley@redhat.com>
2038
2039 From Catherine Moore, Michael Meissner, Dave Brolley:
2040 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
2041 * targets.c: Support bfd_elf32_frv_vec.
2042 * reloc.c: Add FRV relocs.
2043 * configure.in: Add support for bfd-elf32-frv-vec.
2044 * config.bfd (targ_cpu): Add support for frv-*-elf.
2045 * archures.c: Add frv arch and machines.
2046 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
2047 (ALL_MACHINES_CFILES): Add cpu-frv.c.
2048 (BFD32_BACKENDS): Add elf32-frv.lo.
2049 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
2050 (cpu-frv.lo): New target.
2051 (elf32-frv.lo): New target.
2052 * cpu-frv.c: New file.
2053 * elf32-frv.c: New file.
2054
2055 2002-06-18 Jakub Jelinek <jakub@redhat.com>
2056
2057 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
2058 e_shnum == 0.
2059 Only read the first section header if e_shoff is non-zero.
2060 Don't consider e_shstrndx if there are no sections.
2061
2062 2002-06-17 Tom Rix <trix@redhat.com>
2063
2064 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
2065 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
2066 complain_overflow_bitfield.
2067
2068 2002-06-17 Alan Modra <amodra@bigpond.net.au>
2069
2070 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
2071 (bfd_fdopenr): Likewise.
2072 (bfd_openstreamr): Likewise.
2073 (bfd_openw): Likewise.
2074
2075 * targets.c: Sort target vecs.
2076 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
2077 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
2078 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
2079 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
2080 * configure.in: Sort target vecs. Add m88kmach3_vec.
2081 * configure: Regenerate.
2082
2083 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
2084
2085 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
2086 bpo_reloc_no to break sort order ties, not address of items.
2087
2088 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2089
2090 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
2091 Skip excluded sections in determing __gp value.
2092 (elf_hppa_final_link_relocate): Use the symbol's address in
2093 R_PARISC_FPTR64 relocations that don't need an opd entry.
2094 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
2095 (elf64_hppa_finalize_dynreloc): Likewise.
2096 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
2097 (elf64_hppa_finish_dynamic_symbol): Break up assert.
2098
2099 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
2100
2101 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
2102 alignment for .bss, .data and .text sections so that sse and sse2
2103 code will work.
2104 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2105
2106 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
2107
2108 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
2109 sh[1234]*-elf*.
2110
2111 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2112
2113 * elflink.h (elf_bfd_final_link): Improve error handling for missing
2114 dynamic sections.
2115
2116 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
2117 for a symbol that has no output section.
2118 (allocate_dynrel_entries): Correct comment.
2119 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
2120 unless we want one.
2121 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
2122 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
2123 with no section. Remove unnecessary parentheses.
2124
2125 2002-06-11 Tom Rix <trix@redhat.com>
2126
2127 * coffcode.h (coff_compute_section_file_positions): Add data
2128 section to AIX loader alignment check.
2129
2130 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
2131 alignment to 4 bytes.
2132 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
2133 power accessor macro.
2134 (do_shared_object_padding): Remove invalid assertion.
2135
2136 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2137
2138 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
2139 for removed output sections.
2140
2141 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
2142
2143 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
2144 htab_alloc.
2145 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
2146
2147 2002-06-08 H.J. Lu <hjl@gnu.org>
2148
2149 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
2150 work around a long long bug in gcc 2.96 on mips.
2151
2152 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2153
2154 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
2155 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
2156 Regenerate dependency lists.
2157 * Makefile.in: Regenerate.
2158 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
2159 vax1knetbsd_vec to targ_selvecs.
2160 * configure.in: Add vax1knetbsd_vec.
2161 * configure: Regenerate.
2162 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
2163 * vax1knetbsd.c: New file.
2164 * vaxnetbsd.c: Update copyright years.
2165 (TARGET_PAGE_SIZE): Set to 0x1000.
2166 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
2167
2168 2002-06-08 Matt Thomas <matt@3am-software.com>
2169
2170 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
2171
2172 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2173
2174 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
2175
2176 2002-06-08 Alan Modra <amodra@bigpond.net.au>
2177
2178 * Makefile.am: Run "make dep-am".
2179 * Makefile.in: Regenerate.
2180
2181 * armnetbsd.c: Replace CONST with const.
2182 * corefile.c: Likewise.
2183 * elf32-dlx.c: Likewise.
2184 * elf64-mips.c: Likewise.
2185 * mmo.c: Likewise.
2186 * ns32knetbsd.c: Likewise.
2187
2188 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
2189 table is elf64-sparc.
2190
2191 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2192
2193 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
2194 Fix RELA addends to get not shifted in the result. Don't do special
2195 handling of R_MIPS_64 for NewABI.
2196
2197 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2198
2199 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
2200 (NAME(aout,slurp_reloc_table)): Likewise.
2201 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
2202 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
2203 (xcoff_write_archive_contents_big): Likewise.
2204 (xcoff_generate_rtinit): Likewise.
2205 (xcoff_generate_rtinit): Likewise, and check error return.
2206 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
2207 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
2208 (coff_get_normalized_symtab): Likewise.
2209 (coff_make_empty_symbol): Likewise.
2210 (bfd_coff_set_symbol_class): Likewise.
2211 * cofflink.c (coff_link_add_symbols): Likewise.
2212 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
2213 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
2214 (bfd_ecoff_write_accumulated_debug): Likewise.
2215 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
2216 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
2217 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
2218 * ieee.c (do_with_relocs): Use bfd_zalloc.
2219 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
2220 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
2221 (NAME(aout,slurp_reloc_table)): Likewise.
2222 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
2223 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
2224 * som.c (som_build_and_write_symbol_table): Likewise.
2225 (som_slurp_string_table): Likewise.
2226 (som_slurp_symbol_table): Likewise.
2227 (som_bfd_ar_write_symbol_stuff): Likewise.
2228 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
2229 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
2230 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
2231 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
2232 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
2233
2234 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2235
2236 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
2237 "group" union.
2238 (elf_group_name): Update.
2239 (elf_group_id): Define.
2240 (bfd_elf_set_group_contents): Declare.
2241 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
2242 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
2243 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
2244 that sym for the signature.
2245 (_bfd_elf_compute_section_file_positions): Don't call
2246 set_group_contents for "ld -r" case.
2247 (swap_out_syms): Use bfd_zalloc.
2248 * elflink.h (elf_link_add_archive_symbols): Likewise.
2249 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
2250 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
2251
2252 2002-06-07 Alan Modra <amodra@bigpond.net.au>
2253
2254 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
2255 relocs in opd for non-shared too.
2256
2257 2002-06-06 Jeffrey Law <law@redhat.com>
2258
2259 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
2260 relocations.
2261
2262 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
2263
2264 * merge.c: Include libiberty.h.
2265 * elf-strtab.c: Include libiberty.h.
2266
2267 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
2268
2269 * peXXigen.c (pe_print_idata): Remove unused variable.
2270
2271 2002-06-06 David Heine <dlheine@tensilica.com>
2272
2273 * elf.c (assign_file_positions_for_segments): Remove unallocated
2274 sections from the section to segment mapping for PT_LOAD segments.
2275 Update comment about empty loadable segments.
2276
2277 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
2278
2279 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
2280 is within the .stabstr section.
2281
2282 2002-06-06 Alan Modra <amodra@bigpond.net.au>
2283
2284 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
2285 are "const PTR", not "const PTR *".
2286 (bfd_elf32_swap_symbol_in): Likewise.
2287 (bfd_elf64_swap_symbol_in): Likewise.
2288 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
2289 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
2290 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
2291 (elf_link_add_object_symbols): Likewise.
2292 (elf_link_record_local_dynamic_symbol): Likewise.
2293 (elf_link_input_bfd): Likewise.
2294 (elf_gc_mark): Likewise.
2295 (elf_reloc_symbol_deleted_p): Likewise.
2296 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
2297 (mn10200_elf_relax_delete_bytes): Likewise.
2298 (mn10200_elf_symbol_address_p): Likewise.
2299 (mn10200_elf_get_relocated_section_contents): Likewise.
2300 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
2301 (mn10300_elf_relax_section): Likewise.
2302 (mn10300_elf_relax_delete_bytes): Likewise.
2303 (mn10300_elf_symbol_address_p): Likewise.
2304 (mn10300_elf_get_relocated_section_contents): Likewise.
2305 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
2306 (elf32_h8_relax_delete_bytes): Likewise.
2307 (elf32_h8_symbol_address_p): Likewise.
2308 (elf32_h8_get_relocated_section_contents): Likewise.
2309 * elf32-hppa.c (get_local_syms): Likewise.
2310 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
2311 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
2312 * elf32-sh.c (sh_elf_relax_section): Likewise.
2313 (sh_elf_relax_delete_bytes): Likewise.
2314 (sh_elf_get_relocated_section_contents): Likewise.
2315 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
2316 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
2317 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
2318 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
2319 * elf64-ppc.c (get_local_syms): Likewise.
2320 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
2321 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
2322
2323 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
2324
2325 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
2326
2327 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2328
2329 * elf.c (group_signature): Swap in the whole symbol, and handle
2330 extracting section symbol names.
2331 (setup_group): Add comment.
2332 (set_group_contents): When called from objcopy or ld, arrange for
2333 section contents to be written. Write group member output section
2334 indices to allow objcopy to reorganize sections.
2335 (_bfd_elf_copy_private_section_data): Copy group info.
2336
2337 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
2338 (bfd_elf32_swap_symbol_in): Update prototype.
2339 (bfd_elf64_swap_symbol_in): Likewise.
2340 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
2341 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
2342 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
2343 (elf_link_add_object_symbols): Likewise.
2344 (elf_link_record_local_dynamic_symbol): Likewise.
2345 (elf_link_input_bfd): Likewise.
2346 (elf_gc_mark): Likewise.
2347 (elf_reloc_symbol_deleted_p): Likewise.
2348 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
2349 (mn10200_elf_relax_delete_bytes): Likewise.
2350 (mn10200_elf_symbol_address_p): Likewise.
2351 (mn10200_elf_get_relocated_section_contents): Likewise.
2352 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
2353 (mn10300_elf_relax_section): Likewise.
2354 (mn10300_elf_relax_delete_bytes): Likewise.
2355 (mn10300_elf_symbol_address_p): Likewise.
2356 (mn10300_elf_get_relocated_section_contents): Likewise.
2357 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
2358 (elf32_h8_relax_delete_bytes): Likewise.
2359 (elf32_h8_symbol_address_p): Likewise.
2360 (elf32_h8_get_relocated_section_contents): Likewise.
2361 * elf32-hppa.c (get_local_syms): Likewise.
2362 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
2363 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
2364 * elf32-sh.c (sh_elf_relax_section): Likewise.
2365 (sh_elf_relax_delete_bytes): Likewise.
2366 (sh_elf_get_relocated_section_contents): Likewise.
2367 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
2368 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
2369 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
2370 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
2371 * elf64-ppc.c (get_local_syms): Likewise.
2372 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
2373 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
2374 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
2375 * elf64-alpha.c (alpha_elf_size_info): Likewise.
2376 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
2377 * elf64-mips.c (mips_elf64_size_info): Likewise.
2378 * elf64-s390.c (s390_elf64_size_info): Likewise.
2379 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
2380
2381 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2382
2383 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
2384 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
2385 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
2386 _bfd_mips_elf_ignore_discarded_relocs.
2387 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
2388
2389 2002-06-05 H.J. Lu <hjl@gnu.org>
2390
2391 * elfxx-mips.c (mips_elf_calculate_relocation): Call
2392 _bfd_elf_rel_local_sym for STT_SECTION relocations against
2393 the SEC_MERGE section.
2394
2395 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2396
2397 * coff-alpha.c: Update copyright date.
2398 * coff-mips.c: Likewise.
2399 * xcoff-target.h: Likewise.
2400
2401 * bfd-in.h: Remove "taken from the source" comment.
2402 * libbfd-in.h: Likewise.
2403 * libcoff-in.h: Likewise.
2404 * bfd-in2.h: Regenerate.
2405 * libbfd.h: Regenerate.
2406 * libcoff.h: Regenerate.
2407
2408 * elf.c (bfd_elf_discard_group): Return true.
2409 * elf-bfd.h (bfd_elf_discard_group): Declare.
2410 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
2411 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
2412 * bfd.c (bfd_discard_group): Define.
2413 * targets.c (struct bfd_target): Add _bfd_discard_group.
2414 (BFD_JUMP_TABLE_LINK): Here too.
2415 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
2416 * aout-adobe.c (aout_32_bfd_discard_group): Define.
2417 * aout-target.h (MY_bfd_discard_group): Define.
2418 * aout-tic30.c (MY_bfd_discard_group): Define.
2419 * binary.c (binary_bfd_discard_group): Define.
2420 * bout.c (b_out_bfd_discard_group): Define.
2421 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
2422 * coffcode.h (coff_bfd_discard_group): Define.
2423 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
2424 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
2425 * i386msdos.c (msdos_bfd_discard_group): Define.
2426 * i386os9k.c (os9k_bfd_discard_group): Define.
2427 * ieee.c (ieee_bfd_discard_group): Define.
2428 * ihex.c (ihex_bfd_discard_group): Define.
2429 * mmo.c (mmo_bfd_discard_group): Define.
2430 * nlm-target.h (nlm_bfd_discard_group): Define.
2431 * oasys.c (oasys_bfd_discard_group): Define.
2432 * ppcboot.c (ppcboot_bfd_discard_group): Define.
2433 * som.c (som_bfd_discard_group): Define.
2434 * srec.c (srec_bfd_discard_group): Define.
2435 * tekhex.c (tekhex_bfd_discard_group): Define.
2436 * versados.c (versados_bfd_discard_group): Define.
2437 * vms.c (vms_bfd_discard_group): Define.
2438 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
2439 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
2440 (aix5coff64_vec): Likewise.
2441 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
2442
2443 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2444
2445 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
2446 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
2447 (elf32-sh64-com.lo): New dependency list.
2448 * Makefile.in: Regenerate.
2449 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
2450 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
2451 elf32-sh64-com.lo.
2452 * configure: Regenerate.
2453 * elf32-sh64.c (sh64_address_in_cranges)
2454 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
2455 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
2456 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
2457 * elf32-sh64-com.c: ...here. New file.
2458
2459 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2460
2461 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
2462 ATTRIBUTE_UNUSED on used params.
2463 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
2464 before calling bfd_section_from_elf_index on local syms.
2465 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
2466
2467 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2468
2469 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
2470 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
2471 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
2472 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
2473 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
2474 * Makefile.in: Regenerate.
2475 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
2476 (sh64-*-netbsd*): New targets.
2477 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
2478 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
2479 * configure: Regenerate.
2480 * elf32-sh64-nbsd.c: New file.
2481 * elf64-sh64-nbsd.c: New file.
2482 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
2483 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
2484 bfd_elf64_sh64lnbsd_vec.
2485
2486 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2487
2488 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
2489 (bfd_section_from_shdr): Likewise. Set section name of group
2490 sections from signature.
2491 (group_signature): Split out from setup_group. Ensure symbol table
2492 is available.
2493 (bfd_elf_discard_group): New function.
2494 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
2495 .gnu.linkonce* sections if they are members of a group.
2496 (set_group_contents): Set GRP_COMDAT flag.
2497 * section.c (bfd_discard_group): New function.
2498 * bfd-in.h (bfd_elf_discard_group): Declare.
2499 * bfd-in2.h: Regenerate.
2500 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
2501 (elf_linkonce_p): Define.
2502
2503 2002-06-04 Alan Modra <amodra@bigpond.net.au>
2504
2505 * elf.c (bfd_section_from_shdr): Make "name" const.
2506 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
2507 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
2508 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
2509 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
2510 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
2511 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
2512 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
2513 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
2514 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
2515 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
2516 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
2517
2518 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2519
2520 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
2521 ABI.
2522
2523 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2524
2525 * elf32-arc.c: Fix formatting.
2526 * elf32-arm.h: Likewise.
2527 * elf32-cris.c: Likewise.
2528 * elf32-dlx.c: Likewise.
2529 * elf32-hppa.c: Likewise.
2530 * elf32-i386.c: Likewise.
2531 * elf32-i386qnx.c: Likewise.
2532 * elf32-or32.c: Likewise.
2533 * elf32-s390.c: Likewise.
2534 * elf32-sh64.c: Likewise.
2535 * elf32-vax.c: Likewise.
2536 * elf32-xstormy16.c: Likewise.
2537 * elf64-alpha.c: Likewise.
2538 * elf64-mmix.c: Likewise.
2539 * elf64-ppc.c: Likewise.
2540 * elf64-s390.c: Likewise.
2541 * elf64-sh64.c: Likewise.
2542 * elf64-x86-64.c: Likewise.
2543
2544 2002-06-02 Richard Henderson <rth@redhat.com>
2545
2546 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
2547 null when there are no got entries for a symbol.
2548 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
2549 uninitialized variable warning.
2550
2551 2002-06-01 Richard Henderson <rth@redhat.com>
2552
2553 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
2554 undefined symbols here.
2555 (elf64_alpha_relax_section): Do it here. Also test for not
2556 defined in the current module.
2557 (elf64_alpha_relocate_section_r): Split out of ...
2558 (elf64_alpha_relocate_section): ... here. Don't dereference
2559 NULL when looking up local got entries.
2560
2561 2002-06-01 Richard Henderson <rth@redhat.com>
2562
2563 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
2564 symbols from JSR relaxation.
2565 (elf64_alpha_size_plt_section_1): New.
2566 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
2567 (elf64_alpha_size_rela_got_1): ... here.
2568 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
2569 (elf64_alpha_size_rela_got_section): ... here.
2570 (elf64_alpha_size_plt_section): New.
2571 (elf64_alpha_relax_section): Call them.
2572 (elf64_alpha_size_got_sections): Remove output_bfd arg.
2573 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
2574
2575 2002-06-01 Richard Henderson <rth@redhat.com>
2576
2577 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
2578 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
2579 in shared libraries. Fix DTPRELHI and TPRELHI value.
2580 (INSN_ADDQ, INSN_RDUNIQ): New.
2581 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
2582 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
2583 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
2584 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
2585 Handle GOTDTPREL and GOTTPREL relocations.
2586 (elf64_alpha_relax_gprelhilo): New.
2587 (elf64_alpha_relax_tls_get_addr): New.
2588 (elf64_alpha_relax_find_tls_segment): New.
2589 (elf64_alpha_relax_section): Handle TLS relocations.
2590 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
2591 (elf64_alpha_check_relocs): Set it.
2592
2593 2002-06-01 Richard Henderson <rth@redhat.com>
2594
2595 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
2596
2597 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
2598 check; don't suppress dynamic relocs for non-allocated sections.
2599
2600 * elf64-alpha.c: Remove dead code.
2601
2602 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2603
2604 * bfd-in2.h: Regenerate.
2605 * libbfd.h: Regenerate.
2606 * po/SRC-POTFILES.in: Regenerate.
2607
2608 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
2609 space for bss .plt.
2610
2611 2002-05-31 Graeme Peterson <gp@qnx.com>
2612
2613 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
2614 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
2615 Run "make dep-am".
2616 * Makefile.in: Regenerate.
2617 * config.bfd: Add i[3456]86-*-nto-qnx* support.
2618 * configure.in: Add bfd_elf32_i386qnx_vec support.
2619 * configure: Regenerate.
2620 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
2621 is_contained_by_filepos, and copy_private_bfd_data_p.
2622 * elf.c (assign_file_positions_for_segments): Call backend
2623 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
2624 (IS_CONTAINED_BY_FILEPOS): Define.
2625 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
2626 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
2627 Fix non-K&R call to _bfd_error_handler.
2628 (_bfd_elf_copy_private_section_data): Use backend
2629 copy_private_bfd_data_p.
2630 * elf32-i386.c: Don't include elfxx-target.h when
2631 ELF32_I386_C_INCLUDED is defined.
2632 * elf32-i386qnx.c: New QNX elf backend file.
2633 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
2634 elf_backend_is_contained_by_filepos, and
2635 elf_backend_do_copy_private_bfd_data.
2636 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
2637
2638 2002-05-31 Alan Modra <amodra@bigpond.net.au>
2639
2640 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
2641 Move other similar defines to start of file.
2642
2643 2002-05-30 Tom Rix <trix@redhat.com>
2644
2645 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
2646 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
2647
2648 2002-05-30 Richard Henderson <rth@redhat.com>
2649
2650 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
2651 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
2652 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
2653 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
2654 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
2655 (struct alpha_elf_obj_tdata): Rename total_got_entries and
2656 n_local_got_entries to total_got_size and local_got_size.
2657 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
2658 (alpha_got_entry_size): New.
2659 (elf64_alpha_relax_with_lituse): Use it.
2660 (elf64_alpha_relax_without_lituse): Likewise.
2661 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
2662 (get_got_entry): New.
2663 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
2664 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
2665 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
2666 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
2667 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
2668 (elf64_alpha_calc_got_offsets): Likewise.
2669 (alpha_dynamic_entries_for_reloc): New.
2670 (elf64_alpha_calc_dynrel_sizes): Use it.
2671 (elf64_alpha_size_dynamic_sections): Likewise.
2672 (elf64_alpha_relocate_section): Handle TLS relocations.
2673 * reloc.c: Add Alpha TLS relocations.
2674 * bfd-in2.h, libbfd.h: Rebuild.
2675
2676 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
2677
2678 * peXXigen.c (pe_print_idata): Remove double printed
2679 import table lines; add Bound-To comment.
2680
2681 2002-05-29 Matt Thomas <matt@3am-software.com>
2682
2683 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
2684 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
2685 (elf32-vax.lo): New rule.
2686 * Makefile.in: Regenerate.
2687 * configure.in (bfd_elf32_vax_vec)
2688 (vaxnetbsd_vec): New vectors.
2689 * configure: Regenerate.
2690 * config.bfd (vax-*-netbsdelf*)
2691 (vax-*-netbsdaout*)
2692 (vax-*-netbsd*): New targets.
2693 * elf32-vax.c: New file.
2694 * reloc.c: Add VAX relocations.
2695 * bfd-in2.h: Regenerate.
2696 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
2697
2698 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2699
2700 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
2701 and bfd_elf32_bigarm_vec to targ_selvecs.
2702
2703 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
2704
2705 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
2706 with auto-imported symbols.
2707
2708 2002-05-29 Adam Nemet <anemet@lnxw.com>
2709
2710 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
2711 sections only record bfd.
2712 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
2713 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
2714 * bfd-in2.h: Regenerate.
2715
2716 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2717
2718 * syms.c (_bfd_stab_section_find_nearest_line): Move
2719 declaration and initialisation of saw_line and saw_func out of
2720 for loop.
2721
2722 2002-05-29 Alan Modra <amodra@bigpond.net.au>
2723
2724 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
2725 (bfd_elf64_get_symbol_info): Define.
2726 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
2727
2728 2002-05-29 Andrey Volkov <avolkov@transas.com>
2729
2730 * cpu-h8300.c: Make default h8300 machine first in machine list.
2731
2732 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
2733
2734 * config.bfd: Added DLX configuraton.
2735 * Makefile.am: Added DLX configuraton.
2736 * configure.in: Added DLX configuraton.
2737 * archures.c: Add DLX architecure.
2738 * reloc.c: Add DLX relocs.
2739 * targets.c: Added DLX target vector.
2740 * configure: Regenerate.
2741 * Makefile.in: Regenreate.
2742 * bfd-in2.h: Regenreate.
2743 * elf32-dlx.c: New file: Support DLX target.
2744 * cpu-dlx.c: New file: Support DLX target.
2745
2746 2002-05-25 Alan Modra <amodra@bigpond.net.au>
2747
2748 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
2749
2750 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
2751 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
2752 strings to point inside function code sym string.
2753 (func_desc_adjust): Likewise.
2754 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
2755
2756 2002-05-24 Michal Ludvig <mludvig@suse.cz>
2757
2758 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
2759 (elf64_x86_64_grok_psinfo): Added.
2760
2761 2002-05-24 TAMURA Kent <kent@netbsd.org>
2762
2763 * config.bfd: Add a target for i386-netbsdpe.
2764
2765 2002-05-24 Alan Modra <amodra@bigpond.net.au>
2766
2767 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
2768 and is_func_descriptor.
2769 (func_desc_adjust): Hide function code sym in shared libs unless
2770 there is a matching exported function descriptor sym.
2771
2772 2002-05-23 Jakub Jelinek <jakub@redhat.com>
2773
2774 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
2775 for symbols from SHF_TLS section.
2776 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
2777 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
2778 (map_sections_to_segments): Build PT_TLS segment if necessary.
2779 (assign_file_positions_for_segments): Likewise.
2780 (get_program_header_size): Account for PT_TLS segment.
2781 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
2782 SEC_THREAD_LOCAL sections to STT_TLS.
2783 * reloc.c: Add 386 and IA-64 TLS relocs.
2784 * section.c (SEC_THREAD_LOCAL): Define.
2785 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
2786 Remove.
2787 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
2788 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
2789 unconditionally.
2790 (struct elf_final_link_info): Add first_tls_sec.
2791 (elf_bfd_final_link): Set first_tls_sec.
2792 Compute elf_hash_table (info)->tls_segment.
2793 (elf_link_output_extsym): Handle STT_TLS symbols.
2794 (elf_link_input_bfd): Likewise.
2795 * syms.c (BSF_THREAD_LOCAL): Define.
2796 * bfd-in2.h: Rebuilt.
2797 * libbfd.h: Rebuilt.
2798 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
2799 elf_i386_mkobject, elf_i386_object_p): New functions.
2800 (elf_howto_table): Add TLS relocs.
2801 (elf_i386_reloc_type_lookup): Support TLS relocs.
2802 (elf_i386_info_to_howto_rel): Likewise.
2803 (struct elf_i386_link_hash_entry): Add tls_type.
2804 (struct elf_i386_obj_tdata): New.
2805 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
2806 New macros.
2807 (struct elf_i386_link_hash_table): Add tls_ldm_got.
2808 (link_hash_newfunc): Clear tls_type.
2809 (elf_i386_check_relocs): Support TLS relocs.
2810 (elf_i386_gc_sweep_hook): Likewise.
2811 (allocate_dynrelocs): Likewise.
2812 (elf_i386_size_dynamic_sections): Likewise.
2813 (elf_i386_relocate_section): Likewise.
2814 (elf_i386_finish_dynamic_symbol): Likewise.
2815 (bfd_elf32_mkobject, elf_backend_object_p): Define.
2816 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
2817 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
2818 want_tprel, want_dtpmod, want_dtprel.
2819 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
2820 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
2821 R_IA64_LTOFF_TPREL22.
2822 (elf_code_to_howto_index): Add TLS relocs.
2823 (elfNN_ia64_check_relocs): Support TLS relocs.
2824 (allocate_global_data_got): Account for TLS .got data.
2825 (allocate_dynrel_entries): Account for TLS dynamic relocations.
2826 (elfNN_ia64_install_value): Supprt TLS relocs.
2827 (set_got_entry): Support TLS relocs.
2828 (elfNN_ia64_relocate_section): Likewise.
2829
2830 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2831
2832 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
2833 BLX reloc round the relocation up rather than down.
2834 * coff-arm.c (coff_arm_relocate_section): Likewise.
2835
2836 2002-05-21 H.J. Lu (hjl@gnu.org)
2837
2838 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
2839 definition.
2840
2841 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2842
2843 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
2844 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
2845
2846 2002-05-22 Alan Modra <amodra@bigpond.net.au>
2847
2848 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
2849 unresolved relocs.
2850 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
2851
2852 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2853
2854 * bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
2855 non-ELF targets.
2856
2857 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2858
2859 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
2860 an error value.
2861 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
2862 return with false on error.
2863 (elf_link_input_bfd): Check reloc_emitter return value.
2864
2865 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2866
2867 * config.bfd (armeb-*-netbsdelf*): New target.
2868
2869 2002-05-20 Alan Modra <amodra@bigpond.net.au>
2870
2871 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
2872 at the plt call stub.
2873
2874 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2875
2876 * cpu-mips.c (mips_compatible): Don't try to check machine
2877 compatibility.
2878
2879 2002-05-18 Tom Rix <trix@redhat.com>
2880
2881 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
2882
2883 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2884
2885 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
2886 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
2887 we've already warned about an undefined symbol. Report more
2888 detail on reloc errors.
2889
2890 2002-05-17 Alan Modra <amodra@bigpond.net.au>
2891
2892 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
2893 * configure.in: Invoke AM_INSTALL_LIBBFD.
2894 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
2895 (install_libbfd): .. New target.
2896 (uninstall_libbfd): Likewise.
2897 (install-bfdlibLTLIBRARIES): Likewise.
2898 (uninstall-bfdlibLTLIBRARIES): Likewise.
2899 (bfdlibdir): New.
2900 (bfdincludedir): New.
2901 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
2902 * aclocal.m4: Regenerate.
2903 * configure: Regenerate.
2904 * Makefile.in: Regenerate.
2905
2906 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
2907
2908 * hash.c (bfd_hash_lookup): Remove computation of len from inside
2909 hash loop.
2910
2911 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
2912
2913 * config.bfd: Add targets for sh64-linux (little endian and
2914 big endian).
2915
2916 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
2917
2918 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
2919 is located in the same section as the import table. Instead
2920 check, and if necessary load the section containing the thunk.
2921
2922 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
2923
2924 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
2925 bfd_bread.
2926 (xcoff64_core_file_matches_executable_p): Replace bfd_read
2927 with bfd_bread.
2928
2929 2002-05-15 Alan Modra <amodra@bigpond.net.au>
2930
2931 * aix5ppc-core.c: Warning fixes.
2932 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
2933 * aout-target.h (MY_bfd_link_just_syms): Define.
2934 * aout-tic30.c (MY_bfd_link_just_syms): Define.
2935 * bfd.c (bfd_link_just_syms): Define.
2936 * binary.c (binary_bfd_link_just_syms): Define.
2937 * bout.c (b_out_bfd_link_just_syms): Define.
2938 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
2939 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2940 * coffcode.h (coff_bfd_link_just_syms): Define.
2941 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
2942 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
2943 (_bfd_elf_link_just_syms): Declare.
2944 * elf.c (_bfd_elf_link_just_syms): New function.
2945 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
2946 sections haven't already been discarded by the linker.
2947 * elflink.h (elf_link_add_object_symbols): Likewise for stab
2948 sections and SEC_MERGE sections.
2949 (elf_bfd_discard_info): Similarly here.
2950 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
2951 * i386msdos.c (msdos_bfd_link_just_syms): Define.
2952 * i386os9k.c (os9k_bfd_link_just_syms): Define.
2953 * ieee.c (ieee_bfd_link_just_syms): Define.
2954 * ihex.c (ihex_bfd_link_just_syms): Define.
2955 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
2956 (_bfd_generic_link_just_syms): Declare.
2957 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
2958 * linker.c (_bfd_generic_link_just_syms): New function.
2959 * mmo.c (mmo_bfd_link_just_syms): Define.
2960 * nlm-target.h (nlm_bfd_link_just_syms): Define.
2961 * oasys.c (oasys_bfd_link_just_syms): Define.
2962 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
2963 * som.c (som_bfd_link_just_syms): Define.
2964 * srec.c (srec_bfd_link_just_syms): Define.
2965 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
2966 (BFD_JUMP_TABLE_LINK): And here.
2967 * tekhex.c (tekhex_bfd_link_just_syms): Define.
2968 * versados.c (versados_bfd_link_just_syms): Define.
2969 * vms.c (vms_bfd_link_just_syms): Define.
2970 * libbfd.h: Regenerate.
2971 * bfd-in2.h: Regenerate.
2972
2973 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2974
2975 * elf32-mips.c: Remove superfluous definitions copied from
2976 elfxx-mips.c.
2977 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
2978 SGIish vectors to check the special case.
2979 (mips_elf_hi16_reloc): Fix comment.
2980 (mips_elf_got16_reloc): Likewise.
2981 (_bfd_mips_elf32_gprel16_reloc): Likewise.
2982 (elf_reloc_map): Code cleanup.
2983 (mips_reloc_map): Add comment.
2984 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
2985 (mips_elf32_rtype_to_howto): Likewise.
2986 (mips_elf32_discard_info): Likewise.
2987 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
2988 lead to IRIX compatibility now.
2989
2990 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2991
2992 * elfxx-mips.c: Call it IRIX, not Irix in comments.
2993
2994 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
2995
2996 * config.bfd (shle-*-netbsdelf*): Add target which includes
2997 sh64 support.
2998
2999 2002-05-13 David Edelsohn <edelsohn@gnu.org>
3000
3001 * configure.in: Revert 2002-04-07. Instead, auto-configure
3002 HAVE_ST_C_IMPL.
3003 * configure: Regenerate.
3004 * config.in: Regenerate.
3005 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
3006 or AIX_5_CORE.
3007
3008 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
3009
3010 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
3011 corefiles as well.2
3012 * configure: Regenerate.
3013
3014 2002-05-13 Alan Modra <amodra@bigpond.net.au>
3015
3016 * Makefile.am (install-data-local): Install headers to
3017 $(exec_prefix)/include.
3018 * Makefile.in: Regenerate.
3019
3020 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3021 Daniel Jacobowitz <drow@mvista.com>
3022
3023 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
3024 map BFD_RELOC_RVA.
3025
3026 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
3027
3028 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
3029 hppa*-*-openbsd*): New targets.
3030 * configure.in (alpha*-*-openbsd*): Set COREFILE.
3031 * configure: Regenerate.
3032
3033 2002-05-10 Tom Rix <trix@redhat.com>
3034
3035 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
3036 xcoff64_ppc_relocate_section.
3037 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
3038 * libxcoff.h: Common xcoff_reloc_type function declaration.
3039
3040 2002-05-10 Alan Modra <amodra@bigpond.net.au>
3041
3042 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
3043 added in 2002-05-09 commit.
3044
3045 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
3046 don't look for stubs on all undefined syms.
3047
3048 2002-05-09 Alan Modra <amodra@bigpond.net.au>
3049
3050 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
3051 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
3052 pcrel_offset.
3053
3054 * elf32-i386.c (elf_howto_table): Comments.
3055 (elf_i386_relocate_section): Handle more relocs for relocatable
3056 linking and against SEC_MERGE sections.
3057
3058 2002-05-08 Alan Modra <amodra@bigpond.net.au>
3059
3060 * elf32-ppc.c (ppc_elf_create_got): New function.
3061 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
3062 _bfd_elf_create_dynamic_sections. Correct .plt flags.
3063 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
3064 _bfd_elf_create_got_section.
3065
3066 2002-05-07 Alan Modra <amodra@bigpond.net.au>
3067
3068 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
3069 * elfxx-target.h (elf_backend_rela_normal): Define.
3070 (elfNN_bed): Init rela_normal.
3071 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
3072 for section symbols here if rela_normal. Simplify abs section test.
3073 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
3074 return immediately. Remove code handling relocatable linking.
3075 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
3076 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
3077 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3078 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
3079 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3080 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3081 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
3082 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3083 * elf32-s390.c (elf_s390_relocate_section): Likewise.
3084 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
3085 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
3086 * elf64-s390.c (elf_s390_relocate_section): Likewise.
3087 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
3088 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
3089 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
3090 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
3091 * elf-m10200.c (elf_backend_rela_normal): Define.
3092 * elf-m10300.c (elf_backend_rela_normal): Define.
3093 * elf32-fr30.c (elf_backend_rela_normal): Define.
3094 * elf32-i370.c (elf_backend_rela_normal): Define.
3095 * elf32-i860.c (elf_backend_rela_normal): Define.
3096 * elf32-m68k.c (elf_backend_rela_normal): Define.
3097 * elf32-mcore.c (elf_backend_rela_normal): Define.
3098 * elf32-openrisc.c (elf_backend_rela_normal): Define.
3099 * elf32-ppc.c (elf_backend_rela_normal): Define.
3100 * elf32-s390.c (elf_backend_rela_normal): Define.
3101 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
3102 * elf64-ppc.c (elf_backend_rela_normal): Define.
3103 * elf64-s390.c (elf_backend_rela_normal): Define.
3104 * elf64-x86-64.c (elf_backend_rela_normal): Define.
3105 * elfxx-ia64.c (elf_backend_rela_normal): Define.
3106 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
3107 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
3108
3109 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
3110
3111 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
3112 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
3113
3114 2002-05-06 Alan Modra <amodra@bigpond.net.au>
3115
3116 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
3117 when not relocatable. Fix reloc_emitter call for K&R.
3118
3119 2002-05-04 Alan Modra <amodra@bigpond.net.au>
3120
3121 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
3122 reloading local sym addend mistakenly removed in 2002-05-01 change.
3123
3124 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
3125 (read_abbrevs): Change "offset" param to bfd_vma.
3126 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
3127 Change "abbrev_offset" to bfd_vma.
3128 (read_indirect_string): Use correct conversion chars in error
3129 message format string, cast bfd_vma's to unsigned long.
3130 (read_abbrevs): Likewise.
3131 (read_attribute_value): Likewise.
3132 (decode_line_info): Likewise.
3133 (scan_unit_for_functions): Likewise.
3134 (parse_comp_unit): Likewise.
3135
3136 2002-05-04 Tom Rix <trix@redhat.com>
3137
3138 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
3139 (coff_swap_reloc_out): Same.
3140 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
3141 (xcoff_swap_reloc_out): Same.
3142 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
3143 case some 16 bit relocs. Add reloc value to output.
3144 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
3145 R_RBR. Improve names.
3146 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
3147 (bfd_xcoff_backend_data): Update with new reloc swap names.
3148 (bfd_pmac_xcoff_backend_data) : Same.
3149 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
3150 (xcoff64_swap_reloc_out): Same.
3151 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
3152 R_POS. Add reloc value to output.
3153 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
3154 bit R_RBR. Improve names, masks.
3155 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
3156 (bfd_xcoff_backend_data): Update with new reloc swap names.
3157 (bfd_xcoff_aix5_backend_data) : Same.
3158
3159 2002-05-04 Alan Modra <amodra@bigpond.net.au>
3160
3161 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
3162 bfd_count top_index, input_list, all_local_syms.
3163 (elf32_hppa_setup_section_lists): New function, split from
3164 elf32_hppa_size_stubs.
3165 (elf32_hppa_next_input_section): Likewise.
3166 (group_sections): Likewise.
3167 (get_local_syms): Likewise.
3168 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
3169 stubs on undefined syms too.
3170 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
3171 Only access htab elf fields when we have an elf hash table.
3172 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
3173 (elf32_hppa_next_input_section): Declare.
3174
3175 2002-05-04 Bob Byrnes <byrnes@curl.com>
3176
3177 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
3178 _bfd_new_bfd.
3179
3180 2002-05-03 H.J. Lu (hjl@gnu.org)
3181
3182 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
3183 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
3184 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
3185 to hide a global symbol.
3186 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
3187 forced_local to true.
3188
3189 2002-05-02 Richard Henderson <rth@redhat.com>
3190
3191 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
3192 vs SHN_UNDEF to zero.
3193
3194 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3195
3196 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
3197 16 bit reloc.
3198 <R_PPC64_SECTOFF_DS>: Likewise.
3199 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
3200 SECTOFF reloc.
3201 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
3202 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
3203 SECTOFF reloc.
3204
3205 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
3206 (ppc64_elf_ha_reloc): New function.
3207 (ppc64_elf_brtaken_reloc): New function.
3208 (ppc64_elf_sectoff_reloc): New function.
3209 (ppc64_elf_sectoff_ha_reloc): New function.
3210 (ppc64_elf_toc_reloc): New function.
3211 (ppc64_elf_toc_ha_reloc): New function.
3212 (ppc64_elf_toc64_reloc): New function.
3213 (ppc64_elf_unhandled_reloc): New function.
3214 (ppc64_elf_howto_raw): Use the above.
3215 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
3216 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
3217 <R_PPC64_SECTOFF_DS>: Likewise.
3218 (IS_ABSOLUTE_RELOC): Update.
3219 (struct ppc_link_hash_table): Add have_undefweak.
3220 (ppc64_elf_link_hash_table_create): Init.
3221 (func_desc_adjust): Set have_undefweak.
3222 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
3223 add the .sfpr blr when have_undefweak.
3224 (ppc64_elf_setup_section_lists): Check hash table flavour.
3225 (ppc64_elf_next_input_section): Move output_section->owner test to
3226 ppc64elf.em.
3227 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
3228 and relocatable test. Return TOCstart and don't set elf_gp.
3229 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
3230 offset calculation. Add assert on weak sym branch tweaks.
3231 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
3232 (ppc64_elf_toc): Declare.
3233 (ppc64_elf_next_input_section): Update.
3234
3235 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3236
3237 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
3238 file_name.
3239
3240 2002-05-01 Alan Modra <amodra@bigpond.net.au>
3241
3242 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
3243 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
3244 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
3245 call branches. Correct undefined weak destination.
3246 (ppc64_elf_func_desc_adjust): Always create at least one blr in
3247 .sfpr, and correct case where either only savef* or restf* is
3248 needed.
3249
3250 Long branch stubs, multiple stub sections.
3251 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
3252 (ppc64_elf_next_input_section): Declare.
3253 * elf64-ppc.c: Move linker-only prototypes.
3254 (STUB_SUFFIX): Define.
3255 (enum ppc_stub_type): New.
3256 (struct ppc_stub_hash_entry): New.
3257 (struct ppc_branch_hash_entry): New.
3258 (struct ppc_link_hash_entry): Add stub_cache, oh.
3259 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
3260 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
3261 Rename plt_overflow to stub_error.
3262 (ppc_stub_hash_lookup): Define.
3263 (ppc_branch_hash_lookup): Define.
3264 (stub_hash_newfunc): New function.
3265 (branch_hash_newfunc): New function.
3266 (link_hash_newfunc): Init new fields.
3267 (ppc64_elf_link_hash_table_create): Likewise.
3268 (ppc64_elf_link_hash_table_free): New function.
3269 (ppc_stub_name): New function.
3270 (ppc_get_stub_entry): New function.
3271 (ppc_add_stub): New function.
3272 (create_linkage_sections): Use bfd_make_section_anyway. Create
3273 .branch_lt and .rela.branch_lt sections. Don't create .stub.
3274 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
3275 and set up for plt call stubs. Link func and func desc syms.
3276 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
3277 (func_desc_adjust): Avoid hash lookup when func desc sym available
3278 via shortcut, and set links when processing.
3279 (ppc64_elf_hide_symbol): Likewise.
3280 (allocate_dynrelocs): Don't allocate stub section here.
3281 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
3282 Remove sstub code.
3283 (ppc_type_of_stub): New function.
3284 (build_one_stub): Delete.
3285 (ppc_build_one_stub): New function.
3286 (ppc_size_one_stub): New function.
3287 (ppc64_elf_setup_section_lists): New function.
3288 (ppc64_elf_next_input_section): New function.
3289 (group_sections): New function.
3290 (get_local_syms): New function.
3291 (ppc64_elf_size_stubs): Rewrite.
3292 (ppc64_elf_build_stubs): Rewrite.
3293 (ppc64_elf_relocate_section): Look up stub entry for REL24
3294 relocs. Don't propagate REL14* to dynamic objects. Look for long
3295 branch stubs if REL14* or REL24 relocs won't reach.
3296 (bfd_elf64_bfd_link_hash_table_free): Define.
3297
3298 2002-04-30 Mark Mitchell <mark@codesourcery.com>
3299
3300 * config.bfd: Add support for powerpc-*-windiss.
3301
3302 2002-04-30 Tom Rix <trix@redhat.com>
3303
3304 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
3305 symbol names into the hash table.
3306
3307 2002-04-28 Tom Rix <trix@redhat.com>
3308
3309 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
3310 calulating relocations.
3311 (xcoff_complain_overflow) : Function table for relocation errors.
3312 (xcoff_ppc_relocate_section): Use relocation and complain function
3313 tables.
3314 (xcoff_complain_overflow_unsigned_func): New complain function.
3315 (xcoff_complain_overflow_signed_func): Same.
3316 (xcoff_complain_overflow_bitfield_func): Same.
3317 (xcoff_complain_overflow_dont_func): Same.
3318 (xcoff_reloc_type_crel): New recot function.
3319 (xcoff_reloc_type_br): Same.
3320 (xcoff_reloc_type_ba): Same.
3321 (xcoff_reloc_type_toc): Same.
3322 (xcoff_reloc_type_rel): Same.
3323 (xcoff_reloc_type_neg): Same.
3324 (xcoff_reloc_type_pos): Same.
3325 (xcoff_reloc_type_fail): Same.
3326 (xcoff_reloc_type_noop): Same.
3327 * libxcoff.h : Declare common parts for xcoff64.
3328 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
3329 and complain function tables.
3330
3331 2002-04-28 Alan Modra <amodra@bigpond.net.au>
3332
3333 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
3334 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
3335
3336 2002-04-26 Alan Modra <amodra@bigpond.net.au>
3337
3338 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
3339 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
3340
3341 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
3342 same as the output before calling elf_link_input_bfd.
3343
3344 * coffcode.h (coff_compute_section_file_positions): Set
3345 section_tail after shuffling section list.
3346
3347 2002-04-24 Christian Groessler <chris@groessler.org>
3348
3349 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
3350 addresses are 23bit with a special layout, not plain 32bit
3351 values. Prevent relocation of immediate values.
3352
3353 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
3354
3355 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
3356 MIPS-16 ASE flags are set, print something to indicate that.
3357
3358 2002-04-23 Alan Modra <amodra@bigpond.net.au>
3359
3360 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
3361 under which a plt call stub is used.
3362 (final_link_relocate): Similarly.
3363 (allocate_plt_static): Clear h-plabel except when plt entry is
3364 exclusively used for a plabel.
3365 (allocate_dynrelocs): Use the above to simplify plt sizing.
3366 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
3367 (elf32_hppa_link_hash_table_create): Init.
3368 (BL22_RP): Define.
3369 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
3370 (elf32_hppa_check_relocs): Set has_22bit_branch.
3371
3372 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
3373 (final_link_relocate): Likewise.
3374
3375 2002-04-22 Jakub Jelinek <jakub@redhat.com>
3376
3377 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
3378 search table if some FDE is DW_EH_PE_aligned encoded either.
3379 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
3380
3381 2002-04-22 Richard Smith <richard@ex-parrot.com>
3382 Jakub Jelinek <jakub@redhat.com>
3383
3384 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
3385 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
3386 encoded personality.
3387 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
3388 for CIE/FDE removal.
3389
3390 2002-04-20 Tom Rix <trix@redhat.com>
3391
3392 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
3393
3394 2002-04-20 Alan Modra <amodra@bigpond.net.au>
3395
3396 * archures.c (bfd_lookup_arch): Move the list order comment..
3397 (struct bfd_arch_info): ..to where it belongs.
3398 * bfd-in2.h: Regenerate.
3399
3400 * archures.c (bfd_lookup_arch): Add comment on list order.
3401 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
3402 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
3403 is always at head of list.
3404
3405 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
3406
3407 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
3408 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
3409 definition of these functions for ARM_WINCE builds as they are
3410 not used.
3411 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
3412 for ARM_WINCE builds.
3413
3414 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
3415
3416 * coff-arm.c (bfd_arm_process_before_allocation):
3417
3418 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
3419
3420 * cpu-sh.c (scan_mach): Delete.
3421 (arch_info_struct): Replace scan_mach with bfd_default_scan.
3422 (bfd_sh_arch): Likewise.
3423
3424 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
3425
3426 * ihex.c (ihex_write_object_contents): Fix check for records
3427 crossing 64K boundaries.
3428
3429 2002-04-16 Alan Modra <amodra@bigpond.net.au>
3430
3431 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
3432 type rather than just assuming entries are ELF.
3433 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
3434 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
3435 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
3436 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
3437 rather than elf_link_hash_entry.
3438
3439 2002-04-15 Richard Henderson <rth@redhat.com>
3440
3441 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
3442 n32 binaries.
3443
3444 2002-04-15 Michael Snyder <msnyder@redhat.com>
3445
3446 * opncls.c (bfd_close): Write contents if writeable.
3447 Minor formatting tidy-ups.
3448
3449 2002-04-15 Alan Modra <amodra@bigpond.net.au>
3450
3451 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
3452
3453 2002-04-12 Michael Snyder <msnyder@redhat.com>
3454
3455 * bfd-in.h (bfd_get_section_lma): New access macro.
3456 Minor white-space fix-up.
3457
3458 2002-04-12 Alan Modra <amodra@bigpond.net.au>
3459
3460 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
3461 header pad.
3462
3463 2002-04-09 DJ Delorie <dj@redhat.com>
3464
3465 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
3466
3467 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
3468
3469 * coffcode.h (coff_read_word): New.
3470 (coff_compute_checksum): New.
3471 (coff_apply_checksum): New.
3472 (coff_write_object_contents): Call coff_apply_checksum () to
3473 apply checksum to PE image.
3474
3475 2002-04-08 Randolph Chung <tausq@debian.org>
3476
3477 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
3478 (elf32_hppa_final_link): Split out sorting logic to..
3479 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
3480 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
3481
3482 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3483
3484 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
3485 pattern.
3486 * configure: Re-generate.
3487
3488 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3489
3490 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
3491 is greater or equal to 4.3.3.
3492 * configure: Regenerate.
3493 Fix PR gdb/344.
3494
3495 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
3496
3497 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
3498 R_CRIS_32_PCREL>: Fix typo in name.
3499 (cris_elf_check_relocs): Always create .rela.got here when
3500 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
3501 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
3502 assume it's created.
3503
3504 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
3505
3506 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
3507 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
3508 define.
3509 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
3510 * bfd.c (bfd_link_hash_table_free): Define.
3511 * binary.c (binary_bfd_link_hash_table_free): Define.
3512 * bout.c (b_out_bfd_link_hash_table_free): Define.
3513 * coff-rs6000.c (rs6000coff_vec): Include
3514 _bfd_generic_link_hash_table_free.
3515 (pmac_xcoff_vec): Likewise.
3516 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3517 (aix5coff64_vec): Likewise.
3518 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
3519 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
3520 (bfd_elf32_bfd_link_hash_table_free): Define.
3521 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
3522 (bfd_elf32_bfd_link_hash_table_free): Define.
3523 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
3524 define.
3525 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
3526 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
3527 * ieee.c (ieee_bfd_link_hash_table_free): Define.
3528 * ihex.c (ihex_bfd_link_hash_table_free): Define.
3529 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
3530 (_bfd_generic_link_hash_table_free): Add prototype.
3531 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
3532 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
3533 * linker.c (_bfd_generic_link_hash_table_free): New function.
3534 * mmo.c (mmo_bfd_link_hash_table_free): Define.
3535 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
3536 * oasys.c (oasys_bfd_link_hash_table_free): Define.
3537 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
3538 * som.c (som_bfd_link_hash_table_free): Define.
3539 * srec.c (srec_bfd_link_hash_table_free): Define.
3540 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
3541 * versados.c (versados_bfd_link_hash_table_free): Define.
3542 * vms.c (vms_bfd_link_hash_table_free): New function.
3543 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
3544
3545 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
3546 instead of bfd_alloc.
3547 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
3548 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
3549 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
3550 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
3551 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
3552 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
3553 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
3554 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
3555 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
3556 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
3557 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
3558 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
3559 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
3560 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
3561 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
3562 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
3563 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
3564 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
3565 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
3566 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
3567 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
3568 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
3569 * m68klinux.c (linux_link_hash_table_create): Likewise.
3570 * sparclinux.c (linux_link_hash_table_create): Likewise.
3571 * sunos.c (sunos_link_hash_table_create): Likewise.
3572 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
3573
3574 * targets.c: Add _bfd_link_hash_table_free to xvec.
3575
3576 * bfd-in2.h: Regenerate.
3577 * libbfd.h: Regenerate.
3578 * libcoff.h: Regenerate.
3579
3580 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3581
3582 * dep-in.sed: Cope with absolute paths.
3583 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
3584 Run "make dep-am".
3585 * Makefile.in: Regenerate.
3586 * coff-arm.c: Fix copyright date.
3587 * cpu-h8300.c: Likewise.
3588 * cpu-i370.c: Likewise.
3589 * cpu-s390.c: Likewise.
3590 * cpu-mips.c: Likewise.
3591 * po/SRC-POTFILES.in: Regenerate.
3592
3593 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3594
3595 * Makefile.am: Add elfxx-mips.c to the known backends.
3596 (elf32-mips.lo): remove dependency to coff/external.h.
3597 * Makefile.in: Regenerate.
3598 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
3599 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
3600 accordingly.
3601 * configure: Regenerate.
3602 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
3603 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
3604 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
3605 MIPS specific backend functions.
3606 * elf32-mips.c: Moved most code to elfxx-mips.c.
3607 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
3608 static.
3609 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
3610 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
3611 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
3612 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
3613 interface to allow selection of the right REL or RELA howto table.
3614 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
3615 static. Let it refuse n32 objects.
3616 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
3617 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
3618 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
3619 (elf32_mips_ignore_discarded_relocs): Rename from
3620 _bfd_elf32_mips_ignore_discarded_relocs.
3621 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
3622 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
3623 (elf_mips_howto_table_rela): Remove.
3624 * elf64-mips.c: Moved most code to elfxx-mips.c.
3625 (bfd_elf64_bfd_reloc_type_lookup): Make static.
3626 (mips_elf64_rtype_to_howto): New function.
3627 (mips_elf64_object_p): Likewise.
3628 (elf64_mips_irix_compat): Likewise.
3629 * elfxx-mips.c: New file containing common code merged together from
3630 elf32-mips.c and elf64-mips.c.
3631 * elfxx-mips.h: New file containing MIPS specific prototypes from
3632 elf-bfd.h.
3633 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
3634 elf_backend_mips_rtype_to_howto.
3635
3636 2002-04-04 Alan Modra <amodra@bigpond.net.au>
3637
3638 * srec.c (MAXCHUNK, Chunk): Revise comments.
3639 (srec_write_record): Correct buffer size.
3640 (srec_write_header): Do without intermediate buffer.
3641 (srec_write_section): Validate Chunk.
3642 (srec_write_terminator): Pass NULL instead of dummy buffer.
3643 (srec_write_symbols): Pass file and symbol names directly to
3644 bfd_bwrite so sprintf won't overflow buffer.
3645
3646 2002-04-03 Jakub Jelinek <jakub@redhat.com>
3647
3648 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
3649 PC relative relocs against hidden symbols.
3650 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3651
3652 2002-04-03 Alan Modra <amodra@bigpond.net.au>
3653
3654 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
3655 LMAs, loop over segments until p_vaddr and p_memsz specify an
3656 extent enclosing the section.
3657
3658 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
3659
3660 * ihex.c (ihex_write_object_contents): Do not allow records to
3661 cross a 64K boundary - wrap if necessary.
3662
3663 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
3664
3665 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
3666 which caused the returned LWP ID to always be 0.
3667
3668 2002-04-01 Richard Henderson <rth@redhat.com>
3669
3670 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
3671 (elf32_sparc_relocate_section): Use it to figure out when to
3672 initialize .got entries.
3673 * elf64-sparc.c: Similarly.
3674
3675 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3676
3677 * linker.c (link_action): Ignore duplicate warning syms.
3678 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
3679 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
3680 (elf_adjust_dynamic_symbol): Likewise.
3681 (elf_export_symbol): Likewise.
3682 (elf_link_find_version_dependencies): Likewise.
3683 (elf_link_assign_sym_version): Likewise.
3684 (elf_link_sec_merge_syms): Likewise.
3685 (elf_link_output_extsym): Likewise.
3686 (elf_gc_sweep_symbol): Likewise.
3687 (elf_gc_propagate_vtable_entries_used): Likewise.
3688 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3689 (elf_gc_allocate_got_offsets): Likewise.
3690 (elf_collect_hash_codes): Likewise.
3691 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
3692 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
3693 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
3694 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
3695 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
3696 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
3697 (elf_cris_discard_excess_dso_dynamics): Likewise.
3698 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
3699 (mark_PIC_calls): Likewise.
3700 (allocate_plt_static): Likewise.
3701 (allocate_dynrelocs): Likewise.
3702 (readonly_dynrelocs): Likewise.
3703 * elf32-i386.c (allocate_dynrelocs): Likewise.
3704 (readonly_dynrelocs): Likewise.
3705 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
3706 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
3707 * elf32-mips.c (mips_elf_output_extsym): Likewise.
3708 (mips_elf_sort_hash_table_f): Likewise.
3709 (mips_elf_check_mips16_stubs): Likewise.
3710 * elf32-s390.c (allocate_dynrelocs): Likewise.
3711 (readonly_dynrelocs): Likewise.
3712 * elf32-sh.c (sh_elf_discard_copies): Likewise.
3713 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
3714 (xstormy16_relax_plt_realloc): Likewise.
3715 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
3716 (elf64_alpha_output_extsym): Likewise.
3717 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
3718 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
3719 (mips_elf64_check_mips16_stubs): Likewise.
3720 (mips_elf64_output_extsym): Likewise.
3721 * elf64-ppc.c (func_desc_adjust): Likewise.
3722 (allocate_dynrelocs): Likewise.
3723 (readonly_dynrelocs): Likewise.
3724 * elf64-s390.c (allocate_dynrelocs): Likewise.
3725 (readonly_dynrelocs): Likewise.
3726 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
3727 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
3728 (readonly_dynrelocs): Likewise.
3729 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
3730 * aoutx.h (aout_link_write_other_symbol): Likewise.
3731 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
3732 (_bfd_coff_write_global_sym): Likewise.
3733 * i386linux.c (linux_tally_symbols): Likewise.
3734 * m68klinux.c (linux_tally_symbols): Likewise.
3735 * sparclinux.c (linux_tally_symbols): Likewise.
3736 * pdp11.c (aout_link_write_other_symbol): Likewise.
3737 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
3738 * xcofflink.c (xcoff_build_ldsyms): Likewise.
3739 (xcoff_write_global_symbol): Likewise.
3740
3741 * cofflink.c (_bfd_coff_final_link): Formatting.
3742 * cpu-mips.c (mips_compatible): Make static, prototype.
3743 * elf32-i386.c (elf_i386_check_relocs): Formatting.
3744 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
3745 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
3746 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
3747 (mips_elf64_final_link): Likewise.
3748 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
3749 prototype.
3750
3751 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
3752
3753 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
3754 (SWAP_OUT_RELOC_OFFSET): Define.
3755
3756 2002-03-27 Gregory Steuck <greg@nest.cx>
3757
3758 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
3759 terminating NULL if empty symbol table.
3760 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
3761
3762 2002-03-26 H.J. Lu (hjl@gnu.org)
3763
3764 * elflink.h (elf_link_input_bfd): Revert the last change since
3765 the gcc exception handling isn't fixed yet.
3766
3767 2002-03-26 H.J. Lu (hjl@gnu.org)
3768
3769 * elflink.h (elf_link_input_bfd): Complain about relocations
3770 against local symbols in discarded sections.
3771
3772 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3773
3774 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
3775
3776 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3777
3778 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
3779 section file offset for !SEC_LOAD sections.
3780
3781 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
3782
3783 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
3784 <case R_ARM_GOT>): Handle relocations to Thumb functions.
3785
3786 2002-03-21 Alan Modra <amodra@bigpond.net.au>
3787
3788 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
3789 Whitespace changes.
3790 * archive.c: Update copyright date.
3791 * bfd-in2.h: Regenerate.
3792 * libbfd.h: Regenerate.
3793 * Makefile.am: Run "make dep-am"
3794 * Makefile.in: Regenerate.
3795 * po/SRC-POTFILES.in: Regenerate.
3796
3797 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3798
3799 * dwarf2.c (struct funcinfo): Move up.
3800 (lookup_address_in_function_table): New argument function_ptr.
3801 Set it.
3802 (lookup_address_in_line_table): New argument function. If function
3803 is non-NULL, use it to handle ``addr'' before the first line note of
3804 the function.
3805 (comp_unit_find_nearest_line): Update and swap calls to
3806 lookup_address_in_function_table and lookup_address_in_line_table.
3807 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
3808 N_SLINE encountered if we see an N_FUN before any N_SLINE.
3809
3810 2002-03-20 Tom Rix <trix@redhat.com>
3811
3812 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
3813 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
3814 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
3815
3816 2002-03-19 Tom Rix <trix@redhat.com>
3817
3818 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
3819 dynamic objects in archives.
3820
3821 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
3822
3823 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
3824 STT_NOTYPE symbols to STT_OBJECT.
3825
3826 2002-03-18 Jan Hubicka <jh@suse.cz>
3827
3828 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
3829
3830 2002-03-18 Tom Rix <trix@redhat.com>
3831
3832 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
3833 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
3834 * coff-rs6000 (do_pad) : New function for archive padding.
3835 (do_copy) : New function for object file copying in archives.
3836 (do_shared_object_padding) : New function for padding shared
3837 objects to their text section alignment in archives.
3838 (bfd_xcoff_ar_achive_set_magic) : Stub.
3839 (xcoff_write_armap_big) : Use do_copy and do_pad.
3840 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
3841 do_copy and do_pad.
3842 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
3843 bfd_xcoff_magic_number.
3844 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
3845 fop.
3846 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
3847 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
3848 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
3849 * rs6000-core.c : Update copyright date.
3850 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
3851 csectpp.
3852 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
3853 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
3854 (coff_set_flags) : Use bfd_xcoff_magic_number.
3855 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
3856 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
3857 * Makefile.am : Same.
3858 * config.bfd : Same.
3859 * targets.c : Same.
3860 * configure : Regnerate.
3861 * Makefile.in : Same.
3862 * bfd-in2.h : Same.
3863
3864 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
3865
3866 * po/fr.po: Updated version.
3867
3868 2002-03-18 Alan Modra <amodra@bigpond.net.au>
3869
3870 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
3871 * libbfd.h: Regenerate.
3872 * archive.c (coff_write_armap): Pass on failures from
3873 bfd_write_bigendian_4byte_int.
3874
3875 2002-03-14 H.J. Lu <hjl@gnu.org>
3876
3877 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
3878 error to bfd_error_nonrepresentable_section for reinit_array
3879 section in DSO.
3880
3881 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
3882
3883 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
3884 OR it in rather than replacing previously selected flags.
3885
3886 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
3887 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
3888
3889 2002-03-14 Alan Modra <amodra@bigpond.net.au>
3890
3891 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
3892 (N): Use the above.
3893 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
3894 ensure reloc size matches before calling elf_link_input_bfd.
3895 Add an assert to check reloc size when counting output relocs.
3896
3897 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
3898
3899 * mmo.c (mmo_get_loc): Return NULL rather than false.
3900
3901 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
3902
3903 * po/fr.po: Updated version.
3904
3905 2002-03-13 Alan Modra <amodra@bigpond.net.au>
3906
3907 * archures.c (bfd_default_compatible): Test bits_per_word.
3908 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
3909 bfd_default_compatible.
3910 * cpu-i370.c (i370_compatible): Likewise.
3911 * cpu-sparc.c (sparc_compatible): Likewise.
3912 * cpu-h8300.c (compatible): Test in->arch == out->arch.
3913
3914 * elflink.h: Formatting fixes.
3915 (elf_link_output_extsym): Merge undefined and undef weak cases.
3916
3917 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
3918 when word size of input matches output word size.
3919
3920 2002-03-12 Andreas Jaeger <aj@suse.de>
3921
3922 * cpu-i386.c (i386_compatible): New. Use it instead of
3923 bfd_default_compatible.
3924
3925 2002-03-07 H.J. Lu (hjl@gnu.org)
3926
3927 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
3928 as the type for bfd_reloc_val.
3929
3930 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
3931
3932 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
3933 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
3934 (elf_hppa_final_link_relocate): Correct relocations for indirect
3935 references to local data through the DLT. Fix .opd creation for
3936 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
3937 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
3938 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
3939 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
3940 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
3941 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
3942 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
3943
3944 2002-03-05 Jakub Jelinek <jakub@redhat.com>
3945
3946 * merge.c (_bfd_merge_sections): Don't segfault if there
3947 is nothing to merge due to GC.
3948
3949 2002-03-05 Alan Modra <amodra@bigpond.net.au>
3950
3951 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
3952 symbols that have been forced local.
3953
3954 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
3955 to output forced local syms for non-shared link.
3956 (elf_link_output_extsym): Tweak condition for calling backend
3957 adjust_dynamic_symbol so that previous behaviour is kept.
3958 Whitespace changes throughout file.
3959
3960 2002-03-04 H.J. Lu <hjl@gnu.org>
3961
3962 * elf.c (bfd_section_from_shdr): Handle special sections,
3963 .init_array, .fini_array and .preinit_array.
3964 (elf_fake_sections): Likewise.
3965
3966 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
3967 DT entry only if the section is in output for .init_array,
3968 .fini_array and .preinit_array. Complain about .preinit_array
3969 section in DSO.
3970 (elf_bfd_final_link): Warn zero size for .init_array,
3971 .fini_array and .preinit_array sections.
3972
3973 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
3974 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
3975 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
3976 .preinit_array.
3977
3978 2002-03-04 Alan Modra <amodra@bigpond.net.au>
3979
3980 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
3981 * configure: Regenerate.
3982
3983 2002-03-02 Tom Rix <trix@redhat.com>
3984
3985 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
3986 symbolic equiv.
3987 * coff-rs6000.c (xcoff_howto_table): Same.
3988
3989 2002-03-01 David Mosberger <davidm@hpl.hp.com>
3990
3991 * elflink.h (size_dynamic_sections): If section named
3992 ".preinit_array" exists, create DT_PREINIT_ARRAY and
3993 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
3994 ".init_array" and ".fini_array".
3995 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
3996 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
3997 DT_FINI_ARRAY.
3998
3999 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
4000
4001 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
4002 dynsyms.
4003
4004 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4005
4006 * elf64-hppa.h: Update copyright date.
4007
4008 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
4009 (ppc64_elf_relocate_section): Don't generate power4 style branch
4010 hints for *_BRTAKEN and *_BRNTAKEN relocs.
4011
4012 2002-02-22 Jakub Jelinek <jakub@redhat.com>
4013
4014 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
4015 last patch.
4016 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
4017
4018 2002-02-21 Andreas Jaeger <aj@suse.de>
4019
4020 * elf64-x86-64.c: Major rework that introduces all recent changes
4021 to the x86-64 backend. Get a closer match to elf32-i386.
4022 (struct elf64_x86_64_dyn_relocs): Rename from
4023 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
4024 all users.
4025 (struct elf64_x86_64_link_hash_table): Add short cuts to some
4026 sections.
4027 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
4028 remove casts, initialize new hash members.
4029 (create_got_section): New.
4030 (elf64_x86_64_create_dynamic_sections): New.
4031 (elf64_x86_64_copy_indirect_symbol): New.
4032 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
4033 relocs, .got or .relgot here but do it in allocate_dynrelocs.
4034 Reference count possible .plt and .got entries. Don't test input
4035 section SEC_READONLY here to try to avoid copy relocs, and keep
4036 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
4037 DF_TEXTREL here. Delay setting of variables until needed. Cache
4038 pointer to "sreloc" section in elf_section_data. Tweak condition
4039 under which .got created. Report files with bad relocation
4040 section names.
4041 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
4042 Reference count possible .plt entries. Don't deallocate .got and
4043 .relgot space here.
4044 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
4045 do copy reloc processing for weakdefs. Remove redundant casts and
4046 aborts. Delay setting of vars until needed. Move creation of
4047 dynamic symbols and allocation of .plt and .rela.plt to
4048 allocate_dynrelocs. Replace BFD_ASSERT with abort.
4049 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
4050 (allocate_dynrelocs): New.
4051 (readonly_dynrelocs): New.
4052 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
4053 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
4054 Zero out the dynamic allocated content space.
4055 (elf64_x86_64_discard_copies): Removed.
4056 (elf64_x86_64_relocate_section): Make use of dynamic section
4057 short-cuts. Localise vars, and delay setting. Better error
4058 reporting, replace BFD_ASSERT with abort. Check
4059 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
4060 regular object file and tread the weak definition as the normal
4061 one. Don't discard relocs for undefweak or undefined symbols and
4062 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
4063 relocs.
4064 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
4065 symbols that have been forced local. Use same test to decide if
4066 we can use a relative reloc for got as relocate_section. Expand
4067 SHN_UNDEF comment. Move expressions out of function calls.
4068 Replace BFD_ASSERT with abort.
4069 (bfd_elf64_bfd_final_link): Removed.
4070 (elf_backend_copy_indirect_symbol): Define.
4071
4072 2002-02-20 Tom Rix <trix@redhat.com>
4073
4074 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
4075 (_bfd_xcoff_reloc_type_lookup): Use it.
4076 * coff64-rs6000.c (xcoff64_howto_table): Same.
4077 (xcoff64_reloc_type_lookup): Same.
4078
4079 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4080
4081 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
4082 little endian.
4083
4084 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4085
4086 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
4087 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
4088 * bfd-in2.h: Regenerate.
4089 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
4090 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
4091 with "s390:64-bit".
4092 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
4093 (elf_s390_reloc_type_lookup): Likewise.
4094 (elf_s390_check_relocs): Likewise.
4095 (elf_s390_gc_sweep_hook): Likewise.
4096 (elf_s390_relocate_section): Likewise.
4097 (elf_s390_object_p): Use renamed architecture define.
4098 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
4099
4100 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
4101
4102 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
4103
4104 2002-02-19 Jakub Jelinek <jakub@redhat.com>
4105
4106 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
4107 absptr -> pcrel optimization for shared libs.
4108 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
4109 library cannot be converted to pcrel.
4110 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
4111 relative.
4112 * elf32-i386.c (elf_i386_relocate_section): If
4113 _bfd_elf_section_offset returned -2, skip, but make sure the
4114 relocation is installed.
4115 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
4116 * elf32-cris.c (cris_elf_relocate_section): Likewise.
4117 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4118 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4119 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4120 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4121 * elf32-s390.c (elf_s390_relocate_section): Likewise.
4122 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4123 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4124 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
4125 * elf64-s390.c (elf_s390_relocate_section): Likewise.
4126 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
4127 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4128 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
4129 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
4130 _bfd_elf_section_offset returning -2 the same way as -1.
4131 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
4132 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
4133 and BFD_ASSERT.
4134 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
4135
4136 2002-02-18 Tom Rix <trix@redhat.com>
4137
4138 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
4139 (bfd_xcoff_size_dynamic_sections): Same.
4140 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
4141 (bfd_xcoff_size_dynamic_sections): Same.
4142 * coff-rs6000.c (xcoff_generate_rtinit): Same.
4143 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
4144 * libxcoff.h (struct xcoff_backend_data_rec): Same.
4145 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
4146 * bfd-in2.h: Regenerate.
4147
4148 2002-02-18 Alan Modra <amodra@bigpond.net.au>
4149
4150 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
4151 (struct ppc_link_hash_table): Add sfpr.
4152 (ppc64_elf_link_hash_table_create): Init it.
4153 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
4154 .glink out to..
4155 (create_linkage_sections): ..here. Make .sfpr too.
4156 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
4157 dynobj early.
4158 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
4159 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
4160 ._restf* functions, and create as needed.
4161 (func_desc_adjust): Only force_local for shared libs.
4162
4163 2002-02-18 David O'Brien <obrien@FreeBSD.org>
4164
4165 * configure.in: Bump version number post 2.12 branching.
4166 * configure: Regenerate.
4167
4168 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
4169
4170 * mmo.c: Correct and improve comments.
4171 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
4172 zero-pad. Use input to fill up non-empty bfd buffer.
4173 (mmo_flush_chunk): New function.
4174 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
4175 changed. Don't emit location specifier if VMA is same as
4176 *LAST_VMAP after omitting leading zero contents. Call
4177 mmo_flush_chunk before emitting location specifier.
4178 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
4179 with mmo_write_loc_chunk calls.
4180 (mmo_internal_write_section): Call mmo_flush_chunk after
4181 mmo_write_chunk.
4182 (mmo_write_symbols_and_terminator): Move :Main to first position
4183 in symbol array. Add faked one if it does not exist if there are
4184 other symbols. Don't add it if there are no symbols at all. Move
4185 out test for value of :Main from symbol loop. Rename table
4186 fakemain to maintable and variable mainsym to fakemain.
4187
4188 2002-02-15 Richard Henderson <rth@redhat.com>
4189
4190 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
4191 section with no got matches any got. Simplify error generaion.
4192
4193 2002-02-15 Alan Modra <amodra@bigpond.net.au>
4194
4195 Support arbitrary length fill patterns.
4196 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
4197 (_bfd_default_link_order): Remove bfd_fill_link_order code.
4198 Call default_data_link_order.
4199 (default_fill_link_order): Delete.
4200 (default_data_link_order): New function.
4201 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
4202 of bfd_fill_link_order with bfd_data_link_order.
4203 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
4204 * elf64-mips.c (mips_elf64_final_link): Likewise.
4205
4206 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
4207 Correct value returned in "end" for "0x<non-hex>".
4208
4209 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
4210
4211 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
4212 (scan): Test against 'mach' field in info structure.
4213
4214 2002-02-14 Alan Modra <amodra@bigpond.net.au>
4215
4216 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
4217
4218 2002-02-14 Matt Fredette <fredette@netbsd.org>
4219
4220 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
4221 EF_M68000.
4222
4223 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
4224
4225 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
4226 non-zero physical addresses when adjusting the LMAs of new
4227 sections.
4228
4229 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4230
4231 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
4232 from _bfd_elf_hppa_gen_reloc_type.
4233 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
4234 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
4235 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
4236 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
4237
4238 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4239
4240 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
4241 loading its contents if there's nothing to do in it.
4242
4243 2002-02-12 Alan Modra <amodra@bigpond.net.au>
4244
4245 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
4246 64k boundary.
4247
4248 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
4249 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
4250 (ppc64_elf_finish_dynamic_sections): Set values for them.
4251
4252 2002-02-11 Michael Snyder <msnyder@redhat.com>
4253
4254 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
4255 * elf.c (elfcore_grok_pstatus): Add prototype.
4256 (elfcore_grok_lwpstatus): Add prototype.
4257 (elfcore_write_lwpstatus): New function.
4258 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
4259
4260 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4261
4262 * elf32-sh.c: Added missing prototypes.
4263 * elf32-sh64.c: Likewise.
4264 (sh_elf_align_loads): Mark unused args as such.
4265 * elf64-sh64.c: Added missing prototypes.
4266 (struct elf_sh64_link_hash_entry): Fix typo.
4267 (sh_elf64_relocate_section): Fix info argument passed to
4268 _bfd_elf_section_offset.
4269
4270 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4271
4272 * Makefile.am: "make dep-am".
4273 * Makefile.in: Regenerate.
4274 * aclocal.m4: Regenerate.
4275 * config.in: Regenerate.
4276 * configure: Regenerate.
4277
4278 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
4281 variable warnings.
4282 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
4283 comparison warning.
4284 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
4285 cast warnings for the common case.
4286
4287 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
4288
4289 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
4290 vectors.
4291 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
4292 vectors.
4293
4294 2002-02-09 Richard Henderson <rth@redhat.com>
4295
4296 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
4297 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
4298 (elf64_alpha_relocate_section): Likewise.
4299 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
4300 * bfd-in2.h, libbfd.h: Rebuild.
4301
4302 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
4303
4304 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
4305 that base-plus-offset reloc accounting is consistent.
4306 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
4307 up to date for undefined symbols.
4308
4309 2002-02-08 Eric Christopher <echristo@redhat.com>
4310
4311 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4312
4313 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
4314 sections for the O32 ABI.
4315
4316 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4317
4318 * elf32-arm.h: Fix formatting of _("...").
4319 * elf32-d10v.c: Likewise.
4320 * elf32-m68k.c: Likewise.
4321 * elf32-mips.c: Likewise.
4322
4323 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
4324
4325 * coff-or32.c: Fix compile time warning messages.
4326
4327 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4328
4329 Contribute sh64-elf.
4330 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
4331 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
4332 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
4333 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
4334 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
4335 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
4336 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
4337 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
4338 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
4339 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
4340 New relocs.
4341 * libbfd.h, bfd-in2.h: Rebuilt.
4342 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
4343 (sh_reloc_map): Map them.
4344 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
4345 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
4346 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
4347 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
4348 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
4349 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
4350 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
4351 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
4352 datalabel_got_offset.
4353 (sh_elf_link_hash_newfunc): Initialize it.
4354 (sh_elf_relocate_section): Augment the scope of
4355 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
4356 GOT and GOTOFF handling to new SHmedia relocation types. Support
4357 GOT_BIAS.
4358 (sh_elf_check_relocs): Likewise.
4359 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
4360 PLT entries using movi_shori_putval. Support GOT_BIAS.
4361 (sh_elf_finish_dynamic_sections): Likewise.
4362 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
4363 relocation, it's now done by the caller.
4364 (GOT_BIAS): New.
4365 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
4366 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
4367 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
4368 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
4369 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
4370 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
4371 sh64_elf64_hash_table): New.
4372 (sh_elf64_howto_table): Introduce new relocs.
4373 (sh_elf64_info_to_howto): Accept new PIC relocs.
4374 (sh_elf64_relocate_section): Augment the scope of
4375 seen_stt_datalabel. Support new PIC relocs.
4376 (sh_elf64_check_relocs): Support new PIC relocs.
4377 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
4378 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
4379 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
4380 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
4381 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
4382 movi_shori_putval, movi_3shori_putval,
4383 sh64_elf64_create_dynamic_sections,
4384 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
4385 sh64_elf64_size_dynamic_sections,
4386 sh64_elf64_finish_dynamic_symbol,
4387 sh64_elf64_finish_dynamic_sections): New.
4388 (elf_backend_create_dynamic-sections,
4389 bfd_elf64_bfd_link_hash_table_create,
4390 elf_backend_adjust_dynamic_symbol,
4391 elf_backend_size_dynamic_sections,
4392 elf_backend_finish_dynamic_symbol,
4393 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
4394 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4395 elf_backend_got_header_size, elf_backend_plt_header_size):
4396 Define.
4397 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
4398 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
4399 match official numbers and names; moved unmaching ones to the
4400 range 0xf2-0xff.
4401 * elf32-sh64.c, elf64-sh64.c: Likewise.
4402 2001-03-12 DJ Delorie <dj@redhat.com>
4403 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
4404 sections.
4405 2001-03-12 DJ Delorie <dj@redhat.com>
4406 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
4407 be aligned.
4408 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
4409 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
4410 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
4411 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
4412 .cranges section with SEC_SORT_ENTRIES set.
4413 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
4414 incoming sorted .cranges section.
4415 (sh64_bfd_elf_copy_private_section_data): New.
4416 (sh64_elf_final_write_processing): Only sort .cranges and modify
4417 start address if called by linker.
4418 2001-01-08 Ben Elliston <bje@redhat.com>
4419 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
4420 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
4421 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
4422 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4423 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
4424 line. Add comments before all entries.
4425 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
4426 comment.
4427 (sh_elf64_reloc): Correct head comment.
4428 (sh_elf64_relocate_section): Correct spacing.
4429 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
4430 instead call reloc_dangerous callback.
4431 <case R_SH_SHMEDIA_CODE>: New case.
4432 (sh_elf64_gc_mark_hook): Correct spacing.
4433 (sh_elf64_check_relocs): Ditto.
4434 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
4435 New case.
4436 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
4437 functions.
4438 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
4439 clarify describing comment. Add comments before all entries.
4440 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
4441 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
4442 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4443 Sort .cranges section in final link. Prepare to set bit 0 on
4444 entry address.
4445 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
4446 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
4447 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
4448 .cranges section.
4449 (sh64_backend_section_from_shdr): New, to recognize
4450 SHT_SH5_CR_SORTED on incoming .cranges section.
4451 (elf_backend_section_from_shdr): Define.
4452 (sh64_elf_final_write_processing): Sort outgoing .cranges
4453 section. (New, temporarily disabled:) Set bit 0 on entry address
4454 according to ISA type.
4455 (sh64_find_section_for_address): New.
4456 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
4457 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
4458 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
4459 bfd_malloc, not xmalloc.
4460 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
4461 global.
4462 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
4463 temporarily disabled) setting bit 0 on entry address.
4464 (elf_backend_final_write_processing): Define.
4465 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4466 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
4467 be a proper relocation for PTA and PTB rather than a marker.
4468 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
4469 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
4470 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
4471 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
4472 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
4473 Zero src_mask.
4474 * elf64-sh64.c: Ditto.
4475 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
4476 * elf32-sh64.c: Include opcodes/sh64-opc.h
4477 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
4478 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
4479 parameters. No unused parameters. Caller changed.
4480 <case R_SH_PT_16>: New case.
4481 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
4482 * Makefile.in: Regenerate.
4483 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4484 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
4485 all code sections.
4486 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
4487 (sh64_elf_merge_private_data): Ditto.
4488 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
4489 to access stored section flags.
4490 (sh64_elf_final_write_processing): Return immediately unless
4491 called by linker. Use sh64_elf_section_data (cranges) to get size
4492 of linker-generated cranges entries.
4493 (sh64_elf_copy_private_data): Add missing "return true".
4494 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
4495 (sh_elf64_merge_private_data): Ditto.
4496 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4497 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
4498 elf64-sh64.c:sh64_elf_fake_sections.
4499 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
4500 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4501 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
4502 (sh64_elf_final_write_processing): New.
4503 (elf_backend_final_write_processing): Define.
4504 (sh64_elf_fake_sections): Get header flags from tdata field.
4505 (sh64_elf_copy_private_data): Do not call
4506 sh64_elf_copy_private_data_internal, just copy e_flags field.
4507 (sh64_elf_merge_private_data): Do not call
4508 sh64_elf_copy_private_data_internal.
4509 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
4510 Remove EF_SH64_ABI64, let ELF size make difference.
4511 Remove SH64-specific BFD section flag.
4512 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
4513 containing SHmedia through elf_section_data (asect)->tdata
4514 non-zero, not using a BFD section flag.
4515 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
4516 (sh64_elf_merge_private_data): Similar.
4517 (elf_backend_section_flags): Don't define.
4518 (sh64_elf_backend_section_flags): Delete.
4519 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
4520 not EF_SH64_ABI64.
4521 (sh_elf64_merge_private_data): Similar.
4522 * section.c (Section flags definitions): Don't define
4523 SEC_SH_ISA_SHMEDIA.
4524 (bfd-in2.h): Regenerate.
4525 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
4526 Make DataLabel references work with partial linking.
4527 * elf32-sh64.c: Fix formatting.
4528 (sh64_elf_link_output_symbol_hook): New.
4529 (elf_backend_link_output_symbol_hook): Define to
4530 sh64_elf_link_output_symbol_hook.
4531 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
4532 undefined if partial linking. Adjust sanity check.
4533 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
4534 (elf_backend_link_output_symbol_hook): Define to
4535 sh64_elf64_link_output_symbol_hook.
4536 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
4537 undefined if partial linking. Adjust sanity check.
4538 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
4539 Implement semantics for inter-file DataLabel references.
4540 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
4541 (sh64_elf64_add_symbol_hook): New.
4542 (sh_elf64_relocate_section): If passing an indirect symbol with
4543 st_type STT_DATALABEL on the way to a symbol with st_other
4544 STO_SH5_ISA32, do not bitor 1 to the relocation.
4545 (elf_backend_add_symbol_hook): Define to
4546 sh64_elf64_add_symbol_hook.
4547 * elf64-sh32.c: Tweak comments.
4548 (DATALABEL_SUFFIX): Define.
4549 (sh64_elf_add_symbol_hook): New.
4550 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
4551 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
4552 symbol with st_type STT_DATALABEL on the way to a symbol with
4553 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
4554 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
4555 Pass through STT_DATALABEL.
4556 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
4557 (elf_backend_get_symbol_type): Define.
4558 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
4559 (elf_backend_get_symbol_type): Define.
4560 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
4561 * elf32-sh64.c: Tweak comments.
4562 (sh64_elf_copy_private_data_internal): Add prototype.
4563 (bfd_elf32_bfd_set_private_flags): Define.
4564 (sh64_elf_copy_private_data_internal): Compare machine name, not
4565 textual BFD target name, to check whether to copy section flag
4566 SHF_SH5_ISA32.
4567 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
4568 Tweak section-contents-type-mismatch message.
4569 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
4570 Validize reloc-types.
4571 * elf64-sh64.c: New file.
4572 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
4573 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
4574 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
4575 Regenerate dependencies.
4576 * Makefile.in: Regenerate.
4577 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
4578 bfd_elf64_sh64l_vec.
4579 * configure.in: Handle bfd_elf64_sh64_vec and
4580 bfd_elf64_sh64l_vec.
4581 * configure: Regenerate.
4582 * po/POTFILES.in: Regenerate.
4583 * po/bfd.pot: Regenerate.
4584 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
4585 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
4586 anything else but EF_SH64 and EF_SH64_ABI64.
4587 (sh64_elf_merge_private_data): Emit error for anything else but
4588 EF_SH64 and EF_SH64_ABI64.
4589 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
4590 from targ_selvecs.
4591 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
4592 bfd_elf32_sh64l_vec as a temporary measure.
4593 * configure: Regenerate.
4594 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
4595 * cpu-sh.c (arch_info_struct): Include sh5 item
4596 unconditionalized.
4597 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
4598 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
4599 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
4600 * elf32-sh64.c: Tweak comments.
4601 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
4602 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
4603 (sh64_elf_copy_private_data_internal): Wrap long line.
4604 (sh64_elf_merge_private_data): Rewrite to allow objects from
4605 SH64 subsets to be linked together.
4606 (INCLUDE_SHMEDIA): Define.
4607 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
4608 Parenthesize plus-expression inside or-expression.
4609 <global symbol>: Ditto.
4610 (sh_elf_set_mach_from_flags): Remove code refusing
4611 deleted EF_SH64_32BIT_ABI flag.
4612 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
4613 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
4614 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
4615 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
4616 (sh_elf_relocate_section) <local symbol>: Or 1 in
4617 calculation of relocation if sym->st_other & STO_SH5_ISA32.
4618 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
4619 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
4620 relocation.
4621 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
4622 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
4623 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
4624 Regenerate dependencies.
4625 * Makefile.in: Regenerate.
4626 * archures.c: Add bfd_mach_sh5.
4627 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
4628 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
4629 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
4630 * configure: Regenerate.
4631 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
4632 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
4633 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
4634 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
4635 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
4636 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
4637 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
4638 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
4639 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
4640 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
4641 in item for SH5.
4642 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
4643 for SHmedia relocs.
4644 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
4645 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
4646 shmedia_prepare_reloc, goto final_link_relocate if it returns
4647 non-zero, else fail as before.
4648 (sh_elf_set_mach_from_flags): Provide function only if not defined
4649 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
4650 (sh_elf_set_private_flags): Provide function only if not defined
4651 as a macro.
4652 (sh_elf_copy_private_data): Similar.
4653 (sh_elf_merge_private_data): Similar.
4654 * section.c (SEC_SH_ISA_SHMEDIA): New.
4655 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
4656 * elf32-sh64.c: New file.
4657 * libbfd.h: Regenerate.
4658 * bfd-in2.h: Regenerate.
4659 * po/POTFILES.in: Regenerate.
4660 * po/bfd.pot: Regenerate.
4661 * bfd-in2.h: Regenerate.
4662 * libbfd.h: Regenerate.
4663
4664 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
4665
4666 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
4667 been included, not drag it in.
4668 * bfd-in2.h: Regenerate.
4669
4670 2002-02-06 H.J. Lu (hjl@gnu.org)
4671
4672 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
4673 the mach and ISA fields if necessary.
4674
4675 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4676
4677 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
4678 ARM architecture when an F_ARM_5 flag is detected, since we cannot
4679 be sure exactly which architecture this represents.
4680
4681 2002-02-05 Nick Clifton <nickc@redhat.com>
4682
4683 * po/tr.po: Updated translation.
4684
4685 2002-02-05 Alan Modra <amodra@bigpond.net.au>
4686
4687 From Jimi X <jimix@watson.ibm.com>
4688 * archures (bfd_mach_ppc64): Define.
4689 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
4690 (bfd_powerpc_arch): Define.
4691 * bfd-in2.h: Regenerate.
4692 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
4693 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
4694 (bfd_powerpc_archs): Add default powerpc64 arch.
4695
4696 2002-02-05 Alan Modra <amodra@bigpond.net.au>
4697
4698 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
4699 against section syms in readonly sections. Don't do the global
4700 sym check if we find one.
4701 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
4702 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
4703 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
4704 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
4705 (elf_s390_grok_prstatus): Add missing prototype.
4706
4707 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
4708
4709 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
4710 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
4711 Call bfd_get_section_by_name only once. Initialize
4712 bpodata->n_bpo_relocs_this_section.
4713 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
4714 referring to DSOs.
4715 (bpo_reloc_request_sort_fn): Don't use difference of values as
4716 return-value.
4717
4718 2002-02-02 David O'Brien <obrien@FreeBSD>
4719
4720 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
4721 version 4.5 and later the same as 5-CURRENT.
4722 * configure: Re-generate.
4723
4724 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
4725
4726 * config.bfd (hppa*-*-netbsd*): New target.
4727
4728 2002-01-31 Philipp Thomas <pthomas@suse.de>
4729
4730 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
4731 to front of message. Unify messages with elf32-arm.h. Use
4732 commas where neccessary.
4733 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
4734 ERROR in messages. Unify messages with coff-arm.c. Correct
4735 VFP/FPA error message.
4736 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
4737 APCS-32 for translation.
4738
4739 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
4740
4741 Perform on-demand global register allocation from
4742 R_MMIX_BASE_PLUS_OFFSET relocs.
4743 * elf64-mmix.c (struct bpo_reloc_section_info, struct
4744 bpo_reloc_request, struct bpo_greg_section_info): New.
4745 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
4746 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
4747 _bfd_mmix_check_all_relocs,
4748 _bfd_mmix_prepare_linker_allocated_gregs,
4749 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
4750 (elf_mmix_howto_table): Correct src_mask for most relocs.
4751 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
4752 case.
4753 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
4754 case. Fix typo in comment. New label do_mmix_reloc.
4755 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
4756 store first object file with a base-plus-offset reloc. Call
4757 mmix_elf_check_common_relocs for the part common with mmo.
4758 (mmix_elf_final_link): Write out linker-allocated register
4759 contents section.
4760 (elf_backend_gc_sweep_hook): Define.
4761 (bfd_elf64_bfd_relax_section): Define.
4762
4763 * mmo.c: Don't include <ctype.h>
4764 (mmo_init): Correct init-once logic.
4765
4766 2002-02-01 Tom Rix <trix@redhat.com>
4767
4768 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
4769
4770 2002-02-01 Alan Modra <amodra@bigpond.net.au>
4771
4772 * Makefile.am: Run "make dep-am"
4773 * Makefile.in: Regenerate.
4774
4775 2002-01-31 David O'Brien <obrien@FreeBSD>
4776
4777 * configure.in: Recognize the differences in core files from FreeBSD
4778 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
4779 5-CURRENT.
4780 * configure: Regenerate.
4781
4782 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
4783
4784 * coff-or32.c: New file.
4785 * cpu-or32.c: New file.
4786 * elf32-or32.c: New file.
4787 * archures.c: Add support for or32.
4788 * targets.c: Add support for or32.
4789 * bfd-in2.h: Regenerate.
4790 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
4791 coff_write_object_contents): Add support for or32.
4792 * config.bfd: Add target.
4793 * configure.in: Add support for or32.
4794 * configure: Regenerate.
4795 * Makefile.am: Add support for or32.
4796 * Makefile.in: Regenerate.
4797 * po/SRC-POTFILES.in: Add or32 files.
4798 * po/bfd.pot: Regenerate.
4799
4800 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
4801 Don Lindsay <lindsayd@cisco.com>
4802
4803 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
4804 false' with a return of a bfd_reloc_ error code.
4805
4806 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
4807
4808 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
4809 unexport unreferenced symbols when --export-dynamic. Call
4810 _bfd_elf_strtab_delref when unexporting.
4811
4812 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4813
4814 * bfd-in.h: Include <stdbool.h> if it is available.
4815 * bfd-in2.h: Regenerated.
4816
4817 2002-01-31 Alan Modra <amodra@bigpond.net.au>
4818
4819 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
4820 not go via the plt.
4821
4822 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
4823
4824 * archures.c: Tidy up formatting of embedded comments.
4825 * bfd.c: Tidy up formatting of embedded comments.
4826 * bfd-in.h: Fix formatting of comments.
4827 * reloc.c: Tidy up formatting of ordinary & embedded comments.
4828 * section.c: Tidy up formatting of embedded comments.
4829 * syms.c: Tidy up formatting of embedded comments.
4830 * targets.c: Tidy up formatting of embedded comments.
4831
4832 * bfd-in2.h: Regenerate.
4833
4834 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
4835
4836 * vms-tir.c (cmd_name): New function.
4837 (tir_cmd_name): New function.
4838 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
4839 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
4840 Fix formatting.
4841
4842 * peXXigen.c (pe_print_idata): Rearrange message to aid in
4843 translation.
4844 (pe_print_pdata): Rearrange message to aid in translation.
4845
4846 * libbfd.c (warn_deprecated): Rearrange error message to aid in
4847 translation.
4848
4849 * ihex.c (ihex_write_object_contents): Fix spelling typo.
4850
4851 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
4852
4853 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
4854 message to aid in translation.
4855
4856 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
4857 to aid in translation.
4858
4859 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
4860
4861 2002-01-30 Philipp Thomas <pthomas@suse.de>
4862
4863 * coff-arm.c, elf32-elf.h: Unify messages.
4864
4865 2002-01-30 Nick Clifton <nickc@redhat.com>
4866
4867 * po/sv.po: Updated translation.
4868
4869 2002-01-30 Philipp Thomas <pthomas@suse.de>
4870
4871 * dwarf2.c (read_abbrev): Use full section name in error message.
4872 (decode_line_info): Likewise.
4873
4874 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
4875 message.
4876
4877 2002-01-30 Alan Modra <amodra@bigpond.net.au>
4878
4879 * elf64-ppc.c (func_desc_adjust): Only provide missing function
4880 descriptor symbols for undefined function code syms. Clear
4881 ELF_LINK_NON_ELF so that they can stay weak.
4882
4883 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4884 Mitch Lichtenberg <mpl@broadcom.com>
4885
4886 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
4887 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
4888 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
4889 generation.
4890 * bfd-in2.h: Regenerate.
4891
4892 2002-01-29 Chris Demetriou <cgd@broadcom.com>
4893
4894 * elf32-mips.c: Add additional comments about HI16 relocation
4895 processing.
4896 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
4897 pc-relative relocations. (Reverts change made on 2001-10-31.)
4898 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
4899 for pc-relative relocations.
4900 (mips_elf_calculate_relocation): Add a comment about a kludge
4901 in the R_MIPS_GNU_REL_HI16 handling.
4902 (_bfd_mips_elf_relocate_section): Implement that kludge;
4903 adjust pc-relative HI16 relocation for difference in HI16 and
4904 LO16 addresses, since it can't easily be done in
4905 mips_elf_calculate_relocation.
4906
4907 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
4908
4909 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
4910 relocations with PC32 relocations for undefined or weak symbols.
4911 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
4912 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
4913
4914 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
4915
4916 * elfcore.h (elf_core_file_p): Improve comment for last change.
4917
4918 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
4919
4920 * configure: Regenerated.
4921
4922 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
4923
4924 * elfcore.h (elf_core_file_p): Set the machine architecture
4925 before processing the program headers.
4926
4927 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
4928
4929 * configure.in <64-bit configuration>: If using gcc, check and
4930 emit error for egcs-1.1.2.
4931 * configure: Regenerate.
4932
4933 2002-01-26 Egor Duda <deo@logos-m.ru>
4934
4935 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
4936 as possible to avoid stack corruption.
4937
4938 2002-01-26 Richard Henderson <rth@redhat.com>
4939
4940 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
4941 for non-allocated sections.
4942
4943 2002-01-25 Mark Kettenis <kettenis@gnu.org>
4944
4945 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
4946 prstat.pr_reg even if it is a struct.
4947
4948 2002-01-25 Steve Ellcey <sje@cup.hp.com>
4949
4950 * elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
4951
4952 2002-01-25 Philipp Thomas <pthomas@suse.de>
4953
4954 * coffgen.c (coff_print_symbol): Don't mark info message
4955 for translation.
4956
4957 2002-01-25 Nick Clifton <nickc@redhat.com>
4958
4959 * po/fr.po: Updated translation.
4960 * po/es.po: Updated translation.
4961
4962 2002-01-25 Philipp Thomas <pthomas@suse.de>
4963
4964 * coff-alpha.c (alpha_relocate_section): Unify warning message
4965 for GP relative relocations without GP defined.
4966 * coff-mips.c (mips_relocate_section): Likewise.
4967
4968 2002-01-25 Alan Modra <amodra@bigpond.net.au>
4969
4970 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
4971 unsigned overflow when new_offset < old_offset.
4972
4973 2002-01-24 Philipp Thomas <pthomas@suse.de>
4974
4975 * bfd.c (_bfd_abort): Fix typo.
4976
4977 2002-01-23 Richard Henderson <rth@redhat.com>
4978
4979 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
4980 plt entries for undefweak symbols.
4981
4982 2002-01-23 Steve Ellcey <sje@cup.hp.com>
4983
4984 * targets.c (bfd_elf32_ia64_hpux_big_vec): Add to DEFAULT_VECTOR.
4985 (bfd_elf64_ia64_hpux_big_vec): Ditto.
4986 (bfd_elf32_h8300_vec): Ditto.
4987
4988 2002-01-23 Alan Modra <amodra@bigpond.net.au>
4989
4990 * elf64-ppc.c: Remove stale part of ABI comment.
4991 (NO_OPD_RELOCS): Define.
4992 (ppc64_elf_check_relocs): Use it.
4993 (ppc64_elf_relocate_section): Here too.
4994 (build_one_stub): Don't point function syms at the stub. Instead,
4995 hijack plt.offset.
4996 (ppc64_elf_relocate_section): Check whether REL24 relocs should
4997 really go to the stub. Make all dynamic relocs in opd against
4998 locals.
4999 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
5000 plt.offset.
5001
5002 2002-01-22 Richard Henderson <rth@redhat.com>
5003
5004 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
5005
5006 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5007
5008 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
5009 TOC_BASE_OFF adjustment.
5010
5011 * Makefile.am: Run "make dep-am".
5012 * Makefile.in: Regenerate.
5013 * po/SRC-POTFILES.in: Regenerate.
5014
5015 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
5016
5017 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
5018 host defines.
5019
5020 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
5021
5022 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
5023 Check for and emit error if sgot is NULL at this point.
5024
5025 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5026
5027 * config.bfd (ia64*-*-netbsd*): New target.
5028
5029 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
5030
5031 * som.c (som_write_space_strings): Comment typo fix.
5032
5033 2002-01-21 Alan Modra <amodra@bigpond.net.au>
5034
5035 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
5036 is_func_descriptor fields.
5037 (link_hash_newfunc): Init them.
5038 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
5039 dot are candidates for plt entries. When processing .opd relocs,
5040 set function descriptor strings to point inside function code
5041 string, and set new ppc_link_hash_entry fields.
5042 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
5043 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
5044 function descriptors. It's now done in..
5045 (func_desc_adjust): New.
5046 (ppc64_elf_func_desc_adjust): New.
5047 (define elf_backend_always_size_sections): Define.
5048 (ppc64_elf_hide_symbol): New.
5049 (define elf_backend_hide_symbol): Define.
5050 (allocate_dynrelocs): Remove code looking up function descriptors
5051 as that has been done earlier.
5052 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
5053 table.
5054 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
5055 up function descriptor.
5056 (build_one_stub): Look up the function code sym. Check for
5057 invalid plt offsets.
5058 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
5059 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
5060
5061 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
5062 boolean param.
5063 (_bfd_elf_link_hash_hide_symbol): Likewise.
5064 * elflink.h (elf_link_add_object_symbols): Adjust call to
5065 elf_backend_hide_symbol.
5066 (elf_fix_symbol_flags): Likewise.
5067 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
5068 than bfd_alloc.
5069 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
5070 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
5071 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
5072 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
5073 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
5074 and adjust to suit.
5075 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
5076 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
5077 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
5078
5079 2002-01-18 Alan Modra <amodra@bigpond.net.au>
5080
5081 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
5082 dynamic function descriptor symbol, not the associated function
5083 symbol.
5084
5085 2002-01-17 Eric Christopher <echristo@redhat.com>
5086
5087 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
5088
5089 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5090
5091 * po/bfd.pot: Regenerate.
5092 * po/fr.po: Regenerate.
5093
5094 2002-01-17 Alan Modra <amodra@bigpond.net.au>
5095
5096 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
5097 Remove "Elf_Internal_Shdr *" param.
5098 (_bfd_mips_elf_section_from_bfd_section): Ditto.
5099 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
5100 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
5101 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
5102 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
5103 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
5104 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
5105 function to override special sections. Remove hdr arg from
5106 backend call, and don't loop.
5107
5108 2002-01-16 Eric Christopher <echristo@redhat.com>
5109
5110 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
5111 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
5112 relocations requiring gp0 and gp.
5113
5114 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
5115
5116 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
5117 EF_ARM_VFP_FLOAT.
5118 (elf32_arm_print_private_bfd_data): Likewise.
5119
5120 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
5121
5122 * po/tr.po: Import new version.
5123
5124 2002-01-16 Alan Modra <amodra@bigpond.net.au>
5125
5126 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
5127 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
5128 (ORI_R0_R0_0): Correct.
5129
5130 2002-01-16 Alan Modra <amodra@bigpond.net.au>
5131
5132 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
5133 when plt_not_loaded.
5134 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
5135 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
5136 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
5137 (ppc64_elf_glink_code): Delete.
5138 (PPC64_ELF_GLINK_SIZE): Delete.
5139 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
5140 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
5141 ORI_R0_R0_0): Define.
5142 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
5143 (struct ppc_link_hash_table): Add sstub and plt_overflow.
5144 (ppc64_elf_link_hash_table_create): Init them.
5145 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
5146 Don't copy to shared lib.
5147 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
5148 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
5149 (allocate_dynrelocs <plt>): Don't change function sym here. Make
5150 room for .stub and .glink code.
5151 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
5152 DT_PPC64_GLINK.
5153 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
5154 bfd_elf64_bfd_final_link.
5155 (bfd_elf64_bfd_final_link): Don't define.
5156 (ppc64_elf_size_stubs): New.
5157 (build_plt_stub): New.
5158 (build_one_stub): New.
5159 (ppc64_elf_build_stubs): New.
5160 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
5161 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
5162 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
5163 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
5164 case output sections not separate. Adjust DT_RELASZ to not
5165 include plt relocs. Set reserved got entry. Set got and plt
5166 entry size.
5167 (elf_backend_got_header_size): Set to 8.
5168 * elf64-ppc.h: New file.
5169
5170 2002-01-16 Alan Modra <amodra@bigpond.net.au>
5171
5172 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
5173 sections, use bfd_section_list_remove.
5174 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5175 * elflink.h (elf_link_add_object_symbols): When removing all
5176 sections, use bfd_section_list_clear.
5177
5178 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5179
5180 * po/sv.po: New file: Swedish translation.
5181 * configure.in (ALL_LINGUAS): Add sv.
5182 * configure: Regenerate.
5183
5184 2002-01-15 Jakub Jelinek <jakub@redhat.com>
5185
5186 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
5187 * elf.c (merge_sections_remove_hook): New function.
5188 (_bfd_elf_merge_sections): Pass it as 3rd argument to
5189 _bfd_merge_sections.
5190 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
5191 * libbfd.h: Rebuilt.
5192 * merge.c (_bfd_merge_sections): Add remove_hook argument.
5193 Call remove_hook if a SEC_EXCLUDE section is encountered.
5194
5195 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5196
5197 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
5198 (xstormy16_reloc_map): Initialise new field with correct howto
5199 table.
5200 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
5201 howto entry.
5202
5203 2002-01-10 Michael Snyder <msnyder@redhat.com>
5204
5205 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
5206 (elfcore_write_pstatus): Use long instead of pid_t;
5207 * elf-bfd.h: Change prototypes to use long instead of pid_t;
5208
5209 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
5210
5211 * elf.c: Update copyright years.
5212 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
5213 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
5214
5215 2002-01-08 Michael Snyder <msnyder@redhat.com>
5216
5217 Add capability to write corefile note sections, for gdb.
5218 * elf.c (elfcore_write_note): New function.
5219 (elfcore_write_prpsinfo): New function.
5220 (elfcore_write_prstatus): New function.
5221 (elfcore_write_pstatus): New function.
5222 (elfcore_write_prfpreg): New function.
5223 (elfcore_write_prxfpreg): New function.
5224 * elf-bfd.h: Add prototypes for above functions.
5225
5226 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
5227
5228 * elf.c (elf_fake_sections): Propagate errors from
5229 elf_backend_fake_section.
5230
5231 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5232
5233 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
5234 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
5235 (elf32-sh-nbsd.lo): New rule.
5236 * Makefile.in: Regenerate.
5237 * config.bfd (sh*le-*-netbsdelf*): New target.
5238 (sh*-*-netbsdelf*): New target.
5239 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
5240 (bfd_elf32_shnbsd_vec): New vector.
5241 (bfd_elf32_shlnbsd_vec): New vector.
5242 * configure: Regenerate.
5243 * elf32-sh-nbsd.c: New file.
5244 * targets.c: Update copyright years.
5245 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
5246 bfd_elf32_shnbsd_vec.
5247
5248 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5249
5250 * coff-rs6000.c (READ20): Use bfd_scan_vma.
5251
5252 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
5253
5254 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
5255 of a symbol in a section that will be deleted.
5256
5257 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5258
5259 * po/es.po: New file: Spanish translation.
5260 * configure.in (ALL_LINGUAS): Add es.
5261 * configure: Regenerate.
5262
5263 2002-01-06 Steve Ellcey <sje@cup.hp.com>
5264
5265 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
5266 argument so we can handle HP-UX specially.
5267 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
5268 (elfNN_hpux_backend_section_from_bfd_section): New for support
5269 of SHN_IA_64_ANSI_COMMON.
5270 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
5271 (is_unwind_section_name): Add special HP-UX support.
5272 (elfNN_ia64_section_from_shdr): Add support for more sections.
5273 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
5274 add support for more sections.
5275 (elfNN_ia64_additional_program_headers): Modify
5276 is_unwind_section_name call.
5277 (elfNN_ia64_modify_segment_map): Remove assumption that there is
5278 only one unwind section in segment.
5279
5280 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5281
5282 * syms.c (_bfd_generic_make_empty_symbol): New function.
5283 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
5284 _bfd_generic_make_empty_symbol.
5285 * libbfd.h: Regenerate.
5286 * bfd-in2.h: Regenerate.
5287 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
5288 (hppabsd_core_get_symtab_upper_bound): Don't define.
5289 (hppabsd_core_get_symtab): Likewise.
5290 (hppabsd_core_print_symbol): Likewise.
5291 (hppabsd_core_get_symbol_info): Likewise.
5292 (hppabsd_core_bfd_is_local_label_name): Likewise.
5293 (hppabsd_core_get_lineno): Likewise.
5294 (hppabsd_core_find_nearest_line): Likewise.
5295 (hppabsd_core_bfd_make_debug_symbol): Likewise.
5296 (hppabsd_core_read_minisymbols): Likewise.
5297 (hppabsd_core_minisymbol_to_symbol): Likewise.
5298 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
5299 Formatting fixes.
5300 * hpux-core.c: Similarly.
5301 * irix-core.c: Similarly.
5302 * osf-core.c: Similarly.
5303 * sco5-core.c: Similarly.
5304 * binary.c (binary_make_empty_symbol): Remove function, define as
5305 _bfd_generic_make_empty_symbol.
5306 * ihex.c (ihex_make_empty_symbol): Likewise.
5307 * mmo.c (mmo_make_empty_symbol): Likewise.
5308 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
5309 * srec.c (srec_make_empty_symbol): Likewise.
5310 * versados.c (versados_make_empty_symbol): Likewise.
5311 * vms.c (_bfd_vms_make_empty_symbol): Remove.
5312 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
5313 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
5314 rather than _bfd_vms_make_empty_symbol.
5315 * vms-misc.c (new_symbol): Likewise.
5316
5317 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5318
5319 * section.c (bfd_section_init): Remove unnecessary initialisations.
5320 (bfd_section_list_clear): New function.
5321 (bfd_section_list_remove, bfd_section_list_insert): New macros.
5322 (_bfd_strip_section_from_output): Use them.
5323 * coffcode.h (coff_set_alignment_hook): Likewise.
5324 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
5325 * elf64-mips.c (mips_elf64_final_link): Likewise.
5326 * elf64-mmix.c (mmix_elf_final_link): Likewise.
5327 * sunos.c (sunos_add_dynamic_symbols): Likewise.
5328 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
5329 * bfd-in2.h: Regenerate.
5330
5331 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
5332 rather than doing our own section handling. Clean up after errors
5333 with bfd_release and bfd_section_list_clear. Handle unexpected
5334 flags.
5335 * aoutf1.h (sunos4_core_file_p): Likewise.
5336 * aix386-core.c (aix386_core_file_p): Likewise.
5337 * cisco-core.c (cisco_core_file_validate): Likewise.
5338 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
5339 * trad-core.c (trad_unix_core_file_p): Likewise.
5340
5341 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
5342 with bfd_release and bfd_section_list_clear.
5343 * hpux-core.c (hpux_core_core_file_p): Likewise.
5344 * irix-core.c (irix_core_core_file_p): Likewise.
5345 * lynx-core.c (lynx_core_file_p): Likewise.
5346 * osf-core.c (osf_core_core_file_p): Likewise.
5347 * rs6000-core.c (rs6000coff_core_p): Likewise.
5348 * sco5-core.c (sco5_core_file_p): Likewise.
5349
5350 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
5351 sign extension adjustments without conditionals.
5352
5353 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5354
5355 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
5356 CIE at .eh_frame start is removed due to no FDEs referencing it.
5357
5358 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5359
5360 * config.bfd (x86_64-*-netbsd*): New target.
5361 * configure.in (x86_64-*-netbsd*): Set COREFILE
5362 to netbsd-core.lo.
5363 * configure: Regenerated.
5364
5365 2002-01-03 Tom Rix <trix@redhat.com>
5366
5367 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
5368 for recent bfd_make_section_anyway change.
5369
5370 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
5371
5372 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5373 R_ARM_THM_PC11 reloc.
5374
5375 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5376
5377 * configure.in (LINGUAS): Add ja.
5378 * configure: Regenerate.
5379 * po/ja.po: Import from translation project's web site.
5380
5381 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5382
5383 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
5384 messages to ease translation into other languages.
5385
5386 For older changes see ChangeLog-0001
5387 \f
5388 Local Variables:
5389 mode: change-log
5390 left-margin: 8
5391 fill-column: 74
5392 version-control: never
5393 End:
This page took 0.1435 seconds and 4 git commands to generate.