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