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