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