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