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