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