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