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