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