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