* som.c: Include alloca-conf.h
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
6204760d
AM
12000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2
3 * som.c: Include alloca-conf.h.
4 * Makefile.am: "make dep-am"
5 * Makefile.in: Regenerate.
6
47d89dba
AM
72000-09-27 Alan Modra <alan@linuxcare.com.au>
8
9 * elf32-hppa.c (plt_stub): New.
10 (PLT_STUB_ENTRY): Define.
11 (elf32_hppa_link_hash_table): Change multi_subspace to packed
12 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
13 (elf32_hppa_link_hash_table_create): Init to suit.
14 (elf32_hppa_check_relocs): Set has_12bit_branch and
15 has_17bit_branch as appropriate.
16 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
17 non-local functions.
18 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
19 Add space for plt_stub as needed.
20 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
21 functions at plt_stub.
22 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
23 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
24
25 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
26 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
27 of fixed size, and if negative, disable handling of input sections
28 before stub section. Set up default stub group size depending
29 on detected branch relocs.
30 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
31 ensure different offsets from sym_value aren't rounded to
32 different 2k blocks. Use lrsel and rrsel for other stubs too for
33 consistency rather than necessity.
34 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
35 (final_link_relocate): Likewise.
36 (elf32_hppa_relocate_section): Likewise.
37
38 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
39 (_bfd_elf_hppa_gen_reloc_type): Generate them.
40 (elf_hppa_final_link_relocate): Handle them.
41 (elf_hppa_relocate_insn): Likewise.
42 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
43
a17cc40f
HPN
442000-09-26 Hans-Peter Nilsson <hp@axis.com>
45
46 * elfcode.h (elf_object_p): Preserve and clear abfd section
47 information. Restore at error.
48
3028b4c0
DD
492000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
50
51 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
52 is empty, make sure that its rva also 0. NT loader dislikes
53 having otherwise.
54
40914184
AM
552000-09-26 Steve Ellcey <sje@cup.hp.com>
56
57 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
58 global by default.
59
a017a724
AM
602000-09-21 Alan Modra <alan@linuxcare.com.au>
61
62 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
63 currently unused RELATIVE_DYNAMIC_RELOCS code.
64 (hppa_discard_copies): Likewise.
1badb539
AM
65 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
66 comments. Don't check non-code output sections for stub grouping.
a017a724 67
b3ea3584
AM
682000-09-20 Alan Modra <alan@linuxcare.com.au>
69
70 * section.c (bfd_get_unique_section_name): Return NULL if
71 bfd_malloc fails.
72
6091b433
NC
732000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
74
75 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
76 instruction sequence to actually work.
77 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
78 accordingly.
79
8a3975e6
AO
802000-09-18 Alexandre Oliva <aoliva@redhat.com>
81
82 * elf32-sh.c (sh_elf_relocate_section): Use
83 _bfd_final_link_relocate to apply the relocation against a section
84 symbol, when doing relocatable links.
85
25f72752
AM
862000-09-18 Alan Modra <alan@linuxcare.com.au>
87
88 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
89 to id_sec.
90 (stub_hash_newfunc): Here too.
91 (hppa_add_stub): And here.
92 (elf32_hppa_link_hash_table): Remove stub_section_created,
93 reloc_section_created, first_init_sec and first_fini_sec. Add
94 stub_group.
95 (elf32_hppa_link_hash_table_create): Init to suit.
96 (hppa_get_stub_entry): Add support for grouping stub sections.
97 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
98 section code. Index stub vars by section->id.
99 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
100 exit paths. Zap allocation of above removed vars. Refine
101 link-once test.
102
103 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
104 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
105 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
106 rather than pointer to bfd_link_info.
107 (hppa_add_stub): Likewise.
108 (final_link_relocate): Likewise.
109
1102000-09-17 David Huggins-Daines <dhd@linuxcare.com>
111
112 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
113 link-once sections.
114
4bb5e078
AO
1152000-09-16 Alexandre Oliva <aoliva@redhat.com>
116
117 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
118 ld/emulparams/shelf.sh.
119
0752970e
NC
1202000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
121
122 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
123 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
124 * bfd-in2.h: Regenerate.
125
ffcb7aff
NC
1262000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
127
128 * bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
129 LITUSE relocations incorrectly if -relax is specified on the ld
130 command line and the displacement field of the load or store
131 instruction is non-zero. (Patch by paul.winalski@compaq.com)
132
d5c73c2f
AM
1332000-09-15 Alan Modra <alan@linuxcare.com.au>
134
135 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
136 first_fini_sec here.
137 (elf32_hppa_size_stubs): Instead correctly find the first .init
138 and .fini section here.
139
1402000-09-15 David Huggins-Daines <dhd@linuxcare.com>
141
142 * elf32-hppa.c (clobber_millicode_symbols): New function.
143 (elf32_hppa_size_dynamic_sections): Call it.
144
74d1c347
AM
1452000-09-14 Alan Modra <alan@linuxcare.com.au>
146
147 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
148 packed. Add plabel, plt_abs packed booleans.
149 (hppa_link_hash_newfunc): Init new fields.
150 (PLABEL_PLT_ENTRY_SIZE): Define.
151 (hppa_stub_name): Use size_t len vars.
152 (hppa_add_stub): Likewise.
153 (elf32_hppa_build_stubs): Likewise.
154 (hppa_build_one_stub): Kill some compiler warnings.
155 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
156 if dynamic linking. Munge the local plt offsets into
157 local_got_refcounts. Set h->plabel for all global PLABELs. Use
158 size_t len vars. Add assert for plabel addend.
159 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
160 (elf32_hppa_hide_symbol): New function.
161 (elf_backend_hide_symbol): Define.
162 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
163 with h->plabel set. Don't make plt entries to have dynamic syms
164 when they have been forced local. If plt entry is used by a
165 plabel, make it PLABEL_PLT_ENTRY_SIZE.
166 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
167 Set up .plt offsets for local syms.
168 (elf32_hppa_relocate_section): Initialise plt entries for local
169 syms. Leave weak undefined plabels zero. Make global plabel
170 relocs against function symbol, and leave the addend zero.
171 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
172 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
173 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
174 relocs instead of SEGREL32 for dynamic got relocs.
175 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
176 (elf_backend_got_header_size): Adjust.
177 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
178
179 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
180 (hppa_type_of_stub): Use it instead of #if 0
181 (hppa_discard_copies): Use it here too.
182 (elf32_hppa_size_dynamic_sections): And here.
183
184 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
185 (elf32_hppa_link_hash_table_create): And here.
186 (hppa_build_one_stub): And here. Instead keep track of stub
187 offset using _raw_size.
188 (elf32_hppa_size_stubs): Likewise.
189 (elf32_hppa_build_stubs): Likewise.
190 (hppa_size_one_stub): Likewise. Resize reloc section too.
191
192 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
193 first_fini_sec handling. Don't search for reloc section or set
194 hplink->reloc_section_created here.
195 (elf32_hppa_size_stubs): Instead search for reloc sections, and
196 set reloc_section_created here.
197 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
198 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
199 and DT_FINI.
200 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
201
202 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
203 with `hplink->root.'.
204 (elf32_hppa_check_relocs): Likewise.
205 (elf32_hppa_gc_sweep_hook): Likewise.
206 (elf32_hppa_adjust_dynamic_symbol): Likewise.
207 (hppa_handle_PIC_calls): Likewise.
208 (elf32_hppa_size_dynamic_sections): Likewise.
209 (elf32_hppa_set_gp): Likewise.
210 (elf32_hppa_relocate_section): Likewise.
211 (elf32_hppa_finish_dynamic_symbol): Likewise.
212 (elf32_hppa_finish_dynamic_sections): Likewise.
213
214 From David Huggins-Daines <dhd@linuxcare.com>
215 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
216 defined weak symbols in shared links.
217 (final_link_relocate): Calls to defined weak symbols in shared
218 objects must go via import stubs, as the target might not be known
219 at link time.
220
06bb75c1
AO
2212000-09-14 Alexandre Oliva <aoliva@redhat.com>
222
223 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
224 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
225 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
226 the original entries with EMPTY_HOWTOs, and added new ones to fill
227 in the gap.
228 (sh_elf_info_to_howto): Make sure the new gap isn't used.
229 (sh_elf_relocate_section): Likewise.
230
156c2f8b
NC
2312000-09-13 Anders Norlander <anorland@acc.umu.se>
232
233 * cpu-mips.c (arch_info_struct): Add mips:4K
234 * bfd-in2.h (bfd_mach_mips4K): New define.
235 * archures.c: Add bfd_mach_mips4K to comment.
236 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
237 E_MIPS_ARCH_2 for bfd_mach_mips4K.
238
8681fbcd
JL
239Wed Sep 13 19:31:39 2000 Marco Franzen <marcof@thyron.com>
240
241 * som.c (som_write_symbol_strings): Do not used fixed buffers,
242 use size_t as a counter.
243 (som_write_space_strings): Similarly.
244
c1e8b710
JE
2452000-09-12 Jason Eckhardt <jle@cygnus.com>
246
247 * elf32-i860.c (elf32_i860_relocate_pc26): New function
248 and prototype.
249 (elf32_i860_relocate_section): Invoke new function from here.
250
dbf48117
NC
2512000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
252
253 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
254 static.
255
ff0829fd
NC
2562000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
257
258 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
259 target section name instead of dumping core when the target symbol is
260 undefined.
261
27985c55
KH
2622000-09-09 Kazu Hirata <kazu@hxi.com>
263
264 * riscix.c: Remove DEFUN.
265
fe077fa6
NC
2662000-09-08 Nick Clifton <nickc@redhat.com>
267
268 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
269 initialise flags in output bfd if the input bfd is the default
270 architecture with the default flags.
271
d70910e8
KH
2722000-09-08 Kazu Hirata <kazu@hxi.com>
273
274 * archive.c: Fix formatting.
275 * coff-arm.c: Likewise.
276 * doc/chew.c: Likewise.
277
77cb06e9
AM
2782000-09-08 Alan Modra <alan@linuxcare.com.au>
279
280 * section.c (bfd_get_unique_section_name): Put a dot before the
281 numeric suffix.
282
c044fabd
KH
2832000-09-07 Kazu Hirata <kazu@hxi.com>
284
256d98af 285 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
c044fabd
KH
286 * elf.c: Fix formatting.
287
b129bfef
AO
2882000-09-07 Alexandre Oliva <aoliva@redhat.com>
289
290 * config.bfd (sh-*-linux*): Added.
291 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
292 * targets.c: Declare them.
293 * elf32-sh-lin.c: New file.
294 * Makefile.am: Compile it.
295 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
296 * configure, Makefile.in: Rebuilt.
297
492055e6
GK
2982000-09-06 Geoffrey Keating <geoffk@cygnus.com>
299
300 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
77cb06e9
AM
301 pseduo-section when determining where the TOC ends.
302
303 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
304 output x_tvndx as it is only two bytes wide.
305
306 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
307 reloc is 26 or 32 bits wide.
308
309 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
310 for relocs that don't change anything. Also look at the full
311 6 bits of bitsize.
492055e6 312
566ad7d7
PB
3132000-09-06 Philip Blundell <philb@gnu.org>
314
315 * config.bfd (arm*-*-uclinux*): New target.
316
90f2472a
AO
3172000-09-06 Alexandre Oliva <aoliva@redhat.com>
318
319 * configure: Rebuilt with new libtool.m4.
320
a966dba9
AM
3212000-09-06 Alan Modra <alan@linuxcare.com.au>
322
323 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
324 word for variable name.
325 * bfd-in2.h: Regenerate.
77cb06e9 326
5b343f5a
NC
3272000-09-05 Nick Clifton <nickc@redhat.com>
328
329 * config.in: Regenerate.
330 * libbfd.h: Regenerate.
331 * po/bfd.pot: Regenerate.
332 * doc/bfdint.texi: Remove CVS date string - it foils compares with
333 local versions.
77cb06e9 334
188ac662
GK
3352000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
336
337 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
338
49bd834c
AM
3392000-09-05 Alan Modra <alan@linuxcare.com.au>
340
30667bf3
AM
341 Shared library and PIC support.
342 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
343 (GOT_ENTRY_SIZE): New.
344 (ELF_DYNAMIC_INTERPRETER): New.
345 (STUB_SUFFIX): Define.
346 (LONG_BRANCH_PIC_IN_SHLIB): Define.
347 (RELATIVE_DYNAMIC_RELOCS): Define.
348 (enum elf32_hppa_stub_type): New.
349 (struct elf32_hppa_stub_hash_entry): Rename offset to
350 stub_offset. Add a number of new fields.
351 (struct elf32_hppa_link_hash_entry): New.
352 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
353 global_value.
354 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
355 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
356 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
357 new fields.
358 (hppa_link_hash_newfunc): New function.
359 (elf32_hppa_link_hash_table_create): Use above function. Init new
360 fields.
361 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
362 instead of addend, and remove sym_name from args. Don't use
363 symbol name for local syms, instead use sym index.
364 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
365 stub type rather than size. Pass in hash and handle import stub
366 case. Also pass in reloc instead of offset so we can calculate
367 PCREL22F and PCREL12F branches properly.
368 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
369 import and export stubs too.
370 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
371 import and export stub sizing.
372 (elf32_hppa_check_relocs): New function.
373 (elf32_hppa_adjust_dynamic_symbol): New function.
374 (hppa_discard_copies): New function.
375 (elf32_hppa_size_dynamic_sections): New function.
376 (elf_backend_size_dynamic_sections): Define.
377 (elf32_hppa_finish_dynamic_symbol): New function.
378 (elf_backend_finish_dynamic_symbol): Define.
379 (elf32_hppa_size_stubs): Stash params in link hash table, and move
380 some local vars into the link hash table too. For shared links,
381 trundle over function syms, generating export stubs. Handle
382 PCREL22F branches. Break out stub creation code from here..
383 (hppa_add_stub): .. to here. New function.
384 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
385 call the bfd linker. Use elf_gp to record global pointer.
386 Calculate a value from sections if $global$ is missing.
387 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
388 (elf32_hppa_gc_mark_hook): New function.
389 (elf_backend_gc_mark_hook): Define.
390 (elf32_hppa_gc_sweep_hook): New function.
391 (elf_backend_gc_sweep_hook): Define.
392 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
393 Add rel to args, and remove howto, input_bfd, offset, addend,
394 sym_name as we can recalculate these locally. Handle calls to
395 dynamic objects, extra PIC relocs, PCREL22F branches. Change
396 handling of undefined weak syms. Check that stubs are in range.
397 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
398 message on hitting a DPREL21L reloc that needs fixing. Subtract
399 off PC for PCREL14F. Break out code that does a stub lookup from
400 here..
401 (hppa_get_stub_entry): ..to here. New function.
402 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
403 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
404 relocs, etc. etc.
405 (elf32_hppa_finish_dynamic_sections): New function.
406 (elf_backend_finish_dynamic_sections): Define.
407 (elf_backend_final_write_processing) Define.
408 (hppa_handle_PIC_calls): New function.
409 (elf32_hppa_build_stubs): Call it. Pass link_info to
410 hppa_build_one_stub.
411 (elf32_hppa_create_dynamic_sections): New function
412 to create .plt and .got then set .plt flags correctly.
413 (elf_backend_create_dynamic_sections): Define.
414 (elf32_hppa_object_p): New function.
415 (elf_backend_object_p): Define.
416 (elf32_hppa_elf_get_symbol_type): New function.
417 (elf_backend_get_symbol_type): Define.
418 (elf_backend_can_gc_sections): Define.
419 (elf_backend_want_got_plt): Define.
420 (elf_backend_plt_alignment): Set to 2.
421 (elf_backend_plt_readonly): Define.
422 (elf_backend_want_plt_sym): Define.
423 (elf_backend_got_header_size): Reserve one entry.
424
425 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
426 (elf32_hppa_size_stubs): Pass in multi_subspace.
427 (elf32_hppa_set_gp): Declare.
428
1bd91689
AM
429 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
430 (bfd_get_unique_section_name): New function.
431 * bfd_in2.h: Regenerate.
432
832d951b
AM
433 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
434 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
435 comment.
436
437 From David Huggins-Daines <dhd@linuxcare.com>
438 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
439 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
440 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
441 been updated in finish_dynamic_symbol before modifying function
442 symbol.
443
49bd834c
AM
444 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
445 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
446 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
447 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
448 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
449 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
450 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
451 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
452
453 From David Huggins-Daines <dhd@linuxcare.com>
454 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
455 style of local labels as well.
456
05924f36
PB
4572000-09-03 Philip Blundell <philb@gnu.org>
458
459 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
460 references to undefined symbols in debugging sections.
461
3d96075c
L
4622000-09-02 H.J. Lu <hjl@gnu.org>
463
464 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
465 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
466 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
467 section.
468
de24da47
JE
4692000-09-02 Jason Eckhardt <jle@cygnus.com>
470
471 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
472 (elf32_i860_is_local_label_name): New function and prototype.
473
18e03609
NC
4742000-09-02 Nick Clifton <nickc@redhat.com>
475
476 * configure.in: Increase version number to 2.10.91.
477 * configure: Regenerate.
478 * aclocal.m4: Regenerate.
479 * config.in: Regenerate.
480 * po/bfd.pot: Regenerate.
77cb06e9 481
7a6cc5fb
NC
4822000-09-02 Daniel Berlin <dberlin@redhat.com>
483
484 * elf.c (_bfd_elf_make_section_from_shdr): Add
485 .gnu.linkobce.wi. to the list of debug section names.
486
a092b084
NC
4872000-09-02 Nick Clifton <nickc@redhat.com>
488
489 * dwarf2.c (find_debug_info): New function: Locate a section
490 containing dwarf2 debug information.
491 (bfd_dwarf2_find_nearest_line): Find all sections containing
492 debug information and include them in the stash.
493
37c644f2
AO
4942000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
495
496 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
497 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
498 (sh_reloc_map): Add new relocs.
499 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
500 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
501 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
502 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
503 functions.
504 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
505 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
506 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
507 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
508 New array constants.
509 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
510 New variables.
511 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
512 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
513 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
514 elf_sh_plt_reloc_offset): Define.
515 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
516 elf_sh_link_hash_table): New structs.
517 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
518 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
519 relocation types.
520 (elf_backend_create_dynamic_sections,
521 bfd_elf32_bfd_link_hash_table_create,
522 elf_backend_adjust_dynamic_symbol,
523 elf_backend_size_dynamic_sections,
524 elf_backend_finish_dynamic_symbol,
525 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
526 elf_backend_plt_readonly, elf_backend_want_plt_sym,
527 elf_backend_got_header_size, elf_backend_plt_header_size):
528 Define.
529 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
530 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
531 New relocs.
532 * bfd-in2.h, libbfd.h: Rebuilt.
533
791987af
AM
5342000-09-01 Alan Modra <alan@linuxcare.com.au>
535
536 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
537 change.
538
a39b79b9
JR
539Thu Aug 31 22:49:30 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
540
541 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
542 not initialized, set them to indicate the SH1 instruction set.
543
ac48eca1
AO
5442000-08-31 Alexandre Oliva <aoliva@redhat.com>
545
546 * acinclude.m4: Include libtool and gettext macros from the
547 top level.
548 * aclocal.m4, configure: Rebuilt.
549
7ee38065
MS
5502000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
551
552 * elf.c: Eliminate references to __sparcv9 macro; replace with
553 autoconf variables HAVE_PSINFO32_T etc.
554 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
555 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
556 * config.in: Ditto.
557 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
558 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
559 * aclocal.m4: Ditto.
560 * configure: Regenerate.
561
f69da49f
AM
5622000-08-27 Alan Modra <alan@linuxcare.com.au>
563
564 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
565 for any shared link, not just shared -Bsymbolic.
566 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
567 any shared link, and pass link info to it.
568 (elf_i386_size_dynamic_sections): Update comment.
569 (elf_i386_discard_copies): Modify to discard relocs for symbols
570 that have been forced local.
571 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
572 that have been forced local.
573
724982f6
NC
5742000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
575
576 * elflink.h (elf_link_add_object_symbols): Allow common
577 symbols to have an alignment of 1 if explicitly requested, and
578 not overridden by other definitions.
579
371e71b8
NC
5802000-08-22 Doug Kwan <dkwan@transmeta.com>
581
582 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
583 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
584
a963dc6a
L
5852000-08-22 H.J. Lu <hjl@gnu.org>
586
587 * elf-bfd.h (elf_link_hash_table): Add runpath.
588
589 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
590 * bfd-in2.h: Rebuilt.
591
592 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
593 "runpath" field to NULL.
594 (bfd_elf_get_runpath_list): New function.
595
596 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
597 DT_RUNPATH entries.
598
9bdafcce
AO
5992000-08-22 Alexandre Oliva <aoliva@redhat.com>
600
601 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
602 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
603 explicitly. Improve validation of r_type.
604
7a9af8c4
NC
6052000-08-21 H.J. Lu <hjl@gnu.org>
606
607 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
608 dynamic allocated content space. Add a comment to remind us that
609 one day this ought to be fixed.
610 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
611 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
612 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
613
ded0649c
JE
6142000-08-21 Jason Eckhardt <jle@cygnus.com>
615
616 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
617 field with the newly relocated value instead of adding it to the
618 existing immediate field.
619 (elf32_i860_relocate_splitn): Likewise.
620 (elf32_i860_relocate_highadj): Likewise.
621
d670a150
JE
6222000-08-16 Jason Eckhardt <jle@cygnus.com>
623
624 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
625 was previously just a stub).
626
bb0deeff
AO
6272000-08-16 Alexandre Oliva <aoliva@redhat.com>
628
629 * elflink.c (_bfd_elf_create_got_section): Don't abort().
630 Formatting fixes.
631 (_bfd_elf_create_dynamic_sections): Likewise.
632
be040dbb
JJ
6332000-08-16 Andrew Macleod <amacleod@cygnus.com>
634
635 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
636 for undefined symbols to be the beginning of the section.
637
638 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
639 four extra entries at the beginning of the .rela.plt section.
640 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
641 section to account for the four reserved entries in the .plt section.
642
31612ca6
GK
6432000-08-15 Geoffrey Keating <geoffk@cygnus.com>
644
645 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
646 to the list of NOPs we recognize after a branch-and-link.
647 Use the ori NOP when one is needed.
648
649 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
650 for large archives.
651
c43c2cc5
JW
6522000-08-14 Jim Wilson <wilson@cygnus.com>
653
654 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
655 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
656 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
657 EF_IA_64_ABSOLUTE.
658
1630fd2b
AO
6592000-08-11 Alexandre Oliva <aoliva@redhat.com>
660
661 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
662
fdeafce7
JE
6632000-08-10 Jason Eckhardt <jle@cygnus.com>
664
77cb06e9
AM
665 * elf32-i860.c (elf32_i860_relocate_section): New function.
666 (i860_final_link_relocate): New function.
667 (elf32_i860_relocate_splitn): New function.
668 (elf32_i860_relocate_pc16): New function.
669 (elf32_i860_relocate_highadj): New function.
670 (elf32_i860_howto): Minor adjustments to some relocations.
671 (elf_info_to_howto_rel): Define.
672 (elf_backend_relocate_section): Define.
fdeafce7 673
9b485d32
NC
6742000-08-10 Nick Clifton <nickc@cygnus.com>
675
676 * elf32-arm.h: Fix formatting.
677
00fdaf47
BS
6782000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
679
680 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
681
305d537e
JE
6822000-08-08 Jason Eckhardt <jle@cygnus.com>
683
684 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
685
46f5aac8
KH
6862000-08-07 Kazu Hirata <kazu@hxi.com>
687
dce61835
KH
688 * ieee.c (ieee_write_debug_part): Rewrite a comment.
689 * elf64-ia64.c: Fix a typo.
46f5aac8 690
0e5136c6
JE
6912000-08-05 Jason Eckhardt <jle@cygnus.com>
692
693 * elf32-i860 (elf32_i860_howto_table): New structure.
694 (lookup_howto): New function.
695 (elf32_i860_reloc_type_lookup): New function.
696 (elf32_i860_info_to_howto_rela): New function.
697 (elf_code_to_howto_index): New structure.
698 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
699 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
700 elf32_i860_reloc_type_lookup.
701
7dca057b
JL
7022000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
703
704 * som.c (struct fixup_format): Constify `format'.
705 (som_hppa_howto_table): Use SOM_HOWTO macro.
706 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
707 (som_bfd_reloc_type_lookup): Likewise.
708 (compare_subspaces): Remove unused `count1', `count2'.
709 (som_begin_writing): Remove unused `total_reloc_size'.
710 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
711 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
712 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
713 (som_find_nearest_line): Decorate unused parameter(s).
714 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
77cb06e9 715 (som_bfd_link_split_section): Likewise.
7dca057b 716
bc67d8a6
NC
7172000-08-03 Nick Clifton <nickc@cygnus.com>
718
719 * section.c: Restore backed out code.
720 * elf.c: Restore backed out code.
721 (copy_private_bfd_data): Fix bug preventing stipped dynamic
722 binaries from working.
723 * bfd-in2.h: Regenerate.
724
c0f7859b
L
7252000-08-03 H.J. Lu <hjl@gnu.org>
726
727 * section.c: Back out the change made by Nick Clifton
728 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
729 binaries.
730 * bfd-in2.h: Likewise.
731 * elf.c: Likewise.
732
61ff1804
AO
7332000-08-03 Alexandre Oliva <aoliva@redhat.com>
734
735 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
736
a87fdb8d
JE
7372000-07-31 Jason Eckhardt <jle@cygnus.com>
738
77cb06e9
AM
739 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
740 * bfd-in2.h, libbfd.h: Regenerate.
a87fdb8d 741
5c440b1e
NC
7422000-07-31 Nick Clifton <nickc@cygnus.com>
743
744 * section.c (struct sec): Add new boolean field 'segment_mark'.
745 (STD_SECTION): Initialise new field to zero.
746
747 * bfd-in2.h: Regenerate.
748
77cb06e9 749 * elf.c (copy_private_bfd_data): Reorganise section to segment
5c440b1e
NC
750 mapping to cope with moved sections requiring new segments,
751 and overlapping segments.
752 (SEGMENT_END): New macro: Return the end address of a segment.
753 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
754 contains a section by comparing their VMA addresses.
755 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
756 contains a section by comparing their LMA addresses.
757 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
758 section should be included in a segment.
759 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
760 follows another in memory.
761 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
762 segments overlap.
763
aa76cae8 7642000-07-22 Jason Eckhardt <jle@cygnus.com>
24208c5c
JE
765
766 * cpu-i860.c: Added comments.
767
768 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
769 bfd_elf32_i860_little_vec.
770 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
771 (ELF_MAXPAGESIZE): Changed to 4096.
772
773 * targets.c (bfd_elf32_i860_little_vec): Declaration of
774 new target.
775 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
776
777 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
778 config for little endian elf32 i860.
779 (targ_defvec): Define for the new config above
77cb06e9 780 as "bfd_elf32_i860_little_vec".
24208c5c
JE
781 (targ_selvecs): Define for the new config above
782 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
783
784 * configure.in (bfd_elf32_i860_little_vec): Added recognition
785 of new target vec.
786
787 * configure: Regenerated.
788
456981d7
L
7892000-07-27 H.J. Lu <hjl@gnu.org>
790
791 * elflink.h (elf_merge_symbol): Take one more argument,
792 dt_needed, to indicate if the symbol comes from a DT_NEEDED
793 entry. Don't overide the existing weak definition if dt_needed
794 is true.
795 (elf_link_add_object_symbols): Pass dt_needed to
796 elf_merge_symbol ().
797
755cfd29
NC
7982000-07-27 Nick Clifton <nickc@cygnus.com>
799
800 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
801 allocated contents.
802
1a6df346
GK
8032000-07-25 Geoffrey Keating <geoffk@cygnus.com>
804
adfdf838
GK
805 * configure.host (*-*-aix*): AIX has 'long long' always.
806
1a6df346
GK
807 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
808 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
809 (xcoff_write_archive_contents_big): Don't update the offset
810 of the symbol table, xcoff_write_armap will do it.
811
313ba8d6
UC
8122000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
813
814 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
815 of dynobj for SGI_COMPAT checks.
816
3eb6f68f 8172000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
20bccb34 818
77cb06e9
AM
819 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
820 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
821 * bfd-in2.h: Regenerate.
20bccb34 822
7a3120d9
NC
8232000-07-21 Nick Clifton <nickc@cygnus.com>
824
825 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
826 range symbol indices in relocs and issue an error message.
827
4d538889
L
8282000-07-20 H.J. Lu <hjl@gnu.org>
829
830 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
831 info->new_dtags when setting DT_FLAGS_1. It will only be set
832 by the new linker options. It shouldn't break anything.
833
b586af58
L
8342000-07-20 H.J. Lu <hjl@gnu.org>
835
836 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
837 only if info->new_dtags is true.
838
c25373b7
L
8392000-07-20 H.J. Lu <hjl@gnu.org>
840
841 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
842 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
843
06c15ad7
HPN
8442000-07-20 Hans-Peter Nilsson <hp@axis.com>
845
846 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
847 (ALL_MACHINES_CFILES): Add cpu-cris.c.
848 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
849 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
850 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
851 * Makefile.in: Rebuild.
852 * aclocal.m4: Rebuild.
853 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
854 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
855 (bfd_cris_arch): Declare.
856 (bfd_archures_list): Add bfd_cris_arch.
857 * bfd-in2.h: Rebuild.
858 * config.bfd: (cris-*-*): New target.
859 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
860 * configure: Rebuild.
861 * elf.c (prep_headers): Add bfd_arch_cris.
862 * libbfd.h: Rebuild.
863 * libaout.h (enum machine_type): Add M_CRIS.
864 * reloc.c: Add CRIS relocations.
3bd336f7 865 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
06c15ad7
HPN
866 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
867 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
868 * po/POTFILES.in, po/bfd.pot: Regenerate.
869
d6cf2879
L
8702000-07-19 H.J. Lu <hjl@gnu.org>
871
872 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
873 DF_TEXTREL if DT_TEXTREL is set.
874 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
875 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
876 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
877 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
878 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
879 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
880 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
881 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
882 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
883 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
884
c25373b7 885 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
d6cf2879
L
886 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
887 DT_RPATH is set.
888 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
889
74816898
L
8902000-07-19 H.J. Lu <hjl@gnu.org>
891
892 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
893 * bfd-in2.h: Rebuild.
894
895 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
896 (elf_dt_soname): New.
897
898 * elf.c (bfd_elf_set_dt_needed_soname): New.
899
900 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
901 entry if the shared object loaded by DT_NEEDED is used to
902 resolve the reference in a regular object.
903
36a30e65
L
9042000-07-19 H.J. Lu <hjl@gnu.org>
905
906 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
907 DT_DEPAUDIT and DT_AUDIT as strings.
908
1d713d9e
NC
9092000-07-19 Nick Clifton <nickc@cygnus.com>
910
911 * format.c: Fix formatting.
912
d48188b9
L
9132000-07-19 H.J. Lu <hjl@gnu.org>
914
915 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
916
94558834
L
9172000-07-19 H.J. Lu <hjl@gnu.org>
918
919 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
920 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
921 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
922 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
923 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
924 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
925 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
926
125c4a69
NC
927Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
928
929 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
77cb06e9 930 renamed functions from here...
125c4a69
NC
931 (assign_section_numbers): Use renamed functions.
932 (prep_headers): Use renamed functions.
77cb06e9 933
125c4a69
NC
934 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
935 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
936 * bfd-in2.h: Regenerate.
937
31a9bdd9
UC
9382000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
939
940 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
313ba8d6 941 parenthesis in if statement.
31a9bdd9 942
f7cb7d68
UC
9432000-07-17 Koundinya K <kk@ddeorg.soft.net>
944
77cb06e9 945 Enable the support for Traditional MIPS.
f7cb7d68
UC
946 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
947 return ict_none appropriately for traditional mips targets.
948 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
949 (STUB_MOVE): Conditionalize for traditonal mips.
950 (STUB_LI16): Likewise.
951 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
952 room for RTPROC header.
953 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
954 the permission for the PT_DYNAMIC as read, write and execute.
955 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
956 for traditonal mips.
957 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
958 _DYNAMIC_LINKING for traditonal mips.
959 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
960 in case of traditonal mips.
961 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
962 entry is required. For a function if PLT is not required then set the
963 corresponding hash table entry to 0.
77cb06e9 964 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
f7cb7d68 965 traditonal mips.
77cb06e9 966 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
f7cb7d68 967 shared object set the value to 0.
77cb06e9 968 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
f7cb7d68
UC
969 _DYNAMIC_LINKING for traditonal mips.
970 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
971 for traditonal mips.
77cb06e9 972
930d924d
L
9732000-07-15 H.J. Lu <hjl@gnu.org>
974
975 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
976
e67f03db
DD
9772000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
978
979 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
980 out a structure that is BFD_IN_MEMORY.
981
0ba2a60e
AM
9822000-07-11 Alan Modra <alan@linuxcare.com.au>
983
984 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
985 bfd pointer. Print section id instead of bfd pointer for local
986 syms. Prefix addend with `+' for global syms as well as local.
987 Correct calculation of name component lengths.
988 (elf64_hppa_check_relocs): Update call to get_dyn_name.
989
990 From David Huggins-Daines <dhd@linuxcare.com>
991 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
992 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
993 (elf64_hppa_modify_segment_map): Likewise.
994
6d9019e4
AC
995Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
996
997 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
77cb06e9 998 addresses to be "naturally" sign extended. Return -1 if unknown.
0ba2a60e 999 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6d9019e4
AC
1000 * bfd-in2.h: Regenerate.
1001
23e2c83b
AC
1002Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
1003
1004 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
77cb06e9 1005 and ECOF_SIGNED_64 to list ways to extract an offset.
23e2c83b 1006 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
77cb06e9
AM
1007 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
1008 Update.
23e2c83b
AC
1009 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
1010 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
1011
448cafa4
AC
1012Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1013
1014 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
77cb06e9 1015 bfd_get_start_address.
448cafa4
AC
1016 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
1017 (elf_swap_ehdr_out): Ditto.
1018
83ea41ad
NC
10192000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
1020
1021 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
1022 compatibility with older binutils.
1023
3df7b4e2
AM
10242000-07-10 Alan Modra <alan@linuxcare.com.au>
1025
1026 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
1027 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
1028
b7af50e3
AM
1029 From Ryan Bradetich <rbradetich@uswest.net>
1030 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
1031 (parse_line_table): Ditto.
1032 (_bfd_dwarf1_find_nearest_line): Ditto.
1033 * syms.c (cmpindexentry): Remove extra `*' from params.
1034
adb76a3e
UC
10352000-07-09 Koundinya K <kk@ddeorg.soft.net>
1036
77cb06e9
AM
1037 * elf32-mips.c (sort_dynamic_relocs): New Function.
1038 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
adb76a3e
UC
1039 via qsort to sort the dynamic relocations in increasing r_symndx
1040 value.
77cb06e9 1041
edd21aca
AM
10422000-07-09 Alan Modra <alan@linuxcare.com.au>
1043
1044 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
1045 ATTRIBUTE_UNUSED to unused args.
1046 (get_opd): Likewise.
1047 (get_plt): Likewise.
1048 (get_dlt): Likewise.
1049 (get_stub): Likewise.
1050 (elf64_hppa_adjust_dynamic_symbol): Likewise.
1051 (elf64_hppa_link_output_symbol_hook): Likewise.
1052 (elf64_hppa_check_relocs): Delete unused var.
1053 (elf64_hppa_size_dynamic_sections): Likewise.
1054 (elf64_hppa_finalize_opd): Likewise.
1055 (elf64_hppa_finalize_dynreloc): Likewise.
1056 (elf64_hppa_modify_segment_map): Likewise.
1057 (elf64_hppa_finish_dynamic_sections): Likewise.
1058
1059 * elf-hppa.h (elf_hppa_final_write_processing): Add
1060 ATTRIBUTE_UNUSED to unused args.
1061 (elf_hppa_final_link_relocate): Likewise.
1062 (elf_hppa_record_segment_addrs): Add paretheses.
1063 (elf_hppa_relocate_section): Constify dyn_name.
1064
1065 From David Huggins-Daines <dhd@linuxcare.com>
1066 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
1067 rearrange case statement so that it gets preferred to 32-bit ones.
1068
1069 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
1070 asection->id instead of address of asection structure.
1071 (elf32_hppa_size_stubs): Likewise.
1072
1073 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
1074 for .init* and .fini*.
1075
1076 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
1077 and addends used in stub names to 32 bits.
1078 (elf32_hppa_size_stubs): Likewise.
1079
1080 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
1081 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
1082 not bfd_put_64. Fix minor comment typo and formatting.
1083
1084 Changes to create multiple linker stubs, positioned immediately
1085 before the section where they are required.
1086 * elf32-hppa.c: Don't include hppa_stubs.h.
1087 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
1088 (elf32_hppa_stub_hash_table): Delete.
1089 (elf32_hppa_link_hash_entry): Delete.
1090 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
1091 stub_hash_table, and store the struct here rather than a pointer.
1092 Delete output_symbol_count. Add offset array. Change
1093 global_value to a bfd_vma.
1094 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
1095 (elf32_hppa_stub_hash_traverse): Delete.
1096 (elf32_hppa_name_of_stub): Delete.
1097 (elf32_hppa_link_hash_lookup): Delete.
1098 (elf32_hppa_link_hash_traverse): Delete.
1099 (elf32_hppa_stub_hash_table_init): Delete.
1100 (elf32_hppa_size_of_stub): Pass input section and offset rather
1101 than location and calculate location here. Don't pass name as all
1102 stubs are now the same size.
1103 (elf32_hppa_stub_hash_newfunc): Init new fields.
1104 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
1105 too.
1106 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
1107 comparing against ints. Rewrite stub handling code.
1108 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
1109 Case enums to int before comparing against ints. Remove
1110 bfd_reloc_dangerous case.
1111 (elf32_hppa_build_one_stub): Rewrite.
1112 (elf32_hppa_size_one_stub): New function.
1113 (elf32_hppa_build_stubs): Rewrite.
1114 (elf32_hppa_size_stubs): Pass in linker call-back functions.
1115 Rewrite stub-handling specific code.
1116
1117 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
1118
1119 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
1120
1121 * hppa_stubs.h: Delete.
1122 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
1123 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
1124 * Makefile.in: Regenerate.
1125
1126 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
1127 e_nlrsel.
1128
1129 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
1130
1131 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
1132 and section name for bfd_reloc_notsupported error message.
1133 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
1134 bfd_reloc_notsupported.
1135 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
1136
1137 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
1138 undefined weak symbols for all relocs.
1139 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
1140 offsets are relative to one past the delay slot.
1141 (elf32_hppa_size_stubs): Account for reloc addend when calculating
1142 branch destination. Put addend into stub name too.
1143 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
1144 adjust by 8 when deciding whether a linker stub is needed. Put
1145 addend into stub name as for above.
1146
1147 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
1148 various args and vars.
1149 (elf32_hppa_bfd_final_link_relocate): Here too.
1150 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
1151 inner block var to avoid shadowing.
1152
1153 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
1154 unsigned.
1155 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
1156 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
1157 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
1158
1159 * libhppa.h: Change practically all unsigned ints to plain ints.
1160 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
1161 prototypes.
1162
1163 From Ryan Bradetich <rbradetich@uswest.net>
1164 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
1165 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
1166 suit above.
1167 From David Huggins-Daines <dhd@linuxcare.com>
1168 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
1169 to the new OP_* ones.
1170
1171 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
1172 error exit. Bail out earlier on plabel relocs that we aren't
1173 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
1174 string, and then don't free our copy.
1175 (elf32_hppa_build_one_stub): Make insn unsigned int.
1176
1177 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
1178 available with BL, not BE and BLE.
1179
1180 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
1181 code for elf arg relocs.
1182 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
1183 argument with elf_link_hash_entry h. Handle undefined weak
1184 symbols. Move $global$ lookup from here...
1185 (elf32_hppa_relocate_section): ...to here. Return correct error
1186 message for non-handled relocs.
1187 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
1188 wrong test was -0x3ffff to +0x40000.
1189
1190 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
1191 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
1192 Handle them as such.
1193 (elf_hppa_relocate_insn): Fix a typo.
1194
1195 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
1196 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
1197 assemble_17, assemble_21): Delete.
1198 Supply defines for all 64 possible opcodes.
1199 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
1200 formats. Handle COMICLR.
1201 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
1202 -10, -16, 16, 22.
1203
1204 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
1205 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
1206 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
1207 to suit.
1208 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
1209 the local syms - did this code get deleted accidentally? Ignore
1210 undefined and undefweak syms.
1211
1212 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
1213 block. Use it instead of elf64_hppa_hash_table (info).
1214 (elf_hppa_final_link_relocate): Use hppa_info instead of
1215 elf64_hppa_hash_table (info).
1216
1217 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1218 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1219 (hppa_rebuild_insn): Mask immediate bits here instead.
1220 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1221
52b219b5
AM
12222000-07-08 Alan Modra <alan@linuxcare.com.au>
1223
1224 * section.c (struct sec): Add id field. Tidy comment formatting.
1225 (bfd_make_section_anyway): Set id.
1226 (STD_SECTION): Init id too.
1227 Change CONST to const throughout.
1228 * archures.c (bfd_arch_info): Tidy comment.
1229 (bfd_arch_list): Change a CONST to const.
1230 * libbfd-in.h: Tidy comments and replace CONST with const.
1231 * elf-bfd.h: Likewise.
1232 * libbfd.h: Regenerate.
1233 * bfd-in2.h: Regenerate.
1234 * libcoff.h: Regenerate.
1235
8000a618
DD
12362000-07-07 DJ Delorie <dj@redhat.com>
1237
1238 * archive.c (_bfd_write_archive_contents): Add an informative
1239 comment.
1240
c3b7c767
NC
12412000-07-06 Kazu Hirata <kazu@hxi.com>
1242
1243 * srec.c: Fix formatting.
1244
302ab118
DD
12452000-06-05 DJ Delorie <dj@redhat.com>
1246
1247 * MAINTAINERS: new
1248
ed1de528
AO
12492000-07-04 Alexandre Oliva <aoliva@redhat.com>
1250
1251 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
1252 value of PC-relative offsets.
1253
70bcb145
JW
12542000-07-03 Jim Wilson <wilson@cygnus.com>
1255
1256 * elf64-alpha.c (alpha_elf_size_info): New.
1257 (elf_backend_size_info): Define to alpha_elf_size_info.
1258 * elfcode.h (elf_size_info): Change hash bucket size to 4.
1259
b8ee63fa
UC
12602000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
1261
1262 * elf32-mips.c: Include elf32-target.h again for the traditional
1263 MIPS targets.
1264
00d2865b
NC
12652000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
1266
1267 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
1268 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
1269 (avr_info_to_howto_rela): Likewise.
1270 (elf32_avr_gc_mark_hook): Likewise.
1271 (elf32_avr_gc_sweep_hook): Likewise.
1272 (elf32_avr_relocate_section): Likewise.
1273
e4202681
NC
12742000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
1275
1276 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
1277 an external symbol for a non-shared, non-relocatable link.
77cb06e9 1278
e4202681
NC
12792000-07-03 Nick Clifton <nickc@redhat.com>
1280
99d6ac2f
NC
1281 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
1282 is an external symbol.
e4202681
NC
1283 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
1284 external symbol.
77cb06e9 1285
289c596c
NC
12862000-07-03 Kazu Hirata <kazu@hxi.com>
1287
1288 * reloc16.c: Fix formatting.
1289
dd745cfa
UC
12902000-07-01 Koundinya K <kk@ddeorg.soft.net>
1291
77cb06e9
AM
1292 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
1293 to add a new target for traditional mips i.e
1294 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
1295 * configure.in: Likewise.
1296 * configure: Rebuild.
1297 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
dd745cfa
UC
1298 bfd_target_vector.
1299 (bfd_elf32_tradlittlemips_vec): Likewise.
77cb06e9
AM
1300 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
1301 to see that elfNN_bed does not get redefined even if the target file
1302 is included twice for a chip. See elf32-mips.c.
1303
0bdaf48b
AM
13042000-07-01 Alan Modra <alan@linuxcare.com.au>
1305
1306 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1307 (CLEANFILES): Add DEPA.
1308 * Makefile.in: Regenerate.
1309
c75df619 13102000-06-30 DJ Delorie <dj@cygnus.com>
77cb06e9 1311
c75df619 1312 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
77cb06e9 1313 can't assume the PE header is at 0x80.
c75df619 1314
b4b415e5
DD
13152000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
1316
cda43a1d 1317 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
b4b415e5 1318
addd3117
DD
13192000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
1320
1321 * go32stub.h: Update stub.
1322
65aa24b6
NC
13232000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1324
1325 * archures.c (bfd_mach_avr5): Define.
1326 * bfd-in2.h (bfd_mach_avr5): Define.
1327 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
1328 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
1329 (compatible): Update comment. Add missing test.
1330 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
1331 for avr2 and avr4. Simplify 8K wrap code.
1332 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
1333 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
1334
cc040812
NC
13352000-06-26 Kazu Hirata <kazu@hxi.com>
1336
1337 * coff-h8300.c: Fix formatting.
1338 * cpu-h8300.c: Likewise.
1339
b1bcb49f
AO
13402000-06-24 Alexandre Oliva <aoliva@redhat.com>
1341
1342 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
1343 for local symbols whose names are unknown.
1344
1581f8c9
AM
13452000-06-22 Alan Modra <alan@linuxcare.com.au>
1346
1347 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1348 find one.
1349 * Makefile.in: Regenerate.
1350 * doc/Makefile.in: Regenerate.
1351
bbeb2e03
L
13522000-06-20 H.J. Lu <hjl@gnu.org>
1353
1354 * Makefile.am: Rebuild dependency.
1355 * Makefile.in: Rebuild.
1356
8a20f077
UC
13572000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1358
1359 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
1360 (elf_backend_copy_indirect_symbol): Map to the new function.
1361
2ab47eed
AM
13622000-06-20 Alan Modra <alan@linuxcare.com.au>
1363
1364 * archive.c (normalize): Correct pointer comparison when checking
1365 for backslashes.
1366 (bfd_bsd_truncate_arname): Likewise.
1367 (bfd_gnu_truncate_arname): Likewise.
1368
b305ef96
UC
13692000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
1370
1371 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
1372 sections elf_{text,data}_{section,symbol}.
1373 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
1374 (_bfd_mips_elf_hide_symbol): New function.
1375 (elf_backend_hide_symbol): Map to the new function.
1376 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
1377 definitions of mips_elf_{text,data}_{section,symbol}.
1378 (mips_elf_local_relocation_p): Try to find the direct symbol
1379 based on new check_forced argument.
1380 (mips_elf_calculate_relocation): Use new version of
1381 mips_elf_local_relocation_p.
1382 (mips_elf_relocate_section): Likewise.
1383 (_bfd_mips_elf_relocate_section): Likewise.
1384 (mips_elf_sort_hash_table): Only assert that have enough GOT
1385 space.
1386 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
1387 entry if the relocation based on the new external argument.
1388 (mips_elf_create_dynamic_relocation): Assert that we have a
1389 section contents allocated where we can swap out the dynamic
1390 relocations.
1391 (mips_elf_calculate_relocation): Find the real hash-table entry
1392 correctly by using h->root.root.type. Only create a dynamic
1393 relocation entry if the symbol is defined in a shared library.
1394 Create an external GOT entry for the GOT16 relocation if the
1395 symbol was forced local.
1396 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
1397 dynamic index if the symbol was forced local.
1398
13992000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1400
1401 * elf32-mips.c: Fix typos in comments.
77cb06e9 1402
1605fc4f
MK
14032000-06-19 Mark Kettenis <kettenis@gnu.org>
1404
1405 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
1406 CORE_VERSION_1.
1407
60bcf0fa
NC
14082000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1409
1410 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
1411 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
1412 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
1413 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
1414 (bfd_elf32_m68hc11_vec): Likewise.
77cb06e9 1415 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
60bcf0fa
NC
1416 Supports 68hc11 & 68hc12 at the same time.
1417 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
1418 bfd_target_vector.
1419 (bfd_elf32_m68hc11_vec): Likewise.
1420 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
1421 * archures.c (bfd_m68hc12_arch): Define and register in global list
1422 (bfd_m68hc11_arch): Likewise.
1423 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
1424 BFD_RELOC_M68HC11_3B): Define.
1425 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
1426 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
1427
f41cbf03
UC
14282000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
1429
1430 * elf_bfd.h (struct elf_backend_data): Add info argument to
1431 elf_backend_hide_symbol.
1432 (_bfd_elf_link_hash_hide_symbol): Likewise.
1433 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
1434 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
1435 * elflink.h (elf_link_add_object_symbols): Likewise.
1436 (elf_link_assign_sym_version): Likewise.
77cb06e9 1437
689be717
L
14382000-06-18 H.J. Lu <hjl@gnu.org>
1439
1440 * coff-i386.c (coff_i386_reloc): Don't return in case of
1441 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
1442 Compensate PE relocations when linking with non-PE object
1443 files to generate a non-PE executable.
1444
9a8f3bb7
UC
14452000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
1446
1447 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
1448 GOT entries if we're doing a static link or -Bsymbolic link.
1449
32f0787a
UC
14502000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
1451
1452 * elflink.h (elf_link_adjust_relocs): Check for and call backend
1453 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
1454 available.
1455 (elf_link_output_relocs): Likewise.
1456 (elf_reloc_link_order): Likewise.
77cb06e9 1457
87f33987
ND
14582000-06-16 Nicholas Duffek <nsd@redhat.com>
1459
1460 * archures.c (enum bfd_architecture): #define constants for
1461 PowerPc and RS6000 machine numbers.
1462 * bfd-in2.h: Regenerate.
1463 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
1464 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
1465 and RS6000 machine numbers using #defined constants from
1466 archures.c.
1467 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
1468 machine numbers using #defined constants from archures.c. Add
1469 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
1470 64-bit words in 620 entry.
1471 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
1472 RSC, and RS2.
1473 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
1474
a2fdf270
ND
14752000-06-16 Nicholas Duffek <nsd@cygnus.com>
1476
1477 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
1478 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
1479 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
1480
9bd09e22
ND
14812000-06-16 Nicholas Duffek <nsd@redhat.com>
1482
1483 * bfd-in.h (bfd_family_coff): Define.
1484 * bfd-in2.h: Regenerate.
1485 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
1486 coff_find_nearest_line): Check COFFness using bfd_family_coff()
1487 instead of bfd_target_coff_flavour.
1488 * cofflink.c (_bfd_coff_final_link): Likewise.
1489 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
1490 exclude XCOFF files.
1491 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
1492 Likewise.
1493 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
1494 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
1495 * xcofflink.c (XCOFF_XVECP): Delete.
1496 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
1497 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
1498 bfd_xcoff_record_link_assignment,
1499 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
1500 check for bfd_target_xcoff_flavour.
1501
59d9f049
ND
15022000-06-16 Nicholas Duffek <nsd@redhat.com>
1503
1504 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
1505 files on AIX 4.3.
1506 (read_hdr): New function.
1507 (rs6000coff_core_p): Store mstsave or __context64 struct instead
1508 of trying to extract individual registers. Set abfd->arch_info
1509 to match the architecture that created the core file.
1510 (rs6000coff_get_section_contents): Delete.
1511 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
1512
63e39178
L
15132000-06-14 H.J. Lu <hjl@gnu.org>
1514
1515 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
1516 is NULL.
1517
bcef29e6
L
15182000-06-13 H.J. Lu <hjl@gnu.org>
1519
1520 * configure: Regenerate.
1521
26bfd1c0
JR
1522Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1523
1524 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
1525 armpei_little_vec.
1526
946efd95
DB
15272000-06-08 David O'Brien <obrien@FreeBSD.org>
1528
1529 * configure.in (VERSION): Update to show this is the CVS mainline.
1530
1b452ec6
AM
15312000-06-07 Alan Modra <alan@linuxcare.com.au>
1532
1533 * elf32-d10v.c: Include elf/d10v.h
1534 (enum reloc_type): Delete.
1535 * elf32-d30v.c: Include elf/d30v.h
1536 (enum reloc_type): Delete.
1537
1538 * Makefile.am: Run "make dep-am" to regenerate dependencies.
1539 * Makefile.in: Regenerate.
1540
1541 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
dc47f327
AM
1542 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
1543 move HOWTOs into elf_howto_table.
1b452ec6 1544 (R_386_standard, R_386_ext_offset): Define.
dc47f327 1545 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
1b452ec6 1546 (elf_i386_reloc_type_lookup): Modify calculation of index into
dc47f327 1547 elf_howto_table since we've removed the padding.
1b452ec6
AM
1548 (elf_i386_info_to_howto_rel): Likewise.
1549 (elf_i386_relocate_section): Likewise.
1550
e0ebfc61
MS
15512000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
1552
1553 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
1554
9d6eee78
L
15552000-06-05 H.J. Lu <hjl@gnu.org>
1556
1557 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
1558 an error when seeing an undefined symbol with hidden/internal
1559 attribute. It is handled in *_relocate_section ().
1560
94b6c40a
L
15612000-06-05 H.J. Lu <hjl@gnu.org>
1562
1563 * elflink.h (elf_fix_symbol_flags): Follow the link for the
1564 indirect symbol for the ELF_LINK_NON_ELF bit.
1565 (elf_link_output_extsym): Don't output the indirect symbol even
1566 if the ELF_LINK_NON_ELF bit is set.
1567
0af288f3
C
15682000-06-01 J.T. Conklin <jtc@redback.com>
1569
1570 * config.bfd (i[3456]86-*-netbsdelf*): New target.
1571 (i[3456]86-*-netbsdaout*): New target.
1572 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
1573 (i[3456]86-*-openbsd*): Likewise.
1574
12df4d3c
AC
1575Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
1576
1577 * trad-core.c: From hpux-core.c, include <dirent.h> or
77cb06e9 1578 <sys/ndir.h> when possible.
12df4d3c 1579
c0ae4ccc
NC
15802000-05-31 Nick Clifton <nickc@cygnus.com>
1581
1582 * opintl.h (_(String)): Explain why dgettext is used instead
77cb06e9 1583 of gettext.
c0ae4ccc 1584
321fa097
UD
15852000-05-31 Ulrich Drepper <drepper@redhat.com>
1586
1587 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
1588 definitions. We must not assume they are sorted in the file
1589 according to their index numbers.
1590
70d72e0e
AM
15912000-05-31 Alan Modra <alan@linuxcare.com.au>
1592
1593 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
77cb06e9
AM
1594 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
1595 R_PARISC_DIR17F are for absolute branches; Handle them as such.
70d72e0e 1596
96f6d4c4
NC
15972000-05-30 Nick Clifton <nickc@cygnus.com>
1598
1599 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
1600 80960CA, 80960MC as valid machine names.
1601
38048eb9
L
16022000-05-30 H.J. Lu <hjl@gnu.org>
1603
1604 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
1605 visibility bits if the symbol is undefined. Correctly handle
1606 weak undefined symbols with hidden and internal attributes.
1607
1608 * elflink.h (elf_link_add_object_symbols): Always turn the
1609 symbol into local if it has the hidden or internal attribute.
1610
8c763017
PB
16112000-05-29 Philip Blundell <philb@gnu.org>
1612
1613 * ppcboot.c: Add packed attribute if compiling with GCC.
1614
1ae00f9d
AM
16152000-05-29 Anatoly Vorobey <mellon@pobox.com>
1616
1617 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
1618
4a938328
MS
16192000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
1620
77cb06e9 1621 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4a938328
MS
1622 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
1623 corefile on a 64-bit (Sparc Solaris) host. Also clean up
1624 a few old comments.
1625
5af11cab
AM
16262000-05-26 Alan Modra <alan@linuxcare.com.au>
1627
2114f57b
AM
1628 * Makefile.am: Update dependencies with "make dep-am"
1629 * Makefile.in: Regenerate.
1630
5af11cab
AM
1631 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
1632 bindtextdomain): Replace defines with those from intl/libgettext.h
1633 to quieten gcc warnings.
1634
16352000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1636
1637 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
1638
1639 * archive.c (normalize, bfd_bsd_truncate_arname,
1640 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
1641 file names with backslashes.
1642
1643 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
1644 before opening it.
1645
1646 * sysdep.h: Include filenames.h.
1647
b6cdd0fd
AM
16482000-05-26 Alan Modra <alan@linuxcare.com.au>
1649
1650 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
1651
f7775d95
JJ
16522000-05-26 Jakub Jelinek <jakub@redhat.com>
1653
1654 * elf64-sparc.c (sparc64_elf_relax_section): New.
1655 (sparc64_elf_relocate_section): Optimize tail call into branch always
1656 if possible.
1657 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1658 (elf32_sparc_relax_section): New.
1659
6c08d697
JJ
16602000-05-26 Jakub Jelinek <jakub@redhat.com>
1661
1662 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
1663 Remove unusued variables.
1664 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
1665 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
1666 previous fix, so that shared libs really don't influence targets
1667 extension mask and memory model.
1668
edb72b3b
L
16692000-05-23 H.J. Lu <hjl@gnu.org>
1670
1671 * elf64-alpha.c (elf64_alpha_relocate_section): Check
1672 h->root.other not h->other.
ba09750c
L
1673 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1674
1675 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
edb72b3b 1676
3a27a730
L
16772000-05-23 H.J. Lu <hjl@gnu.org>
1678
1679 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
1680 undefined symbol with the non-default visibility attributes.
1681 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
1682 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1683 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1684 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1685 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1686 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1687 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1688 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1689 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1690 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
1691 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1692
748abff6
RH
16932000-05-22 Richard Henderson <rth@cygnus.com>
1694
1695 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
1696 PCREL22, PCREL64I. Zero size of special relocs.
1697 (elf64_ia64_reloc_type_lookup): Likewise.
1698 (USE_BRL, oor_brl, oor_ip): New.
1699 (elf64_ia64_relax_section): New.
1700 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
1701 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
1702 (elf64_ia64_relocate_section): Likewise.
1703 (bfd_elf64_bfd_relax_section): New.
1704 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
1705 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
1706 * bfd-in2.h, libbfd.h: Regenerate.
1707
fb67355a
NC
17082000-05-22 Nick Clifton <nickc@cygnus.com>
1709
1710 * configure.in : Add peigen.lo to MIPS PE targets.
1711 * configure: Regenerate.
1712
1fe494a5
NC
17132000-05-22 Momchil Velikov <velco@fadata.bg>
1714
1715 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
748abff6 1716 only if it is known for both input and output bfds. Separate
1fe494a5
NC
1717 error message strings as in some languages, it may be necessary
1718 to change more than one place in the string to change between
77cb06e9 1719 'big' and 'little'.
1fe494a5
NC
1720
1721 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
77cb06e9
AM
1722 endianess checks, call _bfd_generic_verify_endian_match() instead.
1723
1724 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1fe494a5 1725
77cb06e9 1726 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
1fe494a5
NC
1727
1728 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
77cb06e9 1729 endianess before checking bfd flavours.
1fe494a5 1730
32c092c3
L
17312000-05-22 H.J. Lu <hjl@gnu.org>
1732
1733 * elflink.h (elf_link_output_extsym): Clear the visibility
1734 field for symbols not defined locally.
1735
df6d9773
JL
17362000-05-18 Alan Modra <alan@linuxcare.com.au>
1737
1738 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1739 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1740 (hppa_rebuild_insn): Mask immediate bits here instead.
1741 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1742
7ad34365
NC
17432000-05-18 Momchil Velikov <velco@fadata.bg>
1744
1745 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1746 relocs for an executable, ensure that they are virtual addresses.
1747
d1dab720
JL
1748Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1749
1750 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1751
a712da20
NC
17522000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1753 Rick Gorton <gorton@scrugs.lkg.dec.com>
77cb06e9 1754
aa76cae8 1755 * elflink.h: Add emitrelocations support: when enabled, relocation
a712da20
NC
1756 information and relocation sections are put into final output
1757 executables. If the emitrelocations flag is set, do the following:
1758 (elf_bfd_final_link): Emit relocation sections.
1759 (elf_link_input_bfd): Compute relocation section contents.
1760 (elf_gc_sections): Don't clean relocation sections.
1761
aa76cae8 17622000-05-16 Catherine Moore <clm@cygnus.com>
10febd84
CM
1763
1764 * som.c (som_decode_symclass): Recognize weak symbols.
1765
db8503c4
AM
17662000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1767
1768 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1769 read idata section only from dataoff.
1770 (pe_print_edata): Correctly check for valid eat_member.
1771
851cde10
JR
1772Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1773
1774 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1775
1bde2d57
PB
17762000-05-14 Philip Blundell <philb@gnu.org>
1777
1778 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1779
a76b448c
AM
17802000-05-12 Alan Modra <alan@linuxcare.com.au>
1781
9ee25201
AM
1782 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1783
a76b448c
AM
1784 * peigen.c (pe_print_idata): Look for .idata section and print
1785 info even if data directory has zero entries. Read idata section
1786 starting from dataoff, and adjust all data offsets to suit. Cast
1787 all bfd_vma vars to unsigned long before passing to fprintf.
1788 * peigen.c (pe_print_edata): Similarly, look for .edata section
1789 and print info even if data directory has zero entries. Cast
1790 all bfd_vma vars to unsigned long before passing to fprintf.
1791
1792 From Szabolcs Szakacsits <szaka@F-Secure.com>
1793 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1794 directory size which may be bogus.
1795 * peigen.c (pe_print_edata): Similarly.
1796
72730e0c
AM
17972000-05-09 Alan Modra <alan@linuxcare.com.au>
1798
1799 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1800 section is empty.
1801 (copy_private_bfd_data): Allow for space possibly taken up by elf
1802 headers when calculating segment physical address from lma.
1803
8181c403
AM
18042000-05-08 Alan Modra <alan@linuxcare.com.au>
1805
bfde9f99
AM
1806 * versados.c (versados_scan): Init stringlen and pass_2_done.
1807
b35efbcd
AM
1808 * trad-core.c (trad_unix_core_file_p): Return
1809 bfd_error_wrong_format rather than bfd_error_file_truncated.
1810
8181c403
AM
1811 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1812 add_data_entry. DataDirectory virtual address is relative.
1813 (pe_print_idata): Account for relative DataDirectory virtual
1814 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1815 (pe_print_edata): Similarly.
1816
1817 From Szabolcs Szakacsits <szaka@F-Secure.com>
1818 * peigen.c (dir_names): Add Delay Import Directory.
1819 (pe_print_idata): Always search for bfd section containing
1820 idata address rather than looking up section name. Print this
1821 section name rather than .idata.
1822 (pe_print_edata): Similarly. Also print some fields as %08lx.
1823 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1824 Win32Version.
1825
2c38bc20
CP
1826Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1827
1828 * xcoff.h: Rename to xcoff-target.h
1829 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1830 * coff-rs6000.c: Ditto.
1831 * coff64-rs6000.c: Ditto.
1832 * coff-pmac.c: Ditto.
1833 * Makefile.in: Regenerate.
77cb06e9 1834
c6664dfb
CP
1835Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1836
1837 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1838 Change U802TOC64MAGIC to U803XTOCMAGIC.
1839
3425c182
MS
18402000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1841
1842 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1843 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1844 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1845
7c30ac37
AM
18462000-05-04 Alan Modra <alan@linuxcare.com.au>
1847
1848 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1849