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