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