* elf-m10300.c (mn10300_elf_relax_section): Don't relax
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2
3 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
4 negative 32-bit operands to 16 operands when the operand is
5 going to be zero-extended by the modified opcode.
6
7 2001-05-12 Peter Targett <peter.targett@arccores.com>
8
9 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
10 name for 'arc5' core versions.
11 (bfd_arc_arch): Make bfd_mach_arc_6 default.
12
13 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
14 architecture.
15 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
16
17 2001-05-11 Jakub Jelinek <jakub@redhat.com>
18
19 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
20 sections as well.
21 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
22 to .gnu.linkonce.t.FOO text section.
23
24 2001-05-11 Jakub Jelinek <jakub@redhat.com>
25
26 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
27 fields, change sec into secinfo.
28 (struct sec_merge_info): Add chain, remove last fields.
29 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
30 (sec_merge_hash_lookup): If lookup could not use a string only
31 because it has bad alignment, mark the old string for deletion.
32 (sec_merge_add): Add secinfo argument. Don't compute entry's
33 position, instead record the section.
34 (sec_merge_emit): Update for the sec into secinfo change in
35 struct sec_merge_hash_entry.
36 (_bfd_merge_section): Only record the section for merging, defer
37 putting strings into the hash table.
38 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
39 _bfd_merge_sections): New functions.
40 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
41 changes.
42 * libbfd-in.h (_bfd_merge_sections): Add prototype.
43 (_bfd_nolink_bfd_merge_sections): Define.
44 * libbfd.h: Likewise.
45 (bfd_generic_merge_sections): Add prototype.
46 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
47 (struct bfd_target): Likewise.
48 * bfd.c (bfd_merge_sections): Define.
49 * bfd-in2.h: Rebuilt.
50 * elf.c (_bfd_elf_merge_sections): New function.
51 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
52 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
53 * reloc.c (bfd_generic_merge_sections): New function.
54 * vms.c (vms_bfd_merge_sections): New function.
55 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
56 * aout-target.h (MY_bfd_merge_sections): Define.
57 * aout-tic30.c (MY_bfd_merge_sections): Define.
58 * binary.c (binary_bfd_merge_sections): Define.
59 * bout.c (b_out_bfd_merge_sections): Define.
60 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
61 * coffcode.c (coff_bfd_merge_sections): Define.
62 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
63 * i386msdos.c (msdos_bfd_merge_sections): Define.
64 * i386os9k.c (os9k_bfd_merge_sections): Define.
65 * ieee.c (ieee_bfd_merge_sections): Define.
66 * ihex.c (ihex_bfd_merge_sections): Define.
67 * nlm-target.h (nlm_bfd_merge_sections): Define.
68 * oasys.c (oasys_bfd_merge_sections): Define.
69 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
70 * som.c (som_bfd_merge_sections): Define.
71 * srec.c (srec_bfd_merge_sections): Define.
72 * tekhex.c (tekhex_bfd_merge_sections): Define.
73 * versados.c (versados_bfd_merge_sections): Define.
74 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
75
76 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
77
78 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
79 to be unsigned long, in order to match its use.
80
81 2001-05-10 H.J. Lu <hjl@gnu.org>
82
83 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
84 indirect symbols.
85
86 2001-05-09 H.J. Lu <hjl@gnu.org>
87
88 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
89 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
90 Remove the unused veriable `dynver'.
91
92 2001-05-08 Ian Lance Taylor <ian@zembu.com>
93
94 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
95 NULL or is not COFF.
96 (coff_i386_rtype_to_howto): Don't dump core if output section
97 owner is not COFF.
98
99 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
100
101 * ecoff.c (bfd_debug_section): Fix initialization.
102 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
103 is always a positive integer. Cast away sign mismatch.
104 * elf32-mips.c: Fix misleading comment and typo.
105 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
106 correct data type.
107 * elflink.c: Fix typo.
108 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
109 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
110
111 2001-05-04 Richard Henderson <rth@redhat.com>
112
113 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
114
115 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
116
117 * elf32-arm.h (elf32_arm_final_link_relocate): Set
118 EF_ARM_HASENTRY if the start address is set.
119
120 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
121
122 * targets.c (_bfd_target_vector_entries): Compute value based on
123 the size of the _bfd_target_vector and not bfd_target_vector.
124
125 2001-05-03 H.J. Lu <hjl@gnu.org>
126
127 * elfcode.h: Include "libiberty.h".
128
129 * elflink.h (elf_link_add_object_symbols): Set
130 elf_dt_name (abfd) to basename of the bfd filename.
131 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
132 of the bfd filename.
133
134 2001-05-03 Andreas Jaeger <aj@suse.de>
135
136 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
137 (elf_generic_info_to_howto_rel): Likewise.
138 * coff-alpha.c (reloc_nil): Likewise.
139 (alpha_ecoff_bad_format_hook): Likewise.
140 (alpha_adjust_reloc_out): Likewise.
141 (alpha_bfd_reloc_type_lookup): Likewise.
142 (alpha_convert_external_reloc): Likewise.
143 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
144 (elf64_alpha_reloc_bad): Likewise.
145 (elf64_alpha_reloc_gpdisp): Likewise.
146 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
147 (elf64_alpha_info_to_howto): Likewise.
148 (elf64_alpha_add_symbol_hook): Likewise.
149 (elf64_alpha_create_got_section): Likewise.
150 (elf64_alpha_is_local_label_name): Likewise.
151 (elf64_alpha_merge_ind_symbols): Likewise.
152 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
153 (mips_elf64_get_reloc_upper_bound): Likewise.
154 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
155 (nlm_alpha_get_public_offset): Likewise.
156
157 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
158
159 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
160 about overflow in R_OPENRISC_LO_16_IN_INSN and
161 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
162
163 2001-04-30 H.J. Lu <hjl@gnu.org>
164
165 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
166 only for ELF_LINK_FORCED_LOCAL.
167 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
168 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
169 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
170
171 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
172 if the symbol has hidden or internal visibility.
173
174 2001-04-30 Alan Modra <amodra@one.net.au>
175
176 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
177 calls to undefined weak symbols.
178
179 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
180
181 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
182 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
183
184 2001-04-27 Andreas Jaeger <aj@suse.de>
185
186 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
187 out handled entries.
188 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
189 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
190 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
191 GOT32.
192
193 2001-04-27 Sean McNeil <sean@mcneil.com>
194
195 * config.bfd: Add arm-vxworks target.
196 * coff-arm (coff_arm_relocate_section): Add in symbol value to
197 addend (fro VXworks targets).
198
199 2001-04-26 H.J. Lu <hjl@gnu.org>
200
201 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
202 valid.
203
204 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
205
206 * bfd-in.h (bfd_cache_close): Declare newly exported function.
207 * bfd-in2.h: Regenerated.
208
209 2001-04-24 Jakub Jelinek <jakub@redhat.com>
210
211 * merge.c (struct sec_merge_hash_entry): Add alignment field.
212 (struct sec_merge_hash): Remove alignment_power.
213 (sec_merge_hash_newfunc): Clear alignment.
214 (sec_merge_hash_lookup): Pass alignment as argument.
215 Use hashp->root.next, not hashp->next to walk the hash chain.
216 If a string already in the hashtable does not have required
217 alignment, create a new hashtable entry.
218 (sec_merge_init): Remove alignment_power argument.
219 (sec_merge_add): Add alignment argument.
220 (sec_merge_emit): Alignment is now a per-entity thing, not per
221 section.
222 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
223 for proper alignment.
224 Pass alignment information to sec_merge_add.
225
226 2001-04-24 Christian Groessler <cpg@aladdin.de>
227
228 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
229 and R_REL16 reloc types; accept odd values for R_REL16 type
230
231 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
232
233 * cpu-openrisc.c: New file.
234 * elf32-openrisc.c: Likewise.
235
236 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
237 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
238 (BFD32_BACKENDS): Add elf32-openrisc.lo.
239 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
240 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
241 * Makefile.in: Regenerated.
242 * config.bfd: (openrisc-*-elf): New target.
243 * configure.in (bfd_elf32_openrisc_vec): New vector.
244 * configure: Regenerated.
245 * libbfd.h: Regenerated.
246 * bfd-in2.h: Regenerated.
247 * reloc.c: Add OpenRISC relocations.
248 * targets.c (bfd_elf32_openrisc_vec): Declare.
249 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
250 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
251 (bfd_openrisc_arch): Declare.
252 (bfd_archures_list): Add bfd_openrisc_arch.
253 * elf.c (prep_headers): Add bfd_arch_openrisc.
254
255 2001-04-23 Bo Thorsen <bo@suse.de>
256
257 * elf64-x86-64.c: Add c++ vtable hack.
258 Small whitespace and comment changes.
259
260 2001-04-19 Andreas Jaeger <aj@suse.de>
261
262 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
263 (elf64_x86_64_plt_entry): Likewise.
264 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
265 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
266
267 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
268
269 * elf32-cris.c: Tweak comments related to dynamic linking.
270 (cris_elf_relocate_section): When not creating shared object, fill
271 in the .got table for any symbol not in the dynamic symbol table.
272 (elf_cris_finish_dynamic_symbol): When not creating shared object,
273 only emit a .got.rela reloc if the symbol is in the dynamic symbol
274 table.
275 (cris_elf_check_relocs): Use variable r_type in all places rather
276 than the original expression. Add default case in switch for
277 reloc types.
278 (elf_cris_size_dynamic_sections): Iterate over
279 elf_cris_discard_excess_program_dynamics when not creating shared
280 library.
281 (elf_cris_discard_excess_dso_dynamics): Renamed from
282 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
283 (elf_cris_discard_excess_program_dynamics): New.
284
285 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
286
287 * coffcode.h (coff_write_object_contents): Use
288 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
289
290 2001-04-14 H.J. Lu <hjl@gnu.org>
291
292 * bfd-in2.h: Regenerate.
293
294 2001-04-14 Jakub Jelinek <jakub@redhat.com>
295
296 * section.c (STD_SECTION): Add entsize.
297
298 2001-04-13 H.J. Lu <hjl@gnu.org>
299
300 * section.c (SEC_MERGE): Define new flag for merging.
301 (SEC_STRINGS): Likewise.
302 (entsize): New field.
303
304 2001-04-13 Roger Sayle <roger@metaphorics.com>
305
306 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
307 flag on pe-i386 targets.
308
309 2001-04-13 Jakub Jelinek <jakub@redhat.com>
310
311 * libbfd-in.h (_bfd_merge_section): New.
312 (_bfd_write_merged_section): New.
313 (_bfd_merged_section_offset): New.
314 * libbfd.h: Rebuilt.
315 * linker.c (_bfd_generic_link_output_symbols): Handle
316 discard_sec_merge.
317 * aoutx.h (aout_link_write_symbols): Likewise.
318 * pdp11.c (aout_link_write_symbols): Likewise.
319 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
320 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
321 sections.
322 (elf_link_sec_merge_syms): New.
323 (elf_link_input_bfd): Call _bfd_merged_section_offset
324 and _bfd_write_merged_section.
325 Handle discard_sec_merge.
326 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
327 field.
328 (struct bfd_elf_section_data): Likewise.
329 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
330 SEC_STRINGS section flags and entsize from their ELF counterparts.
331 (_bfd_elf_link_hash_table_init): Initialize merge_info.
332 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
333 from their BFD counterparts.
334 * merge.c: New file.
335 * Makefile.am: Add strtab.lo.
336 * Makefile.in: Rebuilt.
337
338 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
339
340 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
341 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
342
343 2001-04-05 Steven J. Hill <sjhill@cotw.com>
344
345 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
346 endian MIPS ELF target.
347 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
348 MIPS ELF target.
349
350 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
351 64bit big endian MIPS ELF target.
352 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
353 endian MIPS ELF target.
354 * configure: Regenerated.
355
356 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
357 little endian targets.
358 (mips_elf_sym_is_global): Handle traditional targets.
359
360 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
361 64bit big endian MIPS ELF target.
362 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
363 endian MIPS ELF target.
364
365 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
366 and bfd_elf64_tradlittlemips_vec.
367
368 2001-04-05 David Mosberger <davidm@hpl.hp.com>
369
370 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
371 ordinary "progbits" section.
372
373 2001-04-04 Alan Modra <alan@linuxcare.com.au>
374
375 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
376 when -Bsymbolic causes a symbol to no longer need a .plt entry.
377
378 2001-04-03 David Mosberger <davidm@hpl.hp.com>
379
380 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
381
382 2001-03-30 H.J. Lu <hjl@gnu.org>
383
384 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
385 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
386
387 2001-03-26 H.J. Lu <hjl@gnu.org>
388
389 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
390 if there are any relocations for generic ELF.
391 (bfd_elf32_bfd_link_add_symbols): Defined to
392 elf32_generic_link_add_symbols.
393 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
394 if there are any relocations for generic ELF.
395 (bfd_elf64_bfd_link_add_symbols): Defined to
396 elf64_generic_link_add_symbols.
397
398 2001-03-23 Nick Clifton <nickc@redhat.com>
399
400 * Makefile.am (BUILD_CFILES): New variable: List of C source
401 files created in build directory.
402 (BUILD_HFILES): New variable: List of header files created in
403 build directory.
404 (POTFILES): Delete.
405 (po/POTFILES.in): Replace rule with empty entry.
406 (po/SRC-POTFILES.in): New rule: Create a list of source files
407 in the source directory.
408 (po/BLD-POTFILES.in): New rule: Create a list of source files
409 in the build directory.
410 (MOSTLYCLEAN): Do not delete source files created in build
411 directory.
412 * Makefile.in: Regenerate.
413 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
414 into po/Makefile.
415 * configure: Regenerate.
416
417 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
418 and BLD_POTFILES.
419 Add .. to the search path when building bfd.pot.
420 Delete POTFILES when performing distclean.
421 Add comment describing why distclean is broken in maintainer mode.
422 * po/POTFILES.in: Delete.
423 * po/SRC-POTFILES.in: New file.
424 * po/BLD-POTFILES.in: New file.
425 * po/bfd.pot: Regenerate.
426
427 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
428
429 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
430 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
431 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
432 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
433 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
434 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
435 functions.
436 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
437 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
438 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
439 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
440 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
441 New HOWTO members for new relocs.
442 (cris_reloc_map): Map new relocs.
443 (ELF_DYNAMIC_INTERPRETER): Define.
444 (PLT_ENTRY_SIZE): Define.
445 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
446 elf_cris_pic_plt_entry): New, PLT templates.
447 (struct elf_cris_pcrel_relocs_copied, struct
448 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
449 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
450 (cris_final_link_relocate): Check that 16-bit GOT relocs have
451 positive values. Adjust PCREL relocs to be relative to location
452 after relocation.
453 (cris_elf_relocate_section): Handle relocations to dynamic
454 objects. Handle new relocations. Call error handler when seeing
455 non-PIC relocation for read-only sections while generating shared
456 object.
457 (cris_elf_check_relocs): Set reference counts for GOT and PLT
458 entries.
459 (bfd_elf32_bfd_link_hash_table_create,
460 elf_backend_adjust_dynamic_symbol,
461 elf_backend_size_dynamic_sections,
462 elf_backend_finish_dynamic_symbol,
463 elf_backend_finish_dynamic_sections,
464 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
465 elf_backend_hide_symbol, elf_backend_want_got_plt,
466 elf_backend_plt_readonly, elf_backend_want_plt_sym,
467 elf_backend_got_header_size, elf_backend_plt_header_size):
468 Define.
469
470 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
471 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
472 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
473 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
474 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
475 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
476 * bfd-in2.h, libbfd.h: Regenerate.
477
478 2001-03-21 Diego Novillo <dnovillo@redhat.com>
479
480 (_bfd_mips_elf_relocate_section): Give a better error message when
481 a relocation is not recognized.
482
483 2001-03-21 Alan Modra <alan@linuxcare.com.au>
484
485 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
486 non-NULL before attempting to dereference.
487
488 2001-03-20 H.J. Lu <hjl@gnu.org>
489
490 * configure.in: Remove the redundent AC_ARG_PROGRAM.
491 * configure: Rebuild.
492
493 2001-03-20 Andreas Schwab <schwab@suse.de>
494
495 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
496 relocation value when resolving a reference from a debugging
497 section.
498
499 2001-03-16 Scott Thomason <SThomaso@hii.com>
500
501 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
502 (xcoff64_swap_sym_out): Fix syntax errors.
503
504 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
505
506 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
507
508 2001-03-15 Alan Modra <alan@linuxcare.com.au>
509
510 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
511 (hppa_link_hash_newfunc): Init it.
512 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
513 section appears to be non-PIC.
514 (final_link_relocate): Likewise.
515 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
516 possible candidate function, and set pic_call for those that will
517 only have a .plt entry for the PIC call stub.
518 (hppa_handle_PIC_calls): Set maybe_pic_call.
519
520 2001-03-12 DJ Delorie <dj@redhat.com>
521
522 * elf32-sh.c (sh_elf_relocate_section): Only relocation
523 R_SH_DIR8WP* relocs if they're against external symbols, else
524 they're just for relaxing. Validate the reloc values.
525
526 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
527
528 * binary.c (bfd_external_binary_architecture): Declare.
529 (binary_object_p): If bfd_external_binary_architecture is defined,
530 set the architecture to this string.
531
532 2001-03-11 Philip Blundell <philb@gnu.org>
533
534 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
535 entries that could serve as a definition for a weak symbol.
536
537 2001-03-08 Nick Clifton <nickc@redhat.com>
538
539 * Most files: Update copyright notices using Perl script created
540 by Kevin Buettner <kevinb@redhat.com>.
541
542 2001-03-07 Nick Clifton <nickc@redhat.com>
543
544 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
545 prior patch on ! defined OLD_ARM_ABI.
546
547 2001-03-07 Andreas Jaeger <aj@suse.de>
548
549 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
550 some relocation values.
551
552 2001-03-06 Nick Clifton <nickc@redhat.com>
553
554 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
555 of offset in BLX(1) instruction.
556 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
557 offset in BLX(1) instruction.
558 Fix formatting.
559
560 2001-03-06 Nick Clifton <nickc@redhat.com>
561
562 * coff-arm.c (coff_arm_reloc_type_lookup): Add
563 BFD_RELOC_THUMB_PCREL_BLX.
564
565 2001-03-06 Igor Shevlyakov <igor@windriver.com>
566
567 * archures.c (bfd_default_scan): Add Coldfire CPUs.
568 * bfd-in2.h: Regenerate.
569 * cpu-m68k.c: Add Coldfire CPUs for arch table.
570 * ieee.c (ieee_write_processor): Set proper id for
571 Coldfire CPUs.
572
573 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
574
575 * configure.in: Add s390 target.
576 * configure: Regenerate.
577
578 2001-02-28 Andreas Jaeger <aj@suse.de>
579
580 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
581 to addend.
582
583 2001-02-28 Philip Blundell <pb@futuretv.com>
584
585 * elf32-arm.h: Update mentions of renamed EF_xx constants.
586 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
587
588 2001-02-27 H.J. Lu <hjl@gnu.org>
589
590 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
591 abfd->tdata.aout_data == NULL.
592
593 2001-02-27 Alan Modra <alan@linuxcare.com.au>
594
595 * elf32-hppa.c: Correct field selector in stub comments.
596 (clobber_millicode_symbols): Formatting fix.
597
598 * configure.in: Bump version to 2.11.90.
599 * configure: Regenerate.
600 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
601 (CFILES): $SOURCE_CFILES + generated C files.
602 (POTFILES): Include $HFILES not $SOURCE_HFILES.
603 Run "make dep-am"
604 * Makefile.in: Regenerate.
605 * doc/Makefile.in: This too.
606
607 2001-02-26 Timothy Wall <twall@cygnus.com>
608
609 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
610 comments.
611
612 2001-02-26 Nick Clifton <nickc@redhat.com>
613
614 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
615 up, replacing multiple if statements with a switch.
616 (handle_COMDAT): New function.
617
618 2001-02-26 H.J. Lu <hjl@gnu.org>
619
620 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
621 a warning for section flags we do not handle instead of
622 aborting.
623
624 2001-02-26 Andreas Jaeger <aj@suse.de>
625
626 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
627
628 2001-02-22 Timothy Wall <twall@cygnus.com>
629
630 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
631 * configure.in: Add objects for elf64_ia64_aix vectors.
632 * configure: Regenerated.
633 * configure.host: Recognize ia64-*-aix*.
634 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
635 for AIX. AIX5 requires most relocations to be dynamic (*all*
636 binaries are somewhat similar to shared libraries).
637 * targets.c: Add elf64_ia64_aix vectors.
638
639 2001-02-21 David Mosberger <davidm@hpl.hp.com>
640
641 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
642 C8 said "1" instead of "8". Clarify error string for IMM22:
643 "signed integer" instead of just "integer".
644
645 2001-02-20 Andreas Jaeger <aj@suse.de>
646
647 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
648 PLT entries that could serve as a definition for a weak symbol.
649
650 2001-02-19 Jakub Jelinek <jakub@redhat.com>
651
652 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
653 entries that could serve as a definition for a weak symbol.
654 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
655
656 2001-02-18 David O'Brien <obrien@FreeBSD>
657
658 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
659 FreeBSD/i386-CURRENT differently until I can figure out the needed
660 corefile changes.
661 * configure: Regenerate.
662 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
663 FreeBSD/PowerPC, and FreeBSD/sparc64.
664
665 2001-02-18 lars brinkhoff <lars@nocrew.org>
666
667 * Makefile.am: Add PDP-11 a.out target.
668 * config.bfd: Likewise.
669 * configure.in: Likewise.
670 * targets.c: Likewise.
671 * archures.c: Likewise.
672 * bfd-in2.h: Likewise. Add PDP-11 relocations.
673 * libbfd.h: Add PDP-11 relocations.
674 * reloc.c: Likewise.
675 * cpu-pdp11.c: New file.
676 * pdp11.c: New file.
677
678 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
679 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
680 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
681 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
682 (GET_MAGIC): New macro.
683 (PUT_MAGIC): Likewise.
684 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
685
686 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
687
688 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
689 multiarch needs it).
690
691 2001-02-18 H.J. Lu <hjl@gnu.org>
692
693 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
694 index.
695
696 2001-02-18 Kazu Hirata <kazu@hxi.com>
697
698 * vms-misc.c: Fix formatting.
699
700 2001-02-16 Kazu Hirata <kazu@hxi.com>
701
702 * vms.c: Fix formatting.
703
704 2001-02-14 H.J. Lu <hjl@gnu.org>
705
706 * elf.c (elf_find_function): New function.
707 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
708 the file name and function name.
709
710 2001-02-14 Nick Clifton <nickc@redhat.com>
711
712 * ecoff.c (bfd_debug_section): Update to initialise new fields in
713 asection structure.
714
715 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
716 (BFD64_BACKENDS): Add pepigen.c
717 Add rules to create peigen.c and pepigen.c from peXXigen.c.
718
719 * Makefile.in: Regenerate.
720 * configure: Regenerate.
721 * po/POTFILES.in: Regenerate.
722 * po/bfd.pot: Regenerate.
723
724 2001-02-14 H.J. Lu <hjl@gnu.org>
725
726 * libcoff-in.h (pe_tdata): Add members target_subsystem and
727 force_minimum_alignment.
728
729 2001-02-14 Bo Thorsen <bo@suse.de>
730
731 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
732 (elf64_86_64_size_info): Struct added to fix a problem
733 with the hashtable string entries.
734 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
735 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
736 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
737 remove the FIXME for this.
738 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
739 section. Also removed the FIXME for it.
740 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
741 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
742 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
743
744 2001-02-13 Richard Henderson <rth@redhat.com>
745
746 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
747 and not user provided.
748
749 2001-02-13 Kazu Hirata <kazu@hxi.com>
750
751 * vms.c (vms_print_symbol): Remove unreachable code.
752
753 * rs6000-core.c: Fix formatting.
754
755 2001-02-13 David Mosberger <davidm@hpl.hp.com>
756
757 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
758 as _bfd_XXi_only_swap_filehdr_out.
759 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
760 pe->force_minimum_alignment to TRUE.
761 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
762 PEI_TARGET_SUBSYSTEM.
763 (pe_print_private_bfd_data): Call
764 _bfd_XX_print_private_bfd_data_common() instead of
765 _bfd_pe_print_private_bfd_data_common().
766 (pe_bfd_copy_private_bfd_data): Call
767 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
768 _bfd_pe_bfd_copy_private_bfd_data_common().
769 (coff_bfd_copy_private_section_data): Define as
770 _bfd_XX_bfd_copy_private_section_data instead of
771 _bfd_pe_bfd_copy_private_section_data.
772 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
773 of a _bfd_pe_get_symbol_info.
774
775 * peigen.c: Delete.
776
777 * peXXigen.c: Renamed from peigen.c.
778 (COFF_WITH_XX): Define this macro (will get expanded into
779 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
780 compiled as peigen.c or pepigen.c.
781 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
782 define the canonical PEP structures and definitions.
783 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
784 effect, enforce minimum file and section alignments. If
785 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
786 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
787 so, by default, this is a no-op).
788
789 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
790 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
791 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
792 _bfd_pefoo if it's not defined. Use these macros to define
793 coff swap macros.
794
795 * libcoff.h (pe_tdata): Add members target_subsystem and
796 force_minimum_alignment.
797
798 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
799 COFF_WITH_pep.
800 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
801
802 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
803 peigen.lo.
804
805 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
806 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
807 PEPAOUTHDR.
808
809 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
810 (BFD64_BACKENDS_CFILES): Mention pepigen.c
811 (peigen.c): Add rule to generate from peXXigen.c.
812 (pepigen.c): Ditto.
813 (pepigen.lo): List dependencies for pepigen.lo.
814
815 2001-02-13 Alan Modra <alan@linuxcare.com.au>
816
817 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
818 $global$ referenced but not defined, set its value here.
819
820 2001-02-09 Bo Thorsen <bo@suse.de>
821
822 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
823 alignment to 3.
824 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
825 and relocation.
826 (elf64_x86_64_relocate_section): Fix formatting.
827 (elf64_x86_64_relocate_section): Fix addend for relocation of
828 R_X86_64_(8|16|32|PC8|PC16|PC32).
829
830 2001-02-12 Jan Hubicka <jh@suse.cz>
831
832 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
833
834 2001-02-11 H.J. Lu <hjl@gnu.org>
835
836 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
837 alignment.
838
839 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
840
841 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
842 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
843 relocations against dynsym symbols.
844
845 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
846 the R_MIPS_26 relocation.
847 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
848 the R_MIPS_26 relocation.
849 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
850 relocation.
851 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
852 the R_MIPS_26 relocation.
853 (mips_elf64_howto_table_rela): Likewise.
854
855 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
856 member to mark symbols that have non-CALL relocations against
857 them.
858 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
859 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
860 R_MIPS_GOT16.
861 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
862 non-CALL relocation against it is encountered.
863 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
864 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
865 no_fn_stub is not set.
866
867 * elf32-mips.c (mips_elf_output_extsym): Get the output section
868 information from the real symbol for indirect ones.
869 Check no_fn_stub to find out if a symbol has a function stub
870 indeed.
871
872 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
873
874 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
875 * Makefile.in: Regenerate.
876
877 2001-02-09 David Mosberger <davidm@hpl.hp.com>
878
879 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
880 true if section name is an unwind table section name.
881 (elfNN_ia64_additional_program_headers): Count each unwind section
882 separately.
883 (elfNN_ia64_modify_segment_map): Install one unwind program header
884 for each unwind separate section. Note: normally the linker
885 script merges the unwind sections that go into a single segment,
886 so this still generates at most one unwind program header per
887 segment.
888
889 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
890 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
891 (elfNN_ia64_fake_sections): Mark sections with names that start
892 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
893 unwind section.
894
895 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
896 Use it to make sh_info in unwind section point to the text section
897 it applies to.
898
899 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
900
901 * Makefile.am: Add linux target for S/390.
902 * archures.c: Likewise.
903 * bfd-in2.h: Likewise.
904 * config.bfd: Likewise.
905 * configure.in: Likewise.
906 * elf.c: Likewise.
907 * libbfd.h: Likewise.
908 * targets.c: Likewise.
909 * cpu-s390.c: New file.
910 * elf32-s390.c: New file.
911 * elf64-s390.c: New file.
912
913 2001-02-09 Nick Clifton <nickc@redhat.com>
914
915 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
916 ImageBase. This has already been done by coff_swap_hdr_in.
917
918 2001-02-09 Jakub Jelinek <jakub@redhat.com>
919
920 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
921
922 2001-02-09 Jakub Jelinek <jakub@redhat.com>
923
924 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
925 (sparc64_elf_relocate_section): Likewise.
926
927 2001-02-09 Mark Kettenis <kettenis@gnu.org>
928
929 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
930 similar to R_SPARC_32.
931 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
932
933 2001-02-08 H.J. Lu <hjl@gnu.org>
934
935 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
936 relocation entries for weak definitions when building DSO with
937 -Bsymbolic.
938
939 2001-02-08 Richard Henderson <rth@redhat.com>
940
941 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
942 before visibility. Locally defined protected symbols are not
943 dynamic.
944
945 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
946
947 * config.bfd: Enable coff64 for rs6000-*. Patch from
948 <hzoli@austin.ibm.com>.
949
950 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
951
952 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
953 found, do not attempt to find dwarf2 info before returning.
954
955 2001-02-07 Jakub Jelinek <jakub@redhat.com>
956
957 * elflink.h (is_global_symbol_definition): Rename to
958 is_global_data_symbol_definition and have it reject function
959 symbols.
960 (elf_link_is_defined_archive_symbol): Use renamed function.
961
962 2001-02-07 Todd Vierling <tv@wasabisystems.com>
963
964 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
965 * libbfd.h (bfd_target_vector): Likewise.
966 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
967 make static; create pointer reference named bfd_target_vector.
968 (_bfd_target_vector_entries): Calculate this based on the array
969 typed _bfd_target_vector.
970
971 2001-02-06 H.J. Lu <hjl@gnu.org>
972
973 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
974 internal symbols are not dynamic.
975 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
976
977 2001-02-06 Nick Clifton <nickc@redhat.com>
978
979 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
980 that it will not be pulled into the list of files that make up
981 po/POTFILES.in.
982 * Makefile.in: Regenerate.
983 * po/bfd.pot: Regenerate.
984
985 2001-02-06 H.J. Lu <hjl@gnu.org>
986
987 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
988 checking.
989 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
990 external_PEI_IMAGE_hdr.
991
992 2001-02-06 Kazu Hirata <kazu@hxi.com>
993
994 * elf-m10200.c: Fix formatting.
995
996 2001-02-04 Nick Clifton <nickc@redhat.com>
997
998 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
999 rel, it will be handled later on.
1000
1001 2001-02-02 Fred Fish <fnf@ninemoons.com>
1002
1003 * Makefile.in: Fix typo.
1004
1005 2001-02-01 Kazu Hirata <kazu@hxi.com>
1006
1007 * elf-m10300.c: Fix formatting.
1008
1009 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1010
1011 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1012 (elf_backend_get_symbol_type): Define.
1013 (elf64_hppa_object_p): Set architecture and machine from elf
1014 header flags.
1015
1016 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1017
1018 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1019 before mdebug.
1020
1021 2001-01-26 Richard Henderson <rth@redhat.com>
1022
1023 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1024 for non-default visibility.
1025 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1026 delete ugly macro and replace with pretty function.
1027
1028 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1029
1030 * coff-go32.c: Update copyright.
1031 * coff-stgo32.c: Likewise.
1032 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1033 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1034 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1035 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1036
1037 2001-01-25 Kazu Hirata <kazu@hxi.com>
1038
1039 * bfd-in2.h: Rebuild.
1040 * libbfd.h: Likewise.
1041
1042 2001-01-23 H.J. Lu <hjl@gnu.org>
1043
1044 * bfd-in2.h: Rebuild.
1045
1046 2001-01-23 H.J. Lu <hjl@gnu.org>
1047
1048 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1049 is NULL or PRIV(vms_rec) is outside of the buffer.
1050
1051 2001-01-23 Kazu Hirata <kazu@hxi.com>
1052
1053 * coff64-rs6000.c: Fix formatting.
1054 * coff-arm.c: Likewise.
1055 * coffgen.c: Likewise.
1056 * cofflink.c: Likewise.
1057 * coff-mcore.c: Likewise.
1058 * coff-mips.c: Likewise.
1059 * coff-pmac.c: Likewise.
1060 * coff-ppc.c: Likewise.
1061 * coff-rs6000.c: Likewise.
1062 * elf32.c: Likewise.
1063 * elf32-fr30.c: Likewise.
1064 * elf32-i370.c: Likewise.
1065 * elf32-i860.c: Likewise.
1066 * elf32-m32r.c: Likewise.
1067 * elf32-m68k.c: Likewise.
1068 * elf32-mcore.c: Likewise.
1069 * elf32-ppc.c: Likewise.
1070 * elf32-sh.c: Likewise.
1071 * elf32-v850.c: Likewise.
1072 * elf64-alpha.c: Likewise.
1073 * elf64-sparc.c: Likewise.
1074 * elflink.c: Likewise.
1075 * elflink.h: Likewise.
1076 * elf-m10200.c: Likewise.
1077 * elf-m10300.c: Likewise.
1078 * elfxx-ia64.c: Likewise.
1079
1080 * aoutx.h: Fix formatting.
1081 * bfd.c: Likewise.
1082 * bfd-in2.h: Likewise.
1083 * bfd-in.h: Likewise.
1084 * cpu-i386.c: Likewise.
1085 * cpu-m68hc11.c: Likewise.
1086 * dwarf2.c: Likewise.
1087 * elf64-x86-64.c: Likewise.
1088 * format.c: Likewise.
1089 * freebsd.h: Likewise.
1090 * hash.c: Likewise.
1091 * hp300hpux.c: Likewise.
1092 * hppabsd-core.c: Likewise.
1093 * hpux-core.c: Likewise.
1094
1095 2001-01-22 Bo Thorsen <bo@suse.de>
1096
1097 * elf64-x86-64.c: Added PIC support for X86-64.
1098 (elf64_x86_64_link_hash_newfunc): Function added.
1099 (elf64_x86_64_link_hash_table_create): Likewise.
1100 (elf64_x86_64_check_relocs): Likewise.
1101 (elf64_x86_64_gc_mark_hook): Likewise.
1102 (elf64_x86_64_gc_sweep_hook): Likewise.
1103 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1104 (elf64_x86_64_size_dynamic_sections): Likewise.
1105 (elf64_x86_64_discard_copies): Likewise.
1106 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1107 (elf64_x86_64_finish_dynamic_sections): Likewise.
1108 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1109
1110 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1111
1112 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1113 * Makefile.in: Regenerate.
1114
1115 2001-01-21 Kazu Hirata <kazu@hxi.com>
1116
1117 * coff-a29k.c: Fix formatting.
1118
1119 2001-01-19 H.J. Lu <hjl@gnu.org>
1120
1121 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1122 relocation section names.
1123 (elf_i386_relocate_section): Report files with bad relocation
1124 section names and return false.
1125
1126 2001-01-17 Bo Thorsen <bo@suse.de>
1127
1128 * targets.c: Alphabetize list of xvecs.
1129
1130 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1131
1132 * config.bfd: Add linux target variant for elfxx-hppa.
1133 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1134 bfd_elf64_hppa_linux_vec.
1135 * configure: Regenerate.
1136 * elf64-hppa.c: Include elf64-target.h again to support linux
1137 target variant.
1138 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1139 * elf32-hppa.c: Include elf32-target.h again to support linux
1140 target variant.
1141 (elf32_hppa_post_process_headers): New function.
1142 (elf_backend_post_process_headers): Define.
1143 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1144 bfd_elf32_hppa_linux_vec.
1145
1146 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1147 and data_segment_base fields.
1148 (elf32_hppa_link_hash_table_create ): Init them.
1149 (elf32_hppa_check_relocs): Update comments.
1150 (hppa_record_segment_addr): New function.
1151 (elf32_hppa_relocate_section): Call it.
1152 (final_link_relocate): Handle R_PARISC_SEGREL32.
1153 (elf32_hppa_final_link): New function.
1154 (bfd_elf32_bfd_final_link): Define to call it.
1155 (hppa_unwind_entry_compare): New function.
1156 * cache.c (bfd_open_file): Create files in write+read mode.
1157
1158 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1159 SEGREL32 and numerous other relocs. Change duplicate
1160 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1161
1162 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1163 O_ACCMODE.
1164
1165 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1166 .plt entries for DT_INIT and DT_FINI.
1167 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1168 DT_INIT and DT_FINI.
1169
1170 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1171 offsets for stub .plt access if wide mode. Check offset in range.
1172
1173 2001-01-13 Nick Clifton <nickc@redhat.com>
1174
1175 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1176 line.
1177
1178 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1179 line.
1180
1181 2001-01-12 Alan Modra <alan@linuxcare.com.au>
1182
1183 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1184 * configure: Regenerate.
1185
1186 2001-01-11 Peter Targett <peter.targett@arccores.com>
1187
1188 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1189 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1190 * cpu-arc.c (arch_info_struct): Add entries for variants.
1191 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1192 (arc_get_mach) Don't assume machine names prefixed arc- before
1193 testing.
1194 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1195 selections.
1196 (arc_elf_final_write_processing) Likewise.
1197 (ELF_MACHINE_CODE) Use EM_ARC.
1198
1199 2001-01-10 Nick Clifton <nickc@redhat.com>
1200
1201 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
1202
1203 2001-01-07 Philip Blundell <philb@gnu.org>
1204
1205 * README: Replace `bug-gnu-utils@gnu.org' with
1206 `bug-binutils@gnu.org'.
1207
1208 2001-01-04 Kazu Hirata <kazu@hxi.com>
1209
1210 * som.c: Fix formatting.
1211
1212 2001-01-03 Kazu Hirata <kazu@hxi.com>
1213
1214 * ecoffswap.h: Fix formatting.
1215 * elf-bfd.h: Likewise.
1216 * elfarm-nabi.c: Likewise.
1217 * elfarm-oabi.c: Likewise.
1218 * elfcode.h: Likewise.
1219 * elfcore.h: Likewise.
1220 * elflink.c: Likewise.
1221 * elflink.h: Likewise.
1222 * elfxx-ia64.c: Likewise.
1223 * elfxx-target.h: Likewise.
1224 * libbfd.c: Likewise
1225 * linker.c: Likewise.
1226 * lynx-core.c: Likewise.
1227
1228 2001-01-02 Kazu Hirata <kazu@hxi.com>
1229
1230 * pc532-mach.c: Fix formatting.
1231 * pe-arm.c: Likewise.
1232 * pe-i386.c: Likewise.
1233 * pe-mips.c: Likewise.
1234 * pe-ppc.c: Likewise.
1235 * pe-sh.c: Likewise.
1236 * pei-mips.c: Likewise.
1237 * pei-sh.c: Likewise.
1238 * peicode.h: Likewise.
1239 * ppcboot.c: Likewise.
1240 * ptrace-core.c: Likewise.
1241
1242 2001-01-01 Kazu Hirata <kazu@hxi.com>
1243
1244 * reloc.c: Fix formatting.
1245 * riscix.c: Likewise.
1246 * rs6000-core.c: Likewise.
1247 * xcoff-target.h: Likewise.
1248
1249 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
1250
1251 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1252 error, by calling bfd_default_set_arch_mach with incoming
1253 values.
1254
1255 2000-12-26 Kazu Hirata <kazu@hxi.com>
1256
1257 * vaxnetbsd.c: Fix formatting.
1258 * versados.c: Likewise.
1259 * vms-gsd.c: Likewise.
1260 * vms-hdr.c: Likewise.
1261 * vms-misc.c: Likewise.
1262
1263 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
1264
1265 * archive.c (coff_write_armap): Don't write more than symbol_count
1266 `archive_member_file_ptr's.
1267
1268 2000-12-25 Kazu Hirata <kazu@hxi.com>
1269
1270 * vms-tir.c: Fix formatting.
1271
1272 2000-12-23 Kazu Hirata <kazu@hxi.com>
1273
1274 * vms.c: Fix formatting.
1275 * vms.h: Likewise.
1276
1277 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
1278
1279 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1280
1281 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1282
1283 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1284 arithmetic.
1285
1286 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1287
1288 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1289
1290 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
1291
1292 * libbfd.c (bfd_get_bits): Added
1293 (bfd_put_bits): Likewise
1294 * bfd-in.h: Declared the above.
1295 * bfd-in2.h: Regenerated.
1296
1297 2000-12-20 Kazu Hirata <kazu@hxi.com>
1298
1299 * targets.c: Fix formatting.
1300 * tekhex.c: Likewise.
1301 * trad-core.c: Likewise.
1302
1303 2000-12-19 Kazu Hirata <kazu@hxi.com>
1304
1305 * sco5-core.c: Fix formatting.
1306 * section.c: Likewise.
1307 * sparclinux.c: Likewise.
1308 * sparclynx.c: Likewise.
1309 * sparcnetbsd.c: Likewise.
1310 * srec.c: Likewise.
1311 * stabs.c: Likewise.
1312 * stab-syms.c: Likewise.
1313 * sunos.c: Likewise.
1314 * syms.c: Likewise.
1315 * sysdep.h: Likewise.
1316
1317 2000-12-18 Nick Clifton <nickc@redhat.com>
1318
1319 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1320 defined.
1321 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1322 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1323
1324 2000-12-18 Nick Clifton <nickc@redhat.com>
1325
1326 * vms-misc.c (_bfd_vms_get_record): Add default case to
1327 file_format switch.
1328
1329 2000-12-15 Miloslav Trmac <mitr@volny.cz>
1330
1331 * elfcore.h (elf_core_file_p): Move to the start of the program
1332 headers before attempting to read them.
1333
1334 2000-12-14 Kazu Hirata <kazu@hxi.com>
1335
1336 * peigen.c: Fix formatting.
1337 * som.c: Likewise.
1338 * som.h: Likewise.
1339
1340 2000-12-13 Kazu Hirata <kazu@hxi.com>
1341
1342 * peigen.c: Fix formatting.
1343
1344 2000-12-12 Jim Wilson <wilson@redhat.com>
1345
1346 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1347
1348 2000-12-08 Mark Salter <msalter@redhat.com>
1349
1350 * binary.c (binary_set_section_contents): Ignore sections
1351 with zero size.
1352
1353 2000-12-12 Kazu Hirata <kazu@hxi.com>
1354
1355 * m68klinux.c: Fix formatting.
1356 * m68knetbsd.c: Likewise.
1357 * mipsbsd.c: Likewise.
1358 * netbsd-core.c: Likewise.
1359 * netbsd.h: Likewise.
1360 * newsos3.c: Likewise.
1361 * nlm32-alpha.c: Likewise.
1362 * nlm32-i386.c: Likewise.
1363 * nlm32-ppc.c: Likewise.
1364 * nlm32-sparc.c: Likewise.
1365 * nlmcode.h: Likewise.
1366 * nlmswap.h: Likewise.
1367 * nlm-target.h: Likewise.
1368 * ns32knetbsd.c: Likewise.
1369
1370 2000-12-10 Fred Fish <fnf@be.com>
1371
1372 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1373 symbols in shared objects if allow_shlib_undefined is true.
1374
1375 2000-12-12 Nick Clifton <nickc@redhat.com>
1376
1377 * cpu-sh.c: Fix formattng.
1378 * elf.c: Fix formattng.
1379 * elf32-mips.c: Fix formattng.
1380 * elf32-sh.c: Fix formattng.
1381 * elf64-alpha.c: Fix formattng.
1382
1383 2000-12-09 Nick Clifton <nickc@redhat.com>
1384
1385 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1386 dwarf2_find_line_info as last parameter to invocation of
1387 _bfd_dwarf2_find_nearest_line.
1388 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1389 dwarf2_find_line_info as last parameter to invocation of
1390 _bfd_dwarf2_find_nearest_line.
1391
1392 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
1393
1394 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
1395 (BFD_LIBS): ...to here.
1396 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1397 (BFD_LIBS_CFILES): ...to here.
1398 * Makefile.in: Regenerate.
1399 * configure.in: Remove dwarf.lo from the elf shell variable.
1400 * configure: Regenerate.
1401 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1402 * libcoff.h: Regenerate.
1403 * coffgen.c (coff_find_nearest_line): Call
1404 _bfd_dwarf2_find_nearest_line.
1405 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
1406 accordingly.
1407 (read_abbrevs): Likewise
1408 (decode_line_info): Likewise.
1409 (parse_comp_unit): Likewise.
1410 (comp_unit_find_nearest_line): Likewise.
1411 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1412 * libbfd.h: Regenerate.
1413 * elf.c (_bfd_elf_find_nearest_line): Update call.
1414 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
1415 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
1416 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
1417 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
1418 (styp_to_sec_flags): Handle DWARF2 sections.
1419 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
1420 to _bfd_find_nearest_line.
1421 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
1422 call to _bfd_find_nearest_line.
1423
1424 2000-12-08 Kazu Hirata <kazu@hxi.com>
1425
1426 * coffgen.c: Fix formatting.
1427 * elf-m10300.c: Likewise.
1428 * elf32-i386.c: Likewise.
1429 * elf32-i960.c: Likewise.
1430 * elf32-m68k.c: Likewise.
1431 * elf32-mcore.c: Likewise.
1432 * elf32-ppc.c: Likewise.
1433 * elf32-sh.c: Likewise.
1434 * elf32-sparc.c: Likewise.
1435 * elf32-v850.c: Likewise.
1436 * elf64-alpha.c: Likewise.
1437 * elf64-hppa.c: Likewise.
1438 * elf64-mips.c: Likewise.
1439 * elf64-sparc.c: Likewise.
1440
1441 2000-12-07 Kazu Hirata <kazu@hxi.com>
1442
1443 * elf32-ppc.c: Fix formatting.
1444 * elf64-x86-64.c: Likewise.
1445
1446 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
1447
1448 From Ralf Baechle <ralf@gnu.org>
1449
1450 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
1451 BFDs containing no sections or empty .text, .data or .bss sections
1452 to be merged, regardless of their flags.
1453
1454 2000-12-06 Kazu Hirata <kazu@hxi.com>
1455
1456 * elf32-m32r.c: Fix formatting.
1457 * elf32-m68hc11.c: Likewise.
1458 * elf32-m68hc12.c: Likewise.
1459 * elf32-m68k.c: Likewise.
1460 * elf32-mcore.c: Likewise.
1461 * elf32-pj.c: Likewise.
1462 * elf32-ppc.c: Likewise.
1463
1464 2000-12-05 Kazu Hirata <kazu@hxi.com>
1465
1466 * elf32-fr30.c: Fix formatting.
1467 * elf32-hppa.c: Likewise.
1468 * elf32-i370.c: Likewise.
1469 * elf32-i386.c: Likewise.
1470 * elf32-i860.c: Likewise.
1471 * elf32-i960.c: Likewise.
1472
1473 2000-12-03 Kazu Hirata <kazu@hxi.com>
1474
1475 * elf32-arm.h: Fix formatting.
1476 * elf32-avr.c: Likewise.
1477 * elf32-cris.c: Likewise.
1478 * elf32-d10v.c: Likewise.
1479 * elf32-d30v.c: Likewise.
1480 * elf-hppa.h: Likewise.
1481 * elf-m10200.c: Likewise.
1482 * elf-m10300.c: Likewise.
1483
1484 2000-12-01 Chris Demetriou <cgd@sibyte.com>
1485
1486 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
1487 bfd_mach_mips32_4k. Update FIXME comment.
1488 * archures.c (bfd_mach_mips32): New constant.
1489 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1490 the latter, renumber it.
1491 * bfd-in2.h (bfd_mach_mips32): New constant.
1492 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
1493 the latter, renumber it.
1494 * cpu-mips.c (I_mips32): New constant.
1495 (I_mips4K, I_mips32_4k): Rename the former to the latter.
1496 (arch_info_struct): Add bfd_mach_mips32 entry, replace
1497 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
1498 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
1499 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
1500 with E_MIPS_MACH_MIPS32_4K.
1501 (_bfd_mips_elf_final_write_processing): Replace
1502 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
1503 bfd_mach_mips32 case.
1504 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
1505 comparison with support for MIPS32.
1506 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
1507 MIPS32.
1508
1509 * aoutx.h (NAME(aout,machine_type)): Add cases for
1510 bfd_mach_mips5 and bfd_mach_mips64.
1511 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
1512 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
1513 * cpu_mips.c (I_mips5, I_mips64): New definitions.
1514 (arch_info_struct): Add entries for bfd_mach_mips5 and
1515 bfd_mach_mips64.
1516 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
1517 _bfd_mips_elf_print_private_bfd_data): Add cases for
1518 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
1519 (_bfd_mips_elf_final_write_processing): Add cases for
1520 bfd_mach_mips5 and bfd_mach_mips64.
1521
1522 * aoutx.h (NAME(aout,machine_type)): Add a
1523 bfd_mach_mips_sb1 case.
1524 * archures.c (bfd_mach_mips_sb1): New constant.
1525 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
1526 * cpu-mips.c (I_sb1): New constant.
1527 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
1528 * elf32-mips.c (elf_mips_mach): Add case for
1529 E_MIPS_MACH_SB1.
1530 (_bfd_mips_elf_final_write_processing): Add case for
1531 bfd_mach_mips_sb1.
1532
1533 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1534
1535 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
1536 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1537 (sparc*-*-rtems*): Switched from a.out to ELF.
1538
1539 2000-11-30 Jan Hubicka <jh@suse.cz>
1540
1541 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
1542 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
1543 (elf64-x86-64.lo): Add dependencies.
1544 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
1545 bfd_mach_x86_64_intel_syntax.
1546 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
1547 * config.bfd (x86_64): Add.
1548 * configure.in: Add support for bfd_elf64_x86_64_vec.
1549 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
1550 (bfd_i386_arch, i8086_ar): Link in.
1551 * elf64-x86-64.c: New file.
1552 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
1553 * targets.c (bfd_elf64_x86_64_vec): Add.
1554 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
1555
1556 2000-11-30 Kazu Hirata <kazu@hxi.com>
1557
1558 * xcofflink.c: Fix formatting.
1559
1560 2000-11-28 Kazu Hirata <kazu@hxi.com>
1561
1562 * aoutx.h: Fix formatting.
1563 * bfd-in.h: Likewise.
1564 * bfd-in2.h: Likewise.
1565 * cache.c: Likewise.
1566 * cisco-core.c: Likewise.
1567 * coff64-rs6000.c: Likewise.
1568 * coffcode.h: Likewise.
1569 * coffswap.h: Likewise.
1570 * corefile.c: Likewise.
1571 * elf32-mips.c: Likewise.
1572
1573 2000-11-27 Kazu Hirata <kazu@hxi.com>
1574
1575 * aout-adobe.c: Fix formatting.
1576 * coff64-rs6000.c: Likewise.
1577 * coffgen.c: Likewise.
1578 * cofflink.c: Likewise.
1579
1580 2000-11-27 Philip Blundell <pb@futuretv.com>
1581
1582 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
1583 (obj_coff_strings_written): New accessor macro for above.
1584 * libcoff.h: Regenerate.
1585 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
1586 strings.
1587 * coffcode.h (coff_write_object_contents): No need to write out
1588 the string table if it's already been done.
1589
1590 2000-11-22 Philip Blundell <pb@futuretv.com>
1591
1592 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
1593 weak undefined symbols.
1594
1595 2000-11-24 Nick Clifton <nickc@redhat.com>
1596
1597 * archures.c (bfd_mach_arm_5TE): Define.
1598 (bfd_mach_arm+XScale): Define.
1599 * bfd-in2.h: Regenerate.
1600
1601 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
1602 BFD_RELOC_ARM_PCREL_BLX.
1603
1604 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
1605 XScale machine numbers.
1606
1607 * config.bfd (xscale-elf): Add target.
1608 (xscale-coff): Add target.
1609
1610 * cpu-arm.c: Add xscale machine name.
1611 Add v5t, v5te and XScale machine numbers.
1612
1613 2000-11-23 Kazu Hirata <kazu@hxi.com>
1614
1615 * aix386-core.c: Fix formatting.
1616
1617 2000-11-22 Jim Wilson <wilson@redhat.com>
1618
1619 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
1620 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
1621 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
1622 (ins_imms_scaled): Initialize sign_bit at function entry.
1623 (elf64_ia64_operands): Add missing initializers.
1624 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
1625 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
1626 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
1627 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
1628 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
1629 parameters.
1630 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
1631 and free_extsyms at function entry.
1632 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
1633 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
1634 (get_got): Delete unused local srel.
1635 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
1636 (elfNN_ia64_relocate_section): Delete unused local dynindx.
1637
1638 2000-11-21 Kazu Hirata <kazu@hxi.com>
1639
1640 * coff-a29k.c: Fix formatting.
1641 * coff-h8500.c: Likewise.
1642 * coff-i960.c: Likewise.
1643 * coff-ppc.c: Likewise.
1644 * coff-rs6000.c: Likewise.
1645 * coff-stgo32.c: Likewise.
1646 * coff-tic54x.c: Likewise.
1647 * coff-w65.c: Likewise.
1648 * cpu-h8500.c: Likewise.
1649 * cpu-hppa.c: Likewise.
1650 * cpu-ns32k.c: Likewise.
1651 * ecoff.c: Likewise.
1652 * ecofflink.c: Likewise.
1653
1654 2000-11-21 Nick Clifton <nickc@redhat.com>
1655
1656 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
1657 remove possibility of infinite loop.
1658
1659 2000-11-20 Kazu Hirata <kazu@hxi.com>
1660
1661 * aix386-core.c: Fix formatting.
1662 * aout-adobe.c: Likewise.
1663 * aout-arm.c: Likewise.
1664 * aout-encap.c: Likewise.
1665 * aout-ns32k.c: Likewise.
1666 * aout-target.h: Likewise.
1667 * aout-tic30.c: Likewise.
1668 * aoutf1.h: Likewise.
1669 * aoutx.h: Likewise.
1670 * archive.c: Likewise.
1671 * bfd-in.h: Likewise.
1672 * bfd-in2.h: Likewise.
1673 * bfd.c: Likewise.
1674 * bout.c: Likewise.
1675
1676 2000-11-17 H.J. Lu <hjl@gnu.org>
1677
1678 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
1679 pltoff entries for DT_INIT and DT_FINI.
1680 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
1681 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
1682 entries.
1683
1684 2000-11-16 Richard Henderson <rth@redhat.com>
1685
1686 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
1687 (allocate_dynrel_entries): Likewise.
1688 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
1689 (set_pltoff_entry): Likewise.
1690 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
1691 (elfNN_ia64_reloc_type_lookup): Likewise.
1692 (elfNN_ia64_install_value): Likewise.
1693 (elfNN_ia64_relocate_section): Likewise.
1694 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
1695 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
1696
1697 2000-11-16 Kazu Hirata <kazu@hxi.com>
1698
1699 * cpu-a29k.c: Fix formatting.
1700 * cpu-alpha.c: Likewise.
1701 * cpu-arm.c: Likewise.
1702 * cpu-avr.c: Likewise.
1703 * cpu-d10v.c: Likewise.
1704 * cpu-h8500.c: Likewise.
1705 * cpu-hppa.c: Likewise.
1706 * cpu-i370.c: Likewise.
1707 * cpu-i386.c: Likewise.
1708 * cpu-i960.c: Likewise.
1709 * cpu-ia64-opc.c: Likewise.
1710 * cpu-ia64.c: Likewise.
1711 * cpu-m32r.c: Likewise.
1712 * cpu-m68hc11.c: Likewise.
1713 * cpu-m68hc12.c: Likewise.
1714 * cpu-m68k.c: Likewise.
1715 * cpu-m88k.c: Likewise.
1716 * cpu-mips.c: Likewise.
1717 * cpu-ns32k.c: Likewise.
1718 * cpu-pj.c: Likewise.
1719 * cpu-powerpc.c: Likewise.
1720 * cpu-sh.c: Likewise.
1721 * cpu-sparc.c: Likewise.
1722 * cpu-tic54x.c: Likewise.
1723 * cpu-v850.c: Likewise.
1724 * cpu-vax.c: Likewise.
1725 * cpu-w65.c: Likewise.
1726 * cpu-we32k.c: Likewise.
1727 * cpu-z8k.c: Likewise.
1728 * dwarf1.c: Likewise.
1729 * dwarf2.c: Likewise.
1730
1731 2000-11-15 Kazu Hirata <kazu@hxi.com>
1732
1733 * coff-arm.c: Fix formatting.
1734 * coff-ppc.c: Likewise.
1735 * coff-rs6000.c: Likewise.
1736 * coff-sh.c: Likewise.
1737 * coff-sparc.c: Likewise.
1738 * coff-tic30.c: Likewise.
1739 * coff-tic54x.c: Likewise.
1740 * coff-tic80.c: Likewise.
1741 * coff-w65.c: Likewise.
1742 * coff-we32k.c: Likewise.
1743 * coff-z8k.c: Likewise.
1744
1745 2000-11-15 Richard Henderson <rth@redhat.com>
1746
1747 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
1748 section with the same ALLOC|LOAD flags as the source section.
1749
1750 2000-11-14 Jakub Jelinek <jakub@redhat.com>
1751
1752 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
1753 by STO_ALPHA constants.
1754
1755 2000-11-14 Kazu Hirata <kazu@hxi.com>
1756
1757 * coff-pmac.c: Fix formatting.
1758 * coff-ppc.c: Likewise.
1759
1760 2000-11-13 H.J. Lu <hjl@gnu.org>
1761
1762 * elflink.h (elf_link_add_object_symbols): Also add indirect
1763 symbols for common symbols with the default version.
1764
1765 2000-11-09 Philip Blundell <pb@futuretv.com>
1766
1767 * section.c (STD_SECTION): Set gc_mark flag.
1768
1769 2000-11-11 Kazu Hirata <kazu@hxi.com>
1770
1771 * coff-i960.c: Likewise.
1772 * coff-m68k.c: Likewise.
1773 * coff-m88k.c: Likewise.
1774 * coff-mcore.c: Likewise.
1775 * coff-mips.c: Likewise.
1776
1777 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
1778
1779 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
1780
1781 2000-11-10 Kazu Hirata <kazu@hxi.com>
1782
1783 * coff-h8300.c: Fix formatting.
1784 * coff-h8500.c: Likewise.
1785 * coff-i386.c: Likewise.
1786 * coff-i860.c: Likewise.
1787 * coff-i960.c: Likewise.
1788 * coff-ia64.c: Likewise.
1789
1790 2000-11-09 Kazu Hirata <kazu@hxi.com>
1791
1792 * archive.c: Fix formatting.
1793 * archures.c: Likewise.
1794
1795 2000-11-07 Richard Henderson <rth@redhat.com>
1796
1797 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
1798 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
1799 * section.c (bfd_set_section_contents): Call memcpy if
1800 section->contents set and location not equal to contents plus offset.
1801
1802 2000-11-08 Kazu Hirata <kazu@hxi.com>
1803
1804 * bfd-in.h: Fix formatting.
1805 * bfd-in2.h: Likewise.
1806 * bfd.c: Likewise.
1807 * binary.c: Likewise.
1808 * bout.c: Likewise.
1809 * coff-a29k.c: Likewise.
1810 * coff-alpha.c: Likewise.
1811 * coff-apollo.c: Likewise.
1812 * coff-aux.c: Likewise.
1813
1814 2000-11-07 Kazu Hirata <kazu@hxi.com>
1815
1816 * aix386-core.c: Fix formatting.
1817 * aoutf1.h: Likewise.
1818 * aoutx.h: Likewise.
1819 * archures.c: Likewise.
1820 * armnetbsd.c: Likewise.
1821
1822 2000-11-07 Alan Modra <alan@linuxcare.com.au>
1823
1824 * coff-h8300.c (special): Adjust reloc address.
1825
1826 2000-11-06 Steve Ellcey <sje@cup.hp.com>
1827
1828 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
1829 to differentiate elf32 and elf64 on ia64.
1830 * bfd-in2.h: Regenerate.
1831 * config.bfd: Add target for "ia64*-*-hpux*".
1832 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
1833 * configure: Regenerate.
1834 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
1835 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
1836
1837 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
1838 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
1839 * Makefile.in: Regnerate.
1840 * elf64-ia64.c: Deleted.
1841 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
1842
1843 2000-11-06 Kazu Hirata <kazu@hxi.com>
1844
1845 * aout-adobe.c: Fix formatting.
1846 * aout-arm.c: Likewise.
1847 * aout-cris.c: Likewise.
1848 * aout-encap.c: Likewise.
1849 * aout-ns32k.c: Likewise.
1850 * aout-target.h: Likewise.
1851 * aout-tic30.c: Likewise.
1852
1853 2000-11-05 Philip Blundell <philb@gnu.org>
1854
1855 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
1856 BFDs containing no sections to be merged, regardless of their flags.
1857
1858 2000-11-04 Philip Blundell <philb@gnu.org>
1859
1860 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
1861 if a relocation for an undefined symbol also results in an
1862 overflow.
1863
1864 2000-11-06 Christopher Faylor <cgf@cygnus.com>
1865
1866 * config.bfd: Add support for Sun Chorus.
1867
1868 2000-11-05 David O'Brien <obrien@FreeBSD.org>
1869
1870 * configure.in: Recognize alpha-*-freebsd*.
1871 * configure: Regenerate.
1872
1873 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
1874
1875 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
1876 (Chunk): New global variable set by a parameter in objcopy.c.
1877 (S3Forced): New global variable set by a parameter in
1878 objcopy.c.
1879 (srec_set_section_contents): If S3Forced is true, always generate
1880 S3 records.
1881 (srec_write_section): Use 'Chunk' to limit maximum length of S
1882 records.
1883
1884 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1885
1886 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
1887 * Makefile.in: Regenerate.
1888 * bfd-in2.h: Regenerate.
1889 * po/bfd.pot: Regenerate.
1890
1891 2000-10-31 Philip Blundell <philb@gnu.org>
1892
1893 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
1894 EF_SOFT_FLOAT if it is defined.
1895
1896 2000-10-27 Philip Blundell <philb@gnu.org>
1897
1898 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
1899 attempts to mix PIC code with non-PIC, just mark the output as
1900 being position dependent.
1901 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
1902 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1903 all mismatches, not just the first one.
1904
1905 2000-10-25 Chris Demetriou <cgd@sibyte.com>
1906
1907 * ieee.c (ieee_archive_p): Plug one of many possible
1908 memory leaks in error handling.
1909
1910 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1911
1912 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
1913 elf32_sparc_object_p, elf32_sparc_final_write_processing):
1914 Support v8plusb.
1915 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
1916 sparc64_elf_object_p): Support v9b.
1917 * archures.c: Declare v8plusb and v9b machines.
1918 * bfd-in2.h: Ditto.
1919 * cpu-sparc.c: Ditto.
1920
1921 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1922
1923 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
1924 of a GOT reloc.
1925
1926 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
1927 (SYMBOL_CALLS_LOCAL): New macro.
1928 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
1929 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
1930 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
1931 (ppc_elf_relocate_section): Use flag variable to determine
1932 whether the relocation refers to a local symbol.
1933 Test whether a PLTREL24 reloc will produce a reloc by looking
1934 to see whether a PLT entry was made.
1935
1936 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
1937
1938 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
1939 entries that could serve as a definition for a weak symbol.
1940
1941 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
1942
1943 From Ralf Baechle <ralf@gnu.org>
1944
1945 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
1946 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
1947 against local symbols.
1948 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
1949
1950 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1951
1952 * section.c (struct sec): Add kept_section.
1953 (struct bfd_comdat_info): Remove sec, we can use above.
1954 (STD_SECTION): Add initializer.
1955 (bfd_make_section_anyway): Init here too.
1956
1957 * bfd-in2.h: Regenerate.
1958
1959 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
1960 zeroing of `flags'.
1961 (elf_link_input_bfd): Set all asection->symbol->value's here, and
1962 fudge values for discarded link-once section symbols.
1963
1964 * elf64-hppa.c: Include alloca-conf.h
1965
1966 2000-10-11 Alan Modra <alan@linuxcare.com.au>
1967
1968 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
1969
1970 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
1971
1972 2000-10-10 Alan Modra <alan@linuxcare.com.au>
1973
1974 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
1975
1976 2000-10-10 Tom Rix <trix@redhat.com>
1977
1978 * section.c (bfd_make_section_anyway): Release newsect ptr when
1979 newsect->symbol fails to alloc. Use bfd_release instead of free.
1980
1981 2000-10-09 Richard Henderson <rth@cygnus.com
1982
1983 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
1984 (elf64_ia64_unwind_entry_compare): New.
1985 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
1986
1987 2000-10-07 Alan Modra <alan@linuxcare.com.au>
1988
1989 * elflink.h (size_dynamic_sections): Don't create various tags if
1990 .dynstr is excluded from the link. Don't set first dynsym entry
1991 if dynsymcount is zero.
1992 (elf_bfd_final_link): Don't try to swap out dynamic syms if
1993 .dynsym excluded from the link. Don't try to write any dynamic
1994 sections excluded from the link.
1995
1996 * elf.c (swap_out_syms): Handle global section symbols.
1997
1998 2000-10-05 DJ Delorie <dj@redhat.com>
1999
2000 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2001 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2002 (coff_write_relocs): write extended reloc count
2003 (coff_write_object_contents): account for extended relocs
2004
2005 2000-10-05 Jim Wilson <wilson@cygnus.com>
2006
2007 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2008 field.
2009 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2010 elf_backend_section_flags function.
2011 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2012 code.
2013 (elf64_ia64_section_flags): New function containing flag conversion
2014 code.
2015 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2016 * elfxx-target.h (elf_backend_section_flags): Define.
2017 (elfNN_bed): Initialize elf_backend_section_flags field.
2018
2019 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2020
2021 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2022 _bfd_elf32_gc_record_vtable. Correct a comment.
2023
2024 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2025
2026 From Ralf Baechle <ralf@gnu.org>
2027
2028 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2029 produces binaries with got[1] = 0x80000001 to differenciate them
2030 for the dynamic linker from the broken binaries produced by old
2031 versions.
2032
2033 2000-09-30 Petr Sorfa <petrs@sco.com>
2034
2035 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2036 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2037 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2038 * configure: Regenerate.
2039
2040 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2041
2042 Define two bfd_targets for absence and presence of leading
2043 underscore on symbols. Make sure to only link same kind.
2044 * elf32-cris.c (cris_elf_object_p,
2045 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2046 cris_elf_merge_private_bfd_data): New.
2047 (elf_backend_object_p, elf_backend_final_write_processing,
2048 bfd_elf32_bfd_print_private_bfd_data,
2049 bfd_elf32_bfd_merge_private_bfd_data): Define.
2050 <Target vector definition>: Include elf32-target.h twice with
2051 different macro settings:
2052 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2053 bfd_elf32_us_cris_vec.
2054 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2055 (elf_symbol_leading_char): First as 0, then '_'.
2056 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2057 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2058 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2059 * configure: Regenerate.
2060 * targets.c: Declare bfd_elf32_us_cris_vec.
2061 * po/bfd.pot: Regenerate.
2062
2063 2000-09-29 Momchil Velikov <velco@fadata.bg>
2064
2065 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2066 R_ARM_THM_PC22 relocations.
2067
2068 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2069
2070 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2071
2072 2000-09-29 Momchil Velikov <velco@fadata.bg>
2073
2074 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2075 is has the SEC_HAS_CONTENTS flag set.
2076
2077 2000-09-28 Örjan Friberg <orjanf@axis.com>
2078 Hans-Peter Nilsson <hp@axis.com>
2079
2080 * aout-cris.c (N_TXTADDR): Define.
2081
2082 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2083
2084 * som.c: Include alloca-conf.h.
2085 * Makefile.am: "make dep-am"
2086 * Makefile.in: Regenerate.
2087
2088 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2089
2090 * elf32-hppa.c (plt_stub): New.
2091 (PLT_STUB_ENTRY): Define.
2092 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2093 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2094 (elf32_hppa_link_hash_table_create): Init to suit.
2095 (elf32_hppa_check_relocs): Set has_12bit_branch and
2096 has_17bit_branch as appropriate.
2097 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2098 non-local functions.
2099 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2100 Add space for plt_stub as needed.
2101 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2102 functions at plt_stub.
2103 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2104 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2105
2106 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2107 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2108 of fixed size, and if negative, disable handling of input sections
2109 before stub section. Set up default stub group size depending
2110 on detected branch relocs.
2111 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2112 ensure different offsets from sym_value aren't rounded to
2113 different 2k blocks. Use lrsel and rrsel for other stubs too for
2114 consistency rather than necessity.
2115 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2116 (final_link_relocate): Likewise.
2117 (elf32_hppa_relocate_section): Likewise.
2118
2119 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
2120 (_bfd_elf_hppa_gen_reloc_type): Generate them.
2121 (elf_hppa_final_link_relocate): Handle them.
2122 (elf_hppa_relocate_insn): Likewise.
2123 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2124
2125 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
2126
2127 * elfcode.h (elf_object_p): Preserve and clear abfd section
2128 information. Restore at error.
2129
2130 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2131
2132 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
2133 is empty, make sure that its rva also 0. NT loader dislikes
2134 having otherwise.
2135
2136 2000-09-26 Steve Ellcey <sje@cup.hp.com>
2137
2138 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
2139 global by default.
2140
2141 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2142
2143 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
2144 currently unused RELATIVE_DYNAMIC_RELOCS code.
2145 (hppa_discard_copies): Likewise.
2146 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
2147 comments. Don't check non-code output sections for stub grouping.
2148
2149 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2150
2151 * section.c (bfd_get_unique_section_name): Return NULL if
2152 bfd_malloc fails.
2153
2154 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2155
2156 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
2157 instruction sequence to actually work.
2158 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
2159 accordingly.
2160
2161 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
2162
2163 * elf32-sh.c (sh_elf_relocate_section): Use
2164 _bfd_final_link_relocate to apply the relocation against a section
2165 symbol, when doing relocatable links.
2166
2167 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2168
2169 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
2170 to id_sec.
2171 (stub_hash_newfunc): Here too.
2172 (hppa_add_stub): And here.
2173 (elf32_hppa_link_hash_table): Remove stub_section_created,
2174 reloc_section_created, first_init_sec and first_fini_sec. Add
2175 stub_group.
2176 (elf32_hppa_link_hash_table_create): Init to suit.
2177 (hppa_get_stub_entry): Add support for grouping stub sections.
2178 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
2179 section code. Index stub vars by section->id.
2180 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
2181 exit paths. Zap allocation of above removed vars. Refine
2182 link-once test.
2183
2184 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
2185 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2186 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
2187 rather than pointer to bfd_link_info.
2188 (hppa_add_stub): Likewise.
2189 (final_link_relocate): Likewise.
2190
2191 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
2192
2193 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
2194 link-once sections.
2195
2196 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
2197
2198 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
2199 ld/emulparams/shelf.sh.
2200
2201 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2202
2203 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
2204 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
2205 * bfd-in2.h: Regenerate.
2206
2207 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
2208
2209 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
2210 LITUSE relocations incorrectly if -relax is specified on the ld
2211 command line and the displacement field of the load or store
2212 instruction is non-zero. (Patch by paul.winalski@compaq.com)
2213
2214 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2215
2216 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
2217 first_fini_sec here.
2218 (elf32_hppa_size_stubs): Instead correctly find the first .init
2219 and .fini section here.
2220
2221 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
2222
2223 * elf32-hppa.c (clobber_millicode_symbols): New function.
2224 (elf32_hppa_size_dynamic_sections): Call it.
2225
2226 2000-09-14 Alan Modra <alan@linuxcare.com.au>
2227
2228 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
2229 packed. Add plabel, plt_abs packed booleans.
2230 (hppa_link_hash_newfunc): Init new fields.
2231 (PLABEL_PLT_ENTRY_SIZE): Define.
2232 (hppa_stub_name): Use size_t len vars.
2233 (hppa_add_stub): Likewise.
2234 (elf32_hppa_build_stubs): Likewise.
2235 (hppa_build_one_stub): Kill some compiler warnings.
2236 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
2237 if dynamic linking. Munge the local plt offsets into
2238 local_got_refcounts. Set h->plabel for all global PLABELs. Use
2239 size_t len vars. Add assert for plabel addend.
2240 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
2241 (elf32_hppa_hide_symbol): New function.
2242 (elf_backend_hide_symbol): Define.
2243 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
2244 with h->plabel set. Don't make plt entries to have dynamic syms
2245 when they have been forced local. If plt entry is used by a
2246 plabel, make it PLABEL_PLT_ENTRY_SIZE.
2247 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
2248 Set up .plt offsets for local syms.
2249 (elf32_hppa_relocate_section): Initialise plt entries for local
2250 syms. Leave weak undefined plabels zero. Make global plabel
2251 relocs against function symbol, and leave the addend zero.
2252 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
2253 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
2254 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
2255 relocs instead of SEGREL32 for dynamic got relocs.
2256 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
2257 (elf_backend_got_header_size): Adjust.
2258 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
2259
2260 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
2261 (hppa_type_of_stub): Use it instead of #if 0
2262 (hppa_discard_copies): Use it here too.
2263 (elf32_hppa_size_dynamic_sections): And here.
2264
2265 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
2266 (elf32_hppa_link_hash_table_create): And here.
2267 (hppa_build_one_stub): And here. Instead keep track of stub
2268 offset using _raw_size.
2269 (elf32_hppa_size_stubs): Likewise.
2270 (elf32_hppa_build_stubs): Likewise.
2271 (hppa_size_one_stub): Likewise. Resize reloc section too.
2272
2273 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
2274 first_fini_sec handling. Don't search for reloc section or set
2275 hplink->reloc_section_created here.
2276 (elf32_hppa_size_stubs): Instead search for reloc sections, and
2277 set reloc_section_created here.
2278 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
2279 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
2280 and DT_FINI.
2281 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
2282
2283 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
2284 with `hplink->root.'.
2285 (elf32_hppa_check_relocs): Likewise.
2286 (elf32_hppa_gc_sweep_hook): Likewise.
2287 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2288 (hppa_handle_PIC_calls): Likewise.
2289 (elf32_hppa_size_dynamic_sections): Likewise.
2290 (elf32_hppa_set_gp): Likewise.
2291 (elf32_hppa_relocate_section): Likewise.
2292 (elf32_hppa_finish_dynamic_symbol): Likewise.
2293 (elf32_hppa_finish_dynamic_sections): Likewise.
2294
2295 From David Huggins-Daines <dhd@linuxcare.com>
2296 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
2297 defined weak symbols in shared links.
2298 (final_link_relocate): Calls to defined weak symbols in shared
2299 objects must go via import stubs, as the target might not be known
2300 at link time.
2301
2302 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2303
2304 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
2305 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
2306 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
2307 the original entries with EMPTY_HOWTOs, and added new ones to fill
2308 in the gap.
2309 (sh_elf_info_to_howto): Make sure the new gap isn't used.
2310 (sh_elf_relocate_section): Likewise.
2311
2312 2000-09-13 Anders Norlander <anorland@acc.umu.se>
2313
2314 * cpu-mips.c (arch_info_struct): Add mips:4K
2315 * bfd-in2.h (bfd_mach_mips4K): New define.
2316 * archures.c: Add bfd_mach_mips4K to comment.
2317 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
2318 E_MIPS_ARCH_2 for bfd_mach_mips4K.
2319
2320 2000-09-13 Marco Franzen <marcof@thyron.com>
2321
2322 * som.c (som_write_symbol_strings): Do not used fixed buffers,
2323 use size_t as a counter.
2324 (som_write_space_strings): Similarly.
2325
2326 2000-09-12 Jason Eckhardt <jle@cygnus.com>
2327
2328 * elf32-i860.c (elf32_i860_relocate_pc26): New function
2329 and prototype.
2330 (elf32_i860_relocate_section): Invoke new function from here.
2331
2332 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2333
2334 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
2335 static.
2336
2337 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2338
2339 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
2340 target section name instead of dumping core when the target symbol is
2341 undefined.
2342
2343 2000-09-09 Kazu Hirata <kazu@hxi.com>
2344
2345 * riscix.c: Remove DEFUN.
2346
2347 2000-09-08 Nick Clifton <nickc@redhat.com>
2348
2349 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
2350 initialise flags in output bfd if the input bfd is the default
2351 architecture with the default flags.
2352
2353 2000-09-08 Kazu Hirata <kazu@hxi.com>
2354
2355 * archive.c: Fix formatting.
2356 * coff-arm.c: Likewise.
2357 * doc/chew.c: Likewise.
2358
2359 2000-09-08 Alan Modra <alan@linuxcare.com.au>
2360
2361 * section.c (bfd_get_unique_section_name): Put a dot before the
2362 numeric suffix.
2363
2364 2000-09-07 Kazu Hirata <kazu@hxi.com>
2365
2366 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
2367 * elf.c: Fix formatting.
2368
2369 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
2370
2371 * config.bfd (sh-*-linux*): Added.
2372 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
2373 * targets.c: Declare them.
2374 * elf32-sh-lin.c: New file.
2375 * Makefile.am: Compile it.
2376 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
2377 * configure, Makefile.in: Rebuilt.
2378
2379 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
2380
2381 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
2382 pseduo-section when determining where the TOC ends.
2383
2384 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
2385 output x_tvndx as it is only two bytes wide.
2386
2387 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
2388 reloc is 26 or 32 bits wide.
2389
2390 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
2391 for relocs that don't change anything. Also look at the full
2392 6 bits of bitsize.
2393
2394 2000-09-06 Philip Blundell <philb@gnu.org>
2395
2396 * config.bfd (arm*-*-uclinux*): New target.
2397
2398 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2399
2400 * configure: Rebuilt with new libtool.m4.
2401
2402 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2403
2404 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
2405 word for variable name.
2406 * bfd-in2.h: Regenerate.
2407
2408 2000-09-05 Nick Clifton <nickc@redhat.com>
2409
2410 * config.in: Regenerate.
2411 * libbfd.h: Regenerate.
2412 * po/bfd.pot: Regenerate.
2413 * doc/bfdint.texi: Remove CVS date string - it foils compares with
2414 local versions.
2415
2416 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
2417
2418 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2419
2420 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2421
2422 Shared library and PIC support.
2423 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
2424 (GOT_ENTRY_SIZE): New.
2425 (ELF_DYNAMIC_INTERPRETER): New.
2426 (STUB_SUFFIX): Define.
2427 (LONG_BRANCH_PIC_IN_SHLIB): Define.
2428 (RELATIVE_DYNAMIC_RELOCS): Define.
2429 (enum elf32_hppa_stub_type): New.
2430 (struct elf32_hppa_stub_hash_entry): Rename offset to
2431 stub_offset. Add a number of new fields.
2432 (struct elf32_hppa_link_hash_entry): New.
2433 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
2434 global_value.
2435 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
2436 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
2437 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
2438 new fields.
2439 (hppa_link_hash_newfunc): New function.
2440 (elf32_hppa_link_hash_table_create): Use above function. Init new
2441 fields.
2442 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
2443 instead of addend, and remove sym_name from args. Don't use
2444 symbol name for local syms, instead use sym index.
2445 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
2446 stub type rather than size. Pass in hash and handle import stub
2447 case. Also pass in reloc instead of offset so we can calculate
2448 PCREL22F and PCREL12F branches properly.
2449 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
2450 import and export stubs too.
2451 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
2452 import and export stub sizing.
2453 (elf32_hppa_check_relocs): New function.
2454 (elf32_hppa_adjust_dynamic_symbol): New function.
2455 (hppa_discard_copies): New function.
2456 (elf32_hppa_size_dynamic_sections): New function.
2457 (elf_backend_size_dynamic_sections): Define.
2458 (elf32_hppa_finish_dynamic_symbol): New function.
2459 (elf_backend_finish_dynamic_symbol): Define.
2460 (elf32_hppa_size_stubs): Stash params in link hash table, and move
2461 some local vars into the link hash table too. For shared links,
2462 trundle over function syms, generating export stubs. Handle
2463 PCREL22F branches. Break out stub creation code from here..
2464 (hppa_add_stub): .. to here. New function.
2465 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
2466 call the bfd linker. Use elf_gp to record global pointer.
2467 Calculate a value from sections if $global$ is missing.
2468 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
2469 (elf32_hppa_gc_mark_hook): New function.
2470 (elf_backend_gc_mark_hook): Define.
2471 (elf32_hppa_gc_sweep_hook): New function.
2472 (elf_backend_gc_sweep_hook): Define.
2473 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
2474 Add rel to args, and remove howto, input_bfd, offset, addend,
2475 sym_name as we can recalculate these locally. Handle calls to
2476 dynamic objects, extra PIC relocs, PCREL22F branches. Change
2477 handling of undefined weak syms. Check that stubs are in range.
2478 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
2479 message on hitting a DPREL21L reloc that needs fixing. Subtract
2480 off PC for PCREL14F. Break out code that does a stub lookup from
2481 here..
2482 (hppa_get_stub_entry): ..to here. New function.
2483 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
2484 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
2485 relocs, etc. etc.
2486 (elf32_hppa_finish_dynamic_sections): New function.
2487 (elf_backend_finish_dynamic_sections): Define.
2488 (elf_backend_final_write_processing) Define.
2489 (hppa_handle_PIC_calls): New function.
2490 (elf32_hppa_build_stubs): Call it. Pass link_info to
2491 hppa_build_one_stub.
2492 (elf32_hppa_create_dynamic_sections): New function
2493 to create .plt and .got then set .plt flags correctly.
2494 (elf_backend_create_dynamic_sections): Define.
2495 (elf32_hppa_object_p): New function.
2496 (elf_backend_object_p): Define.
2497 (elf32_hppa_elf_get_symbol_type): New function.
2498 (elf_backend_get_symbol_type): Define.
2499 (elf_backend_can_gc_sections): Define.
2500 (elf_backend_want_got_plt): Define.
2501 (elf_backend_plt_alignment): Set to 2.
2502 (elf_backend_plt_readonly): Define.
2503 (elf_backend_want_plt_sym): Define.
2504 (elf_backend_got_header_size): Reserve one entry.
2505
2506 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
2507 (elf32_hppa_size_stubs): Pass in multi_subspace.
2508 (elf32_hppa_set_gp): Declare.
2509
2510 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
2511 (bfd_get_unique_section_name): New function.
2512 * bfd-in2.h: Regenerate.
2513
2514 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
2515 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
2516 comment.
2517
2518 From David Huggins-Daines <dhd@linuxcare.com>
2519 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
2520 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
2521 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
2522 been updated in finish_dynamic_symbol before modifying function
2523 symbol.
2524
2525 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
2526 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
2527 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
2528 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
2529 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
2530 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
2531 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
2532 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
2533
2534 From David Huggins-Daines <dhd@linuxcare.com>
2535 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
2536 style of local labels as well.
2537
2538 2000-09-03 Philip Blundell <philb@gnu.org>
2539
2540 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
2541 references to undefined symbols in debugging sections.
2542
2543 2000-09-02 H.J. Lu <hjl@gnu.org>
2544
2545 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2546 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
2547 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
2548 section.
2549
2550 2000-09-02 Jason Eckhardt <jle@cygnus.com>
2551
2552 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
2553 (elf32_i860_is_local_label_name): New function and prototype.
2554
2555 2000-09-02 Nick Clifton <nickc@redhat.com>
2556
2557 * configure.in: Increase version number to 2.10.91.
2558 * configure: Regenerate.
2559 * aclocal.m4: Regenerate.
2560 * config.in: Regenerate.
2561 * po/bfd.pot: Regenerate.
2562
2563 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2564
2565 * elf.c (_bfd_elf_make_section_from_shdr): Add
2566 .gnu.linkobce.wi. to the list of debug section names.
2567
2568 2000-09-02 Nick Clifton <nickc@redhat.com>
2569
2570 * dwarf2.c (find_debug_info): New function: Locate a section
2571 containing dwarf2 debug information.
2572 (bfd_dwarf2_find_nearest_line): Find all sections containing
2573 debug information and include them in the stash.
2574
2575 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2576
2577 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
2578 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
2579 (sh_reloc_map): Add new relocs.
2580 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
2581 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
2582 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
2583 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
2584 functions.
2585 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
2586 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2587 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
2588 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
2589 New array constants.
2590 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
2591 New variables.
2592 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2593 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
2594 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
2595 elf_sh_plt_reloc_offset): Define.
2596 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
2597 elf_sh_link_hash_table): New structs.
2598 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
2599 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
2600 relocation types.
2601 (elf_backend_create_dynamic_sections,
2602 bfd_elf32_bfd_link_hash_table_create,
2603 elf_backend_adjust_dynamic_symbol,
2604 elf_backend_size_dynamic_sections,
2605 elf_backend_finish_dynamic_symbol,
2606 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2607 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2608 elf_backend_got_header_size, elf_backend_plt_header_size):
2609 Define.
2610 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
2611 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
2612 New relocs.
2613 * bfd-in2.h, libbfd.h: Rebuilt.
2614
2615 2000-09-01 Alan Modra <alan@linuxcare.com.au>
2616
2617 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
2618 change.
2619
2620 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
2621
2622 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
2623 not initialized, set them to indicate the SH1 instruction set.
2624
2625 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2626
2627 * acinclude.m4: Include libtool and gettext macros from the
2628 top level.
2629 * aclocal.m4, configure: Rebuilt.
2630
2631 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
2632
2633 * elf.c: Eliminate references to __sparcv9 macro; replace with
2634 autoconf variables HAVE_PSINFO32_T etc.
2635 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
2636 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
2637 * config.in: Ditto.
2638 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
2639 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
2640 * aclocal.m4: Ditto.
2641 * configure: Regenerate.
2642
2643 2000-08-27 Alan Modra <alan@linuxcare.com.au>
2644
2645 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
2646 for any shared link, not just shared -Bsymbolic.
2647 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
2648 any shared link, and pass link info to it.
2649 (elf_i386_size_dynamic_sections): Update comment.
2650 (elf_i386_discard_copies): Modify to discard relocs for symbols
2651 that have been forced local.
2652 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
2653 that have been forced local.
2654
2655 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
2656
2657 * elflink.h (elf_link_add_object_symbols): Allow common
2658 symbols to have an alignment of 1 if explicitly requested, and
2659 not overridden by other definitions.
2660
2661 2000-08-22 Doug Kwan <dkwan@transmeta.com>
2662
2663 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
2664 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
2665
2666 2000-08-22 H.J. Lu <hjl@gnu.org>
2667
2668 * elf-bfd.h (elf_link_hash_table): Add runpath.
2669
2670 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
2671 * bfd-in2.h: Rebuilt.
2672
2673 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
2674 "runpath" field to NULL.
2675 (bfd_elf_get_runpath_list): New function.
2676
2677 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
2678 DT_RUNPATH entries.
2679
2680 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
2681
2682 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
2683 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
2684 explicitly. Improve validation of r_type.
2685
2686 2000-08-21 H.J. Lu <hjl@gnu.org>
2687
2688 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
2689 dynamic allocated content space. Add a comment to remind us that
2690 one day this ought to be fixed.
2691 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2692 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2693 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2694
2695 2000-08-21 Jason Eckhardt <jle@cygnus.com>
2696
2697 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
2698 field with the newly relocated value instead of adding it to the
2699 existing immediate field.
2700 (elf32_i860_relocate_splitn): Likewise.
2701 (elf32_i860_relocate_highadj): Likewise.
2702
2703 2000-08-16 Jason Eckhardt <jle@cygnus.com>
2704
2705 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
2706 was previously just a stub).
2707
2708 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
2709
2710 * elflink.c (_bfd_elf_create_got_section): Don't abort().
2711 Formatting fixes.
2712 (_bfd_elf_create_dynamic_sections): Likewise.
2713
2714 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
2715
2716 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
2717 for undefined symbols to be the beginning of the section.
2718
2719 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
2720 four extra entries at the beginning of the .rela.plt section.
2721 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
2722 section to account for the four reserved entries in the .plt section.
2723
2724 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
2725
2726 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
2727 to the list of NOPs we recognize after a branch-and-link.
2728 Use the ori NOP when one is needed.
2729
2730 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
2731 for large archives.
2732
2733 2000-08-14 Jim Wilson <wilson@cygnus.com>
2734
2735 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
2736 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
2737 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
2738 EF_IA_64_ABSOLUTE.
2739
2740 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
2741
2742 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2743
2744 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2745
2746 * elf32-i860.c (elf32_i860_relocate_section): New function.
2747 (i860_final_link_relocate): New function.
2748 (elf32_i860_relocate_splitn): New function.
2749 (elf32_i860_relocate_pc16): New function.
2750 (elf32_i860_relocate_highadj): New function.
2751 (elf32_i860_howto): Minor adjustments to some relocations.
2752 (elf_info_to_howto_rel): Define.
2753 (elf_backend_relocate_section): Define.
2754
2755 2000-08-10 Nick Clifton <nickc@cygnus.com>
2756
2757 * elf32-arm.h: Fix formatting.
2758
2759 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
2760
2761 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2762
2763 2000-08-08 Jason Eckhardt <jle@cygnus.com>
2764
2765 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2766
2767 2000-08-07 Kazu Hirata <kazu@hxi.com>
2768
2769 * ieee.c (ieee_write_debug_part): Rewrite a comment.
2770 * elf64-ia64.c: Fix a typo.
2771
2772 2000-08-05 Jason Eckhardt <jle@cygnus.com>
2773
2774 * elf32-i860.c (elf32_i860_howto_table): New structure.
2775 (lookup_howto): New function.
2776 (elf32_i860_reloc_type_lookup): New function.
2777 (elf32_i860_info_to_howto_rela): New function.
2778 (elf_code_to_howto_index): New structure.
2779 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
2780 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
2781 elf32_i860_reloc_type_lookup.
2782
2783 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
2784
2785 * som.c (struct fixup_format): Constify `format'.
2786 (som_hppa_howto_table): Use SOM_HOWTO macro.
2787 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
2788 (som_bfd_reloc_type_lookup): Likewise.
2789 (compare_subspaces): Remove unused `count1', `count2'.
2790 (som_begin_writing): Remove unused `total_reloc_size'.
2791 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
2792 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
2793 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
2794 (som_find_nearest_line): Decorate unused parameter(s).
2795 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
2796 (som_bfd_link_split_section): Likewise.
2797
2798 2000-08-03 Nick Clifton <nickc@cygnus.com>
2799
2800 * section.c: Restore backed out code.
2801 * elf.c: Restore backed out code.
2802 (copy_private_bfd_data): Fix bug preventing stipped dynamic
2803 binaries from working.
2804 * bfd-in2.h: Regenerate.
2805
2806 2000-08-03 H.J. Lu <hjl@gnu.org>
2807
2808 * section.c: Back out the change made by Nick Clifton
2809 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
2810 binaries.
2811 * bfd-in2.h: Likewise.
2812 * elf.c: Likewise.
2813
2814 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
2815
2816 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2817
2818 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2819
2820 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
2821 * bfd-in2.h, libbfd.h: Regenerate.
2822
2823 2000-07-31 Nick Clifton <nickc@cygnus.com>
2824
2825 * section.c (struct sec): Add new boolean field 'segment_mark'.
2826 (STD_SECTION): Initialise new field to zero.
2827
2828 * bfd-in2.h: Regenerate.
2829
2830 * elf.c (copy_private_bfd_data): Reorganise section to segment
2831 mapping to cope with moved sections requiring new segments,
2832 and overlapping segments.
2833 (SEGMENT_END): New macro: Return the end address of a segment.
2834 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
2835 contains a section by comparing their VMA addresses.
2836 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
2837 contains a section by comparing their LMA addresses.
2838 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
2839 section should be included in a segment.
2840 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
2841 follows another in memory.
2842 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
2843 segments overlap.
2844
2845 2000-07-22 Jason Eckhardt <jle@cygnus.com>
2846
2847 * cpu-i860.c: Added comments.
2848
2849 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
2850 bfd_elf32_i860_little_vec.
2851 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
2852 (ELF_MAXPAGESIZE): Changed to 4096.
2853
2854 * targets.c (bfd_elf32_i860_little_vec): Declaration of
2855 new target.
2856 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
2857
2858 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
2859 config for little endian elf32 i860.
2860 (targ_defvec): Define for the new config above
2861 as "bfd_elf32_i860_little_vec".
2862 (targ_selvecs): Define for the new config above
2863 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
2864
2865 * configure.in (bfd_elf32_i860_little_vec): Added recognition
2866 of new target vec.
2867
2868 * configure: Regenerated.
2869
2870 2000-07-27 H.J. Lu <hjl@gnu.org>
2871
2872 * elflink.h (elf_merge_symbol): Take one more argument,
2873 dt_needed, to indicate if the symbol comes from a DT_NEEDED
2874 entry. Don't overide the existing weak definition if dt_needed
2875 is true.
2876 (elf_link_add_object_symbols): Pass dt_needed to
2877 elf_merge_symbol ().
2878
2879 2000-07-27 Nick Clifton <nickc@cygnus.com>
2880
2881 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
2882 allocated contents.
2883
2884 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
2885
2886 * configure.host (*-*-aix*): AIX has 'long long' always.
2887
2888 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
2889 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
2890 (xcoff_write_archive_contents_big): Don't update the offset
2891 of the symbol table, xcoff_write_armap will do it.
2892
2893 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
2894
2895 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
2896 of dynobj for SGI_COMPAT checks.
2897
2898 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2899
2900 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
2901 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
2902 * bfd-in2.h: Regenerate.
2903
2904 2000-07-21 Nick Clifton <nickc@cygnus.com>
2905
2906 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
2907 range symbol indices in relocs and issue an error message.
2908
2909 2000-07-20 H.J. Lu <hjl@gnu.org>
2910
2911 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
2912 info->new_dtags when setting DT_FLAGS_1. It will only be set
2913 by the new linker options. It shouldn't break anything.
2914
2915 2000-07-20 H.J. Lu <hjl@gnu.org>
2916
2917 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
2918 only if info->new_dtags is true.
2919
2920 2000-07-20 H.J. Lu <hjl@gnu.org>
2921
2922 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
2923 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2924
2925 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2926
2927 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
2928 (ALL_MACHINES_CFILES): Add cpu-cris.c.
2929 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
2930 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
2931 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
2932 * Makefile.in: Rebuild.
2933 * aclocal.m4: Rebuild.
2934 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
2935 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
2936 (bfd_cris_arch): Declare.
2937 (bfd_archures_list): Add bfd_cris_arch.
2938 * bfd-in2.h: Rebuild.
2939 * config.bfd: (cris-*-*): New target.
2940 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
2941 * configure: Rebuild.
2942 * elf.c (prep_headers): Add bfd_arch_cris.
2943 * libbfd.h: Rebuild.
2944 * libaout.h (enum machine_type): Add M_CRIS.
2945 * reloc.c: Add CRIS relocations.
2946 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
2947 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
2948 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
2949 * po/POTFILES.in, po/bfd.pot: Regenerate.
2950
2951 2000-07-19 H.J. Lu <hjl@gnu.org>
2952
2953 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
2954 DF_TEXTREL if DT_TEXTREL is set.
2955 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2956 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2957 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2958 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
2959 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2960 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2961 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2962 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2963 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
2964 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2965
2966 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
2967 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
2968 DT_RPATH is set.
2969 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2970
2971 2000-07-19 H.J. Lu <hjl@gnu.org>
2972
2973 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
2974 * bfd-in2.h: Rebuild.
2975
2976 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
2977 (elf_dt_soname): New.
2978
2979 * elf.c (bfd_elf_set_dt_needed_soname): New.
2980
2981 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
2982 entry if the shared object loaded by DT_NEEDED is used to
2983 resolve the reference in a regular object.
2984
2985 2000-07-19 H.J. Lu <hjl@gnu.org>
2986
2987 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
2988 DT_DEPAUDIT and DT_AUDIT as strings.
2989
2990 2000-07-19 Nick Clifton <nickc@cygnus.com>
2991
2992 * format.c: Fix formatting.
2993
2994 2000-07-19 H.J. Lu <hjl@gnu.org>
2995
2996 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2997
2998 2000-07-19 H.J. Lu <hjl@gnu.org>
2999
3000 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3001 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3002 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3003 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3004 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3005 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3006 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3007
3008 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3009
3010 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3011 renamed functions from here...
3012 (assign_section_numbers): Use renamed functions.
3013 (prep_headers): Use renamed functions.
3014
3015 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3016 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3017 * bfd-in2.h: Regenerate.
3018
3019 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3020
3021 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3022 parenthesis in if statement.
3023
3024 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3025
3026 Enable the support for Traditional MIPS.
3027 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3028 return ict_none appropriately for traditional mips targets.
3029 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3030 (STUB_MOVE): Conditionalize for traditonal mips.
3031 (STUB_LI16): Likewise.
3032 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3033 room for RTPROC header.
3034 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3035 the permission for the PT_DYNAMIC as read, write and execute.
3036 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3037 for traditonal mips.
3038 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3039 _DYNAMIC_LINKING for traditonal mips.
3040 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3041 in case of traditonal mips.
3042 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3043 entry is required. For a function if PLT is not required then set the
3044 corresponding hash table entry to 0.
3045 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3046 traditonal mips.
3047 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3048 shared object set the value to 0.
3049 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3050 _DYNAMIC_LINKING for traditonal mips.
3051 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3052 for traditonal mips.
3053
3054 2000-07-15 H.J. Lu <hjl@gnu.org>
3055
3056 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3057
3058 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3059
3060 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3061 out a structure that is BFD_IN_MEMORY.
3062
3063 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3064
3065 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3066 bfd pointer. Print section id instead of bfd pointer for local
3067 syms. Prefix addend with `+' for global syms as well as local.
3068 Correct calculation of name component lengths.
3069 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3070
3071 From David Huggins-Daines <dhd@linuxcare.com>
3072 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3073 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3074 (elf64_hppa_modify_segment_map): Likewise.
3075
3076 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3077
3078 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3079 addresses to be "naturally" sign extended. Return -1 if unknown.
3080 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3081 * bfd-in2.h: Regenerate.
3082
3083 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3084
3085 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3086 and ECOF_SIGNED_64 to list ways to extract an offset.
3087 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3088 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3089 Update.
3090 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3091 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3092
3093 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3094
3095 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3096 bfd_get_start_address.
3097 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3098 (elf_swap_ehdr_out): Ditto.
3099
3100 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3101
3102 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3103 compatibility with older binutils.
3104
3105 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3106
3107 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3108 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3109
3110 From Ryan Bradetich <rbradetich@uswest.net>
3111 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3112 (parse_line_table): Ditto.
3113 (_bfd_dwarf1_find_nearest_line): Ditto.
3114 * syms.c (cmpindexentry): Remove extra `*' from params.
3115
3116 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3117
3118 * elf32-mips.c (sort_dynamic_relocs): New Function.
3119 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
3120 via qsort to sort the dynamic relocations in increasing r_symndx
3121 value.
3122
3123 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3124
3125 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
3126 ATTRIBUTE_UNUSED to unused args.
3127 (get_opd): Likewise.
3128 (get_plt): Likewise.
3129 (get_dlt): Likewise.
3130 (get_stub): Likewise.
3131 (elf64_hppa_adjust_dynamic_symbol): Likewise.
3132 (elf64_hppa_link_output_symbol_hook): Likewise.
3133 (elf64_hppa_check_relocs): Delete unused var.
3134 (elf64_hppa_size_dynamic_sections): Likewise.
3135 (elf64_hppa_finalize_opd): Likewise.
3136 (elf64_hppa_finalize_dynreloc): Likewise.
3137 (elf64_hppa_modify_segment_map): Likewise.
3138 (elf64_hppa_finish_dynamic_sections): Likewise.
3139
3140 * elf-hppa.h (elf_hppa_final_write_processing): Add
3141 ATTRIBUTE_UNUSED to unused args.
3142 (elf_hppa_final_link_relocate): Likewise.
3143 (elf_hppa_record_segment_addrs): Add paretheses.
3144 (elf_hppa_relocate_section): Constify dyn_name.
3145
3146 From David Huggins-Daines <dhd@linuxcare.com>
3147 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
3148 rearrange case statement so that it gets preferred to 32-bit ones.
3149
3150 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
3151 asection->id instead of address of asection structure.
3152 (elf32_hppa_size_stubs): Likewise.
3153
3154 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
3155 for .init* and .fini*.
3156
3157 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
3158 and addends used in stub names to 32 bits.
3159 (elf32_hppa_size_stubs): Likewise.
3160
3161 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
3162 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
3163 not bfd_put_64. Fix minor comment typo and formatting.
3164
3165 Changes to create multiple linker stubs, positioned immediately
3166 before the section where they are required.
3167 * elf32-hppa.c: Don't include hppa_stubs.h.
3168 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
3169 (elf32_hppa_stub_hash_table): Delete.
3170 (elf32_hppa_link_hash_entry): Delete.
3171 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
3172 stub_hash_table, and store the struct here rather than a pointer.
3173 Delete output_symbol_count. Add offset array. Change
3174 global_value to a bfd_vma.
3175 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
3176 (elf32_hppa_stub_hash_traverse): Delete.
3177 (elf32_hppa_name_of_stub): Delete.
3178 (elf32_hppa_link_hash_lookup): Delete.
3179 (elf32_hppa_link_hash_traverse): Delete.
3180 (elf32_hppa_stub_hash_table_init): Delete.
3181 (elf32_hppa_size_of_stub): Pass input section and offset rather
3182 than location and calculate location here. Don't pass name as all
3183 stubs are now the same size.
3184 (elf32_hppa_stub_hash_newfunc): Init new fields.
3185 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
3186 too.
3187 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
3188 comparing against ints. Rewrite stub handling code.
3189 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
3190 Case enums to int before comparing against ints. Remove
3191 bfd_reloc_dangerous case.
3192 (elf32_hppa_build_one_stub): Rewrite.
3193 (elf32_hppa_size_one_stub): New function.
3194 (elf32_hppa_build_stubs): Rewrite.
3195 (elf32_hppa_size_stubs): Pass in linker call-back functions.
3196 Rewrite stub-handling specific code.
3197
3198 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
3199
3200 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
3201
3202 * hppa_stubs.h: Delete.
3203 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
3204 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
3205 * Makefile.in: Regenerate.
3206
3207 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
3208 e_nlrsel.
3209
3210 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
3211
3212 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
3213 and section name for bfd_reloc_notsupported error message.
3214 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
3215 bfd_reloc_notsupported.
3216 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
3217
3218 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
3219 undefined weak symbols for all relocs.
3220 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
3221 offsets are relative to one past the delay slot.
3222 (elf32_hppa_size_stubs): Account for reloc addend when calculating
3223 branch destination. Put addend into stub name too.
3224 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
3225 adjust by 8 when deciding whether a linker stub is needed. Put
3226 addend into stub name as for above.
3227
3228 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
3229 various args and vars.
3230 (elf32_hppa_bfd_final_link_relocate): Here too.
3231 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
3232 inner block var to avoid shadowing.
3233
3234 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
3235 unsigned.
3236 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
3237 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
3238 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
3239
3240 * libhppa.h: Change practically all unsigned ints to plain ints.
3241 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
3242 prototypes.
3243
3244 From Ryan Bradetich <rbradetich@uswest.net>
3245 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
3246 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
3247 suit above.
3248 From David Huggins-Daines <dhd@linuxcare.com>
3249 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
3250 to the new OP_* ones.
3251
3252 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
3253 error exit. Bail out earlier on plabel relocs that we aren't
3254 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
3255 string, and then don't free our copy.
3256 (elf32_hppa_build_one_stub): Make insn unsigned int.
3257
3258 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
3259 available with BL, not BE and BLE.
3260
3261 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
3262 code for elf arg relocs.
3263 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
3264 argument with elf_link_hash_entry h. Handle undefined weak
3265 symbols. Move $global$ lookup from here...
3266 (elf32_hppa_relocate_section): ...to here. Return correct error
3267 message for non-handled relocs.
3268 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
3269 wrong test was -0x3ffff to +0x40000.
3270
3271 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
3272 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
3273 Handle them as such.
3274 (elf_hppa_relocate_insn): Fix a typo.
3275
3276 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
3277 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
3278 assemble_17, assemble_21): Delete.
3279 Supply defines for all 64 possible opcodes.
3280 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
3281 formats. Handle COMICLR.
3282 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
3283 -10, -16, 16, 22.
3284
3285 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
3286 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
3287 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
3288 to suit.
3289 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
3290 the local syms - did this code get deleted accidentally? Ignore
3291 undefined and undefweak syms.
3292
3293 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
3294 block. Use it instead of elf64_hppa_hash_table (info).
3295 (elf_hppa_final_link_relocate): Use hppa_info instead of
3296 elf64_hppa_hash_table (info).
3297
3298 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3299 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3300 (hppa_rebuild_insn): Mask immediate bits here instead.
3301 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3302
3303 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3304
3305 * section.c (struct sec): Add id field. Tidy comment formatting.
3306 (bfd_make_section_anyway): Set id.
3307 (STD_SECTION): Init id too.
3308 Change CONST to const throughout.
3309 * archures.c (bfd_arch_info): Tidy comment.
3310 (bfd_arch_list): Change a CONST to const.
3311 * libbfd-in.h: Tidy comments and replace CONST with const.
3312 * elf-bfd.h: Likewise.
3313 * libbfd.h: Regenerate.
3314 * bfd-in2.h: Regenerate.
3315 * libcoff.h: Regenerate.
3316
3317 2000-07-07 DJ Delorie <dj@redhat.com>
3318
3319 * archive.c (_bfd_write_archive_contents): Add an informative
3320 comment.
3321
3322 2000-07-06 Kazu Hirata <kazu@hxi.com>
3323
3324 * srec.c: Fix formatting.
3325
3326 2000-06-05 DJ Delorie <dj@redhat.com>
3327
3328 * MAINTAINERS: new
3329
3330 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
3331
3332 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
3333 value of PC-relative offsets.
3334
3335 2000-07-03 Jim Wilson <wilson@cygnus.com>
3336
3337 * elf64-alpha.c (alpha_elf_size_info): New.
3338 (elf_backend_size_info): Define to alpha_elf_size_info.
3339 * elfcode.h (elf_size_info): Change hash bucket size to 4.
3340
3341 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
3342
3343 * elf32-mips.c: Include elf32-target.h again for the traditional
3344 MIPS targets.
3345
3346 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
3347
3348 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
3349 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
3350 (avr_info_to_howto_rela): Likewise.
3351 (elf32_avr_gc_mark_hook): Likewise.
3352 (elf32_avr_gc_sweep_hook): Likewise.
3353 (elf32_avr_relocate_section): Likewise.
3354
3355 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
3356
3357 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
3358 an external symbol for a non-shared, non-relocatable link.
3359
3360 2000-07-03 Nick Clifton <nickc@redhat.com>
3361
3362 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
3363 is an external symbol.
3364 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
3365 external symbol.
3366
3367 2000-07-03 Kazu Hirata <kazu@hxi.com>
3368
3369 * reloc16.c: Fix formatting.
3370
3371 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3372
3373 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
3374 to add a new target for traditional mips i.e
3375 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
3376 * configure.in: Likewise.
3377 * configure: Rebuild.
3378 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
3379 bfd_target_vector.
3380 (bfd_elf32_tradlittlemips_vec): Likewise.
3381 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
3382 to see that elfNN_bed does not get redefined even if the target file
3383 is included twice for a chip. See elf32-mips.c.
3384
3385 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3386
3387 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3388 (CLEANFILES): Add DEPA.
3389 * Makefile.in: Regenerate.
3390
3391 2000-06-30 DJ Delorie <dj@cygnus.com>
3392
3393 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
3394 can't assume the PE header is at 0x80.
3395
3396 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
3397
3398 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
3399
3400 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
3401
3402 * go32stub.h: Update stub.
3403
3404 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3405
3406 * archures.c (bfd_mach_avr5): Define.
3407 * bfd-in2.h (bfd_mach_avr5): Define.
3408 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
3409 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
3410 (compatible): Update comment. Add missing test.
3411 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
3412 for avr2 and avr4. Simplify 8K wrap code.
3413 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
3414 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
3415
3416 2000-06-26 Kazu Hirata <kazu@hxi.com>
3417
3418 * coff-h8300.c: Fix formatting.
3419 * cpu-h8300.c: Likewise.
3420
3421 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
3422
3423 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
3424 for local symbols whose names are unknown.
3425
3426 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3427
3428 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3429 find one.
3430 * Makefile.in: Regenerate.
3431 * doc/Makefile.in: Regenerate.
3432
3433 2000-06-20 H.J. Lu <hjl@gnu.org>
3434
3435 * Makefile.am: Rebuild dependency.
3436 * Makefile.in: Rebuild.
3437
3438 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3439
3440 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
3441 (elf_backend_copy_indirect_symbol): Map to the new function.
3442
3443 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3444
3445 * archive.c (normalize): Correct pointer comparison when checking
3446 for backslashes.
3447 (bfd_bsd_truncate_arname): Likewise.
3448 (bfd_gnu_truncate_arname): Likewise.
3449
3450 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
3451
3452 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
3453 sections elf_{text,data}_{section,symbol}.
3454 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
3455 (_bfd_mips_elf_hide_symbol): New function.
3456 (elf_backend_hide_symbol): Map to the new function.
3457 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
3458 definitions of mips_elf_{text,data}_{section,symbol}.
3459 (mips_elf_local_relocation_p): Try to find the direct symbol
3460 based on new check_forced argument.
3461 (mips_elf_calculate_relocation): Use new version of
3462 mips_elf_local_relocation_p.
3463 (mips_elf_relocate_section): Likewise.
3464 (_bfd_mips_elf_relocate_section): Likewise.
3465 (mips_elf_sort_hash_table): Only assert that have enough GOT
3466 space.
3467 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
3468 entry if the relocation based on the new external argument.
3469 (mips_elf_create_dynamic_relocation): Assert that we have a
3470 section contents allocated where we can swap out the dynamic
3471 relocations.
3472 (mips_elf_calculate_relocation): Find the real hash-table entry
3473 correctly by using h->root.root.type. Only create a dynamic
3474 relocation entry if the symbol is defined in a shared library.
3475 Create an external GOT entry for the GOT16 relocation if the
3476 symbol was forced local.
3477 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
3478 dynamic index if the symbol was forced local.
3479
3480 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3481
3482 * elf32-mips.c: Fix typos in comments.
3483
3484 2000-06-19 Mark Kettenis <kettenis@gnu.org>
3485
3486 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
3487 CORE_VERSION_1.
3488
3489 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3490
3491 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
3492 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
3493 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
3494 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
3495 (bfd_elf32_m68hc11_vec): Likewise.
3496 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
3497 Supports 68hc11 & 68hc12 at the same time.
3498 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
3499 bfd_target_vector.
3500 (bfd_elf32_m68hc11_vec): Likewise.
3501 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
3502 * archures.c (bfd_m68hc12_arch): Define and register in global list
3503 (bfd_m68hc11_arch): Likewise.
3504 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
3505 BFD_RELOC_M68HC11_3B): Define.
3506 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
3507 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
3508
3509 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
3510
3511 * elf_bfd.h (struct elf_backend_data): Add info argument to
3512 elf_backend_hide_symbol.
3513 (_bfd_elf_link_hash_hide_symbol): Likewise.
3514 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
3515 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
3516 * elflink.h (elf_link_add_object_symbols): Likewise.
3517 (elf_link_assign_sym_version): Likewise.
3518
3519 2000-06-18 H.J. Lu <hjl@gnu.org>
3520
3521 * coff-i386.c (coff_i386_reloc): Don't return in case of
3522 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
3523 Compensate PE relocations when linking with non-PE object
3524 files to generate a non-PE executable.
3525
3526 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
3527
3528 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
3529 GOT entries if we're doing a static link or -Bsymbolic link.
3530
3531 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
3532
3533 * elflink.h (elf_link_adjust_relocs): Check for and call backend
3534 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
3535 available.
3536 (elf_link_output_relocs): Likewise.
3537 (elf_reloc_link_order): Likewise.
3538
3539 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3540
3541 * archures.c (enum bfd_architecture): #define constants for
3542 PowerPc and RS6000 machine numbers.
3543 * bfd-in2.h: Regenerate.
3544 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
3545 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
3546 and RS6000 machine numbers using #defined constants from
3547 archures.c.
3548 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
3549 machine numbers using #defined constants from archures.c. Add
3550 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
3551 64-bit words in 620 entry.
3552 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
3553 RSC, and RS2.
3554 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
3555
3556 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
3557
3558 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
3559 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
3560 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
3561
3562 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3563
3564 * bfd-in.h (bfd_family_coff): Define.
3565 * bfd-in2.h: Regenerate.
3566 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
3567 coff_find_nearest_line): Check COFFness using bfd_family_coff()
3568 instead of bfd_target_coff_flavour.
3569 * cofflink.c (_bfd_coff_final_link): Likewise.
3570 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
3571 exclude XCOFF files.
3572 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
3573 Likewise.
3574 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
3575 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
3576 * xcofflink.c (XCOFF_XVECP): Delete.
3577 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
3578 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
3579 bfd_xcoff_record_link_assignment,
3580 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
3581 check for bfd_target_xcoff_flavour.
3582
3583 2000-06-16 Nicholas Duffek <nsd@redhat.com>
3584
3585 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
3586 files on AIX 4.3.
3587 (read_hdr): New function.
3588 (rs6000coff_core_p): Store mstsave or __context64 struct instead
3589 of trying to extract individual registers. Set abfd->arch_info
3590 to match the architecture that created the core file.
3591 (rs6000coff_get_section_contents): Delete.
3592 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
3593
3594 2000-06-14 H.J. Lu <hjl@gnu.org>
3595
3596 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
3597 is NULL.
3598
3599 2000-06-13 H.J. Lu <hjl@gnu.org>
3600
3601 * configure: Regenerate.
3602
3603 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
3604
3605 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
3606 armpei_little_vec.
3607
3608 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3609
3610 * configure.in (VERSION): Update to show this is the CVS mainline.
3611
3612 2000-06-07 Alan Modra <alan@linuxcare.com.au>
3613
3614 * elf32-d10v.c: Include elf/d10v.h
3615 (enum reloc_type): Delete.
3616 * elf32-d30v.c: Include elf/d30v.h
3617 (enum reloc_type): Delete.
3618
3619 * Makefile.am: Run "make dep-am" to regenerate dependencies.
3620 * Makefile.in: Regenerate.
3621
3622 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
3623 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
3624 move HOWTOs into elf_howto_table.
3625 (R_386_standard, R_386_ext_offset): Define.
3626 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
3627 (elf_i386_reloc_type_lookup): Modify calculation of index into
3628 elf_howto_table since we've removed the padding.
3629 (elf_i386_info_to_howto_rel): Likewise.
3630 (elf_i386_relocate_section): Likewise.
3631
3632 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
3633
3634 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
3635
3636 2000-06-05 H.J. Lu <hjl@gnu.org>
3637
3638 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
3639 an error when seeing an undefined symbol with hidden/internal
3640 attribute. It is handled in *_relocate_section ().
3641
3642 2000-06-05 H.J. Lu <hjl@gnu.org>
3643
3644 * elflink.h (elf_fix_symbol_flags): Follow the link for the
3645 indirect symbol for the ELF_LINK_NON_ELF bit.
3646 (elf_link_output_extsym): Don't output the indirect symbol even
3647 if the ELF_LINK_NON_ELF bit is set.
3648
3649 2000-06-01 J.T. Conklin <jtc@redback.com>
3650
3651 * config.bfd (i[3456]86-*-netbsdelf*): New target.
3652 (i[3456]86-*-netbsdaout*): New target.
3653 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
3654 (i[3456]86-*-openbsd*): Likewise.
3655
3656 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
3657
3658 * trad-core.c: From hpux-core.c, include <dirent.h> or
3659 <sys/ndir.h> when possible.
3660
3661 2000-05-31 Ulrich Drepper <drepper@redhat.com>
3662
3663 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
3664 definitions. We must not assume they are sorted in the file
3665 according to their index numbers.
3666
3667 2000-05-31 Alan Modra <alan@linuxcare.com.au>
3668
3669 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
3670 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
3671 R_PARISC_DIR17F are for absolute branches; Handle them as such.
3672
3673 2000-05-30 Nick Clifton <nickc@cygnus.com>
3674
3675 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
3676 80960CA, 80960MC as valid machine names.
3677
3678 2000-05-30 H.J. Lu <hjl@gnu.org>
3679
3680 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
3681 visibility bits if the symbol is undefined. Correctly handle
3682 weak undefined symbols with hidden and internal attributes.
3683
3684 * elflink.h (elf_link_add_object_symbols): Always turn the
3685 symbol into local if it has the hidden or internal attribute.
3686
3687 2000-05-29 Philip Blundell <philb@gnu.org>
3688
3689 * ppcboot.c: Add packed attribute if compiling with GCC.
3690
3691 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
3692
3693 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
3694
3695 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
3696
3697 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
3698 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
3699 corefile on a 64-bit (Sparc Solaris) host. Also clean up
3700 a few old comments.
3701
3702 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3703
3704 * Makefile.am: Update dependencies with "make dep-am"
3705 * Makefile.in: Regenerate.
3706
3707 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
3708 bindtextdomain): Replace defines with those from intl/libgettext.h
3709 to quieten gcc warnings.
3710
3711 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3712
3713 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
3714
3715 * archive.c (normalize, bfd_bsd_truncate_arname,
3716 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
3717 file names with backslashes.
3718
3719 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
3720 before opening it.
3721
3722 * sysdep.h: Include filenames.h.
3723
3724 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3725
3726 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
3727
3728 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3729
3730 * elf64-sparc.c (sparc64_elf_relax_section): New.
3731 (sparc64_elf_relocate_section): Optimize tail call into branch always
3732 if possible.
3733 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3734 (elf32_sparc_relax_section): New.
3735
3736 2000-05-26 Jakub Jelinek <jakub@redhat.com>
3737
3738 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
3739 Remove unusued variables.
3740 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
3741 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
3742 previous fix, so that shared libs really don't influence targets
3743 extension mask and memory model.
3744
3745 2000-05-23 H.J. Lu <hjl@gnu.org>
3746
3747 * elf64-alpha.c (elf64_alpha_relocate_section): Check
3748 h->root.other not h->other.
3749 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3750
3751 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
3752
3753 2000-05-23 H.J. Lu <hjl@gnu.org>
3754
3755 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
3756 undefined symbol with the non-default visibility attributes.
3757 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
3758 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
3759 * elf32-i370.c (i370_elf_relocate_section): Likewise.
3760 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3761 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
3762 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
3763 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3764 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3765 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3766 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
3767 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3768
3769 2000-05-22 Richard Henderson <rth@cygnus.com>
3770
3771 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
3772 PCREL22, PCREL64I. Zero size of special relocs.
3773 (elf64_ia64_reloc_type_lookup): Likewise.
3774 (USE_BRL, oor_brl, oor_ip): New.
3775 (elf64_ia64_relax_section): New.
3776 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
3777 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
3778 (elf64_ia64_relocate_section): Likewise.
3779 (bfd_elf64_bfd_relax_section): New.
3780 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
3781 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
3782 * bfd-in2.h, libbfd.h: Regenerate.
3783
3784 2000-05-22 Nick Clifton <nickc@cygnus.com>
3785
3786 * configure.in : Add peigen.lo to MIPS PE targets.
3787 * configure: Regenerate.
3788
3789 2000-05-22 Momchil Velikov <velco@fadata.bg>
3790
3791 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
3792 only if it is known for both input and output bfds. Separate
3793 error message strings as in some languages, it may be necessary
3794 to change more than one place in the string to change between
3795 'big' and 'little'.
3796
3797 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
3798 endianess checks, call _bfd_generic_verify_endian_match() instead.
3799
3800 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
3801
3802 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
3803
3804 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
3805 endianess before checking bfd flavours.
3806
3807 2000-05-22 H.J. Lu <hjl@gnu.org>
3808
3809 * elflink.h (elf_link_output_extsym): Clear the visibility
3810 field for symbols not defined locally.
3811
3812 2000-05-18 Alan Modra <alan@linuxcare.com.au>
3813
3814 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
3815 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
3816 (hppa_rebuild_insn): Mask immediate bits here instead.
3817 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
3818
3819 2000-05-18 Momchil Velikov <velco@fadata.bg>
3820
3821 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
3822 relocs for an executable, ensure that they are virtual addresses.
3823
3824 2000-05-18 Jeffrey A Law (law@cygnus.com)
3825
3826 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
3827
3828 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3829 Rick Gorton <gorton@scrugs.lkg.dec.com>
3830
3831 * elflink.h: Add emitrelocations support: when enabled, relocation
3832 information and relocation sections are put into final output
3833 executables. If the emitrelocations flag is set, do the following:
3834 (elf_bfd_final_link): Emit relocation sections.
3835 (elf_link_input_bfd): Compute relocation section contents.
3836 (elf_gc_sections): Don't clean relocation sections.
3837
3838 2000-05-16 Catherine Moore <clm@cygnus.com>
3839
3840 * som.c (som_decode_symclass): Recognize weak symbols.
3841
3842 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
3843
3844 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
3845 read idata section only from dataoff.
3846 (pe_print_edata): Correctly check for valid eat_member.
3847
3848 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
3849
3850 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3851
3852 2000-05-14 Philip Blundell <philb@gnu.org>
3853
3854 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
3855
3856 2000-05-12 Alan Modra <alan@linuxcare.com.au>
3857
3858 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
3859
3860 * peigen.c (pe_print_idata): Look for .idata section and print
3861 info even if data directory has zero entries. Read idata section
3862 starting from dataoff, and adjust all data offsets to suit. Cast
3863 all bfd_vma vars to unsigned long before passing to fprintf.
3864 * peigen.c (pe_print_edata): Similarly, look for .edata section
3865 and print info even if data directory has zero entries. Cast
3866 all bfd_vma vars to unsigned long before passing to fprintf.
3867
3868 From Szabolcs Szakacsits <szaka@F-Secure.com>
3869 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
3870 directory size which may be bogus.
3871 * peigen.c (pe_print_edata): Similarly.
3872
3873 2000-05-09 Alan Modra <alan@linuxcare.com.au>
3874
3875 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
3876 section is empty.
3877 (copy_private_bfd_data): Allow for space possibly taken up by elf
3878 headers when calculating segment physical address from lma.
3879
3880 2000-05-08 Alan Modra <alan@linuxcare.com.au>
3881
3882 * versados.c (versados_scan): Init stringlen and pass_2_done.
3883
3884 * trad-core.c (trad_unix_core_file_p): Return
3885 bfd_error_wrong_format rather than bfd_error_file_truncated.
3886
3887 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
3888 add_data_entry. DataDirectory virtual address is relative.
3889 (pe_print_idata): Account for relative DataDirectory virtual
3890 addresses. Don't trash datasize inside POWERPC_LE_PE code.
3891 (pe_print_edata): Similarly.
3892
3893 From Szabolcs Szakacsits <szaka@F-Secure.com>
3894 * peigen.c (dir_names): Add Delay Import Directory.
3895 (pe_print_idata): Always search for bfd section containing
3896 idata address rather than looking up section name. Print this
3897 section name rather than .idata.
3898 (pe_print_edata): Similarly. Also print some fields as %08lx.
3899 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
3900 Win32Version.
3901
3902 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3903
3904 * xcoff.h: Rename to xcoff-target.h
3905 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
3906 * coff-rs6000.c: Ditto.
3907 * coff64-rs6000.c: Ditto.
3908 * coff-pmac.c: Ditto.
3909 * Makefile.in: Regenerate.
3910
3911 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
3912
3913 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
3914 Change U802TOC64MAGIC to U803XTOCMAGIC.
3915
3916 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
3917
3918 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
3919 * bfd-in.h: Prototype bfd_elf_get_arch_size.
3920 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
3921
3922 2000-05-04 Alan Modra <alan@linuxcare.com.au>
3923
3924 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
3925
3926 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3927
3928 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
3929 hidden and internal symbols.
3930 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
3931 visibility.
3932 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
3933 assign a PLT or GOT entry to symbols with hidden and
3934 internal visibility.
3935
3936 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
3937
3938 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
3939 the .bss section.
3940 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3941
3942 2000-05-02 H.J. Lu <hjl@gnu.org>
3943
3944 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
3945 ELFOSABI_SYSV.
3946
3947 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3948
3949 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
3950 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
3951 dependencies.
3952 * Makefile.in: Regenerate.
3953
3954 2000-05-01 Jim Wilson <wilson@cygnus.com>
3955
3956 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
3957 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
3958 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
3959 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
3960 * Makefile.in: Rebuild.
3961
3962 2000-05-02 Alan Modra <alan@linuxcare.com.au>
3963
3964 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
3965 doesn't work very well.
3966
3967 * elf-hppa.h (elf_hppa_internal_shdr): Define.
3968 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
3969 Set hdr->s_type to 1 if ARCH_SIZE == 32.
3970 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
3971 (elf_hppa_info_to_howto): Likewise.
3972 (elf_hppa_info_to_howto_rel): Likewise.
3973 (elf_hppa_reloc_type_lookup): Likewise.
3974 (elf_hppa_is_local_label_name): Likewise.
3975 (elf_hppa_fake_sections): Likewise.
3976 (elf_hppa_final_write_processing): Likewise.
3977 (elf_hppa_howto_table): Fully initialise all entries.
3978 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
3979 (elf_hppa_info_to_howto): Likewise.
3980 (elf_hppa_info_to_howto_rel): Likewise.
3981 (elf_hppa_reloc_type_lookup): Likewise.
3982 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
3983 elf_hppa_unmark_useless_dynamic_symbols,
3984 elf_hppa_remark_useless_dynamic_symbols,
3985 elf_hppa_record_segment_addrs, elf_hppa_final_link,
3986 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
3987 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
3988 elf32-hppa.c mess is cleaned up.
3989 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
3990 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
3991 r_field then call hppa_field_adjust inline func with variable
3992 r_field arg, instead call hppa_field_adjust with fixed arg.
3993 In case R_PARISC_PCREL22F, don't set r_field.
3994 (elf_hppa_relocate_insn): Change args and return type to unsigned
3995 int. Call re_assemble_* funcs to do the work.
3996
3997 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
3998 sign extending.
3999
4000 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4001 extending.
4002 (sign_extend): Mask first before sign extending.
4003 (low_sign_extend): Rewrite without condition expression.
4004 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4005 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4006 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4007 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4008 result as function return value rather than through pointer arg.
4009 Accept unsigned int args, and return unsigned int.
4010 (re_assemble_3): New. Combines function of dis_assemble_3 with
4011 re-assembly of opcode and immediate.
4012 (re_assemble_12): Likewise.
4013 (re_assemble_16): Likewise.
4014 (re_assemble_17): Likewise.
4015 (re_assemble_21): Likewise.
4016 (re_assemble_22): Likewise.
4017 (hppa_field_adjust): Rewrite and document, paying attention to
4018 size of types and signed/unsigned issues.
4019 (get_opcode): Shift before masking.
4020 (FDLW): Rename to FLDW.
4021 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4022 (hppa_rebuild_insn): Change args and return value to unsigned
4023 int. Make use of re_assemble_*. Correct case 11.
4024
4025 * dep-in.sed: Handle ../opcodes/.
4026 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4027 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4028 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4029 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4030 elfarm-nabi.lo dependencies outside of auto-dependency area.
4031 Regenerate dependencies.
4032 * Makefile.in: Regenerate.
4033
4034 * configure.in (TRAD_HEADER): Test non-null before
4035 AC_DEFINE_UNQUOTED.
4036 * configure: Regenerate.
4037
4038 * reloc.c: Fix mis-spelling in comment.
4039
4040 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4041
4042 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4043 * vms.c (vms_openr_next_archived_file): Return NULL.
4044
4045 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4046
4047 * coffcode.h Copy changes mistakenly done to libcoff.h in
4048 4/24/2000 patch.
4049
4050 2000-04-29 Andreas Jaeger <aj@suse.de>
4051
4052 * libbfd-in.h: Correctly check GCC version.
4053 * bfd-in.h: Likewise.
4054 * libhppa.h: Likewise.
4055 * libbfd.h: Regenerate.
4056 * bfd-in2.h: Regenerate.
4057
4058 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4059
4060 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4061 coffdu-rs6000.{lo,c}.
4062 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4063 on xcoff.h
4064 * Makefile.in: Regenerate.
4065 * xcoff.h: New file.
4066 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4067 * coff-rs6000.c: Move all declarations and defines that are
4068 common to the xcoff backends into xcoff.h
4069 * coff64-rs6000.c: Ditto,
4070
4071 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4072
4073 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4074 _bfd_coff_force_symnames in strings and
4075 _bfd_coff_debug_string_prefix_length to their default values.
4076 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4077
4078 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4079
4080 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4081 _bfd_coff_force_symnames in strings and
4082 _bfd_coff_debug_string_prefix_length to their default values.
4083
4084 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4085
4086 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4087 Check local_got_refcounts before dereferencing.
4088
4089 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4090 before deciding we don't need R_PPC_PLT32 relocation.
4091 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4092 dereferencing.
4093
4094 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4095
4096 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4097 .plt entries.
4098 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4099 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4100 (elf_i386_relocate_section): Allow for .plt to go missing.
4101 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4102 can use a relative reloc for got as elf_i386_relocate_section.
4103 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4104
4105 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4106
4107 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4108
4109 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4110
4111 * Makefile.am (coff64-rs6000.lo): New rule.
4112 * Makefile.in: Regenerate.
4113 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4114 xcoff_is_local_label_name, xcoff_rtype2howto,
4115 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4116 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4117 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
4118 (NO_COFF_SYMBOLS): Define.
4119 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
4120 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
4121 internally.
4122 (MINUS_ONE): New macro.
4123 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
4124 relocation.
4125 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
4126 coff_SWAP_aux_out): Map to the new functions.
4127 * coff64-rs6000.c: New file.
4128 * libcoff.h (bfd_coff_backend_data): Add new fields
4129 _bfd_coff_force_symnames_in_strings and
4130 _bfd_coff_debug_string_prefix_length.
4131 (bfd_coff_force_symnames_in_strings,
4132 bfd_coff_debug_string_prefix_length): New macros for above fields.
4133 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
4134 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
4135 of using coff_swap_sym_in directly.
4136 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
4137 (coff_set_flags) Set magic for XCOFF64.
4138 (coff_compute_section_file_positions): Add symbol name length to
4139 string section length if bfd_coff_debug_string_prefix_length is
4140 true.
4141 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
4142 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
4143 using coff_swap_lineno_in directly.
4144 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
4145 and _bfd_coff_debug_string_prefix_length fields.
4146 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
4147 symbol names into strings table when
4148 bfd_coff_force_symnames_in_strings is true.
4149 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
4150 SET_RELOC_VADDR): New macros.
4151 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
4152 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
4153 code.
4154 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
4155 changes within RS6000COFF_C specific code.
4156 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
4157 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
4158 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4159 Extend existing hack on target name.
4160 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
4161 target name.
4162 * coff-tic54x.c (ticof): Keep up to date with new fields
4163 in bfd_coff_backend_data.
4164 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
4165 targ_selvecs to include rs6000coff64_vec for rs6000.
4166 * configure.in: Add rs6000coff64_vec case.
4167 * cpu-powerpc.c: New bfd_arch_info_type.
4168
4169 2000-04-24 Jeffrey A Law (law@cygnus.com)
4170
4171 * config.bfd: Only disable elf32-hppa vectors, not all of the
4172 BSD and OSF configuration support. Provide (disabled) clauses
4173 for PA64 support.
4174 * configure.in: Add clause for PA64 support.
4175 * configure: Rebuilt.
4176
4177 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
4178 (bfd_elf64_hppa_vec): Declare.
4179
4180 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
4181 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
4182 (elf64-hppa.lo): Add dependencies.
4183 * Makefile.in: Rebuilt.
4184
4185 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
4186
4187 2000-04-24 Jason Eckhardt <jle@cygnus.com>
4188
4189 * libhppa.h (dis_assemble_16): New function.
4190 (pa_arch): Added pa20w element.
4191
4192 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
4193
4194 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
4195 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
4196 bfd_elf64_slurp_reloc_table.
4197
4198 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
4199 definitions to get external names.
4200 (elf_write_relocs): Renamed from write_relocs and make global.
4201 (elf_slurp_reloc_table): Make global.
4202 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
4203
4204 * archive.c (hpux_uid_gid_encode): New function.
4205 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
4206 defined and the ID is greater than 99999.
4207 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
4208 special uid/gid fields into 32 bit values.
4209
4210 2000-04-21 Matthew Green <mrg@cygnus.com>
4211
4212 * config.bfd: Add NetBSD/sparc64 support.
4213
4214 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
4215 David Mosberger <davidm@hpl.hp.com>
4216 Timothy Wall <twall@cygnus.com>
4217 Jim Wilson <wilson@cygnus.com>
4218
4219 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
4220 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
4221 (BFD64_BACKENDS): Add elf64-ia64.lo.
4222 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
4223 (cpu-ia64.lo, elf64-ia64.lo): New rules.
4224 * Makefile.in: Rebuild.
4225 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
4226 (bfd_ia64_arch): Declare.
4227 (bfd_archures_list): Add bfd_ia64_arch.
4228 * bfd-in2.h: Rebuild.
4229 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
4230 * configure: Rebuild.
4231 * configure.host: (ia64-*-linux*): New host.
4232 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
4233 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
4234 * elf.c (prep_headers): Add bfd_arch_ia64.
4235 * libbfd.h: Rebuild.
4236 * reloc.c: Add IA-64 relocations.
4237 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
4238 Declare.
4239 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
4240 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
4241
4242 2000-04-21 Richard Henderson <rth@cygnus.com>
4243
4244 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
4245 contents when performing a partial link.
4246 (bfd_elf_d30v_reloc_21): Likewise.
4247
4248 2000-04-20 H.J. Lu <hjl@gnu.org>
4249
4250 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
4251 patch to symbols defined by a shared object.
4252 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
4253
4254 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4255
4256 K&R compiler fixes.
4257 * dwarf2.c (concat_filename): Avoid string literal concatenation.
4258 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
4259
4260 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
4261
4262 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
4263 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
4264 (coff-ia64.lo): Add dependency.
4265 * Makefile.in: Regenerate.
4266 * coff-ia64.c: New file.
4267 * efi-app-ia32.c: Ditto.
4268 * efi-app-ia64.c: Ditto.
4269 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
4270 (coff_set_flags): Ditto.
4271 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
4272 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
4273 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
4274 * configure: Regenerate.
4275 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
4276 (PUT_OPTHDR_IMAGE_BASE): Ditto.
4277 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4278 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
4279 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4280 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
4281 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4282 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
4283 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4284 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
4285 (GET_PDATA_ENTRY): Ditto.
4286 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
4287 data_start. Use above macros to read fields that are 64 bit wide for
4288 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
4289 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
4290 FileAlignment and SectionAlignment to minimum alignment if they
4291 are zero.
4292 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
4293 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
4294 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
4295 Use above macros to write fields that are 64 bit wide for
4296 COFF_WITH_PEP64.
4297 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
4298 5*4 otherwise. This should be right for IA-32 and IA-64, but may
4299 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
4300 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
4301 begin address, end address, and unwind info address only. Use
4302 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
4303 print addresses.
4304 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
4305 HIGH3ADJ relocation names.
4306 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
4307 * targets.c: Declare bfd_efi_app_ia32_vec and
4308 bfd_efi_app_ia64_vec.
4309 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
4310 bfd_efi_app_ia64_vec.
4311
4312 2000-04-17 Timothy Wall <twall@cygnus.com>
4313
4314 * bfd-in2.h: Add prototypes for tic54x load page access.
4315 * bfd-in.h: Regenerate.
4316 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
4317 in customized _set_arch_mach function.
4318 * coffcode.h (coff_set_alignment_hook): Set section load page if
4319 the appropriate macro is defined.
4320 (write_object_contents): Read section load page.
4321
4322 2000-04-13 Alan Modra <alan@linuxcare.com.au>
4323
4324 * elf32-hppa.h: Update copyright date.
4325
4326 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
4327 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
4328
4329 * elf32-d30v.c (MAX32): Don't use LL suffix.
4330 (MIN32): Define in terms of MAX32.
4331 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
4332
4333 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
4334 expression.
4335
4336 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
4337
4338 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4339
4340 * dep-in.sed: Match space before file name, not after.
4341 * Makefile.am: Regenerate dependencies.
4342 * Makefile.in: Regenerate.
4343
4344 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
4345 case, allow address wrap-around stupidly removed 2000-03-17. Sign
4346 extend without an if statement.
4347
4348 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4349
4350 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
4351 signed quantites.
4352 * elf32-mips.c (gprel16_with_gp): Likewise.
4353 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
4354 here using -0x40000, not (int)0xfffc0000.
4355 (elf32_hppa_size_of_stub): Likewise.
4356
4357 2000-04-11 Timothy Wall <twall@cygnus.com>
4358
4359 * coff-tic54x.c: Now builds with all targets.
4360 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
4361 * Makefile.in: Regenerate.
4362 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
4363 unitialized variable.
4364
4365 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
4366
4367 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4368 --enable-build-warnings option.
4369 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4370 * Makefile.in, configure: Re-generate.
4371
4372 2000-04-07 Nick Clifton <nickc@cygnus.com>
4373
4374 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
4375 BFD_RELOC_THUMB_PCREL_BLX.
4376
4377 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
4378 R_ARM_XPC25 and R_ARM_THM_PC22.
4379
4380 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
4381 R_ARM_XPC25 and R_ARM_THM_XPC22.
4382 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
4383 R_ARM_[XPC25|THM_XPC22].
4384
4385 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
4386 elf/arm-oabi.h to elf/arm.h
4387
4388 * Makefile.am: Fix dependency for elfarm-oabi.c
4389 * Makefile.in: Regenerate.
4390
4391 * bfd-in2.h: Regenerate.
4392 * libbfd.h: Regenerate.
4393
4394 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4395
4396 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
4397 and restore it on failure. Release newly allocated tdata on
4398 failure.
4399
4400 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
4401
4402 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4403 (decode_line_info): Set it. Report error if unit->line_offset is
4404 equal to or larger than it.
4405
4406 2000-04-07 Timothy Wall <twall@cygnus.com>
4407
4408 * targets.c: Added vecs for tic54x.
4409 * reloc.c: Added relocs for tic54x.
4410 * libbfd.h: Regenerated.
4411 * configure: Add TI COFF vecs for tic54x.
4412 * configure.in: Ditto.
4413 * config.bfd (targ_cpu): Recognize new tic54x target.
4414 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
4415 * bfd-in2.h: Add tic54x target and relocations.
4416 * Makefile.am, Makefile.in: Add tic54x target.
4417 * archures.c (bfd_archures_list): Add tic54x target.
4418 * coff-tic54x.c: New.
4419 * cpu-tic54x.c: New.
4420
4421 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
4422
4423 * elfcore.h (elf_core_file_p): call backend_object_p which
4424 thereby gets an opportunity to update the arch/machine type.
4425
4426 2000-04-06 Timothy Wall <twall@cygnus.com>
4427
4428 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
4429 class. Handle SEC_CLINK and SEC_BLOCK flags.
4430 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
4431 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
4432
4433 2000-04-06 Nick Clifton <nickc@cygnus.com>
4434
4435 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
4436 EF_INTERWORK if this is an unknown EABI.
4437 (elf32_arm_merge_private_bfd_data): Check EABI version
4438 numbers. Only check EF_xxx flags if the EABI version number
4439 is unknown.
4440 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
4441 if the EABI version number is unknown.
4442 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
4443 if the EABI version number is unknown.
4444
4445 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4446
4447 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
4448 BFD_RELOC_SH_LOOP_END.
4449 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
4450 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
4451 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
4452 (sh_elf_reloc_loop): New function.
4453 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
4454 any more.
4455 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
4456 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
4457 * bfd-in2.h, libbfd.h: Regenerate.
4458
4459 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4460
4461 * po/bfd.pot: Regenerate.
4462
4463 * Makefile.am: Remove extraneous mkdep comment.
4464 (MKDEP): Use gcc -MM rather than mkdep.
4465 (DEP): Quote when passing vars to sub-make. Add warning
4466 message to end.
4467 (DEP1): Rewrite for "gcc -MM".
4468 (CLEANFILES): Add DEP2.
4469 Update dependencies.
4470 * Makefile.in: Regenerate.
4471
4472 2000-04-03 Kevin Buettner <kevinb@redhat.com>
4473
4474 * configure.in: Added corefile support for AIX 4.3. In particular,
4475 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
4476 compiling rs6000-core.c.
4477 * configure: Regenerated.
4478
4479 2000-04-03 H.J. Lu <hjl@gnu.org>
4480
4481 * cache.c (bfd_open_file): Unlink the output file only if
4482 it has non-zero size.
4483
4484 2000-04-01 Ken Block USG <block@zk3.dec.com>
4485
4486 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
4487 relative relocations for non-loaded sections in shared objects.
4488 (elf64_alpha_check_relocs): Similarly.
4489
4490 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
4491
4492 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
4493 BFD_RELOC_16 to switch for extended relocs.
4494 (MY_swap_ext_reloc_in): New.
4495 (MY_swap_ext_reloc_out): New.
4496 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
4497 than NAME(aout,swap_ext_reloc_in) for extended relocs.
4498 (NAME(aout,squirt_out_relocs)): Similarly use
4499 MY_swap_ext_reloc_out.
4500 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
4501
4502 2000-04-03 Kazu Hirata <kazu@hxi.com>
4503
4504 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
4505 the R_PCRWORD_B case.
4506
4507 2000-03-31 Thomas de Lellis <tdel@wrs.com>
4508
4509 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
4510 on some targets.
4511 * ihex.c : Ditto.
4512
4513 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
4514
4515 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
4516 HOWTO references to bfd_elf_generic_reloc, that have
4517 partial_inplace == true, now use the new function. The function
4518 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
4519 extends its fixes to the R_M32R_{16,24,32} relocs.
4520 The new logic in m32r_elf_lo16_reloc() has been removed, and
4521 it instead calls the new routine to obtain that functionality.
4522
4523 2000-03-27 Alan Modra <alan@linuxcare.com.au>
4524
4525 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
4526 elf32_avr_check_relocs, avr_final_link_relocate,
4527 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
4528 elf32_avr_object_p): Add prototypes.
4529 (elf32_avr_gc_mark_hook): Add default for h->root.type.
4530 (bfd_elf_avr_final_write_processing): Make static.
4531
4532 2000-03-27 Denis Chertykov <denisc@overta.ru>
4533
4534 * cpu-avr.c: New file. BFD support routines for AVR architecture.
4535 * archures.c (bfd_architecture): Add AVR architecture.
4536 (bfd_archures_list): Add reference to AVR architecture info.
4537 * elf.c (prep_headers): Handle bfd_arch_avr.
4538 * reloc.c: Add various AVR relocation enums.
4539 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
4540 list.
4541 * Makefile.am: Add support for AVR elf.
4542 * configure.in: Likewise.
4543 * config.bfd: Likewise.
4544 * Makefile.in: Regenerate.
4545 * configure: This too.
4546 * bfd-in2.h: And this.
4547 * libbfd.h: And this.
4548
4549 2000-03-24 H.J. Lu <hjl@gnu.org>
4550
4551 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
4552 (elf64_alpha_find_reloc_at_ofs): Likewise.
4553
4554 2000-03-17 Alan Modra <alan@linuxcare.com.au>
4555
4556 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
4557 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
4558 allowable range used to be -2**(n-1) to 2**n-1.
4559 * reloc.c (_bfd_relocate_contents): Same here. Also replace
4560 "boolean overflow" with "bfd_reloc_status_type flag".
4561
4562 2000-03-14 Doug Evans <dje@casey.transmeta.com>
4563
4564 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
4565
4566 2000-03-14 Kazu Hirata <kazu@hxi.com>
4567
4568 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
4569 of shrinks properly, including the last reloc.
4570
4571 2000-03-13 Kazu Hirata <kazu@hxi.com>
4572
4573 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
4574 check for R_MOVL2.
4575
4576 2000-03-11 Alan Modra <alan@linuxcare.com.au>
4577
4578 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
4579 a format mismatch rather than an "error" from bfd_read such as
4580 bfd_error_file_truncated.
4581
4582 2000-03-10 Geoff Keating <geoffk@cygnus.com>
4583
4584 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
4585 sign-extension and big-endian compensation for
4586 R_MIPS_64 even in ld -r.
4587
4588 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
4589
4590 * elf32-mips.c (mips_elf_next_relocation): Rename from
4591 mips_elf_next_lo16_relocation, and generalize to look
4592 for any relocation type.
4593 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
4594 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
4595 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
4596 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
4597 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
4598 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
4599 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
4600 (mips_rtype_to_howto): Likewise.
4601 (mips_elf_calculate_relocation): Handle new relocs.
4602 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
4603 are paired. The addend for R_MIPS_GNU_REL16_S2
4604 is shifted right two bits.
4605
4606 2000-03-10 Alan Modra <alan@linuxcare.com.au>
4607
4608 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
4609 comment, and ensure it doesn't happen again.
4610 (bfd_install_relocation): Same here.
4611 (_bfd_relocate_contents): Don't bother assigning unused signmask
4612 shift result. Fix typos in comments.
4613 Remove trailing whitespace throughout file.
4614
4615 2000-03-07 Doug Evans <dje@casey.transmeta.com>
4616
4617 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
4618 * bfd-in2.h: Rebuild.
4619
4620 2000-03-06 Nick Clifton <nickc@cygnus.com>
4621
4622 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
4623 sym_ptr_ptr fields.
4624 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
4625 (SIZEOF_ILF_STRINGS): Redefine.
4626 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
4627 relative reloc, as opposed to a section relative reloc.
4628 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
4629 not C_LABEL.
4630 Add length of symbol's prefix to string pointer.
4631 Store a pointer to the symbol in the symbol pointer table.
4632 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
4633 Initialise the symbol pointer table.
4634 Store the hint in the Hint/Name table.
4635 Make the jump reloc be symbol realtive, not section relative.
4636 Create an import symbol for imported code.
4637
4638 2000-03-06 Catherine Moore <clm@cygnus.com>
4639
4640 * elf.c (swap_out_syms): Check for null type_ptr.
4641
4642 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
4643
4644 * aout-target.h (MY(write_object_contents)): Remove unused
4645 and unusable "#if CHOOSE_RELOC_SIZE".
4646 * pc532-mach.c (MY(write_object_contents)): Ditto.
4647 * netbsd.h (MY(write_object_contents)): Ditto.
4648 * hp300hpux.c (MY(write_object_contents)): Ditto.
4649 * freebsd.h (MY(write_object_contents)): Ditto.
4650 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
4651
4652 2000-02-29 H.J. Lu <hjl@gnu.org>
4653
4654 * peicode.h (jtab): Make it static.
4655
4656 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
4657 defined and COFF_IMAGE_WITH_PE is not defined.
4658 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
4659 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
4660
4661 2000-03-01 Nick Clifton <nickc@cygnus.com>
4662
4663 * coff-arm.c (bfd_arm_process_before_allocation): Make
4664 'symndx' signed to prevent compile time warning.
4665
4666 * coff-mcore.c: Remove unused prototype for pe_object_p.
4667
4668 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
4669 functions that are not used when COFF_IMAGE_WITH_PE is
4670 defined.
4671 (struct sh_opcode): Change type of 'flags' field to unsigned
4672 long so that it can hold the USESAS flag.
4673
4674 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
4675
4676 * elf-m10300.c (mn10300_elf_relax_section): Initialise
4677 'sym_sec'.
4678
4679 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
4680 parameters.
4681 Remove unusued variables and code.
4682 (elf_backend_add_symbol_hook): Fix prototype.
4683
4684 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
4685 'srelgot'.
4686
4687 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
4688 'oldinst'.
4689
4690 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
4691 parameters.
4692 Remove unusued variables and code.
4693 (elf_backend_add_symbol_hook): Fix prototype.
4694
4695 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
4696
4697 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
4698 to unused function parameter.
4699
4700 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
4701 parameters.
4702 Use EMPTY_HOWTO to initialise empty howto slots.
4703 Remove unused variables.
4704
4705 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
4706
4707 2000-03-01 H.J. Lu <hjl@gnu.org>
4708
4709 * aoutx.h (aout_link_input_section_std): Pass "true" to
4710 the undefined_symbol callback.
4711 (aout_link_input_section_ext): Likewise.
4712 * bout.c (get_value): Likewise.
4713 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4714 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
4715 Likewise.
4716 (alpha_relocate_section): Likewise.
4717 * coff-arm.c (coff_arm_relocate_section): Likewise.
4718 * coff-i960.c (coff_i960_relocate_section): Likewise.
4719 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4720 * coff-mips.c (mips_relocate_section): Likewise.
4721 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4722 * coff-sh.c (sh_relocate_section): Likewise.
4723 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4724 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
4725 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4726 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4727 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4728 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4729 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4730 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4731 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4732 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4733 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4734 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4735 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
4736 * elflink.h (elf_link_output_extsym): Likewise.
4737 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
4738 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
4739 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
4740
4741 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
4742 undefined_symbol callback when building shared library with
4743 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
4744 "true".
4745 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4746 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4747 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4748 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4749 (elf32_mips_get_relocated_section_content): Likewise.
4750 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4751 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4752 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4753 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4754
4755 2000-02-28 Nick Clifton <nickc@cygnus.com>
4756
4757 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
4758 * Makefile.in: Regenerate.
4759
4760 * configure.in: Add support for mips and sh pe vectors.
4761 * configure: regenerate.
4762
4763 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
4764 targets.
4765
4766 * targets.c: Add mips and sh pe vectors.
4767
4768 * libpei.h (coff_final_link_postscript): Only define if not
4769 already defined.
4770
4771 * coffcode.h: Add support for WinCE magic numbers.
4772
4773 * peigen.c (pe_print_reloc): Update comment and rearrange
4774 appending of newline character.
4775
4776 * peicode.h: Add support for Image Library Format.
4777 (pe_ILF_vars): Structure containing data used by ILF code.
4778 (pe_ILF_make_a_section): New function. Create a section based
4779 on ILF data.
4780 (pe_ILF_make_a_reloc): New function. Create a reloc based on
4781 ILF data.
4782 (pe_ILF_make_a_symbol): New function. Create a symbol based
4783 on ILF data.
4784 (pe_ILF_save_relocs): New function. Store the relocs created
4785 by pe_ILF_make_a_reloc in a section.
4786 (pe_ILF_build_a_bfd): New function. Create a BFD describing
4787 an ILF object.
4788 (pe_ILF_object_p): New function. Return a bfd_target pointer
4789 for an ILF object.
4790 (pe_bfd_object_p): If an ILF object is detected call
4791 pe_ILF_object_p on it.
4792
4793 * coff-arm.c: Add support for WinCE relocs which are different
4794 from normal ARM COFF relocs.
4795 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
4796
4797 * coff-sh.c: Add support for sh-pe target.
4798 * pe-sh.c: New file. Support code for sh-pe target.
4799 * pei-sh.c: New file. Support code for sh-pe target.
4800
4801 * pe-mips.c: New file. Support code for mips-pe target.
4802 * pei-mips.c: New file. Support code for mips-pe target.
4803
4804 2000-02-27 Jakub Jelinek <jakub@redhat.com>
4805
4806 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
4807 architecture if the object causing the bump is dynamic.
4808 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
4809 and also don't it for memory ordering.
4810 (sparc64_elf_write_relocs): Take src_rela out of the loop.
4811
4812 2000-02-27 Ian Lance Taylor <ian@zembu.com>
4813
4814 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
4815 calling bfd_get_section_size_before_reloc.
4816 (decode_line_info): Likewise.
4817 (_bfd_dwarf2_find_nearest_line): Likewise.
4818
4819 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
4820
4821 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
4822 name of the libtool directory.
4823 * Makefile.in: Rebuild.
4824
4825 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
4826
4827 * som.c (SOM_HOWTO): Define.
4828 (som_hppa_howto_table): Use it.
4829
4830 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4831
4832 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
4833
4834 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
4835
4836 2000-02-24 Catherine Moore <clm@cygnus.com>
4837
4838 * som.c (som_misc_symbol_info): Add field
4839 secondary_def.
4840 (som_bfd_derive_misc_symbol_info): Initialize
4841 secondary_def.
4842 (som_build_and_write_symbol_table): Keep track
4843 of secondary_def field.
4844 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
4845 if secondary_def field is set.
4846 (som_bfd_ar_write_symbol_stuff): Initialize
4847 secondary_def.
4848
4849 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
4850
4851 * dwarf2.c (read_address): Read 16-bits addresses.
4852 (parse_comp_unit): Accept addr_size == 2.
4853
4854 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4855
4856 * bfd-in.h: Update copyright date.
4857
4858 2000-02-23 Linas Vepstas <linas@linas.org>
4859
4860 * cpu-i370.c: New file.
4861 * elf32-i370.c: New file.
4862 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
4863 (bfd_i370_arch): New.
4864 (bfd_archures_list): Add bfd_i370_arch.
4865 * elf.c (prep_headers): Add bfd_arch_i370.
4866 * Makefile.am: Add support for IBM 370 elf.
4867 * config.bfd: Likewise.
4868 * configure.in: Likewise.
4869 * libbfd.h (bfd_reloc_code_real_names): Likewise.
4870 * reloc.c (bfd_reloc_code_type): Likewise.
4871 * targets.c: Likewise.
4872
4873 * Makefile.in: Regenerate.
4874 * configure: Regenerate.
4875 * bfd-in2.h: Regenerate.
4876
4877 2000-02-22 Ian Lance Taylor <ian@zembu.com>
4878
4879 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
4880 invalid relocation types, and change them to R_386_NONE.
4881
4882 2000-02-22 H.J. Lu <hjl@gnu.org>
4883
4884 * elflink.h (elf_link_add_object_symbols): If a version symbol is
4885 not defined, don't add a second ELF_VER_CHR.
4886
4887 * elflink.h (elf_bfd_final_link): Call output_extsym for global
4888 symbols converted to local symbols even when stripping all
4889 symbols.
4890 (elf_link_output_extsym): Process global symbols converted to
4891 local symbols even if they are being stripped.
4892
4893 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4894
4895 * archures.c (bfd_octets_per_byte): Return unsigned int.
4896 (bfd_arch_mach_octets_per_byte): Ditto.
4897 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
4898 comparison warning.
4899 * section.c (bfd_get_section_size_before_reloc): Quell signed
4900 vs. unsigned comparison warning.
4901 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
4902 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
4903 change. What was I thinking?
4904 * bfd-in2.h: Regenerate.
4905
4906 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
4907 (elf_gc_sections): Same here.
4908 (elf_gc_common_finalize_got_offsets): And here.
4909
4910 2000-02-21 Ian Lance Taylor <ian@zembu.com>
4911
4912 ELF HPPA doesn't work at present; remove it until it does.
4913 * config.bfd: Comment out setting targ_defvec to
4914 bfd_elf32_hppa_vec.
4915 * Makefile.am: Rebuild dependencies.
4916 (BFD32_BACKENDS): Remove elf32-hppa.lo.
4917 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
4918 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
4919 * Makefile.in: Rebuild.
4920 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
4921
4922 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4923
4924 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
4925 is no bfd_free(). Revert bfd_free part of previous change.
4926
4927 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4928
4929 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
4930 arrays.
4931 (coff_compute_section_file_positions): Use bfd_free to pair
4932 bfd_malloc.
4933 (coff_write_object_contents): Likewise.
4934
4935 * coff-rs6000.c (xcoff_howto_table_16): New variable.
4936 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
4937
4938 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
4939
4940 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
4941 (xcoff_ar_file_hdr_big): New structure.
4942 (SIZEOF_AR_FILE_HDR_BIG): New macro.
4943 (xcoff_ar_hdr_big): New structure.
4944 (SIZEOF_AR_HDR_BIG): New macro.
4945 (xcoff_big_format_p): New macro.
4946 (xcoff_ardata_big): New macro.
4947 (arch_xhdr_big): New macro.
4948 (xcoff_slurp_armap): Handle large archives.
4949 (xcoff_archive_p): Detect large archives.
4950 (xcoff_read_ar_hdr): Handle large archives.
4951 (xcoff_openr_next_archived_file): Handle large archives.
4952 (xcoff_generic_stat_arch_elt): Handle large archives.
4953 (xcoff_write_armap_old): Rename from xcoff_write_armap.
4954 (xcoff_write_armap_big): New function.
4955 (xcoff_write_armap): New function, dispatch to _old or _big.
4956 (xcoff_write_archive_contents_old): Rename from
4957 xcoff_write_archive_contents.
4958 (xcoff_write_archive_contents_big): New function.
4959 (xcoff_write_archive_contents): New function, dispatch to _old or
4960 _big.
4961
4962 2000-02-18 Richard Henderson <rth@cygnus.com>
4963
4964 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
4965 and hide_symbol members.
4966 (elf_link_hash_copy_indirect): Remove.
4967 (elf_link_hash_hide_symbol): Remove.
4968 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
4969 and elf_backend_hide_symbol.
4970 (_bfd_elf_link_hash_copy_indirect): Declare.
4971 (_bfd_elf_link_hash_hide_symbol): Declare.
4972 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
4973 (_bfd_elf_link_hash_hide_symbol): Likewise.
4974 (_bfd_elf_link_hash_table_init): Don't init killed members.
4975 * elflink.h (elf_link_add_object_symbols): Use the bed function
4976 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
4977 (elf_link_assign_sym_version): Likewise.
4978 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
4979 (elf_backend_hide_symbol): Likewise.
4980 (elfNN_bed): Update for new members.
4981
4982 2000-02-17 Kevin Buettner <kevinb@redhat.com>
4983
4984 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
4985 STACK_END_ADDR): Define for new core file format.
4986 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
4987 for handling the vagaries of the various core file structures used
4988 by AIX over the years.
4989 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
4990 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
4991 core_dumpx structure.
4992
4993 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4994
4995 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
4996 (bfd_mach_sh3_dsp): Likewise.
4997 (bfd_mach_sh4): Reinstate.
4998 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
4999 * bfd-in2.h: Regenerate.
5000 * coff-sh.c (struct sh_opcode): flags is no longer short.
5001 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5002 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5003 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5004 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5005 (sh_opcodes): No longer const.
5006 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5007 (sh_insn_uses_reg): Check for USESAS and USESR8.
5008 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5009 (_bfd_sh_align_load_span): Return early for SH4.
5010 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5011 Take into account that field b of a parallel processing insn
5012 could be mistaken for a separate insn.
5013 * cpu-sh.c (arch_info_struct): New array elements for
5014 sh2, sh-dsp and sh3-dsp.
5015 Reinstate element for sh4.
5016 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5017 (SH4_NEXT): Reinstate.
5018 (SH3_NEXT, SH3E_NEXT): Adjust.
5019 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5020 * elf32-sh.c (sh_elf_set_private_flags): New function.
5021 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5022 (sh_elf_merge_private_data): New function.
5023 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5024 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5025 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5026 sh_elf_merge_private_data.
5027
5028 2000-02-13 Richard Henderson <rth@cygnus.com>
5029
5030 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5031 hide_symbol members.
5032 (elf_link_hash_copy_indirect): New.
5033 (elf_link_hash_hide_symbol): New.
5034 * elflink.h (elf_link_add_object_symbols): Break out copy from
5035 indirect new new symbol to elf.c.
5036 (elf_link_assign_sym_version): Break out privatization of
5037 non-exported symbol to elf.c.
5038 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5039 (_bfd_elf_link_hash_hide_symbol): New.
5040 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5041
5042 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5043
5044 * section.c (_bfd_strip_section_from_output): Add info parameter.
5045 If it passed as non-NULL, use it to check whether any input BFD
5046 has an input section which uses this output section. Change all
5047 callers.
5048 * bfd-in2.h: Rebuild.
5049
5050 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5051 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5052 1999-11-29.
5053 * bfd-in2.h: Rebuild.
5054
5055 2000-02-10 Timothy Wall <twall@cygnus.com>
5056
5057 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5058 allow final modifications of swapped-in symbol.
5059 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5060 * coffcode.h (coff_write_relocs): Use macro
5061 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5062 symbol index should be set to -1.
5063
5064 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5065
5066 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5067 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5068 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5069 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5070 sh_insns_uses_or_sets_freg): New functions.
5071 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5072 * (sh_insns_conflict): Use new functions and new macros to
5073 detect conflicts when two instructions both set same integer registers,
5074 both set same fp register, and both set special register.
5075
5076 2000-02-09 Timothy Wall <twall@cygnus.com>
5077
5078 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5079 swapping in sections, so that the swapping routines have access to
5080 the arch/mach info.
5081
5082 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5083
5084 * coff-go32.c: Update comment. Update copyright.
5085
5086 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5087
5088 * syms.c (bfd_decode_symclass)
5089 Two new class characters were added - 'V' and 'v'. The
5090 meaning of 'W' is now restricted to just weak non-object
5091 symbols. This allows differentiation between, for example,
5092 weak functions vs weak objects. nm for example now dumps:
5093 'W' = weak global
5094 'w' = weak unresolved
5095 'V' = weak global object
5096 'v' = weak unresolved object
5097
5098 (bfd_is_undefined_symclass): New function. Return true if the
5099 given symbol class represents and undefined/unresolved symbol.
5100
5101 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5102 unresolved symbols.
5103
5104 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5105
5106 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5107 STT_ARM_16BIT flag set, but it is not attached to a data object
5108 return STT_ARM_16BIT so that it will be treated as code by the
5109 disassembler.
5110
5111 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5112
5113 * coff-i386.c (i3coff_object_p): Remove prototype.
5114 Update copyright.
5115
5116 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5117 to name. Update copyright.
5118
5119 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
5120 assignment to avoid warning. Update copyright.
5121
5122 2000-01-24 Robert Lipe (robertl@sco.com)
5123
5124 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
5125 instead of using GNU C extension.
5126
5127 2000-01-21 Nick Clifton <nickc@cygnus.com>
5128
5129 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
5130 amount from a bfd_in_memory structure.
5131 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
5132 structure.
5133
5134 2000-01-14 Nick Clifton <nickc@cygnus.com>
5135
5136 * linker.c (default_indirect_link_order): oops - fix incorrectly
5137 applied patch from Tim Wall.
5138
5139 2000-01-13 Timothy Wall (twall@tiac.net>
5140
5141 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
5142 = scnhsz, filhsz, relsz, aoutsz, etc)
5143
5144 * coffswap.h: Ditto.
5145
5146 2000-01-13 Nick Clifton <nickc@cygnus.com>
5147
5148 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
5149 interwork thumb to arm stub.
5150
5151 2000-01-13 Timothy Wall (twall@tiac.net>
5152
5153 * archures.c (bfd_octets_per_byte): New function: Return
5154 target byte size.
5155 (bfd_arch_mach_octets_per_byte): New function: Return target
5156 byte size.
5157
5158 * section.c: Distinguish between octets and bytes for usage of
5159 _cooked_size, _raw_size, and output_offset. Clarify
5160 description of bfd_set_section_contents.
5161
5162 * bfd-in2.h: Regenerate.
5163
5164 * coffgen.c: Indicate that the offset parameter is in bytes, not
5165 octets.
5166
5167 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
5168 where appropriate to get the octet offset when calling
5169 bfd_set_section_contents.
5170 (bfd_coff_reloc_link_order): Ditto.
5171
5172 * linker.c (bfd_generic_reloc_link_order): Ditto.
5173 (_bfd_default_link_order): Ditto.
5174
5175 * reloc.c (bfd_perform_relocation): Distinguish between octets
5176 and bytes. Use octets when indexing into octet data; use bytes
5177 when calculating target addresses.
5178 (bfd_install_relocation): Ditto.
5179
5180 * srec.c (srec_write_section): Ditto.
5181
5182 2000-01-13 Nick Clifton <nickc@cygnus.com>
5183
5184 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
5185 3 to 2. This allows 4 byte sized sections, which is necessary for
5186 dlltool to build functioning DLLs.
5187
5188 2000-01-10 Philip Blundell <pb@futuretv.com>
5189
5190 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
5191 (arm*-*-conix*): New target.
5192
5193 2000-01-10 Egor Duda <deo@logos-m.ru>
5194
5195 * config.bfd: Include elf32_i386 vector to target list for cygwin
5196 and mingw.
5197
5198 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
5199 * configure.in: Test for structure win32_pstatus_t in
5200 <sys/procfs.h>
5201 * configure: Regenerate.
5202
5203 * elf.c (elfcore_grok_win32pstatus): New function: process
5204 win32_pstatus_t notes in elf core file.
5205 (elfcore_grok_note): Detect win32_pstatus notes.
5206
5207 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
5208
5209 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
5210 visibility.
5211 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
5212 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
5213
5214 For older changes see ChangeLog-9899
5215 \f
5216 Local Variables:
5217 mode: change-log
5218 left-margin: 8
5219 fill-column: 74
5220 version-control: never
5221 End:
This page took 0.14032 seconds and 4 git commands to generate.