* archures.c (bfd_default_compatible): Test bits_per_word.
[binutils-gdb.git] / bfd / ChangeLog
1 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2
3 * archures.c (bfd_default_compatible): Test bits_per_word.
4 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
5 bfd_default_compatible.
6 * cpu-i370.c (i370_compatible): Likewise.
7 * cpu-sparc.c (sparc_compatible): Likewise.
8 * cpu-h8300.c (compatible): Test in->arch == out->arch.
9
10 * elflink.h: Formatting fixes.
11 (elf_link_output_extsym): Merge undefined and undef weak cases.
12
13 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
14 when word size of input matches output word size.
15
16 2002-03-12 Andreas Jaeger <aj@suse.de>
17
18 * cpu-i386.c (i386_compatible): New. Use it instead of
19 bfd_default_compatible.
20
21 2002-03-07 H.J. Lu (hjl@gnu.org)
22
23 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
24 as the type for bfd_reloc_val.
25
26 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
27
28 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
29 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
30 (elf_hppa_final_link_relocate): Correct relocations for indirect
31 references to local data through the DLT. Fix .opd creation for
32 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
33 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
34 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
35 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
36 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
37 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
38 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
39
40 2002-03-05 Jakub Jelinek <jakub@redhat.com>
41
42 * merge.c (_bfd_merge_sections): Don't segfault if there
43 is nothing to merge due to GC.
44
45 2002-03-05 Alan Modra <amodra@bigpond.net.au>
46
47 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
48 symbols that have been forced local.
49
50 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
51 to output forced local syms for non-shared link.
52 (elf_link_output_extsym): Tweak condition for calling backend
53 adjust_dynamic_symbol so that previous behaviour is kept.
54 Whitespace changes throughout file.
55
56 2002-03-04 H.J. Lu <hjl@gnu.org>
57
58 * elf.c (bfd_section_from_shdr): Handle special sections,
59 .init_array, .fini_array and .preinit_array.
60 (elf_fake_sections): Likewise.
61
62 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
63 DT entry only if the section is in output for .init_array,
64 .fini_array and .preinit_array. Complain about .preinit_array
65 section in DSO.
66 (elf_bfd_final_link): Warn zero size for .init_array,
67 .fini_array and .preinit_array sections.
68
69 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
70 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
71 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
72 .preinit_array.
73
74 2002-03-04 Alan Modra <amodra@bigpond.net.au>
75
76 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
77 * configure: Regenerate.
78
79 2002-03-02 Tom Rix <trix@redhat.com>
80
81 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
82 symbolic equiv.
83 * coff-rs6000.c (xcoff_howto_table): Same.
84
85 2002-03-01 David Mosberger <davidm@hpl.hp.com>
86
87 * elflink.h (size_dynamic_sections): If section named
88 ".preinit_array" exists, create DT_PREINIT_ARRAY and
89 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
90 ".init_array" and ".fini_array".
91 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
92 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
93 DT_FINI_ARRAY.
94
95 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
96
97 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
98 dynsyms.
99
100 2002-02-25 Alan Modra <amodra@bigpond.net.au>
101
102 * elf64-hppa.h: Update copyright date.
103
104 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
105 (ppc64_elf_relocate_section): Don't generate power4 style branch
106 hints for *_BRTAKEN and *_BRNTAKEN relocs.
107
108 2002-02-22 Jakub Jelinek <jakub@redhat.com>
109
110 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
111 last patch.
112 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
113
114 2002-02-21 Andreas Jaeger <aj@suse.de>
115
116 * elf64-x86-64.c: Major rework that introduces all recent changes
117 to the x86-64 backend. Get a closer match to elf32-i386.
118 (struct elf64_x86_64_dyn_relocs): Rename from
119 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
120 all users.
121 (struct elf64_x86_64_link_hash_table): Add short cuts to some
122 sections.
123 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
124 remove casts, initialize new hash members.
125 (create_got_section): New.
126 (elf64_x86_64_create_dynamic_sections): New.
127 (elf64_x86_64_copy_indirect_symbol): New.
128 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
129 relocs, .got or .relgot here but do it in allocate_dynrelocs.
130 Reference count possible .plt and .got entries. Don't test input
131 section SEC_READONLY here to try to avoid copy relocs, and keep
132 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
133 DF_TEXTREL here. Delay setting of variables until needed. Cache
134 pointer to "sreloc" section in elf_section_data. Tweak condition
135 under which .got created. Report files with bad relocation
136 section names.
137 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
138 Reference count possible .plt entries. Don't deallocate .got and
139 .relgot space here.
140 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
141 do copy reloc processing for weakdefs. Remove redundant casts and
142 aborts. Delay setting of vars until needed. Move creation of
143 dynamic symbols and allocation of .plt and .rela.plt to
144 allocate_dynrelocs. Replace BFD_ASSERT with abort.
145 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
146 (allocate_dynrelocs): New.
147 (readonly_dynrelocs): New.
148 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
149 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
150 Zero out the dynamic allocated content space.
151 (elf64_x86_64_discard_copies): Removed.
152 (elf64_x86_64_relocate_section): Make use of dynamic section
153 short-cuts. Localise vars, and delay setting. Better error
154 reporting, replace BFD_ASSERT with abort. Check
155 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
156 regular object file and tread the weak definition as the normal
157 one. Don't discard relocs for undefweak or undefined symbols and
158 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
159 relocs.
160 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
161 symbols that have been forced local. Use same test to decide if
162 we can use a relative reloc for got as relocate_section. Expand
163 SHN_UNDEF comment. Move expressions out of function calls.
164 Replace BFD_ASSERT with abort.
165 (bfd_elf64_bfd_final_link): Removed.
166 (elf_backend_copy_indirect_symbol): Define.
167
168 2002-02-20 Tom Rix <trix@redhat.com>
169
170 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
171 (_bfd_xcoff_reloc_type_lookup): Use it.
172 * coff64-rs6000.c (xcoff64_howto_table): Same.
173 (xcoff64_reloc_type_lookup): Same.
174
175 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
176
177 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
178 little endian.
179
180 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
181
182 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
183 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
184 * bfd-in2.h: Regenerate.
185 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
186 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
187 with "s390:64-bit".
188 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
189 (elf_s390_reloc_type_lookup): Likewise.
190 (elf_s390_check_relocs): Likewise.
191 (elf_s390_gc_sweep_hook): Likewise.
192 (elf_s390_relocate_section): Likewise.
193 (elf_s390_object_p): Use renamed architecture define.
194 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
195
196 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
197
198 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
199
200 2002-02-19 Jakub Jelinek <jakub@redhat.com>
201
202 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
203 absptr -> pcrel optimization for shared libs.
204 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
205 library cannot be converted to pcrel.
206 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
207 relative.
208 * elf32-i386.c (elf_i386_relocate_section): If
209 _bfd_elf_section_offset returned -2, skip, but make sure the
210 relocation is installed.
211 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
212 * elf32-cris.c (cris_elf_relocate_section): Likewise.
213 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
214 * elf32-i370.c (i370_elf_relocate_section): Likewise.
215 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
216 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
217 * elf32-s390.c (elf_s390_relocate_section): Likewise.
218 * elf32-sh.c (sh_elf_relocate_section): Likewise.
219 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
220 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
221 * elf64-s390.c (elf_s390_relocate_section): Likewise.
222 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
223 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
224 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
225 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
226 _bfd_elf_section_offset returning -2 the same way as -1.
227 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
228 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
229 and BFD_ASSERT.
230 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
231
232 2002-02-18 Tom Rix <trix@redhat.com>
233
234 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
235 (bfd_xcoff_size_dynamic_sections): Same.
236 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
237 (bfd_xcoff_size_dynamic_sections): Same.
238 * coff-rs6000.c (xcoff_generate_rtinit): Same.
239 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
240 * libxcoff.h (struct xcoff_backend_data_rec): Same.
241 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
242 * bfd-in2.h: Regenerate.
243
244 2002-02-18 Alan Modra <amodra@bigpond.net.au>
245
246 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
247 (struct ppc_link_hash_table): Add sfpr.
248 (ppc64_elf_link_hash_table_create): Init it.
249 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
250 .glink out to..
251 (create_linkage_sections): ..here. Make .sfpr too.
252 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
253 dynobj early.
254 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
255 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
256 ._restf* functions, and create as needed.
257 (func_desc_adjust): Only force_local for shared libs.
258
259 2002-02-18 David O'Brien <obrien@FreeBSD.org>
260
261 * configure.in: Bump version number post 2.12 branching.
262 * configure: Regenerate.
263
264 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
265
266 * mmo.c: Correct and improve comments.
267 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
268 zero-pad. Use input to fill up non-empty bfd buffer.
269 (mmo_flush_chunk): New function.
270 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
271 changed. Don't emit location specifier if VMA is same as
272 *LAST_VMAP after omitting leading zero contents. Call
273 mmo_flush_chunk before emitting location specifier.
274 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
275 with mmo_write_loc_chunk calls.
276 (mmo_internal_write_section): Call mmo_flush_chunk after
277 mmo_write_chunk.
278 (mmo_write_symbols_and_terminator): Move :Main to first position
279 in symbol array. Add faked one if it does not exist if there are
280 other symbols. Don't add it if there are no symbols at all. Move
281 out test for value of :Main from symbol loop. Rename table
282 fakemain to maintable and variable mainsym to fakemain.
283
284 2002-02-15 Richard Henderson <rth@redhat.com>
285
286 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
287 section with no got matches any got. Simplify error generaion.
288
289 2002-02-15 Alan Modra <amodra@bigpond.net.au>
290
291 Support arbitrary length fill patterns.
292 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
293 (_bfd_default_link_order): Remove bfd_fill_link_order code.
294 Call default_data_link_order.
295 (default_fill_link_order): Delete.
296 (default_data_link_order): New function.
297 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
298 of bfd_fill_link_order with bfd_data_link_order.
299 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
300 * elf64-mips.c (mips_elf64_final_link): Likewise.
301
302 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
303 Correct value returned in "end" for "0x<non-hex>".
304
305 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
306
307 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
308 (scan): Test against 'mach' field in info structure.
309
310 2002-02-14 Alan Modra <amodra@bigpond.net.au>
311
312 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
313
314 2002-02-14 Matt Fredette <fredette@netbsd.org>
315
316 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
317 EF_M68000.
318
319 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
320
321 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
322 non-zero physical addresses when adjusting the LMAs of new
323 sections.
324
325 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
326
327 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
328 from _bfd_elf_hppa_gen_reloc_type.
329 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
330 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
331 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
332 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
333
334 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
335
336 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
337 loading its contents if there's nothing to do in it.
338
339 2002-02-12 Alan Modra <amodra@bigpond.net.au>
340
341 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
342 64k boundary.
343
344 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
345 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
346 (ppc64_elf_finish_dynamic_sections): Set values for them.
347
348 2002-02-11 Michael Snyder <msnyder@redhat.com>
349
350 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
351 * elf.c (elfcore_grok_pstatus): Add prototype.
352 (elfcore_grok_lwpstatus): Add prototype.
353 (elfcore_write_lwpstatus): New function.
354 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
355
356 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
357
358 * elf32-sh.c: Added missing prototypes.
359 * elf32-sh64.c: Likewise.
360 (sh_elf_align_loads): Mark unused args as such.
361 * elf64-sh64.c: Added missing prototypes.
362 (struct elf_sh64_link_hash_entry): Fix typo.
363 (sh_elf64_relocate_section): Fix info argument passed to
364 _bfd_elf_section_offset.
365
366 2002-02-11 Alan Modra <amodra@bigpond.net.au>
367
368 * Makefile.am: "make dep-am".
369 * Makefile.in: Regenerate.
370 * aclocal.m4: Regenerate.
371 * config.in: Regenerate.
372 * configure: Regenerate.
373
374 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
375
376 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
377 variable warnings.
378 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
379 comparison warning.
380 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
381 cast warnings for the common case.
382
383 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
384
385 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
386 vectors.
387 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
388 vectors.
389
390 2002-02-09 Richard Henderson <rth@redhat.com>
391
392 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
393 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
394 (elf64_alpha_relocate_section): Likewise.
395 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
396 * bfd-in2.h, libbfd.h: Rebuild.
397
398 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
399
400 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
401 that base-plus-offset reloc accounting is consistent.
402 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
403 up to date for undefined symbols.
404
405 2002-02-08 Eric Christopher <echristo@redhat.com>
406
407 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
408
409 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
410 sections for the O32 ABI.
411
412 2002-02-08 Chris Demetriou <cgd@broadcom.com>
413
414 * elf32-arm.h: Fix formatting of _("...").
415 * elf32-d10v.c: Likewise.
416 * elf32-m68k.c: Likewise.
417 * elf32-mips.c: Likewise.
418
419 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
420
421 * coff-or32.c: Fix compile time warning messages.
422
423 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
424
425 Contribute sh64-elf.
426 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
427 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
428 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
429 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
430 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
431 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
432 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
433 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
434 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
435 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
436 New relocs.
437 * libbfd.h, bfd-in2.h: Rebuilt.
438 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
439 (sh_reloc_map): Map them.
440 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
441 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
442 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
443 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
444 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
445 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
446 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
447 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
448 datalabel_got_offset.
449 (sh_elf_link_hash_newfunc): Initialize it.
450 (sh_elf_relocate_section): Augment the scope of
451 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
452 GOT and GOTOFF handling to new SHmedia relocation types. Support
453 GOT_BIAS.
454 (sh_elf_check_relocs): Likewise.
455 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
456 PLT entries using movi_shori_putval. Support GOT_BIAS.
457 (sh_elf_finish_dynamic_sections): Likewise.
458 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
459 relocation, it's now done by the caller.
460 (GOT_BIAS): New.
461 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
462 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
463 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
464 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
465 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
466 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
467 sh64_elf64_hash_table): New.
468 (sh_elf64_howto_table): Introduce new relocs.
469 (sh_elf64_info_to_howto): Accept new PIC relocs.
470 (sh_elf64_relocate_section): Augment the scope of
471 seen_stt_datalabel. Support new PIC relocs.
472 (sh_elf64_check_relocs): Support new PIC relocs.
473 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
474 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
475 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
476 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
477 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
478 movi_shori_putval, movi_3shori_putval,
479 sh64_elf64_create_dynamic_sections,
480 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
481 sh64_elf64_size_dynamic_sections,
482 sh64_elf64_finish_dynamic_symbol,
483 sh64_elf64_finish_dynamic_sections): New.
484 (elf_backend_create_dynamic-sections,
485 bfd_elf64_bfd_link_hash_table_create,
486 elf_backend_adjust_dynamic_symbol,
487 elf_backend_size_dynamic_sections,
488 elf_backend_finish_dynamic_symbol,
489 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
490 elf_backend_plt_readonly, elf_backend_want_plt_sym,
491 elf_backend_got_header_size, elf_backend_plt_header_size):
492 Define.
493 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
494 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
495 match official numbers and names; moved unmaching ones to the
496 range 0xf2-0xff.
497 * elf32-sh64.c, elf64-sh64.c: Likewise.
498 2001-03-12 DJ Delorie <dj@redhat.com>
499 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
500 sections.
501 2001-03-12 DJ Delorie <dj@redhat.com>
502 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
503 be aligned.
504 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
505 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
506 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
507 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
508 .cranges section with SEC_SORT_ENTRIES set.
509 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
510 incoming sorted .cranges section.
511 (sh64_bfd_elf_copy_private_section_data): New.
512 (sh64_elf_final_write_processing): Only sort .cranges and modify
513 start address if called by linker.
514 2001-01-08 Ben Elliston <bje@redhat.com>
515 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
516 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
517 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
518 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
519 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
520 line. Add comments before all entries.
521 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
522 comment.
523 (sh_elf64_reloc): Correct head comment.
524 (sh_elf64_relocate_section): Correct spacing.
525 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
526 instead call reloc_dangerous callback.
527 <case R_SH_SHMEDIA_CODE>: New case.
528 (sh_elf64_gc_mark_hook): Correct spacing.
529 (sh_elf64_check_relocs): Ditto.
530 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
531 New case.
532 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
533 functions.
534 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
535 clarify describing comment. Add comments before all entries.
536 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
537 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
538 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
539 Sort .cranges section in final link. Prepare to set bit 0 on
540 entry address.
541 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
542 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
543 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
544 .cranges section.
545 (sh64_backend_section_from_shdr): New, to recognize
546 SHT_SH5_CR_SORTED on incoming .cranges section.
547 (elf_backend_section_from_shdr): Define.
548 (sh64_elf_final_write_processing): Sort outgoing .cranges
549 section. (New, temporarily disabled:) Set bit 0 on entry address
550 according to ISA type.
551 (sh64_find_section_for_address): New.
552 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
553 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
554 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
555 bfd_malloc, not xmalloc.
556 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
557 global.
558 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
559 temporarily disabled) setting bit 0 on entry address.
560 (elf_backend_final_write_processing): Define.
561 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
562 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
563 be a proper relocation for PTA and PTB rather than a marker.
564 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
565 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
566 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
567 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
568 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
569 Zero src_mask.
570 * elf64-sh64.c: Ditto.
571 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
572 * elf32-sh64.c: Include opcodes/sh64-opc.h
573 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
574 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
575 parameters. No unused parameters. Caller changed.
576 <case R_SH_PT_16>: New case.
577 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
578 * Makefile.in: Regenerate.
579 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
580 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
581 all code sections.
582 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
583 (sh64_elf_merge_private_data): Ditto.
584 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
585 to access stored section flags.
586 (sh64_elf_final_write_processing): Return immediately unless
587 called by linker. Use sh64_elf_section_data (cranges) to get size
588 of linker-generated cranges entries.
589 (sh64_elf_copy_private_data): Add missing "return true".
590 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
591 (sh_elf64_merge_private_data): Ditto.
592 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
593 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
594 elf64-sh64.c:sh64_elf_fake_sections.
595 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
596 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
597 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
598 (sh64_elf_final_write_processing): New.
599 (elf_backend_final_write_processing): Define.
600 (sh64_elf_fake_sections): Get header flags from tdata field.
601 (sh64_elf_copy_private_data): Do not call
602 sh64_elf_copy_private_data_internal, just copy e_flags field.
603 (sh64_elf_merge_private_data): Do not call
604 sh64_elf_copy_private_data_internal.
605 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
606 Remove EF_SH64_ABI64, let ELF size make difference.
607 Remove SH64-specific BFD section flag.
608 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
609 containing SHmedia through elf_section_data (asect)->tdata
610 non-zero, not using a BFD section flag.
611 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
612 (sh64_elf_merge_private_data): Similar.
613 (elf_backend_section_flags): Don't define.
614 (sh64_elf_backend_section_flags): Delete.
615 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
616 not EF_SH64_ABI64.
617 (sh_elf64_merge_private_data): Similar.
618 * section.c (Section flags definitions): Don't define
619 SEC_SH_ISA_SHMEDIA.
620 (bfd-in2.h): Regenerate.
621 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
622 Make DataLabel references work with partial linking.
623 * elf32-sh64.c: Fix formatting.
624 (sh64_elf_link_output_symbol_hook): New.
625 (elf_backend_link_output_symbol_hook): Define to
626 sh64_elf_link_output_symbol_hook.
627 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
628 undefined if partial linking. Adjust sanity check.
629 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
630 (elf_backend_link_output_symbol_hook): Define to
631 sh64_elf64_link_output_symbol_hook.
632 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
633 undefined if partial linking. Adjust sanity check.
634 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
635 Implement semantics for inter-file DataLabel references.
636 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
637 (sh64_elf64_add_symbol_hook): New.
638 (sh_elf64_relocate_section): If passing an indirect symbol with
639 st_type STT_DATALABEL on the way to a symbol with st_other
640 STO_SH5_ISA32, do not bitor 1 to the relocation.
641 (elf_backend_add_symbol_hook): Define to
642 sh64_elf64_add_symbol_hook.
643 * elf64-sh32.c: Tweak comments.
644 (DATALABEL_SUFFIX): Define.
645 (sh64_elf_add_symbol_hook): New.
646 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
647 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
648 symbol with st_type STT_DATALABEL on the way to a symbol with
649 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
650 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
651 Pass through STT_DATALABEL.
652 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
653 (elf_backend_get_symbol_type): Define.
654 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
655 (elf_backend_get_symbol_type): Define.
656 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
657 * elf32-sh64.c: Tweak comments.
658 (sh64_elf_copy_private_data_internal): Add prototype.
659 (bfd_elf32_bfd_set_private_flags): Define.
660 (sh64_elf_copy_private_data_internal): Compare machine name, not
661 textual BFD target name, to check whether to copy section flag
662 SHF_SH5_ISA32.
663 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
664 Tweak section-contents-type-mismatch message.
665 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
666 Validize reloc-types.
667 * elf64-sh64.c: New file.
668 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
669 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
670 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
671 Regenerate dependencies.
672 * Makefile.in: Regenerate.
673 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
674 bfd_elf64_sh64l_vec.
675 * configure.in: Handle bfd_elf64_sh64_vec and
676 bfd_elf64_sh64l_vec.
677 * configure: Regenerate.
678 * po/POTFILES.in: Regenerate.
679 * po/bfd.pot: Regenerate.
680 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
681 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
682 anything else but EF_SH64 and EF_SH64_ABI64.
683 (sh64_elf_merge_private_data): Emit error for anything else but
684 EF_SH64 and EF_SH64_ABI64.
685 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
686 from targ_selvecs.
687 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
688 bfd_elf32_sh64l_vec as a temporary measure.
689 * configure: Regenerate.
690 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
691 * cpu-sh.c (arch_info_struct): Include sh5 item
692 unconditionalized.
693 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
694 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
695 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
696 * elf32-sh64.c: Tweak comments.
697 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
698 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
699 (sh64_elf_copy_private_data_internal): Wrap long line.
700 (sh64_elf_merge_private_data): Rewrite to allow objects from
701 SH64 subsets to be linked together.
702 (INCLUDE_SHMEDIA): Define.
703 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
704 Parenthesize plus-expression inside or-expression.
705 <global symbol>: Ditto.
706 (sh_elf_set_mach_from_flags): Remove code refusing
707 deleted EF_SH64_32BIT_ABI flag.
708 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
709 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
710 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
711 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
712 (sh_elf_relocate_section) <local symbol>: Or 1 in
713 calculation of relocation if sym->st_other & STO_SH5_ISA32.
714 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
715 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
716 relocation.
717 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
718 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
719 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
720 Regenerate dependencies.
721 * Makefile.in: Regenerate.
722 * archures.c: Add bfd_mach_sh5.
723 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
724 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
725 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
726 * configure: Regenerate.
727 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
728 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
729 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
730 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
731 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
732 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
733 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
734 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
735 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
736 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
737 in item for SH5.
738 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
739 for SHmedia relocs.
740 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
741 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
742 shmedia_prepare_reloc, goto final_link_relocate if it returns
743 non-zero, else fail as before.
744 (sh_elf_set_mach_from_flags): Provide function only if not defined
745 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
746 (sh_elf_set_private_flags): Provide function only if not defined
747 as a macro.
748 (sh_elf_copy_private_data): Similar.
749 (sh_elf_merge_private_data): Similar.
750 * section.c (SEC_SH_ISA_SHMEDIA): New.
751 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
752 * elf32-sh64.c: New file.
753 * libbfd.h: Regenerate.
754 * bfd-in2.h: Regenerate.
755 * po/POTFILES.in: Regenerate.
756 * po/bfd.pot: Regenerate.
757 * bfd-in2.h: Regenerate.
758 * libbfd.h: Regenerate.
759
760 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
761
762 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
763 been included, not drag it in.
764 * bfd-in2.h: Regenerate.
765
766 2002-02-06 H.J. Lu (hjl@gnu.org)
767
768 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
769 the mach and ISA fields if necessary.
770
771 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
772
773 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
774 ARM architecture when an F_ARM_5 flag is detected, since we cannot
775 be sure exactly which architecture this represents.
776
777 2002-02-05 Nick Clifton <nickc@redhat.com>
778
779 * po/tr.po: Updated translation.
780
781 2002-02-05 Alan Modra <amodra@bigpond.net.au>
782
783 From Jimi X <jimix@watson.ibm.com>
784 * archures (bfd_mach_ppc64): Define.
785 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
786 (bfd_powerpc_arch): Define.
787 * bfd-in2.h: Regenerate.
788 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
789 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
790 (bfd_powerpc_archs): Add default powerpc64 arch.
791
792 2002-02-05 Alan Modra <amodra@bigpond.net.au>
793
794 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
795 against section syms in readonly sections. Don't do the global
796 sym check if we find one.
797 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
798 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
799 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
800 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
801 (elf_s390_grok_prstatus): Add missing prototype.
802
803 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
804
805 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
806 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
807 Call bfd_get_section_by_name only once. Initialize
808 bpodata->n_bpo_relocs_this_section.
809 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
810 referring to DSOs.
811 (bpo_reloc_request_sort_fn): Don't use difference of values as
812 return-value.
813
814 2002-02-02 David O'Brien <obrien@FreeBSD>
815
816 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
817 version 4.5 and later the same as 5-CURRENT.
818 * configure: Re-generate.
819
820 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
821
822 * config.bfd (hppa*-*-netbsd*): New target.
823
824 2002-01-31 Philipp Thomas <pthomas@suse.de>
825
826 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
827 to front of message. Unify messages with elf32-arm.h. Use
828 commas where neccessary.
829 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
830 ERROR in messages. Unify messages with coff-arm.c. Correct
831 VFP/FPA error message.
832 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
833 APCS-32 for translation.
834
835 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
836
837 Perform on-demand global register allocation from
838 R_MMIX_BASE_PLUS_OFFSET relocs.
839 * elf64-mmix.c (struct bpo_reloc_section_info, struct
840 bpo_reloc_request, struct bpo_greg_section_info): New.
841 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
842 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
843 _bfd_mmix_check_all_relocs,
844 _bfd_mmix_prepare_linker_allocated_gregs,
845 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
846 (elf_mmix_howto_table): Correct src_mask for most relocs.
847 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
848 case.
849 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
850 case. Fix typo in comment. New label do_mmix_reloc.
851 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
852 store first object file with a base-plus-offset reloc. Call
853 mmix_elf_check_common_relocs for the part common with mmo.
854 (mmix_elf_final_link): Write out linker-allocated register
855 contents section.
856 (elf_backend_gc_sweep_hook): Define.
857 (bfd_elf64_bfd_relax_section): Define.
858
859 * mmo.c: Don't include <ctype.h>
860 (mmo_init): Correct init-once logic.
861
862 2002-02-01 Tom Rix <trix@redhat.com>
863
864 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
865
866 2002-02-01 Alan Modra <amodra@bigpond.net.au>
867
868 * Makefile.am: Run "make dep-am"
869 * Makefile.in: Regenerate.
870
871 2002-01-31 David O'Brien <obrien@FreeBSD>
872
873 * configure.in: Recognize the differences in core files from FreeBSD
874 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
875 5-CURRENT.
876 * configure: Regenerate.
877
878 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
879
880 * coff-or32.c: New file.
881 * cpu-or32.c: New file.
882 * elf32-or32.c: New file.
883 * archures.c: Add support for or32.
884 * targets.c: Add support for or32.
885 * bfd-in2.h: Regenerate.
886 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
887 coff_write_object_contents): Add support for or32.
888 * config.bfd: Add target.
889 * configure.in: Add support for or32.
890 * configure: Regenerate.
891 * Makefile.am: Add support for or32.
892 * Makefile.in: Regenerate.
893 * po/SRC-POTFILES.in: Add or32 files.
894 * po/bfd.pot: Regenerate.
895
896 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
897 Don Lindsay <lindsayd@cisco.com>
898
899 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
900 false' with a return of a bfd_reloc_ error code.
901
902 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
903
904 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
905 unexport unreferenced symbols when --export-dynamic. Call
906 _bfd_elf_strtab_delref when unexporting.
907
908 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
909
910 * bfd-in.h: Include <stdbool.h> if it is available.
911 * bfd-in2.h: Regenerated.
912
913 2002-01-31 Alan Modra <amodra@bigpond.net.au>
914
915 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
916 not go via the plt.
917
918 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
919
920 * archures.c: Tidy up formatting of embedded comments.
921 * bfd.c: Tidy up formatting of embedded comments.
922 * bfd-in.h: Fix formatting of comments.
923 * reloc.c: Tidy up formatting of ordinary & embedded comments.
924 * section.c: Tidy up formatting of embedded comments.
925 * syms.c: Tidy up formatting of embedded comments.
926 * targets.c: Tidy up formatting of embedded comments.
927
928 * bfd-in2.h: Regenerate.
929
930 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
931
932 * vms-tir.c (cmd_name): New function.
933 (tir_cmd_name): New function.
934 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
935 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
936 Fix formatting.
937
938 * peXXigen.c (pe_print_idata): Rearrange message to aid in
939 translation.
940 (pe_print_pdata): Rearrange message to aid in translation.
941
942 * libbfd.c (warn_deprecated): Rearrange error message to aid in
943 translation.
944
945 * ihex.c (ihex_write_object_contents): Fix spelling typo.
946
947 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
948
949 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
950 message to aid in translation.
951
952 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
953 to aid in translation.
954
955 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
956
957 2002-01-30 Philipp Thomas <pthomas@suse.de>
958
959 * coff-arm.c, elf32-elf.h: Unify messages.
960
961 2002-01-30 Nick Clifton <nickc@redhat.com>
962
963 * po/sv.po: Updated translation.
964
965 2002-01-30 Philipp Thomas <pthomas@suse.de>
966
967 * dwarf2.c (read_abbrev): Use full section name in error message.
968 (decode_line_info): Likewise.
969
970 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
971 message.
972
973 2002-01-30 Alan Modra <amodra@bigpond.net.au>
974
975 * elf64-ppc.c (func_desc_adjust): Only provide missing function
976 descriptor symbols for undefined function code syms. Clear
977 ELF_LINK_NON_ELF so that they can stay weak.
978
979 2002-01-29 Chris Demetriou <cgd@broadcom.com>
980 Mitch Lichtenberg <mpl@broadcom.com>
981
982 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
983 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
984 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
985 generation.
986 * bfd-in2.h: Regenerate.
987
988 2002-01-29 Chris Demetriou <cgd@broadcom.com>
989
990 * elf32-mips.c: Add additional comments about HI16 relocation
991 processing.
992 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
993 pc-relative relocations. (Reverts change made on 2001-10-31.)
994 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
995 for pc-relative relocations.
996 (mips_elf_calculate_relocation): Add a comment about a kludge
997 in the R_MIPS_GNU_REL_HI16 handling.
998 (_bfd_mips_elf_relocate_section): Implement that kludge;
999 adjust pc-relative HI16 relocation for difference in HI16 and
1000 LO16 addresses, since it can't easily be done in
1001 mips_elf_calculate_relocation.
1002
1003 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
1004
1005 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
1006 relocations with PC32 relocations for undefined or weak symbols.
1007 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
1008 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
1009
1010 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
1011
1012 * elfcore.h (elf_core_file_p): Improve comment for last change.
1013
1014 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1015
1016 * configure: Regenerated.
1017
1018 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
1019
1020 * elfcore.h (elf_core_file_p): Set the machine architecture
1021 before processing the program headers.
1022
1023 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1024
1025 * configure.in <64-bit configuration>: If using gcc, check and
1026 emit error for egcs-1.1.2.
1027 * configure: Regenerate.
1028
1029 2002-01-26 Egor Duda <deo@logos-m.ru>
1030
1031 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
1032 as possible to avoid stack corruption.
1033
1034 2002-01-26 Richard Henderson <rth@redhat.com>
1035
1036 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
1037 for non-allocated sections.
1038
1039 2002-01-25 Mark Kettenis <kettenis@gnu.org>
1040
1041 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
1042 prstat.pr_reg even if it is a struct.
1043
1044 2002-01-25 Steve Ellcey <sje@cup.hp.com>
1045
1046 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
1047
1048 2002-01-25 Philipp Thomas <pthomas@suse.de>
1049
1050 * coffgen.c (coff_print_symbol): Don't mark info message
1051 for translation.
1052
1053 2002-01-25 Nick Clifton <nickc@redhat.com>
1054
1055 * po/fr.po: Updated translation.
1056 * po/es.po: Updated translation.
1057
1058 2002-01-25 Philipp Thomas <pthomas@suse.de>
1059
1060 * coff-alpha.c (alpha_relocate_section): Unify warning message
1061 for GP relative relocations without GP defined.
1062 * coff-mips.c (mips_relocate_section): Likewise.
1063
1064 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1065
1066 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
1067 unsigned overflow when new_offset < old_offset.
1068
1069 2002-01-24 Philipp Thomas <pthomas@suse.de>
1070
1071 * bfd.c (_bfd_abort): Fix typo.
1072
1073 2002-01-23 Richard Henderson <rth@redhat.com>
1074
1075 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
1076 plt entries for undefweak symbols.
1077
1078 2002-01-23 Steve Ellcey <sje@cup.hp.com>
1079
1080 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
1081 DEFAULT_VECTOR.
1082 (bfd_elf64_ia64_hpux_big_vec): Ditto.
1083 (bfd_elf32_h8300_vec): Ditto.
1084
1085 2002-01-23 Alan Modra <amodra@bigpond.net.au>
1086
1087 * elf64-ppc.c: Remove stale part of ABI comment.
1088 (NO_OPD_RELOCS): Define.
1089 (ppc64_elf_check_relocs): Use it.
1090 (ppc64_elf_relocate_section): Here too.
1091 (build_one_stub): Don't point function syms at the stub. Instead,
1092 hijack plt.offset.
1093 (ppc64_elf_relocate_section): Check whether REL24 relocs should
1094 really go to the stub. Make all dynamic relocs in opd against
1095 locals.
1096 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
1097 plt.offset.
1098
1099 2002-01-22 Richard Henderson <rth@redhat.com>
1100
1101 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
1102
1103 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1104
1105 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
1106 TOC_BASE_OFF adjustment.
1107
1108 * Makefile.am: Run "make dep-am".
1109 * Makefile.in: Regenerate.
1110 * po/SRC-POTFILES.in: Regenerate.
1111
1112 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
1113
1114 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
1115 host defines.
1116
1117 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
1118
1119 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
1120 Check for and emit error if sgot is NULL at this point.
1121
1122 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1123
1124 * config.bfd (ia64*-*-netbsd*): New target.
1125
1126 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
1127
1128 * som.c (som_write_space_strings): Comment typo fix.
1129
1130 2002-01-21 Alan Modra <amodra@bigpond.net.au>
1131
1132 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
1133 is_func_descriptor fields.
1134 (link_hash_newfunc): Init them.
1135 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
1136 dot are candidates for plt entries. When processing .opd relocs,
1137 set function descriptor strings to point inside function code
1138 string, and set new ppc_link_hash_entry fields.
1139 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
1140 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
1141 function descriptors. It's now done in..
1142 (func_desc_adjust): New.
1143 (ppc64_elf_func_desc_adjust): New.
1144 (define elf_backend_always_size_sections): Define.
1145 (ppc64_elf_hide_symbol): New.
1146 (define elf_backend_hide_symbol): Define.
1147 (allocate_dynrelocs): Remove code looking up function descriptors
1148 as that has been done earlier.
1149 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
1150 table.
1151 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
1152 up function descriptor.
1153 (build_one_stub): Look up the function code sym. Check for
1154 invalid plt offsets.
1155 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
1156 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
1157
1158 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
1159 boolean param.
1160 (_bfd_elf_link_hash_hide_symbol): Likewise.
1161 * elflink.h (elf_link_add_object_symbols): Adjust call to
1162 elf_backend_hide_symbol.
1163 (elf_fix_symbol_flags): Likewise.
1164 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
1165 than bfd_alloc.
1166 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
1167 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
1168 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1169 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
1170 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
1171 and adjust to suit.
1172 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
1173 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
1174 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1175
1176 2002-01-18 Alan Modra <amodra@bigpond.net.au>
1177
1178 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
1179 dynamic function descriptor symbol, not the associated function
1180 symbol.
1181
1182 2002-01-17 Eric Christopher <echristo@redhat.com>
1183
1184 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
1185
1186 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1187
1188 * po/bfd.pot: Regenerate.
1189 * po/fr.po: Regenerate.
1190
1191 2002-01-17 Alan Modra <amodra@bigpond.net.au>
1192
1193 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
1194 Remove "Elf_Internal_Shdr *" param.
1195 (_bfd_mips_elf_section_from_bfd_section): Ditto.
1196 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
1197 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
1198 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
1199 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
1200 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
1201 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
1202 function to override special sections. Remove hdr arg from
1203 backend call, and don't loop.
1204
1205 2002-01-16 Eric Christopher <echristo@redhat.com>
1206
1207 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
1208 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
1209 relocations requiring gp0 and gp.
1210
1211 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
1212
1213 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
1214 EF_ARM_VFP_FLOAT.
1215 (elf32_arm_print_private_bfd_data): Likewise.
1216
1217 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
1218
1219 * po/tr.po: Import new version.
1220
1221 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1222
1223 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
1224 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
1225 (ORI_R0_R0_0): Correct.
1226
1227 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1228
1229 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
1230 when plt_not_loaded.
1231 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
1232 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
1233 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
1234 (ppc64_elf_glink_code): Delete.
1235 (PPC64_ELF_GLINK_SIZE): Delete.
1236 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
1237 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
1238 ORI_R0_R0_0): Define.
1239 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
1240 (struct ppc_link_hash_table): Add sstub and plt_overflow.
1241 (ppc64_elf_link_hash_table_create): Init them.
1242 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
1243 Don't copy to shared lib.
1244 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
1245 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
1246 (allocate_dynrelocs <plt>): Don't change function sym here. Make
1247 room for .stub and .glink code.
1248 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
1249 DT_PPC64_GLINK.
1250 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
1251 bfd_elf64_bfd_final_link.
1252 (bfd_elf64_bfd_final_link): Don't define.
1253 (ppc64_elf_size_stubs): New.
1254 (build_plt_stub): New.
1255 (build_one_stub): New.
1256 (ppc64_elf_build_stubs): New.
1257 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
1258 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
1259 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
1260 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
1261 case output sections not separate. Adjust DT_RELASZ to not
1262 include plt relocs. Set reserved got entry. Set got and plt
1263 entry size.
1264 (elf_backend_got_header_size): Set to 8.
1265 * elf64-ppc.h: New file.
1266
1267 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1268
1269 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
1270 sections, use bfd_section_list_remove.
1271 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1272 * elflink.h (elf_link_add_object_symbols): When removing all
1273 sections, use bfd_section_list_clear.
1274
1275 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1276
1277 * po/sv.po: New file: Swedish translation.
1278 * configure.in (ALL_LINGUAS): Add sv.
1279 * configure: Regenerate.
1280
1281 2002-01-15 Jakub Jelinek <jakub@redhat.com>
1282
1283 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
1284 * elf.c (merge_sections_remove_hook): New function.
1285 (_bfd_elf_merge_sections): Pass it as 3rd argument to
1286 _bfd_merge_sections.
1287 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
1288 * libbfd.h: Rebuilt.
1289 * merge.c (_bfd_merge_sections): Add remove_hook argument.
1290 Call remove_hook if a SEC_EXCLUDE section is encountered.
1291
1292 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
1293
1294 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
1295 (xstormy16_reloc_map): Initialise new field with correct howto
1296 table.
1297 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
1298 howto entry.
1299
1300 2002-01-10 Michael Snyder <msnyder@redhat.com>
1301
1302 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
1303 (elfcore_write_pstatus): Use long instead of pid_t;
1304 * elf-bfd.h: Change prototypes to use long instead of pid_t;
1305
1306 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
1307
1308 * elf.c: Update copyright years.
1309 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
1310 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
1311
1312 2002-01-08 Michael Snyder <msnyder@redhat.com>
1313
1314 Add capability to write corefile note sections, for gdb.
1315 * elf.c (elfcore_write_note): New function.
1316 (elfcore_write_prpsinfo): New function.
1317 (elfcore_write_prstatus): New function.
1318 (elfcore_write_pstatus): New function.
1319 (elfcore_write_prfpreg): New function.
1320 (elfcore_write_prxfpreg): New function.
1321 * elf-bfd.h: Add prototypes for above functions.
1322
1323 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1324
1325 * elf.c (elf_fake_sections): Propagate errors from
1326 elf_backend_fake_section.
1327
1328 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1329
1330 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
1331 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
1332 (elf32-sh-nbsd.lo): New rule.
1333 * Makefile.in: Regenerate.
1334 * config.bfd (sh*le-*-netbsdelf*): New target.
1335 (sh*-*-netbsdelf*): New target.
1336 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
1337 (bfd_elf32_shnbsd_vec): New vector.
1338 (bfd_elf32_shlnbsd_vec): New vector.
1339 * configure: Regenerate.
1340 * elf32-sh-nbsd.c: New file.
1341 * targets.c: Update copyright years.
1342 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
1343 bfd_elf32_shnbsd_vec.
1344
1345 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
1346
1347 * coff-rs6000.c (READ20): Use bfd_scan_vma.
1348
1349 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
1350
1351 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
1352 of a symbol in a section that will be deleted.
1353
1354 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1355
1356 * po/es.po: New file: Spanish translation.
1357 * configure.in (ALL_LINGUAS): Add es.
1358 * configure: Regenerate.
1359
1360 2002-01-06 Steve Ellcey <sje@cup.hp.com>
1361
1362 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
1363 argument so we can handle HP-UX specially.
1364 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
1365 (elfNN_hpux_backend_section_from_bfd_section): New for support
1366 of SHN_IA_64_ANSI_COMMON.
1367 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
1368 (is_unwind_section_name): Add special HP-UX support.
1369 (elfNN_ia64_section_from_shdr): Add support for more sections.
1370 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
1371 add support for more sections.
1372 (elfNN_ia64_additional_program_headers): Modify
1373 is_unwind_section_name call.
1374 (elfNN_ia64_modify_segment_map): Remove assumption that there is
1375 only one unwind section in segment.
1376
1377 2002-01-06 Alan Modra <amodra@bigpond.net.au>
1378
1379 * syms.c (_bfd_generic_make_empty_symbol): New function.
1380 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
1381 _bfd_generic_make_empty_symbol.
1382 * libbfd.h: Regenerate.
1383 * bfd-in2.h: Regenerate.
1384 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
1385 (hppabsd_core_get_symtab_upper_bound): Don't define.
1386 (hppabsd_core_get_symtab): Likewise.
1387 (hppabsd_core_print_symbol): Likewise.
1388 (hppabsd_core_get_symbol_info): Likewise.
1389 (hppabsd_core_bfd_is_local_label_name): Likewise.
1390 (hppabsd_core_get_lineno): Likewise.
1391 (hppabsd_core_find_nearest_line): Likewise.
1392 (hppabsd_core_bfd_make_debug_symbol): Likewise.
1393 (hppabsd_core_read_minisymbols): Likewise.
1394 (hppabsd_core_minisymbol_to_symbol): Likewise.
1395 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
1396 Formatting fixes.
1397 * hpux-core.c: Similarly.
1398 * irix-core.c: Similarly.
1399 * osf-core.c: Similarly.
1400 * sco5-core.c: Similarly.
1401 * binary.c (binary_make_empty_symbol): Remove function, define as
1402 _bfd_generic_make_empty_symbol.
1403 * ihex.c (ihex_make_empty_symbol): Likewise.
1404 * mmo.c (mmo_make_empty_symbol): Likewise.
1405 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
1406 * srec.c (srec_make_empty_symbol): Likewise.
1407 * versados.c (versados_make_empty_symbol): Likewise.
1408 * vms.c (_bfd_vms_make_empty_symbol): Remove.
1409 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
1410 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
1411 rather than _bfd_vms_make_empty_symbol.
1412 * vms-misc.c (new_symbol): Likewise.
1413
1414 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1415
1416 * section.c (bfd_section_init): Remove unnecessary initialisations.
1417 (bfd_section_list_clear): New function.
1418 (bfd_section_list_remove, bfd_section_list_insert): New macros.
1419 (_bfd_strip_section_from_output): Use them.
1420 * coffcode.h (coff_set_alignment_hook): Likewise.
1421 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
1422 * elf64-mips.c (mips_elf64_final_link): Likewise.
1423 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1424 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1425 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1426 * bfd-in2.h: Regenerate.
1427
1428 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
1429 rather than doing our own section handling. Clean up after errors
1430 with bfd_release and bfd_section_list_clear. Handle unexpected
1431 flags.
1432 * aoutf1.h (sunos4_core_file_p): Likewise.
1433 * aix386-core.c (aix386_core_file_p): Likewise.
1434 * cisco-core.c (cisco_core_file_validate): Likewise.
1435 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
1436 * trad-core.c (trad_unix_core_file_p): Likewise.
1437
1438 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
1439 with bfd_release and bfd_section_list_clear.
1440 * hpux-core.c (hpux_core_core_file_p): Likewise.
1441 * irix-core.c (irix_core_core_file_p): Likewise.
1442 * lynx-core.c (lynx_core_file_p): Likewise.
1443 * osf-core.c (osf_core_core_file_p): Likewise.
1444 * rs6000-core.c (rs6000coff_core_p): Likewise.
1445 * sco5-core.c (sco5_core_file_p): Likewise.
1446
1447 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
1448 sign extension adjustments without conditionals.
1449
1450 2002-01-04 Jakub Jelinek <jakub@redhat.com>
1451
1452 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
1453 CIE at .eh_frame start is removed due to no FDEs referencing it.
1454
1455 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1456
1457 * config.bfd (x86_64-*-netbsd*): New target.
1458 * configure.in (x86_64-*-netbsd*): Set COREFILE
1459 to netbsd-core.lo.
1460 * configure: Regenerated.
1461
1462 2002-01-03 Tom Rix <trix@redhat.com>
1463
1464 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
1465 for recent bfd_make_section_anyway change.
1466
1467 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
1468
1469 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1470 R_ARM_THM_PC11 reloc.
1471
1472 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1473
1474 * configure.in (LINGUAS): Add ja.
1475 * configure: Regenerate.
1476 * po/ja.po: Import from translation project's web site.
1477
1478 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
1479
1480 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
1481 messages to ease translation into other languages.
1482
1483 For older changes see ChangeLog-0001
1484 \f
1485 Local Variables:
1486 mode: change-log
1487 left-margin: 8
1488 fill-column: 74
1489 version-control: never
1490 End: