* elf64-alpha.c (SKIP_HOWTO): New.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
dfe57ca0
RH
12001-09-04 Richard Henderson <rth@redhat.com>
2
3 * elf64-alpha.c (SKIP_HOWTO): New.
4 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
5 Fix sizes of 16-bit mem format relocs.
6 (elf64_alpha_reloc_map): Update to match.
7 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
8 (elf64_alpha_relax_without_lituse): Likewise.
9 (elf64_alpha_check_relocs): Handle GPREL16.
10 (elf64_alpha_relocate_section): Likewise.
11 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
12 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
13 * bfd-in2.h, libbfd.h: Rebuild.
14
a00c9dbc
JL
152001-09-04 Jeff Law <law@redhat.com>
16
5907e628
JL
17 * elf32-h8300.c (elf32_h8_relax_section): New function.
18 (elf32_h8_relax_delete_bytes): Likewise.
19 (elf32_h8_symbol_address_p): Likewise.
20 (elf32_h8_get_relocated_section_contents): Likewise.
21 (bfd_elf32_bfd_relax_section): Define.
22 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
23
a00c9dbc
JL
24 * elf32-h8300.c (special): New function.
25 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
26 all relocations.
27 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
28 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
29 Fix minor problems with 8bit and 16bit PC relative relocations.
30
524f76c9
AJ
312001-09-01 Andreas Jaeger <aj@suse.de>
32
33 * vms-tir.c: Add missing prototypes.
34 * vms-hdr.c: Likewise.
35 * vms-gsd.c: Likewise.
36 * vms-misc.c: Likewise.
37
6140b3b9
L
382001-08-31 H.J. Lu <hjl@gnu.org>
39
40 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
41 with bad relocation.
42
a1cd6a8f
EC
432001-08-31 Eric Christopher <echristo@redhat.com>
44 Jason Eckhardt <jle@redhat.com>
45
46 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
47 mips32_4k and mips64.
48 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
49 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
50 * bfd/cpu-mips.c: Ditto.
51 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
52 * bfd/bfd-in2.h: Regenerate.
53
28cfee26
JJ
542001-08-31 Jakub Jelinek <jakub@redhat.com>
55
56 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
57 value into R_ALPHA_RELATIVE's addend.
58 (elf64_alpha_finish_dynamic_symbol): Likewise.
59
374b596d
NC
602001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
61
5fb1c3f2 62 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
08bf74c5 63 recomputed addend during relocatable link if not USE_REL.
5fb1c3f2 64
374b596d
NC
65 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
66 error.
67
2bab9785
L
682001-08-30 H.J. Lu <hjl@gnu.org>
69
70 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
71 2 changes.
72 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
73 relocations for weak definitions.
74
ee8a3a3b
L
752001-08-30 H.J. Lu <hjl@gnu.org>
76
77 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
78 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
79 * Makefile.in: Rebuild.
80
8eb59a90
L
812001-08-30 H.J. Lu <hjl@gnu.org>
82
83 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
84 dynamic relocation for undefined weak symbols when creating
85 executables. Check h->root.root.type, instead of h->root.type.
86
d43ded80
PB
872001-08-29 Joel Sherrill <joel@OARcorp.com>
88
a1cd6a8f 89 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
d43ded80
PB
90 default from coff to elf.
91
f18a3b85 922001-08-29 Jeff Law <law@redhat.com>
0a83638b 93
f2352488
JL
94 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
95 relocations.
96 (h8_reloc_map): Similarly.
97 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
98 Add support for PC relative relocations.
99
5e47149d
JL
100 * elf32-h8300.c: Put all prototypes together.
101 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
102 (elf32_h8_final_link_relocate): New function for linker.
103 (elf32_h8_relocate_section): Similarly.
104 (elf_backend_relocate_section): Define.
105
0a83638b
JL
106 * cpu-h8300.c (h8300_scan, compatible): Prototype.
107 (h8300_scan): Handle architecture:machine encodings typically
108 found in linker scripts.
109 * elf.c (prep_headers): Do not try to do H8 machine recognition
110 here.
111 * elf32-h8300.c: Add some missing prototypes.
112 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
113 (elf32_h8_object_p): Similarly.
114
8df8c619
TR
1152001-08-29 Tom Rix <trix@redhat.com>
116
524f76c9
AJ
117 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
118 does not follow a XTY_SD.
8df8c619 119
f18a3b85 1202001-08-29 Alan Modra <amodra@bigpond.net.au>
102ab332
AM
121
122 * targmatch.sed: Delete case statements.
123 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
124 aix4.3 and above.
125
e01b0e69
JR
126Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
127
128 * Makefile.am (elf32-h8300.lo): New target.
129 * config.bfd (h8300*-*-elf): New case.
130 * configure.in (bfd_elf32_h8300_vec): New case.
131 * elf.c (prep_headers): Add case for bfd_arch_h8300.
132 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
133 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
134 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
135 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
136 * elf32-h8300.c: New file.
137 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
138
42ef282f
NC
1392001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
140
141 * sparclynx.c: Add missing prototypes.
142 * coff-mcore.c: Add missing prototypes.
143 * elf32-pj.c: Add missing prototypes.
144 * nlm32-sparc.c: Add missing prototypes.
145 * oasys.c: Add missing prototypes.
146 * pdp11.c: Add missing prototypes.
147 * pe-mips.c: Add missing prototypes.
148 * riscix.c: Add missing prototypes.
149
2e67030c
DJ
1502001-08-27 Daniel Jacobowitz <drow@mvista.com>
151
152 * elf32-i386.c: Add missing prototypes.
153 * elf32-ppc.c: Likewise.
154 * elf32-sh-lin.c: Likewise.
155 * elfarm-nabi.c: Likewise.
156
c5fccbec
DJ
1572001-08-27 Daniel Jacobowitz <drow@mvista.com>
158
159 * elf32-i386.c (elf_i386_grok_prstatus): New function.
160 (elf_i386_grok_psinfo): New function.
161 (elf_backend_grok_prstatus): Define.
162 (elf_backend_grok_psinfo): Likewise.
163 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
164 (ppc_elf_grok_psinfo): New function.
165 (elf_backend_grok_prstatus): Define.
166 (elf_backend_grok_psinfo): Likewise.
167 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
168 (elf32_shlin_grok_psinfo): New function.
169 (elf_backend_grok_prstatus): Define.
170 (elf_backend_grok_psinfo): Likewise.
171 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
172 (elf32_arm_nabi_grok_psinfo): New function.
173 (elf_backend_grok_prstatus): Define.
174 (elf_backend_grok_psinfo): Likewise.
175
14d5043a
L
1762001-08-27 H.J. Lu <hjl@gnu.org>
177
178 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
179 sanity check.
180 (mips_elf_calculate_relocation): Create dynamic relocation for
181 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
182 bit is not set.
183
9e80ff3a
L
1842001-08-27 H.J. Lu <hjl@gnu.org>
185
186 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
187 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
188 (_bfd_elf32_mips_grok_prstatus): Likewise.
189 (_bfd_elf32_mips_grok_psinfo): Likewise.
190 (_bfd_mips_elf_hide_symbol): Make it static and cast to
191 `struct mips_elf_link_hash_entry *'.
192 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
193
e4b17274
NC
1942001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
195
196 * mipsbsd.c: Add missing prototypes.
197 * hp300hpux.c: Add missing prototypes.
198 * i386aout.c: Add missing prototypes.
199 * i386lynx.c: Add missing prototypes.
200 * i386mach3.c: Add missing prototypes.
201 * i386msdos.c: Add missing prototypes.
202 * i386os9k.c: Add missing prototypes.
203
5bd4f169
AM
2042001-08-27 Linus Nordberg <linus@swox.se>
205 Torbjorn Granlund <tege@swox.com>
206 Staffan Ulfberg <staffanu@swox.se>
207 Alan Modra <amodra@bigpond.net.au>
208
209 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
210 targ64_selvecs for 32 bit powerpc targets.
211 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
212 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
213 Run "make dep-am".
214 * Makefile.in: Regenerate.
215 * configure.in: Add elf64_powerpc vecs.
216 * configure: Regenerate.
217 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
218 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
219 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
220 * elf64-ppc.c: New file.
221 * reloc.c: Add powerpc64 relocs.
222 * libbfd.h: Regenerate.
223 * bfd-in2.h: Regenerate.
224
aa91b392
AS
2252001-08-27 Andreas Schwab <schwab@suse.de>
226
227 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
228 reloc is against read-only section.
229 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
230 looking up section names for DT_TEXTREL.
231 (elf32_m68k_reloc_type_class): New function.
232 (elf_backend_reloc_type_class): Define.
233
29c2fb7c
AJ
2342001-08-27 Andreas Jaeger <aj@suse.de>
235
236 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
237 reloc is against read-only section.
238 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
239 looking up section names for DT_TEXTREL.
240 (elf_s390_reloc_type_class): New.
241 (elf_backend_reloc_type_class): Define.
242
243 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
244 reloc is against read-only section.
245 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
246 looking up section names for DT_TEXTREL.
247 (elf_s390_reloc_type_class): New.
248 (elf_backend_reloc_type_class): Define.
249
250 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
251 is against read-only section.
252 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
253 looking up section names for DT_TEXTREL.
254 (ppc_elf_reloc_type_class): New.
255 (elf_backend_reloc_type_class): Define.
256
99e4ae17
AJ
2572001-08-26 Andreas Jaeger <aj@suse.de>
258
259 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
260 reloc is against read-only section.
261 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
262 looking up section names for DT_TEXTREL.
263 (elf_cris_reloc_type_class): New.
264 (elf_backend_reloc_type_class): Define.
265
266 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
267 against read-only section.
268 (elf_backend_reloc_type_class): Define.
269 (sh_elf_reloc_type_class): New.
270 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
271 looking up section names for DT_TEXTREL.
272
273 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
274 reloc is against read-only section.
275 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
276 looking up section names for DT_TEXTREL.
277 (elf32_arm_reloc_type_class): New.
278 (elf_backend_reloc_type_class): Define.
279
24a35864
AJ
2802001-08-25 Andreas Jaeger <aj@suse.de>
281
282 * oasys.c: Add missing prototypes.
283
284 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
285 attribute for parameter.
286 * elf.c (_bfd_elf_reloc_type_class): Likewise.
287
288 * versados.c (get_4): Make static.
289 (get_10): Make static.
290 Add missing prototypes.
291 (process_esd): Fix call to versados_new_symbol.
292
917583ad
NC
2932001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
294
295 * coff-a29k.c: Add missing prototypes.
296 * coff-apollo.c: Add missing prototypes.
297 * coff-arm.c: Add missing prototypes.
298 * coff-i860.c: Add missing prototypes.
299 * coff-rs6000.c: Add missing prototypes.
300 * coff-tic80.c: Add missing prototypes.
301 * elf-m10200.c: Add missing prototypes.
302 * elf-m10300.c: Add missing prototypes.
303 * elf32-arm.h: Add missing prototypes.
304 * elf32-d10v.c: Add missing prototypes.
305 * elf32-m32r.c: Add missing prototypes.
306 * elf32-mcore.c: Add missing prototypes.
307 * elf32-openrisc.c: Add missing prototypes.
308 * elf32-sh.c: Add missing prototypes.
309 * elf32-sparc.c: Add missing prototypes.
310 * elf32-v850.c: Add missing prototypes.
311 * elfarm-nabi.c: Add missing prototypes.
312 * elfarm-oabi.c: Add missing prototypes.
313
aee61b13
TS
3142001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
315
316 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
317 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
318
b0f35f36
L
3192001-08-24 H.J. Lu <hjl@gnu.org>
320
321 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
322 hash structure.
323
8ea2e4bd
NC
3242001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
325
326 * elf-bfd.h (elf_hash_table): Revert definition.
327 (is_elf_hash_table): New macro.
328 * elflink.h (elf_link_add_object_symbols): Test
329 is_elf_hash_table before accessing ELF only fields in hash
330 structure.
331 (elf_link_create_dynamic_sections): Fail if not using an ELF
332 hash structure.
333 (elf_add_dynamic_entry): Fail if not using an ELF hash
334 structure.
335 (elf_link_record_local_dynamic_symbol): Fail if not using an
336 ELF hash structure.
337 (size_dynamic_sections): Fail if not using an ELF hash
338 structure.
339 (elf_adjust_dynamic_symbol): Fail if not using an ELF
340 hash structure.
341 (elf_bfd_final_link): Fail if not using an ELF hash
342 structure.
343
3442001-08-24 H.J. Lu <hjl@gnu.org>
345
346 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
347 table is not an ELF linker hash table.
348
349 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
350 table type to bfd_link_elf_hash_table.
351
352 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
353 the last change.
354
355 * linker.c (_bfd_link_hash_table_init): Set the linker hash
356 table type to bfd_link_generic_hash_table.
357
8c98ec7d
AO
3582001-08-24 Alexandre Oliva <aoliva@redhat.com>
359
360 * bfd.c (bfd_alt_mach_code): New function.
361 * bfd-in2.h: Rebuilt.
362
17ea6349
AO
3632001-08-24 Alexandre Oliva <aoliva@redhat.com>
364
365 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
366 `type' field in the hash entry when deciding whether to follow a
367 link.
368
fcfbdf31
JJ
3692001-08-24 Jakub Jelinek <jakub@redhat.com>
370
371 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
372 last.
373 (elf_link_sort_relocs): Adjust accordingly.
374
375 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
376 (elf64_alpha_check_relocs): Set it if section this reloc is against
377 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
378 read-only section.
379 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
380 is is against read-only section.
381 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
382 check section names.
383 (elf64_alpha_reloc_type_class): New.
384 (elf_backend_reloc_type_class): Define.
385
f6be24f9
TS
3862001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
387
388 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
389 by bfd_malloc().
390
8df9fc9d
AJ
3912001-08-23 Andreas Jaeger <aj@suse.de>
392
393 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
394 the reloc is against read-only section.
395 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
396 of looking up section names for DT_TEXTREL.
397 (elf64_x86_64_reloc_type_class): New.
398 (elf_backend_reloc_type_class): Define.
399
60b89a18
L
4002001-08-23 H.J. Lu <hjl@gnu.org>
401
402 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
403 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
404
405 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
406 bfd_print_symbol_vandf.
407 * coffgen.c (coff_print_symbol): Likewise.
408 * elf.c (bfd_elf_print_symbol): Likewise.
409 * ieee.c (ieee_print_symbol): Likewise.
410 * nlmcode.h (nlm_print_symbol): Likewise.
411 * oasys.c (oasys_print_symbol): Likewise.
412 * pdp11.c (NAME(aout,print_symbol)): Likewise.
413 * som.c (som_print_symbol): Likewise.
414 * srec.c (srec_print_symbol): Likewise.
415 * tekhex.c (tekhex_print_symbol): Likewise.
416 * versados.c (versados_print_symbol): Likewise.
417 * vms.c (vms_print_symbol): Likewise.
418
419 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
420 with bfd_fprintf_vma.
421 (bfd_elf_print_symbol): Likewise.
422 * syms.c (bfd_print_symbol_vandf): Likewise.
423
67a374a5
NC
4242001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
425
426 * aoutf1.h (sunos_write_object_contents): Silence compile time
427 warning.
fcfbdf31 428 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
67a374a5
NC
429
430 * bout.c: Add missing function prototypes. Fix formatting.
f4ffd778
NC
431 * coff-z8k.c: Add missing function prototypes. Fix formatting.
432 * coff-w65.c: Add missing function prototypes. Fix formatting.
433 * coff-h8500.c: Add missing function prototypes. Fix formatting.
434 * coff-h8300.c: Add missing function prototypes. Fix formatting.
435 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
436 * coff-tic30.c: Add missing function prototypes. Fix formatting.
437 * coff-m68k.c: Add missing function prototypes. Fix formatting.
438 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
439 * coff-sh.c: Add missing function prototypes. Fix formatting.
67a374a5 440
db6751f2
JJ
4412001-08-23 Jakub Jelinek <jakub@redhat.com>
442
443 * elf-bfd.h (enum elf_reloc_type_class): New.
444 (struct elf_backend_data): Add elf_backend_reloc_type_class.
445 (_bfd_elf_reloc_type_class): New.
446 * elfxx-target.h (elf_backend_reloc_type_class): Define.
447 (elfNN_bed): Add elf_backend_reloc_type_class.
448 * elf.c (_bfd_elf_reloc_type_class): New.
449 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
450 is against read-only section.
451 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
452 looking up section names for DT_TEXTREL.
453 (elf_i386_reloc_type_class): New.
454 (elf_backend_reloc_type_class): Define.
455 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
456 reloc is against read-only section.
457 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
458 looking up section names for DT_TEXTREL.
459 (elf32_sparc_reloc_type_class): New.
460 (elf_backend_reloc_type_class): Define.
461 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
462 reloc is against read-only section.
463 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
464 looking up section names for DT_TEXTREL.
465 (sparc64_elf_reloc_type_class): New.
466 (elf_backend_reloc_type_class): Define.
467 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
468 (elfNN_ia64_hash_table_create): Clear ia64_info.
469 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
470 section.
471 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
472 instead of looking up section names for DT_TEXTREL.
473 (elfNN_ia64_reloc_type_class): New.
474 (elf_backend_reloc_type_class): Define.
475 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
476 (struct elf_link_sort_rela): New.
477 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
478 (elf_bfd_final_link): Call elf_link_sort_relocs.
479 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
480 necessary.
481
7e3b3466
NC
4822001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
483
484 * configure.in (x86-bsdi): No corefile support.
485 * configure: Regenerate.
486
26cd54bf
NC
4872001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
488
489 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
490 comma.
491
a7bda527
DD
4922001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
493
4f6fbb1a
DD
494 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
495 the alignment of dwarf2 linkonce sections to 0.
a7bda527
DD
496 * coff-sto32.c: Likewise.
497
5a65713f
AJ
4982001-08-20 Andreas Jaeger <aj@suse.de>
499
500 * coff-sparc.c: Add missing prototypes.
501 * elf32-s390.c: Likewise.
502 * elf32-i960.c: Likewise.
503 * aout-target.h: Likewise.
504
4e89ac30
L
5052001-08-20 H.J. Lu <hjl@gnu.org>
506
507 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
508 (elf_num_section_syms): New for num_section_syms.
509
510 * elf.c (elf_map_symbols): Set num_section_syms.
511 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
512 the section symbol index.
513
28db233b
NC
5142001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
515
516 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
517 select the generic has table creator. All elf backends need elf
518 specific fields in the hash table.
519
ba3ef70e
AM
5202001-08-20 Alan Modra <amodra@bigpond.net.au>
521
522 * archive.c (offsetof): Remove define.
523 * elf.c: Likewise.
524 * oasys.c: Likewise
525 * sysdep.h (offsetof): Define.
526
c0846b23
AM
5272001-08-17 Alan Modra <amodra@bigpond.net.au>
528
529 * bfd.c (bfd_get_gp_size): Return an unsigned int.
530 (bfd_set_gp_size): Make param unsigned.
531 * bfd-in2.h: Regenerate.
532 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
533 than calling bfd_get_gp_size.
534 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
535 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
536
0ac450b6
AM
5372001-08-17 Alan Modra <amodra@bigpond.net.au>
538
539 * linker.c (default_fill_link_order): Handle four byte fill value.
540
3619ad04
AM
5412001-08-17 Alan Modra <amodra@bigpond.net.au>
542
5d964dfa
AM
543 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
544 prototype.
545 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
546
5e572849
AM
547 * elf64-mips.c (UNUSED_RELOC): Define.
548 (mips_elf64_howto_table_rel): Use it.
549 (mips_elf64_howto_table_rela): Here too.
550 (mips_elf64_write_relocs): Fix signed/unsigned warning.
551
cea4409c
AM
552 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
553 silence warning.
554 * coffgen.c (coff_print_symbol): Fix warnings.
555 (coff_find_nearest_line): Likewise.
556 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
557 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
558 * format.c (bfd_check_format_matches): Likewise.
559 (bfd_set_format): Likewise.
560 * coff-ia64.c: Add missing prototypes.
561 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
562 signed to silence warnings.
563 (elf64_alpha_relocate_section): Likewise.
564 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
565 (elf64_alpha_add_symbol_hook): Likewise.
566 (elf64_alpha_final_link): Likewise.
567 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
568 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
569 (elf64_alpha_size_got_sections): Likewise.
570 * elfxx-ia64.c: Add missing prototypes.
571 (elfNN_ia64_relocate_section): Fix warning.
572 (elfNN_ia64_unwind_entry_compare): Make params const.
573
0ac450b6
AM
5742001-08-17 Alan Modra <amodra@bigpond.net.au>
575
e9e69f5a
AM
576 * config.bfd (targ64_selvecs): New.
577 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
578
69263e90
AM
579 * bfd-in.h (BFD_VERSION): Remove wrong comment.
580 (BFD_DEFAULT_TARGET_SIZE): New.
581 (BFD_ARCH_SIZE): Comment.
582 * configure.in (target_size): New. Set instead of target64 in
583 selvecs case statement. Set target64 from it.
584 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
585 * bfd-in2.h: Regenerate.
586 * configure: Regenerate.
587
0ac450b6
AM
5882001-08-17 Alan Modra <amodra@bigpond.net.au>
589
3619ad04
AM
590 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
591 (bfd_errmsgs): Add corresponding message.
592 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
593 finding an archive that contains different format object files.
594 Return bfd_error_wrong_object_format for this case.
595 * format.c: Formatting fixes. s/CONST/const/.
596 (bfd_check_format_matches): Accept archives that give
597 bfd_error_wrong_object_format if no full match is found. Tidy
598 code handling matching_vector. Don't return a pointer to freed
599 memory in `matching'. Handle ambiguous matches as for partial
600 archive matches.
601 * bfd-in2.h: Regenerate.
602
47fda0d3
AM
6032001-08-15 Alan Modra <amodra@bigpond.net.au>
604
605 * libieee.h (common_header_type): Add last_byte field.
606
607 * ieee.c: Add missing prototypes. Some format fixes.
608 (struct output_buffer_struct): Move for availability to prototypes.
609 (ieee_part_after): New function.
610 (ieee_slurp_debug): Use it here.
611 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
612 ieee_part_after to set last_byte to one past end of current part.
613 Update callers.
614 (ieee_pos): Pass in ieee_data_struct rather than bfd.
615 Update callers.
616 (parse_expression): Don't go beyond the end of the current part.
617 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
618 (ieee_get_symtab_upper_bound, ieee_get_symtab,
619 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
620 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
621 ieee_set_section_contents, ieee_write_object_contents,
622 ieee_make_empty_symbol): Make static.
623 (ieee_archive_p): Correct comments regarding bfd_read.
624 (ieee_object_p): Similarly.
625 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
626 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
627 input_bfd, output_bfd, output_buffer.
628 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
629 do_with_relocs, ie. as a symbol for relocatable files.
630 (ieee_vec): Add comments showing functions referenced by macros.
5a65713f 631
1725a96e
NC
6322001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
633
634 * aout-tic30.c: Add missing prototypes. Fix formatting.
635 * aout-ns32k.c: Add missing prototypes. Fix formatting.
636 * peXXigen.c: Add missining prototypes. Fix formatting.
637 * aout-adobe.c: Add missining prototypes. Fix formatting.
638
fa645acb
NC
6392001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
640
641 * elf32-v850.c: Add missing function prototypes.
642 Fix some formatting.
1725a96e 643
fa645acb
NC
644 * cpu-v850.c: Add missing function prototype.
645 Fix some formatting.
646
4e771d61
NC
6472001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
648
649 * elf-bfd.h (struct elf_backend_data): Add new fields
650 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
651 (bfd_elf_sprintf_vma): Rename function prototype to
652 '_bfd_elf_sprintf_vma'.
653 (bfd_elf_fprintf_vma): Rename function prototype to
654 '_bfd_elf_fprintf_vma'.
655 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
656 directly, instead indirect via the elf_backend_data structure.
657 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
658 instead indirect via the elf_backend_data structure.
659 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
660 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
661 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
662 already defined.
663 (elf_backend_fprintf_vma): Initialise if not already defined.
fcfbdf31 664 (struct elf_backend_data): Initialise the
4e771d61
NC
665 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
666
99c79b2e
AJ
6672001-08-10 Andreas Jaeger <aj@suse.de>
668
669 * elf64-sparc.c: Add missing prototypes.
670 * elf32-cris.c: Likewise.
671 * elf32-i370.c: Likewise.
672 * elf64-hppa.c: Likewise.
673 * elf64-s390.c: Likewise.
674
1e1b3bc2
AJ
6752001-08-10 Andreas Jaeger <aj@suse.de>
676
677 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
678 Add prototypes where needed.
679
ef071f24
L
6802001-08-10 H.J. Lu <hjl@gnu.org>
681
682 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
683 (bfd_fprintf_vma): Likewise.
684
5c36c02b
L
6852001-08-10 H.J. Lu <hjl@gnu.org>
686
687 * bfd.c (bfd_sprintf_vma): Don't return void.
688 (bfd_fprintf_vma): Likewise.
689
0218d1e4
AJ
6902001-08-10 Andreas Jaeger <aj@suse.de>
691
692 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
693 to build warnings.
694 * configure: Regenerate.
695
814fa6ab
AM
6962001-08-10 Alan Modra <amodra@bigpond.net.au>
697
cc55aec9
AM
698 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
699 warning if not BFD64. Add braces so emacs auto format works.
700 (bfd_elf_fprintf_vma): Likewise.
701
814fa6ab
AM
702 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
703 of _xcoff_swap_ld*.
704 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
705 param to agree with libxcoff.h.
706 (xcoff_swap_ldhdr_out): Likewise.
707 (xcoff_swap_ldsym_in): Likewise.
708 (xcoff_swap_ldsym_out): Likewise.
709 (xcoff_swap_ldrel_in): Likewise.
710 (xcoff_swap_ldrel_out): Likewise.
711 (xcoff_create_csect_from_smclas): Likewise.
712 * coff64-rs6000.c: Add missing prototypes.
713 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
714 with libxcoff.h.
715 (xcoff64_swap_ldhdr_out): Likewise.
716 (xcoff64_swap_ldsym_in): Likewise.
717 (xcoff64_swap_ldsym_out): Likewise.
718 (xcoff64_swap_ldrel_in): Likewise.
719 (xcoff64_swap_ldrel_out): Likewise.
720 (xcoff64_ppc_relocate_section): Make static.
721 (xcoff64_slurp_armap): Likewise.
722 (xcoff64_archive_p): Likewise.
723 (xcoff64_openr_next_archived_file): Likewise.
724 (xcoff64_sizeof_headers): Likewise.
725 (xcoff64_is_lineno_count_overflow): Likewise.
726 (xcoff64_is_reloc_count_overflow): Likewise.
727 (xcoff64_loader_symbol_offset): Likewise.
728 (xcoff64_loader_reloc_offset): Likewise.
729 * elf64-gen.c: Add missing prototypes.
730
d3b05f8d
L
7312001-08-09 H.J. Lu <hjl@gnu.org>
732
733 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
734 (bfd_elf_fprintf_vma): Likewise.
735
d69bb69b
L
7362001-08-09 H.J. Lu <hjl@gnu.org>
737
738 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
739 to ...
740 * elf-bfd.h: Here.
741 * bfd-in2.h: Regenerated.
742
ae4221d7
L
7432001-08-09 H.J. Lu <hjl@gnu.org>
744
745 * bfd-in.h (bfd_sprintf_vma): New prototype.
746 (bfd_fprintf_vma): Likewise.
747 (bfd_elf_sprintf_vma): Likewise.
748 (bfd_elf_fprintf_vma): Likewise.
749 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
750 * bfd-in2.h: Regenerated.
751
752 * bfd.c (bfd_sprintf_vma): New. Defined.
753 (bfd_fprintf_vma): Likewise.
754
755 * elf.c (bfd_elf_sprintf_vma): New. Defined.
756 (bfd_elf_fprintf_vma): Likewise.
757
a7b97311
AM
7582001-08-09 Alan Modra <amodra@bigpond.net.au>
759
760 * coff-rs6000.c: Add missing prototypes.
761 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
762 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
763 xcoff_loader_reloc_offset): Make static.
764 * dwarf1.c: Add missing prototypes.
765 * dwarf2.c: Add missing prototypes.
766 (struct abbrev_info): Move definition.
767 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
768 * elf.c: Add missing prototypes.
769 * elf32-gen.c: Likewise.
770 * elf32-i386.c: Likewise.
771 * elf32-ppc.c: Likewise.
772 (ppc_elf_sort_rela): Use PTR instead of "void *".
773 * elflink.h: Add missing prototypes. Formatting fixes.
774 * merge.c: Add missing prototypes.
775 (last4_eq): Use PTR instead of "void *".
776 (last_eq): Likewise.
777 * syms.c: Add missing prototypes.
778
55ab10f0
NC
7792001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
780
781 * bfd.c: Fix formatting.
782 * bfd-in2.h: Regenerate.
783
1c26dc27
NC
7842001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
785
786 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
787 true (this target uses REL relocations) and 'pcrel_offset' to
788 false (the PC is implied, not stored in the offset).
789
2517a57f
AM
7902001-08-08 Alan Modra <amodra@bigpond.net.au>
791
792 1999-10-19 Linus Nordberg <linus@swox.se>
793 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
794 * elfxx-target.h (elf_backend_want_got_sym): Define.
795 (elfNN_bed): Add elf_backend_want_got_sym.
796 * elflink.c (_bfd_elf_create_got_section): Define
797 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
798
f2363ce5
AO
7992001-08-08 Alexandre Oliva <aoliva@redhat.com>
800
801 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
802 (find_rela_addend): New function.
803 (parse_comp_unit): Call it to find the abbrev offset addend.
804 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
805 members of dwarf2_debug as debugging information is read.
806
993e9275
NC
8072001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
808
809 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
810 targets as well as sh-pe.
811
62efb346
NC
8122001-08-03 Ben Harris <bjh21@netbsd.org>
813
814 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
815 reloc from start of section when computing value for R_ARM_REL32
816 reloc.
817
8e1d4bbb
AM
8182001-08-03 Alan Modra <amodra@bigpond.net.au>
819
820 From H.J. Lu <hjl@gnu.org>
821 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
822 keep relocs for undefined syms if there are no dynamic sections in
823 executable.
824 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
825
8ceb7a1b
CW
8262001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
827
828 * cofflink.c (coff_link_check_ar_symbols): also search for
829 __imp__symbol as well as _symbol.
830 * linker.c (_bfd_generic_link_add_archive_symbols): also
831 search for __imp__symbol as well as _symbol.
832
00a7cdc5
NC
8332001-08-01 Adam Nemet <anemet@lnxw.com>
834
835 * elf.c (elf_sort_sections): Return zero only as the last step.
836
d8adc60f
NC
8372001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
838
839 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
840 ARM_COFF_BUGFIX.
841 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
842 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
843 ARM_COFF_BUGFIX.
844
407c2b92
NC
8452001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
846
847 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
848 to match corresponding bfd_coff_backend data member.
849
8a5cc6be
AM
8502001-07-24 Alan Modra <amodra@bigpond.net.au>
851
852 * Makefile.am: Update dependencies with "make dep-am".
853 * Makefile.in: Regenerate
854
01467f2a
L
8552001-07-15 H.J. Lu <hjl@gnu.org>
856
857 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
858 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
859 * Makefile.in: Regenerate.
860
824e2cb4
L
8612001-07-11 H.J. Lu <hjl@gnu.org>
862
863 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
864 flags when creating the reloc section if the ALLOC flag in the
865 source section is set.
866
a4bd8390
JW
8672001-07-11 Steve Ellcey <sje@cup.hp.com>
868
869 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
870 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
871 * bfd-in2.h: Regenerate.
872 * libbfd.h: Regenerate.
873 * elfxx-ia64.c (ia64_howto_table): Define how to handle
874 new relocations.
875 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
876 (elfNN_ia64_check_relocs): Likewise.
877 (elfNN_ia64_install_value): Likewise.
878 (elfNN_ia64_relocate_section): Likewise.
879
20278fa3
JJ
8802001-07-11 Jakub Jelinek <jakub@redhat.com>
881
882 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
883 R_SPARC_UA64.
884 (elf32_sparc_check_relocs): Likewise.
885 Only create .rela section for alloced sections in shared libraries.
886 (elf32_sparc_relocate_section): Likewise.
887 Remove redundant check.
888 Optimize unaligned reloc usage.
889 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
890 check.
891
067a7d17
L
8922001-07-11 H.J. Lu <hjl@gnu.org>
893
894 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
895 ALLOC|LOAD flags as the source section for debugging sections
896 when creating the reloc section.
897
a78f18dc
JW
8982001-07-05 Jim Wilson <wilson@redhat.com>
899
0a2afbc1
JW
900 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
901 the section of the bigger symbol.
902
a78f18dc
JW
903 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
904
0515494a
NC
9052001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
906
907 * peicode.h (coff_swap_scnhdr_in): For sections containing
908 uninitialised data, only set their size to s_paddr if this does
909 not reset their size to zero. MS's latest compilers will set
910 s_paddr to zero.
911
5e7079af
L
9122001-07-04 H.J. Lu <hjl@gnu.org>
913
914 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
915 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
916 bfd_mach_mips5000.
917
440c4607
NC
9182001-07-03 Mark Elbrecht <snowball3@softhome.net>
919
f47e5071
NC
920 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
921
440c4607
NC
922 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
923 sections being discarded.
924
936e320b
AM
9252001-06-30 Alan Modra <amodra@bigpond.net.au>
926
927 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
928 instead of _bfd_elfcore_section_from_phdr.
929 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
930 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
931 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
932 (elfcore_grok_prstatus): Likewise.
933 (elfcore_grok_lwpstatus): Likewise.
934 (bfd_get_elf_phdr_upper_bound): Likewise.
935 (elfcore_make_note_pseudosection): Formatting.
936 (_bfd_elfcore_strndup): Formatting.
937 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
938 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
939
bb0082d6
AM
9402001-06-29 Daniel Jacobowitz <drow@mvista.com>
941
942 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
943 and _bfd_elfcore_strndup.
944 (struct elf_backend_data): Add elf_backend_grok_prstatus
945 and elf_backend_grok_psinfo.
946 * elf.c (_bfd_elfcore_make_pseudosection): New function.
947 (elfcore_grok_prstatus): Use it.
948 (elfcore_make_note_pseudosection): Likewise.
949 (elfcore_strndup): Rename to...
950 (_bfd_elfcore_strndup): Here, and make global.
951 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
952 (elfcore_grok_note): Call elf_backend_grok_prstatus
953 and elf_backend_grok_psinfo if available.
954 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
955 (_bfd_elf32_mips_grok_psinfo): New function.
956 (elf_backend_grok_prstatus): Define.
957 (elf_backend_grok_psinfo): Define.
958 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
959 (elf_backend_grok_psinfo): Likewise.
960 (elfNN_bed): Include elf_backend_grok_prstatus and
961 elf_backend_grok_psinfo.
962
b64977c5
L
9632001-06-29 H.J. Lu <hjl@gnu.org>
964
965 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
8e1d4bbb 966 hplink->sgot is NULL before filling GOT. Check if hplink->splt
b64977c5
L
967 is NULL before filling PLT.
968
e45bf863
AM
9692001-06-29 Alan Modra <amodra@bigpond.net.au>
970
971 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
972
5a15f56f
AM
9732001-06-27 Alan Modra <amodra@bigpond.net.au>
974
446f2863
AM
975 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
976 here..
977 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
978 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
979 after gc has run.
980
981 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
982 (IS_ABSOLUTE_RELOC): Define.
983 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
984 (hppa_link_hash_newfunc): Always init it.
985 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
986 create COPY relocs only when the reloc is in a read-only section.
987 Instead, allocate space for a dynamic reloc to reference the
988 library symbol directly. Keep track of space we allocate using
989 relocs_entries.
990 (hppa_discard_copies): Delete, and move code to..
991 (allocate_plt_and_got): ..here. Rename to
992 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
993 relocs for non-shared link.
994 (elf32_hppa_size_dynamic_sections): Update calls to above.
995 (elf32_hppa_relocate_section): Write out the dynamic relocs used
996 in lieu of COPY relocs.
997
5a15f56f
AM
998 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
999 here..
1000 (elf_i386_adjust_dynamic_symbol): ..nor here..
1001 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1002 after gc has run.
1003 (elf_i386_size_dynamic_sections): Fix a comment.
1004 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1005 involved in writing reloc out.
1006
866b3400
AM
10072001-06-25 Alan Modra <amodra@bigpond.net.au>
1008
28d0b90e
AM
1009 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1010 Ensure syms are dynamic if we might be emitting a reloc.
1011 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1012 for undefweak or undefined syms..
1013 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1014
866b3400
AM
1015 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1016 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1017 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1018 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1019
6cbac8b9
L
10202001-06-24 H.J. Lu <hjl@gnu.org>
1021
1022 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1023 strncasecmp/strcasecmp instead of strncmp/strcmp.
1024
62b7d3f1
L
10252001-06-23 H.J. Lu <hjl@gnu.org>
1026
866b3400
AM
1027 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1028 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
1029 in the regular object file and treat the weak definition as
1030 the normal one.
1031
12d0ee4a
AM
10322001-06-23 Alan Modra <amodra@bigpond.net.au>
1033
8c694914
AM
1034 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1035 unresolved_reloc test to exclude cases where we use "relocation"
1036 before setting it to point into the .got. Reinstate fudge for
1037 unresolved relocs in debugging sections.
1038
83be169b
AM
1039 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1040 complicated tests for unresolvable relocs with a simple direct
1041 scheme using "unresolved_reloc" var.
1042
ffb2e45b
AM
1043 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1044 elf_i386_dyn_relocs. Update comment.
1045 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1046 dyn_relocs.
1047 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1048 others to aborts.
1049 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1050 abort.
1051 (elf_i386_size_dynamic_sections): Likewise.
1052 (elf_i386_finish_dynamic_symbol): Likewise.
1053 (elf_i386_finish_dynamic_sections): Likewise.
1054 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1055 handling code.
1056
12d0ee4a
AM
1057 Avoid creating COPY relocs if possible.
1058 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1059 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1060 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1061 reloc is in a read-only section. Instead, allocate space for a
1062 dynamic reloc to reference the library symbol directly. Keep
1063 track of space we allocate using pcrel_relocs_copied.
1064 (discard_copies): Delete, and move code to ..
1065 (allocate_plt_and_got): ..here. Rename to
1066 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1067 relocs for non-shared link.
1068 (elf_i386_size_dynamic_sections): Update calls to above functions.
1069 (elf_i386_relocate_section): Write out the dynamic relocs. Add
1070 more ugly logic to avoid "unresolvable relocation" error. Use
1071 htab shortcut in place of elf_hash_table macro.
1072 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
1073 not always be created now.
1074
f631948d
AJ
10752001-06-20 Bo Thorsen <bo@suse.co.uk>
1076
1077 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
1078 shared libraries.
1079
89084430
NC
10802001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1081
1082 * configure.host (mips64-*-linux): Reformat.
1083
68fb2e56
AM
10842001-06-21 Alan Modra <amodra@bigpond.net.au>
1085
1086 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
1087 allocate local .got space. Use shortcuts from hash table for .got
1088 and .plt rather than comparing section names.
1089 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
1090 adjusting index into local_got_refcounts to document what we are
1091 really doing.
1092 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
1093 Tidy .got and .plt error checking.
1094
9317eacc
CM
10952001-06-20 Catherine Moore <clm@redhat.com>
1096
bb0082d6
AM
1097 * elf-bfd.h (struct elf_backend_data):
1098 elf_backend_emit_relocs: New field: Function for emitting
1099 relocs.
1100 elf_backend_count_relocs: New field: Function for determining
1101 the number of relocs to be emitted.
1102 * elfxx-target.h: Provide default (NULL) values for
1103 elf_backend_emit_relocs and elf_backend_count_relocs.
1104 * elflink.h (elf_link_size_reloc_section): Make the hash table
1105 big enough to hold the relocs counted by either reloc_count or
1106 o->reloc_count.
1107 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
1108 should be emitted, either because of a command line option
1109 stored in the info structure or because the target provides a
1110 special reloc emitting function.
1111 If the target provides a reloc counting function use it,
1112 unless performing a relocatable link or emitting all relocs.
1113 Also set the SEC_RELOC flag on any output section which will
1114 contain relocs.
1115 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
1116 should be emitted, either because of a command line option
1117 stored in the info structure or because the target provides a
1118 special reloc emitting function.
1119 If the target provides a reloc emitting function, use it,
1120 unless performing a relocatable link or emitting all relocs.
9317eacc 1121
161d71a6
L
11222001-06-20 H.J. Lu <hjl@gnu.org>
1123
1124 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1125 allocate local .got space.
1126
fd8ab9e5
AJ
11272001-06-19 Andreas Jaeger <aj@suse.de>
1128
1129 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1130 dynamic symbols.
1131
99293407
HPN
11322001-06-18 Hans-Peter Nilsson <hp@axis.com>
1133
1134 * elflink.h (struct elf_assign_sym_version_info): Remove member
1135 export_dynamic. All users changed to use info member.
1136 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1137 export_dynamic, instead use member in parameter info.
1138 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1139 bfd_elf64_size_dynamic_sections): Update prototype.
1140 * bfd-in2.h: Regenerate.
1141
bc2b6df7
L
11422001-06-18 H.J. Lu <hjl@gnu.org>
1143
1144 * elflink.h (elf_info_failed): Add a new field, verdefs.
1145 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1146 elf_export_symbol.
1147 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1148 should be exported.
1149
43917054
L
11502001-06-17 H.J. Lu <hjl@gnu.org>
1151
1152 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1153 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 1154 section is against a read-only section.
43917054
L
1155 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1156 field to false.
1157 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1158 in the .rel.dyn section against a read-only section by setting
1159 DF_TEXTREL or readonly_reloc.
1160 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1161 it is true.
1162 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1163 there is a relocation in the .rel.dyn section against a
1164 read-only section.
1165 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1166 DF_TEXTREL is set.
1167
7c8ca0e4
NC
11682001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1169
1170 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1171 function. Move flagword result into parameter list. Remove
1172 comment about setting bfd_error_handler to intercept failure
1173 results.
bb0082d6 1174 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
1175 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1176 caller.
bb0082d6 1177 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 1178 function. Move flagword result into parameter list.
bb0082d6
AM
1179 * libcoff.h: Regenerate.
1180 * libecoff.h: Regenerate.
7c8ca0e4 1181
dee0a8f4
NC
11822001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1183
1184 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1185 section is going to follow it.
1186
0d1ea5c0
CM
11872001-06-12 Catherine Moore <clm@redhat.com>
1188
bb0082d6
AM
1189 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1190 with the file_align entry from elf_backend_data.
1191 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1192 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 1193
4e8a9624
AM
11942001-06-10 Alan Modra <amodra@bigpond.net.au>
1195
1196 * elflink.h: Whitespace changes.
1197 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1198 rather than "unsigned char".
1199 (elf_link_output_relocs): Likewise.
1200 (elf_link_input_bfd): Likewise.
1201 (elf_reloc_link_order): LIkewise.
1202 * elf.c: s/CONST/const/. Whitespace changes.
1203 * elf32-mips.c: Formatting fix.
1204
1205 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
1206 * Makefile.in: Regenerate.
1207 * po/Make-in: Remove trailing tab.
1208
7a25cd3e
PB
12092001-06-09 Philip Blundell <philb@gnu.org>
1210
1211 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
1212 change.
1213 (elf32_arm_plt_entry): Likewise.
1214
3f5a136d
L
12152001-06-08 H.J. Lu <hjl@gnu.org>
1216
1217 * elf.c (swap_out_syms): Keep names for global section symbols.
1218
d8fe1fed
L
12192001-06-07 H.J. Lu <hjl@gnu.org>
1220
1221 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
1222 MIPS-based machines need it.
1223
c36e006f
L
12242001-06-07 H.J. Lu <hjl@gnu.org>
1225
1226 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
1227 for SGI only.
1228
1229 * config.bfd: Remove ecoff from Linux/mips.
1230
cc78d0af
AJ
12312001-06-07 Andreas Jaeger <aj@suse.de>
1232
1233 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
1234 assertion.
1235 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
1236 alignment of 8 for .rela sections; handle further relocations.
1237
879db8be
NC
12382001-06-06 Christian Groessler <cpg@aladdin.de>
1239
bb0082d6 1240 * coff-z8k.c: Fix formatting.
879db8be
NC
1241 Fix howtos: howto->size was always 1.
1242
cbb1fd50
NC
12432001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1244
1245 * configure.host (mips64*-*-linux*): Define.
1246
73a74a62
AM
12472001-06-05 Alan Modra <amodra@bigpond.net.au>
1248
6725bdbf
AM
1249 * elf32-i386.c (elf_i386_discard_copies): Rename to
1250 discard_copies, and use elf_link_hash_entry arg rather than
1251 elf_i386_link_hash_entry.
1252 (elf_i386_link_hash_traverse): Delete.
1253 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
1254 Tidy sizing of dynamic sections.
1255 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
1256 possible .plt entries.
1257 (elf_i386_gc_sweep_hook): Likewise.
1258 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
1259 everything with plt.refcount <= 0.
1260
1261 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
1262 .relgot space here.
1263 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 1264 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
1265 .rel.plt here..
1266 (allocate_plt_and_got): ..instead do it all here. New function.
1267 (elf_i386_size_dynamic_sections): Allocate local .got space and
1268 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
1269 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
1270 rather than gc variety).
1271 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1272 (elf_i386_relocate_section): Use it here and correct handling of
1273 R_386_GOT32. Provide section and offset for "unresolvable
1274 relocation" error message.
1275 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
1276
1277 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
1278 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
1279 (elf_i386_link_hash_table_create): Init them.
1280 (create_got_section): New function.
1281 (elf_i386_create_dynamic_sections): New function.
1282 (elf_backend_create_dynamic_sections): Set to above.
1283 (elf_i386_check_relocs): Use shortcuts from hash table rather than
1284 calling bfd_get_section_by_name.
1285 (elf_i386_gc_sweep_hook): Likewise.
1286 (elf_i386_adjust_dynamic_symbol): Likewise.
1287 (elf_i386_size_dynamic_sections): Likewise.
1288 (elf_i386_relocate_section): Likewise.
1289 (elf_i386_finish_dynamic_sections): Likewise.
1290
73a74a62
AM
1291 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
1292
24a5e751
L
12932001-06-02 H.J. Lu <hjl@gnu.org>
1294
1295 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
1296 and ELFOSABI_HPUX.
1297 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
1298
15103188
L
12992001-06-02 H.J. Lu <hjl@gnu.org>
1300
1301 * aout-cris.c (MACHTYPE_OK): New. Defined.
1302
2f484710
HPN
13032001-06-02 Hans-Peter Nilsson <hp@axis.com>
1304
1305 * section.c (_bfd_strip_section_from_output): Handle NULL
1306 output_section.
1307
a5ac692b
L
13082001-06-02 H.J. Lu <hjl@gnu.org>
1309
1310 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
1311 rs6000coff64_vec only if BFD64 is defined.
1312 (powerpc64-*-aix*): Enable only if BFD64 is defined.
1313
27e53099
L
13142001-06-02 H.J. Lu <hjl@gnu.org>
1315
1316 * coff-ia64.c (ia64coff_object_p): Rewrite with
1317 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
1318
80643fbc
AJ
13192001-06-01 Andreas Jaeger <aj@suse.de>
1320
1321 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
1322 relocation, small reformatting.
1323
6b3db546
AJ
13242001-05-29 Andreas Jaeger <aj@suse.de>
1325
1326 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
1327 (elf64_x86_64_relocate_section): Likewise.
1328
4dc86686
AM
13292001-05-30 Alan Modra <amodra@one.net.au>
1330
1331 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
1332 millicode. Don't allocate .got and .rela.got space here..
1333 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
1334 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
1335 .rela.plt here..
1336 (hppa_handle_PIC_calls): ..nor here..
1337 (allocate_plt_and_got): ..instead do it all here. New function.
1338 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
1339 call allocate_plt_and_got. No need to zap .got if not dynamic.
1340 (elf32_hppa_final_link): Call regular bfd_final_link instead of
1341 gc_common_final_link.
1342 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1343 (elf32_hppa_relocate_section): Use it here.
1344 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
1345 dynamic_sections_created.
1346 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
1347
de41dcd8
AJ
13482001-05-28 Andreas Jaeger <aj@suse.de>
1349
1350 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
1351 generic version since we want a hashsize of 4.
1352 (elf_backend_size_info): Likewise.
1353
209f668e
NC
13542001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1355
209f668e
NC
1356 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
1357 a zeroing loop.
1358 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
1359 (elf_link_input_bfd): Likewise.
1360 (elf_reloc_link_order): Likewise.
1361 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
1362 relocations correctly.
1363
f7a74f8c
NC
13642001-05-28 Nicolas Pitre <nico@cam.org>
1365
1366 * elf32-arm.h: fix PLT generation for big endian ARM
1367
8dea1268
AM
13682001-05-28 Alan Modra <amodra@one.net.au>
1369
1370 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
1371 for symbols forced local that need plabels.
1372 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
1373 .plt.rela for local syms if non-shared.
1374 (hppa_build_one_stub): Mask lsb of plt.offset.
1375 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
1376 (clobber_millicode_symbols): Correct comment.
1377 (elf32_hppa_relocate_section): Likewise.
1378 (elf32_hppa_finish_dynamic_symbol): Likewise.
1379
0f2712ed
NC
13802001-05-28 Jeff Sturm <jsturm@one-point.com>
1381
1382 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
1383 * bfd-in2.h: Regenerate.
1384 * libbfd.h: Regenerate.
1385 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
1386 and BFD_RELOC_SPARC_UA64 mapping
1387 * elf64-sparc.c: Likewise.
de41dcd8 1388
6768c14a
L
13892001-05-25 H.J. Lu <hjl@gnu.org>
1390
1391 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
1392 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
1393 (coff-rs6000.lo): Remove the old dependency.
1394 * Makefile.in: Rebuild.
1395
1396 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
1397 coff-rs6000.lo.
1398
b55039f4
L
13992001-05-25 H.J. Lu <hjl@gnu.org>
1400
1401 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
1402 rs6000coff_core_file_matches_executable_p,
1403 rs6000coff_core_file_failing_command and
1404 rs6000coff_core_file_failing_signal only if AIX_CORE is
1405 defined.
1406 (pmac_xcoff_vec): Likewise.
1407 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1408
64e9ece0
TW
14092001-05-25 Timothy Wall <twall@redhat.com>
1410
1411 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
1412 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
1413
f34d8777
L
14142001-05-25 H.J. Lu <hjl@gnu.org>
1415
1416 * bfd-in2.h: Regenerated.
1417 * libcoff.h: Likewise.
1418
49e9d0d3
AM
14192001-05-25 Alan Modra <amodra@one.net.au>
1420
1421 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
1422 undefined millicode syms in shared libs.
1423 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
1424 (elf32_hppa_check_relocs): Likewise.
1425 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1426 (elf32_hppa_size_dynamic_sections): Likewise.
1427 (elf32_hppa_relocate_section): Likewise.
1428 (elf32_hppa_finish_dynamic_symbol): Likewise.
1429 (elf32_hppa_finish_dynamic_sections): Likewise.
1430
beb1bf64
TR
14312001-05-24 Tom Rix <trix@redhat.com>
1432
bb0082d6 1433 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
1434 xcoff-target.h not used to define rs6000 or ppc bfd.
1435 * Makefile.in same
1436
1437 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
1438 to 64 bit.
1439
1440 * coff-rs6000.c : Many changes for 64 bit support. Move common
1441 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
1442 and pmac_xcoff_vec
1443
1444 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
1445 linker now supported. Explictly define the rs6000coff64_vec.
1446
1447 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 1448 (coff_print_aux) same
beb1bf64
TR
1449 (coff_write_object_contents) same
1450 (coff_slurp_line_table) same
1451
1452 * coffgen.c : (coff_fix_symbol_name) formatting
1453 (coff_mangle_symbols) xcoff 64 bit support
1454 (coff_write_symbol) same
1455 (coff_write_alien_symbol) same
1456 (coff_write_native_symbol) same
1457 (coff_write_symbols) same
1458 (coff_get_symbol_info) same
1459 (bfd_coff_get_syment) same
1460 (coff_print_symbol) same
1461
1462 * config.bfd : add powerpc64-*-aix* target
1463
1464 * libcoff-in.h : formatting
1465
1466 * libcoff.h : move xcoff extern declarations to libxcoff.h
1467
1468 * libxcoff.h : New file
1469
de41dcd8
AJ
1470 * xcofflink.c : Many changes for xcoff64 support. Move common
1471 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
1472 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
1473 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
1474
1475 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
1476 aix4.2+ -binitfini.
1477
1478 (xcoff_build_ldsyms) : handle special __rtinit symbol.
1479
e90fdc1a
AO
14802001-05-23 Alexandre Oliva <aoliva@redhat.com>
1481
1482 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
1483 s/ENTIRES/ENTRIES/.
1484
d1cf510e
NC
14852001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1486
c2feb664
NC
1487 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
1488 * libbfd.h: Regenerate.
4e8a9624 1489 * bfd-in2.h: Regenerate.
c2feb664 1490
d1cf510e
NC
1491 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
1492 * archures.c (bfd_mach_mips12000): Define.
1493 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
1494 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
1495 support.
1496 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
1497 * bfd-in2.h: Regenerate.
1498 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
1499
6c426cf3
NC
15002001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
1501
1502 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
1503 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
1504 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
1505 that is used by GCC.
1506
d9bc7a44
NC
15072001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1508
1509 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
1510 of entries in a structured section.
bb0082d6
AM
1511 * elf.c: Use new macro.
1512 * elf32-i386.c: Use new macro.
1513 * elf32-mips.c: Use new macro.
1514 * elf64-alpha.c: Use new macro.
1515 * elf64-sparc.c: Use new macro.
1516 * elfcode.h: Use new macro.
1517 * elflink.h: Use new macro.
d9bc7a44
NC
1518
15192001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1520
1521 * bfdint.texi: Replace -oformat with --oformat.
1522
f5198f61
AJ
15232001-05-21 Andreas Jaeger <aj@suse.de>
1524
1525 * dwarf2.c (decode_line_info): Fix error message.
1526 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
1527 adjust error message.
1528
7913c838
L
15292001-05-18 H.J. Lu <hjl@gnu.org>
1530
1531 * elflink.h (elf_link_add_object_symbols): Revert the last
1532 change.
1533
e0522e89
AM
15342001-05-17 Alan Modra <amodra@one.net.au>
1535
1536 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
1537 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
1538 (hppa_build_one_stub): Add an assert to check plt.offset.
1539
96fd004e
L
15402001-05-17 H.J. Lu <hjl@gnu.org>
1541
1542 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
1543 version definition to basename of the output filename.
1544
f3876d8b
L
15452001-05-17 H.J. Lu <hjl@gnu.org>
1546
1547 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
1548 basename of the bfd filename.
1549
d1778b88
AM
15502001-05-16 Alan Modra <amodra@one.net.au>
1551
1552 * section.c (asection): Add linker_has_input field.
1553 (STD_SECTION): Adjust initialization to suit.
1554 * ecoff.c (bfd_debug_section): Likewise.
1555 * bfd-in2.h: Regenerate.
1556
2a0fa943
AO
15572001-05-15 Alexandre Oliva <aoliva@redhat.com>
1558
1559 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
1560 negative 32-bit operands to 16 operands when the operand is
1561 going to be zero-extended by the modified opcode.
1562
bcee8eb8
AM
15632001-05-12 Peter Targett <peter.targett@arccores.com>
1564
1565 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
1566 name for 'arc5' core versions.
1567 (bfd_arc_arch): Make bfd_mach_arc_6 default.
1568
1569 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
1570 architecture.
1571 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
1572
579f31ac
JJ
15732001-05-11 Jakub Jelinek <jakub@redhat.com>
1574
1575 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
1576 sections as well.
1577 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
1578 to .gnu.linkonce.t.FOO text section.
1579
8550eb6e
JJ
15802001-05-11 Jakub Jelinek <jakub@redhat.com>
1581
1582 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
1583 fields, change sec into secinfo.
1584 (struct sec_merge_info): Add chain, remove last fields.
1585 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
1586 (sec_merge_hash_lookup): If lookup could not use a string only
1587 because it has bad alignment, mark the old string for deletion.
1588 (sec_merge_add): Add secinfo argument. Don't compute entry's
1589 position, instead record the section.
1590 (sec_merge_emit): Update for the sec into secinfo change in
1591 struct sec_merge_hash_entry.
1592 (_bfd_merge_section): Only record the section for merging, defer
1593 putting strings into the hash table.
1594 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
1595 _bfd_merge_sections): New functions.
1596 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
1597 changes.
1598 * libbfd-in.h (_bfd_merge_sections): Add prototype.
1599 (_bfd_nolink_bfd_merge_sections): Define.
1600 * libbfd.h: Likewise.
1601 (bfd_generic_merge_sections): Add prototype.
1602 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
1603 (struct bfd_target): Likewise.
1604 * bfd.c (bfd_merge_sections): Define.
1605 * bfd-in2.h: Rebuilt.
1606 * elf.c (_bfd_elf_merge_sections): New function.
1607 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
1608 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
1609 * reloc.c (bfd_generic_merge_sections): New function.
1610 * vms.c (vms_bfd_merge_sections): New function.
1611 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
1612 * aout-target.h (MY_bfd_merge_sections): Define.
1613 * aout-tic30.c (MY_bfd_merge_sections): Define.
1614 * binary.c (binary_bfd_merge_sections): Define.
1615 * bout.c (b_out_bfd_merge_sections): Define.
1616 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
1617 * coffcode.c (coff_bfd_merge_sections): Define.
1618 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
1619 * i386msdos.c (msdos_bfd_merge_sections): Define.
1620 * i386os9k.c (os9k_bfd_merge_sections): Define.
1621 * ieee.c (ieee_bfd_merge_sections): Define.
1622 * ihex.c (ihex_bfd_merge_sections): Define.
1623 * nlm-target.h (nlm_bfd_merge_sections): Define.
1624 * oasys.c (oasys_bfd_merge_sections): Define.
1625 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
1626 * som.c (som_bfd_merge_sections): Define.
1627 * srec.c (srec_bfd_merge_sections): Define.
1628 * tekhex.c (tekhex_bfd_merge_sections): Define.
1629 * versados.c (versados_bfd_merge_sections): Define.
1630 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
1631
1548c54f
NC
16322001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
1633
1634 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
1635 to be unsigned long, in order to match its use.
1636
689effed
L
16372001-05-10 H.J. Lu <hjl@gnu.org>
1638
1639 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
1640 indirect symbols.
1641
6e5222be
L
16422001-05-09 H.J. Lu <hjl@gnu.org>
1643
1644 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
1645 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1646 Remove the unused veriable `dynver'.
1647
8e191bd3
ILT
16482001-05-08 Ian Lance Taylor <ian@zembu.com>
1649
1650 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1651 NULL or is not COFF.
1652 (coff_i386_rtype_to_howto): Don't dump core if output section
1653 owner is not COFF.
1654
062e2358
AM
16552001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1656
1657 * ecoff.c (bfd_debug_section): Fix initialization.
1658 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1659 is always a positive integer. Cast away sign mismatch.
1660 * elf32-mips.c: Fix misleading comment and typo.
1661 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1662 correct data type.
1663 * elflink.c: Fix typo.
1664 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1665 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1666
16b65e4e
RH
16672001-05-04 Richard Henderson <rth@redhat.com>
1668
1669 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1670
cac15327
NC
16712001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1672
1673 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 1674 EF_ARM_HASENTRY if the start address is set.
cac15327 1675
966b3e0b
NC
16762001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1677
1678 * targets.c (_bfd_target_vector_entries): Compute value based on
1679 the size of the _bfd_target_vector and not bfd_target_vector.
1680
210ba1e8
L
16812001-05-03 H.J. Lu <hjl@gnu.org>
1682
1683 * elfcode.h: Include "libiberty.h".
1684
1685 * elflink.h (elf_link_add_object_symbols): Set
1686 elf_dt_name (abfd) to basename of the bfd filename.
1687 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1688 of the bfd filename.
1689
56fc028e
AJ
16902001-05-03 Andreas Jaeger <aj@suse.de>
1691
1692 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1693 (elf_generic_info_to_howto_rel): Likewise.
1694 * coff-alpha.c (reloc_nil): Likewise.
1695 (alpha_ecoff_bad_format_hook): Likewise.
1696 (alpha_adjust_reloc_out): Likewise.
1697 (alpha_bfd_reloc_type_lookup): Likewise.
1698 (alpha_convert_external_reloc): Likewise.
1699 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1700 (elf64_alpha_reloc_bad): Likewise.
1701 (elf64_alpha_reloc_gpdisp): Likewise.
1702 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1703 (elf64_alpha_info_to_howto): Likewise.
1704 (elf64_alpha_add_symbol_hook): Likewise.
1705 (elf64_alpha_create_got_section): Likewise.
1706 (elf64_alpha_is_local_label_name): Likewise.
1707 (elf64_alpha_merge_ind_symbols): Likewise.
1708 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1709 (mips_elf64_get_reloc_upper_bound): Likewise.
1710 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1711 (nlm_alpha_get_public_offset): Likewise.
1712
c7e40348
NC
17132001-05-02 Johan Rydberg <jrydberg@opencores.org>
1714
bb0082d6 1715 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 1716 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 1717 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 1718
5fba655a
L
17192001-04-30 H.J. Lu <hjl@gnu.org>
1720
1721 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1722 only for ELF_LINK_FORCED_LOCAL.
1723 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1724 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1725 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1726
1727 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1728 if the symbol has hidden or internal visibility.
1729
db20fd76
AM
17302001-04-30 Alan Modra <amodra@one.net.au>
1731
1732 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1733 calls to undefined weak symbols.
1734
6a2bda3f
AJ
17352001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1736
1737 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1738 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1739
053579d7
AJ
17402001-04-27 Andreas Jaeger <aj@suse.de>
1741
1742 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1743 out handled entries.
1744 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1745 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1746 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1747 GOT32.
1748
87748b32
NC
17492001-04-27 Sean McNeil <sean@mcneil.com>
1750
1751 * config.bfd: Add arm-vxworks target.
1752 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1753 addend (fro VXworks targets).
1754
f5f31454
L
17552001-04-26 H.J. Lu <hjl@gnu.org>
1756
1757 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1758 valid.
1759
d436a9b3
FCE
17602001-04-25 Frank Ch. Eigler <fche@redhat.com>
1761
1762 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1763 * bfd-in2.h: Regenerated.
1764
a531bbd2
JJ
17652001-04-24 Jakub Jelinek <jakub@redhat.com>
1766
1767 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1768 (struct sec_merge_hash): Remove alignment_power.
1769 (sec_merge_hash_newfunc): Clear alignment.
1770 (sec_merge_hash_lookup): Pass alignment as argument.
1771 Use hashp->root.next, not hashp->next to walk the hash chain.
1772 If a string already in the hashtable does not have required
1773 alignment, create a new hashtable entry.
1774 (sec_merge_init): Remove alignment_power argument.
1775 (sec_merge_add): Add alignment argument.
1776 (sec_merge_emit): Alignment is now a per-entity thing, not per
1777 section.
1778 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1779 for proper alignment.
1780 Pass alignment information to sec_merge_add.
1781
6840198f
NC
17822001-04-24 Christian Groessler <cpg@aladdin.de>
1783
1784 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1785 and R_REL16 reloc types; accept odd values for R_REL16 type
1786
b3baf5d0
NC
17872001-04-24 Johan Rydberg <jrydberg@opencores.org>
1788
1789 * cpu-openrisc.c: New file.
1790 * elf32-openrisc.c: Likewise.
1791
1792 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1793 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1794 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1795 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1796 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1797 * Makefile.in: Regenerated.
1798 * config.bfd: (openrisc-*-elf): New target.
053579d7 1799 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
1800 * configure: Regenerated.
1801 * libbfd.h: Regenerated.
1802 * bfd-in2.h: Regenerated.
1803 * reloc.c: Add OpenRISC relocations.
053579d7 1804 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
1805 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1806 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1807 (bfd_openrisc_arch): Declare.
1808 (bfd_archures_list): Add bfd_openrisc_arch.
1809 * elf.c (prep_headers): Add bfd_arch_openrisc.
1810
fe4770f4
AJ
18112001-04-23 Bo Thorsen <bo@suse.de>
1812
1813 * elf64-x86-64.c: Add c++ vtable hack.
1814 Small whitespace and comment changes.
1815
653165cc
AJ
18162001-04-19 Andreas Jaeger <aj@suse.de>
1817
1818 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1819 (elf64_x86_64_plt_entry): Likewise.
1820 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1821 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1822
4d96d128
HPN
18232001-04-17 Hans-Peter Nilsson <hp@axis.com>
1824
1825 * elf32-cris.c: Tweak comments related to dynamic linking.
1826 (cris_elf_relocate_section): When not creating shared object, fill
1827 in the .got table for any symbol not in the dynamic symbol table.
1828 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1829 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1830 table.
1831 (cris_elf_check_relocs): Use variable r_type in all places rather
1832 than the original expression. Add default case in switch for
1833 reloc types.
1834 (elf_cris_size_dynamic_sections): Iterate over
1835 elf_cris_discard_excess_program_dynamics when not creating shared
1836 library.
653165cc 1837 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
1838 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1839 (elf_cris_discard_excess_program_dynamics): New.
1840
3ed30d29
DD
18412001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1842
1843 * coffcode.h (coff_write_object_contents): Use
1844 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1845
a80f6941
L
18462001-04-14 H.J. Lu <hjl@gnu.org>
1847
1848 * bfd-in2.h: Regenerate.
1849
767e4b0d
JJ
18502001-04-14 Jakub Jelinek <jakub@redhat.com>
1851
1852 * section.c (STD_SECTION): Add entsize.
1853
2dd439c5
L
18542001-04-13 H.J. Lu <hjl@gnu.org>
1855
1856 * section.c (SEC_MERGE): Define new flag for merging.
1857 (SEC_STRINGS): Likewise.
1858 (entsize): New field.
1859
baf80c32
DD
18602001-04-13 Roger Sayle <roger@metaphorics.com>
1861
1862 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1863 flag on pe-i386 targets.
1864
f5fa8ca2
JJ
18652001-04-13 Jakub Jelinek <jakub@redhat.com>
1866
1867 * libbfd-in.h (_bfd_merge_section): New.
1868 (_bfd_write_merged_section): New.
1869 (_bfd_merged_section_offset): New.
1870 * libbfd.h: Rebuilt.
1871 * linker.c (_bfd_generic_link_output_symbols): Handle
1872 discard_sec_merge.
1873 * aoutx.h (aout_link_write_symbols): Likewise.
1874 * pdp11.c (aout_link_write_symbols): Likewise.
1875 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1876 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1877 sections.
1878 (elf_link_sec_merge_syms): New.
1879 (elf_link_input_bfd): Call _bfd_merged_section_offset
1880 and _bfd_write_merged_section.
1881 Handle discard_sec_merge.
1882 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1883 field.
1884 (struct bfd_elf_section_data): Likewise.
1885 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1886 SEC_STRINGS section flags and entsize from their ELF counterparts.
1887 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1888 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1889 from their BFD counterparts.
1890 * merge.c: New file.
1891 * Makefile.am: Add strtab.lo.
1892 * Makefile.in: Rebuilt.
1893
d954b040
HPN
18942001-04-09 Hans-Peter Nilsson <hp@axis.com>
1895
1896 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1897 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1898
fdbafa10
L
18992001-04-05 Steven J. Hill <sjhill@cotw.com>
1900
1901 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1902 endian MIPS ELF target.
1903 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1904 MIPS ELF target.
1905
1906 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1907 64bit big endian MIPS ELF target.
653165cc 1908 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1909 endian MIPS ELF target.
1910 * configure: Regenerated.
1911
1912 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1913 little endian targets.
1914 (mips_elf_sym_is_global): Handle traditional targets.
1915
1916 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1917 64bit big endian MIPS ELF target.
1918 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1919 endian MIPS ELF target.
1920
1921 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1922 and bfd_elf64_tradlittlemips_vec.
1923
dd484e5c
L
19242001-04-05 David Mosberger <davidm@hpl.hp.com>
1925
1926 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1927 ordinary "progbits" section.
1928
391a809a
AM
19292001-04-04 Alan Modra <alan@linuxcare.com.au>
1930
1931 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1932 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1933
5854c633
L
19342001-04-03 David Mosberger <davidm@hpl.hp.com>
1935
1936 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1937
8b4b0fac
L
19382001-03-30 H.J. Lu <hjl@gnu.org>
1939
1940 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1941 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1942
eb4a6e4f
L
19432001-03-26 H.J. Lu <hjl@gnu.org>
1944
1945 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1946 if there are any relocations for generic ELF.
1947 (bfd_elf32_bfd_link_add_symbols): Defined to
1948 elf32_generic_link_add_symbols.
1949 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1950 if there are any relocations for generic ELF.
1951 (bfd_elf64_bfd_link_add_symbols): Defined to
1952 elf64_generic_link_add_symbols.
1953
55c80943
NC
19542001-03-23 Nick Clifton <nickc@redhat.com>
1955
1956 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1957 files created in build directory.
1958 (BUILD_HFILES): New variable: List of header files created in
1959 build directory.
1960 (POTFILES): Delete.
1961 (po/POTFILES.in): Replace rule with empty entry.
1962 (po/SRC-POTFILES.in): New rule: Create a list of source files
1963 in the source directory.
1964 (po/BLD-POTFILES.in): New rule: Create a list of source files
1965 in the build directory.
1966 (MOSTLYCLEAN): Do not delete source files created in build
1967 directory.
1968 * Makefile.in: Regenerate.
1969 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1970 into po/Makefile.
1971 * configure: Regenerate.
1972
1973 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1974 and BLD_POTFILES.
55c80943 1975 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1976 Delete POTFILES when performing distclean.
1977 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1978 * po/POTFILES.in: Delete.
1979 * po/SRC-POTFILES.in: New file.
1980 * po/BLD-POTFILES.in: New file.
bb0082d6 1981 * po/bfd.pot: Regenerate.
55c80943 1982
58d29fc3
HPN
19832001-03-22 Hans-Peter Nilsson <hp@axis.com>
1984
915e5146
HPN
1985 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1986 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1987 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1988 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1989 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1990 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1991 functions.
1992 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1993 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1994 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1995 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1996 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1997 New HOWTO members for new relocs.
1998 (cris_reloc_map): Map new relocs.
1999 (ELF_DYNAMIC_INTERPRETER): Define.
2000 (PLT_ENTRY_SIZE): Define.
2001 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2002 elf_cris_pic_plt_entry): New, PLT templates.
2003 (struct elf_cris_pcrel_relocs_copied, struct
2004 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2005 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2006 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2007 positive values. Adjust PCREL relocs to be relative to location
2008 after relocation.
2009 (cris_elf_relocate_section): Handle relocations to dynamic
2010 objects. Handle new relocations. Call error handler when seeing
2011 non-PIC relocation for read-only sections while generating shared
2012 object.
2013 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2014 entries.
2015 (bfd_elf32_bfd_link_hash_table_create,
2016 elf_backend_adjust_dynamic_symbol,
2017 elf_backend_size_dynamic_sections,
2018 elf_backend_finish_dynamic_symbol,
2019 elf_backend_finish_dynamic_sections,
2020 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2021 elf_backend_hide_symbol, elf_backend_want_got_plt,
2022 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2023 elf_backend_got_header_size, elf_backend_plt_header_size):
2024 Define.
2025
58d29fc3
HPN
2026 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2027 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2028 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2029 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2030 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2031 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2032 * bfd-in2.h, libbfd.h: Regenerate.
2033
7a65545d
DN
20342001-03-21 Diego Novillo <dnovillo@redhat.com>
2035
2036 (_bfd_mips_elf_relocate_section): Give a better error message when
2037 a relocation is not recognized.
2038
b32b5d6e
AM
20392001-03-21 Alan Modra <alan@linuxcare.com.au>
2040
2041 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2042 non-NULL before attempting to dereference.
2043
f4fbb4a3
L
20442001-03-20 H.J. Lu <hjl@gnu.org>
2045
2046 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2047 * configure: Rebuild.
2048
95fc45e6
AS
20492001-03-20 Andreas Schwab <schwab@suse.de>
2050
2051 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2052 relocation value when resolving a reference from a debugging
2053 section.
2054
03d411a9
NC
20552001-03-16 Scott Thomason <SThomaso@hii.com>
2056
2057 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2058 (xcoff64_swap_sym_out): Fix syntax errors.
2059
d1659392
NC
20602001-03-16 Richard Sandiford <rsandifo@redhat.com>
2061
2062 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2063
12cca0d2
AM
20642001-03-15 Alan Modra <alan@linuxcare.com.au>
2065
2066 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
2067 (hppa_link_hash_newfunc): Init it.
2068 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
2069 section appears to be non-PIC.
2070 (final_link_relocate): Likewise.
2071 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
2072 possible candidate function, and set pic_call for those that will
2073 only have a .plt entry for the PIC call stub.
2074 (hppa_handle_PIC_calls): Set maybe_pic_call.
2075
cd6ec716
DD
20762001-03-12 DJ Delorie <dj@redhat.com>
2077
2078 * elf32-sh.c (sh_elf_relocate_section): Only relocation
2079 R_SH_DIR8WP* relocs if they're against external symbols, else
2080 they're just for relaxing. Validate the reloc values.
2081
43a0748c
NC
20822001-03-12 Stefan Geuken <mail@stefan-geuken.de>
2083
2084 * binary.c (bfd_external_binary_architecture): Declare.
2085 (binary_object_p): If bfd_external_binary_architecture is defined,
2086 set the architecture to this string.
2087
d982ba73
PB
20882001-03-11 Philip Blundell <philb@gnu.org>
2089
2090 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
2091 entries that could serve as a definition for a weak symbol.
2092
7898deda
NC
20932001-03-08 Nick Clifton <nickc@redhat.com>
2094
2095 * Most files: Update copyright notices using Perl script created
2096 by Kevin Buettner <kevinb@redhat.com>.
653165cc 2097
df425bc0
NC
20982001-03-07 Nick Clifton <nickc@redhat.com>
2099
2100 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
2101 prior patch on ! defined OLD_ARM_ABI.
2102
bcdd92f3
AJ
21032001-03-07 Andreas Jaeger <aj@suse.de>
2104
2105 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
2106 some relocation values.
2107
4f3c3dbb
NC
21082001-03-06 Nick Clifton <nickc@redhat.com>
2109
2110 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
2111 of offset in BLX(1) instruction.
2112 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
2113 offset in BLX(1) instruction.
bb0082d6 2114 Fix formatting.
4f3c3dbb 2115
f8f3c6cc
NC
21162001-03-06 Nick Clifton <nickc@redhat.com>
2117
2118 * coff-arm.c (coff_arm_reloc_type_lookup): Add
2119 BFD_RELOC_THUMB_PCREL_BLX.
2120
3cac17ae
NC
21212001-03-06 Igor Shevlyakov <igor@windriver.com>
2122
2123 * archures.c (bfd_default_scan): Add Coldfire CPUs.
2124 * bfd-in2.h: Regenerate.
2125 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2126 * ieee.c (ieee_write_processor): Set proper id for
2127 Coldfire CPUs.
2128
d1b17ab0
NC
21292001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2130
2131 * configure.in: Add s390 target.
2132 * configure: Regenerate.
2133
5608e05b
AJ
21342001-02-28 Andreas Jaeger <aj@suse.de>
2135
2136 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2137 to addend.
2138
fd2ec330
PB
21392001-02-28 Philip Blundell <pb@futuretv.com>
2140
2141 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 2142 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 2143
920581c5
L
21442001-02-27 H.J. Lu <hjl@gnu.org>
2145
2146 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2147 abfd->tdata.aout_data == NULL.
2148
27b7e12d
AM
21492001-02-27 Alan Modra <alan@linuxcare.com.au>
2150
3ee1d854
AM
2151 * elf32-hppa.c: Correct field selector in stub comments.
2152 (clobber_millicode_symbols): Formatting fix.
2153
27b7e12d
AM
2154 * configure.in: Bump version to 2.11.90.
2155 * configure: Regenerate.
2156 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2157 (CFILES): $SOURCE_CFILES + generated C files.
2158 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2159 Run "make dep-am"
2160 * Makefile.in: Regenerate.
2161 * doc/Makefile.in: This too.
2162
10d1e03a
TW
21632001-02-26 Timothy Wall <twall@cygnus.com>
2164
2165 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 2166 comments.
10d1e03a 2167
1276aefa
NC
21682001-02-26 Nick Clifton <nickc@redhat.com>
2169
2170 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2171 up, replacing multiple if statements with a switch.
bb0082d6 2172 (handle_COMDAT): New function.
1276aefa
NC
2173
21742001-02-26 H.J. Lu <hjl@gnu.org>
2175
2176 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2177 a warning for section flags we do not handle instead of
2178 aborting.
2179
4a73f21b
AJ
21802001-02-26 Andreas Jaeger <aj@suse.de>
2181
2182 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2183
7b6dab7f
TW
21842001-02-22 Timothy Wall <twall@cygnus.com>
2185
2186 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2187 * configure.in: Add objects for elf64_ia64_aix vectors.
2188 * configure: Regenerated.
2189 * configure.host: Recognize ia64-*-aix*.
2190 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2191 for AIX. AIX5 requires most relocations to be dynamic (*all*
2192 binaries are somewhat similar to shared libraries).
2193 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 2194
87f8eb97
JW
21952001-02-21 David Mosberger <davidm@hpl.hp.com>
2196
2197 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2198 C8 said "1" instead of "8". Clarify error string for IMM22:
2199 "signed integer" instead of just "integer".
2200
05aa1441
AJ
22012001-02-20 Andreas Jaeger <aj@suse.de>
2202
2203 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
2204 PLT entries that could serve as a definition for a weak symbol.
2205
8701c1bc
JJ
22062001-02-19 Jakub Jelinek <jakub@redhat.com>
2207
2208 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
2209 entries that could serve as a definition for a weak symbol.
2210 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
2211
d4af9775
DB
22122001-02-18 David O'Brien <obrien@FreeBSD>
2213
2214 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
2215 FreeBSD/i386-CURRENT differently until I can figure out the needed
2216 corefile changes.
2217 * configure: Regenerate.
2218 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
2219 FreeBSD/PowerPC, and FreeBSD/sparc64.
2220
e135f41b
NC
22212001-02-18 lars brinkhoff <lars@nocrew.org>
2222
2223 * Makefile.am: Add PDP-11 a.out target.
2224 * config.bfd: Likewise.
2225 * configure.in: Likewise.
2226 * targets.c: Likewise.
2227 * archures.c: Likewise.
2228 * bfd-in2.h: Likewise. Add PDP-11 relocations.
2229 * libbfd.h: Add PDP-11 relocations.
2230 * reloc.c: Likewise.
2231 * cpu-pdp11.c: New file.
2232 * pdp11.c: New file.
2233
2234 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
2235 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2236 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
2237 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
2238 (GET_MAGIC): New macro.
2239 (PUT_MAGIC): Likewise.
2240 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
2241
dc3febfa
NC
22422001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
2243
2244 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
2245 multiarch needs it).
2246
ea412e04
L
22472001-02-18 H.J. Lu <hjl@gnu.org>
2248
2249 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
2250 index.
2251
47eee8a9
KH
22522001-02-18 Kazu Hirata <kazu@hxi.com>
2253
2254 * vms-misc.c: Fix formatting.
2255
8a0c27cd
KH
22562001-02-16 Kazu Hirata <kazu@hxi.com>
2257
2258 * vms.c: Fix formatting.
2259
d1fad7c6
NC
22602001-02-14 H.J. Lu <hjl@gnu.org>
2261
2262 * elf.c (elf_find_function): New function.
2263 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
2264 the file name and function name.
2265
825b47db
NC
22662001-02-14 Nick Clifton <nickc@redhat.com>
2267
51d7ee16
NC
2268 * ecoff.c (bfd_debug_section): Update to initialise new fields in
2269 asection structure.
2270
825b47db
NC
2271 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
2272 (BFD64_BACKENDS): Add pepigen.c
2273 Add rules to create peigen.c and pepigen.c from peXXigen.c.
2274
2275 * Makefile.in: Regenerate.
2276 * configure: Regenerate.
2277 * po/POTFILES.in: Regenerate.
2278 * po/bfd.pot: Regenerate.
2279
ea36a178
L
22802001-02-14 H.J. Lu <hjl@gnu.org>
2281
2282 * libcoff-in.h (pe_tdata): Add members target_subsystem and
2283 force_minimum_alignment.
2284
407443a3
AJ
22852001-02-14 Bo Thorsen <bo@suse.de>
2286
2287 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
2288 (elf64_86_64_size_info): Struct added to fix a problem
2289 with the hashtable string entries.
2290 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
2291 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
2292 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
2293 remove the FIXME for this.
2294 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
2295 section. Also removed the FIXME for it.
2296 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
2297 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
2298 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
2299
b4adccfd
RH
23002001-02-13 Richard Henderson <rth@redhat.com>
2301
2302 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
2303 and not user provided.
2304
9635981a
KH
23052001-02-13 Kazu Hirata <kazu@hxi.com>
2306
2307 * vms.c (vms_print_symbol): Remove unreachable code.
2308
6a125b16
KH
2309 * rs6000-core.c: Fix formatting.
2310
cbff5e0d
DD
23112001-02-13 David Mosberger <davidm@hpl.hp.com>
2312
2313 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
2314 as _bfd_XXi_only_swap_filehdr_out.
2315 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
2316 pe->force_minimum_alignment to TRUE.
2317 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
2318 PEI_TARGET_SUBSYSTEM.
2319 (pe_print_private_bfd_data): Call
2320 _bfd_XX_print_private_bfd_data_common() instead of
2321 _bfd_pe_print_private_bfd_data_common().
2322 (pe_bfd_copy_private_bfd_data): Call
2323 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
2324 _bfd_pe_bfd_copy_private_bfd_data_common().
2325 (coff_bfd_copy_private_section_data): Define as
2326 _bfd_XX_bfd_copy_private_section_data instead of
2327 _bfd_pe_bfd_copy_private_section_data.
2328 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
2329 of a _bfd_pe_get_symbol_info.
2330
2331 * peigen.c: Delete.
2332
2333 * peXXigen.c: Renamed from peigen.c.
2334 (COFF_WITH_XX): Define this macro (will get expanded into
2335 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
2336 compiled as peigen.c or pepigen.c.
2337 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
2338 define the canonical PEP structures and definitions.
2339 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
2340 effect, enforce minimum file and section alignments. If
2341 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
2342 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
2343 so, by default, this is a no-op).
2344
2345 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
2346 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
2347 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
2348 _bfd_pefoo if it's not defined. Use these macros to define
2349 coff swap macros.
2350
2351 * libcoff.h (pe_tdata): Add members target_subsystem and
2352 force_minimum_alignment.
2353
2354 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
2355 COFF_WITH_pep.
2356 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
2357
2358 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
2359 peigen.lo.
2360
2361 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
2362 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
2363 PEPAOUTHDR.
2364
2365 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
2366 (BFD64_BACKENDS_CFILES): Mention pepigen.c
2367 (peigen.c): Add rule to generate from peXXigen.c.
2368 (pepigen.c): Ditto.
2369 (pepigen.lo): List dependencies for pepigen.lo.
2370
df8634e3
AM
23712001-02-13 Alan Modra <alan@linuxcare.com.au>
2372
2373 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
2374 $global$ referenced but not defined, set its value here.
2375
51e0a107
JH
23762001-02-09 Bo Thorsen <bo@suse.de>
2377
2378 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
2379 alignment to 3.
2380 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
2381 and relocation.
2382 (elf64_x86_64_relocate_section): Fix formatting.
2383 (elf64_x86_64_relocate_section): Fix addend for relocation of
2384 R_X86_64_(8|16|32|PC8|PC16|PC32).
2385
d1fad7c6 23862001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
2387
2388 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
2389
f0e1d18a
L
23902001-02-11 H.J. Lu <hjl@gnu.org>
2391
6757257f 2392 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
2393 alignment.
2394
9117d219
NC
23952001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2396
2397 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
2398 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
2399 relocations against dynsym symbols.
2400
2401 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
2402 the R_MIPS_26 relocation.
2403 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
2404 the R_MIPS_26 relocation.
2405 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
2406 relocation.
2407 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
2408 the R_MIPS_26 relocation.
2409 (mips_elf64_howto_table_rela): Likewise.
2410
2411 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
2412 member to mark symbols that have non-CALL relocations against
2413 them.
2414 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
2415 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
2416 R_MIPS_GOT16.
2417 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
2418 non-CALL relocation against it is encountered.
2419 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
2420 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
2421 no_fn_stub is not set.
2422
2423 * elf32-mips.c (mips_elf_output_extsym): Get the output section
2424 information from the real symbol for indirect ones.
2425 Check no_fn_stub to find out if a symbol has a function stub
2426 indeed.
2427
9f93bca5
MS
24282001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2429
2430 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
2431 * Makefile.in: Regenerate.
2432
81545d45
RH
24332001-02-09 David Mosberger <davidm@hpl.hp.com>
2434
2435 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
2436 true if section name is an unwind table section name.
2437 (elfNN_ia64_additional_program_headers): Count each unwind section
2438 separately.
2439 (elfNN_ia64_modify_segment_map): Install one unwind program header
2440 for each unwind separate section. Note: normally the linker
2441 script merges the unwind sections that go into a single segment,
2442 so this still generates at most one unwind program header per
2443 segment.
2444
2445 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
2446 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
2447 (elfNN_ia64_fake_sections): Mark sections with names that start
2448 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
2449 unwind section.
2450
2451 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
2452 Use it to make sh_info in unwind section point to the text section
2453 it applies to.
2454
a85d7ed0
NC
24552001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2456
2457 * Makefile.am: Add linux target for S/390.
2458 * archures.c: Likewise.
2459 * bfd-in2.h: Likewise.
2460 * config.bfd: Likewise.
2461 * configure.in: Likewise.
2462 * elf.c: Likewise.
2463 * libbfd.h: Likewise.
2464 * targets.c: Likewise.
2465 * cpu-s390.c: New file.
2466 * elf32-s390.c: New file.
2467 * elf64-s390.c: New file.
2468
356d255d
NC
24692001-02-09 Nick Clifton <nickc@redhat.com>
2470
2471 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
2472 ImageBase. This has already been done by coff_swap_hdr_in.
2473
069f40e5
JJ
24742001-02-09 Jakub Jelinek <jakub@redhat.com>
2475
2476 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
2477
eadfa8ab
JJ
24782001-02-09 Jakub Jelinek <jakub@redhat.com>
2479
2480 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
2481 (sparc64_elf_relocate_section): Likewise.
2482
9fc54e19
MK
24832001-02-09 Mark Kettenis <kettenis@gnu.org>
2484
2485 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
2486 similar to R_SPARC_32.
2487 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2488
1f655a09
L
24892001-02-08 H.J. Lu <hjl@gnu.org>
2490
2491 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
2492 relocation entries for weak definitions when building DSO with
2493 -Bsymbolic.
2494
ca88208a
RH
24952001-02-08 Richard Henderson <rth@redhat.com>
2496
2497 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
2498 before visibility. Locally defined protected symbols are not
2499 dynamic.
2500
4603e845
GK
25012001-02-08 Geoffrey Keating <geoffk@redhat.com>
2502
2503 * config.bfd: Enable coff64 for rs6000-*. Patch from
2504 <hzoli@austin.ibm.com>.
2505
4ca29a6a
NC
25062001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
2507
2508 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
2509 found, do not attempt to find dwarf2 info before returning.
2510
7da9d88f
NC
25112001-02-07 Jakub Jelinek <jakub@redhat.com>
2512
2513 * elflink.h (is_global_symbol_definition): Rename to
2514 is_global_data_symbol_definition and have it reject function
2515 symbols.
2516 (elf_link_is_defined_archive_symbol): Use renamed function.
2517
7340082d
NC
25182001-02-07 Todd Vierling <tv@wasabisystems.com>
2519
2520 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
2521 * libbfd.h (bfd_target_vector): Likewise.
2522 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 2523 make static; create pointer reference named bfd_target_vector.
7340082d
NC
2524 (_bfd_target_vector_entries): Calculate this based on the array
2525 typed _bfd_target_vector.
2526
2719f880
L
25272001-02-06 H.J. Lu <hjl@gnu.org>
2528
2529 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
2530 internal symbols are not dynamic.
2531 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2532
175aa013
NC
25332001-02-06 Nick Clifton <nickc@redhat.com>
2534
2535 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
2536 that it will not be pulled into the list of files that make up
2537 po/POTFILES.in.
2538 * Makefile.in: Regenerate.
2539 * po/bfd.pot: Regenerate.
2540
15e0ecd9
L
25412001-02-06 H.J. Lu <hjl@gnu.org>
2542
7898deda 2543 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
2544 checking.
2545 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
2546 external_PEI_IMAGE_hdr.
2547
27def10f
KH
25482001-02-06 Kazu Hirata <kazu@hxi.com>
2549
2550 * elf-m10200.c: Fix formatting.
2551
a0f2e916
NC
25522001-02-04 Nick Clifton <nickc@redhat.com>
2553
2554 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
2555 rel, it will be handled later on.
2556
d96031fb
NC
25572001-02-02 Fred Fish <fnf@ninemoons.com>
2558
2559 * Makefile.in: Fix typo.
2560
010ac81f
KH
25612001-02-01 Kazu Hirata <kazu@hxi.com>
2562
2563 * elf-m10300.c: Fix formatting.
2564
3fab46d0
AM
25652001-01-30 Alan Modra <alan@linuxcare.com.au>
2566
2567 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
2568 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
2569 (elf64_hppa_object_p): Set architecture and machine from elf
2570 header flags.
3fab46d0 2571
95404643
RH
25722001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
2573
2574 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
2575 before mdebug.
2576
8fb35fed
RH
25772001-01-26 Richard Henderson <rth@redhat.com>
2578
2579 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
2580 for non-default visibility.
2581 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
2582 delete ugly macro and replace with pretty function.
2583
a4f68544
NC
25842001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
2585
2586 * coff-go32.c: Update copyright.
2587 * coff-stgo32.c: Likewise.
2588 * coff-go32.c (COFF_LONG_FILENAMES): Define.
2589 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
2590 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
2591 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2592
c02e7c3e
KH
25932001-01-25 Kazu Hirata <kazu@hxi.com>
2594
2595 * bfd-in2.h: Rebuild.
2596 * libbfd.h: Likewise.
2597
541389e2
L
25982001-01-23 H.J. Lu <hjl@gnu.org>
2599
2600 * bfd-in2.h: Rebuild.
2601
0007625f
L
26022001-01-23 H.J. Lu <hjl@gnu.org>
2603
2604 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
2605 is NULL or PRIV(vms_rec) is outside of the buffer.
2606
b653e1b1
KH
26072001-01-23 Kazu Hirata <kazu@hxi.com>
2608
2609 * coff64-rs6000.c: Fix formatting.
2610 * coff-arm.c: Likewise.
2611 * coffgen.c: Likewise.
2612 * cofflink.c: Likewise.
2613 * coff-mcore.c: Likewise.
2614 * coff-mips.c: Likewise.
2615 * coff-pmac.c: Likewise.
2616 * coff-ppc.c: Likewise.
2617 * coff-rs6000.c: Likewise.
2618 * elf32.c: Likewise.
2619 * elf32-fr30.c: Likewise.
2620 * elf32-i370.c: Likewise.
2621 * elf32-i860.c: Likewise.
2622 * elf32-m32r.c: Likewise.
2623 * elf32-m68k.c: Likewise.
2624 * elf32-mcore.c: Likewise.
2625 * elf32-ppc.c: Likewise.
2626 * elf32-sh.c: Likewise.
2627 * elf32-v850.c: Likewise.
2628 * elf64-alpha.c: Likewise.
2629 * elf64-sparc.c: Likewise.
2630 * elflink.c: Likewise.
2631 * elflink.h: Likewise.
2632 * elf-m10200.c: Likewise.
2633 * elf-m10300.c: Likewise.
2634 * elfxx-ia64.c: Likewise.
2635
3fde5a36
KH
2636 * aoutx.h: Fix formatting.
2637 * bfd.c: Likewise.
2638 * bfd-in2.h: Likewise.
2639 * bfd-in.h: Likewise.
2640 * cpu-i386.c: Likewise.
2641 * cpu-m68hc11.c: Likewise.
2642 * dwarf2.c: Likewise.
2643 * elf64-x86-64.c: Likewise.
2644 * format.c: Likewise.
2645 * freebsd.h: Likewise.
2646 * hash.c: Likewise.
2647 * hp300hpux.c: Likewise.
2648 * hppabsd-core.c: Likewise.
2649 * hpux-core.c: Likewise.
2650
70256ad8
AJ
26512001-01-22 Bo Thorsen <bo@suse.de>
2652
2653 * elf64-x86-64.c: Added PIC support for X86-64.
2654 (elf64_x86_64_link_hash_newfunc): Function added.
2655 (elf64_x86_64_link_hash_table_create): Likewise.
2656 (elf64_x86_64_check_relocs): Likewise.
2657 (elf64_x86_64_gc_mark_hook): Likewise.
2658 (elf64_x86_64_gc_sweep_hook): Likewise.
2659 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2660 (elf64_x86_64_size_dynamic_sections): Likewise.
2661 (elf64_x86_64_discard_copies): Likewise.
2662 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2663 (elf64_x86_64_finish_dynamic_sections): Likewise.
2664 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2665
ee0bebb8
AJ
26662001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2667
2668 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2669 * Makefile.in: Regenerate.
2670
2a38f751
KH
26712001-01-21 Kazu Hirata <kazu@hxi.com>
2672
2673 * coff-a29k.c: Fix formatting.
2674
c8492176
L
26752001-01-19 H.J. Lu <hjl@gnu.org>
2676
2677 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2678 relocation section names.
2679 (elf_i386_relocate_section): Report files with bad relocation
2680 section names and return false.
2681
a5377ec0
AJ
26822001-01-17 Bo Thorsen <bo@suse.de>
2683
2684 * targets.c: Alphabetize list of xvecs.
2685
b352eebf
AM
26862001-01-14 Alan Modra <alan@linuxcare.com.au>
2687
d952f17a
AM
2688 * config.bfd: Add linux target variant for elfxx-hppa.
2689 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2690 bfd_elf64_hppa_linux_vec.
2691 * configure: Regenerate.
2692 * elf64-hppa.c: Include elf64-target.h again to support linux
2693 target variant.
2694 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2695 * elf32-hppa.c: Include elf32-target.h again to support linux
2696 target variant.
2697 (elf32_hppa_post_process_headers): New function.
2698 (elf_backend_post_process_headers): Define.
2699 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2700 bfd_elf32_hppa_linux_vec.
2701
c46b7515
AM
2702 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2703 and data_segment_base fields.
2704 (elf32_hppa_link_hash_table_create ): Init them.
2705 (elf32_hppa_check_relocs): Update comments.
2706 (hppa_record_segment_addr): New function.
2707 (elf32_hppa_relocate_section): Call it.
2708 (final_link_relocate): Handle R_PARISC_SEGREL32.
2709 (elf32_hppa_final_link): New function.
2710 (bfd_elf32_bfd_final_link): Define to call it.
2711 (hppa_unwind_entry_compare): New function.
2712 * cache.c (bfd_open_file): Create files in write+read mode.
2713
2714 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2715 SEGREL32 and numerous other relocs. Change duplicate
2716 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2717
d768008d
AM
2718 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2719 O_ACCMODE.
2720
150ccafb
AM
2721 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2722 .plt entries for DT_INIT and DT_FINI.
2723 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2724 DT_INIT and DT_FINI.
2725
b352eebf
AM
2726 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2727 offsets for stub .plt access if wide mode. Check offset in range.
2728
b3b9a062
NC
27292001-01-13 Nick Clifton <nickc@redhat.com>
2730
b7ed8fad
NC
2731 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2732 line.
2733
b3b9a062
NC
2734 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2735 line.
2736
6e0b89ee
AM
27372001-01-12 Alan Modra <alan@linuxcare.com.au>
2738
2739 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2740 * configure: Regenerate.
2741
0d2bcfaf
NC
27422001-01-11 Peter Targett <peter.targett@arccores.com>
2743
2744 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2745 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2746 * cpu-arc.c (arch_info_struct): Add entries for variants.
2747 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2748 (arc_get_mach) Don't assume machine names prefixed arc- before
2749 testing.
2750 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2751 selections.
2752 (arc_elf_final_write_processing) Likewise.
2753 (ELF_MACHINE_CODE) Use EM_ARC.
2754
c31c1f70
NC
27552001-01-10 Nick Clifton <nickc@redhat.com>
2756
2758140b 2757 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 2758
5ad083e3
PB
27592001-01-07 Philip Blundell <philb@gnu.org>
2760
2761 * README: Replace `bug-gnu-utils@gnu.org' with
2762 `bug-binutils@gnu.org'.
2763
7eae7d22
KH
27642001-01-04 Kazu Hirata <kazu@hxi.com>
2765
2766 * som.c: Fix formatting.
2767
509945ae
KH
27682001-01-03 Kazu Hirata <kazu@hxi.com>
2769
3e932841
KH
2770 * ecoffswap.h: Fix formatting.
2771 * elf-bfd.h: Likewise.
2772 * elfarm-nabi.c: Likewise.
2773 * elfarm-oabi.c: Likewise.
2774 * elfcode.h: Likewise.
2775 * elfcore.h: Likewise.
2776 * elflink.c: Likewise.
2777 * elflink.h: Likewise.
2778 * elfxx-ia64.c: Likewise.
2779 * elfxx-target.h: Likewise.
2780 * libbfd.c: Likewise
509945ae
KH
2781 * linker.c: Likewise.
2782 * lynx-core.c: Likewise.
2783
892339ee
KH
27842001-01-02 Kazu Hirata <kazu@hxi.com>
2785
2786 * pc532-mach.c: Fix formatting.
2787 * pe-arm.c: Likewise.
2788 * pe-i386.c: Likewise.
2789 * pe-mips.c: Likewise.
2790 * pe-ppc.c: Likewise.
2791 * pe-sh.c: Likewise.
2792 * pei-mips.c: Likewise.
2793 * pei-sh.c: Likewise.
ee91ed79 2794 * peicode.h: Likewise.
892339ee
KH
2795 * ppcboot.c: Likewise.
2796 * ptrace-core.c: Likewise.
2797
3d855632
KH
27982001-01-01 Kazu Hirata <kazu@hxi.com>
2799
2800 * reloc.c: Fix formatting.
2801 * riscix.c: Likewise.
2802 * rs6000-core.c: Likewise.
2803 * xcoff-target.h: Likewise.
2804
a77a9fef
HPN
28052000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2806
2807 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2808 error, by calling bfd_default_set_arch_mach with incoming
2809 values.
2810
558e161f
KH
28112000-12-26 Kazu Hirata <kazu@hxi.com>
2812
2813 * vaxnetbsd.c: Fix formatting.
2814 * versados.c: Likewise.
2815 * vms-gsd.c: Likewise.
2816 * vms-hdr.c: Likewise.
2817 * vms-misc.c: Likewise.
2818
3c579812
AO
28192000-12-25 Alexandre Oliva <aoliva@redhat.com>
2820
2821 * archive.c (coff_write_armap): Don't write more than symbol_count
2822 `archive_member_file_ptr's.
2823
672579e9
KH
28242000-12-25 Kazu Hirata <kazu@hxi.com>
2825
2826 * vms-tir.c: Fix formatting.
2827
55f2d5ed
KH
28282000-12-23 Kazu Hirata <kazu@hxi.com>
2829
2830 * vms.c: Fix formatting.
2831 * vms.h: Likewise.
2832
23ccc829
NC
28332000-12-21 Santeri Paavolainen <santtu@ssh.com>
2834
2835 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2836
2837 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2838
2839 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2840 arithmetic.
2841
2842 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2843
2844 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2845
8c603c85
NC
28462000-12-21 Richard Sandiford <rsandifo@redhat.com>
2847
2848 * libbfd.c (bfd_get_bits): Added
2849 (bfd_put_bits): Likewise
2850 * bfd-in.h: Declared the above.
2851 * bfd-in2.h: Regenerated.
2852
5bff4f56
KH
28532000-12-20 Kazu Hirata <kazu@hxi.com>
2854
2855 * targets.c: Fix formatting.
2856 * tekhex.c: Likewise.
2857 * trad-core.c: Likewise.
2858
7b82c249
KH
28592000-12-19 Kazu Hirata <kazu@hxi.com>
2860
2861 * sco5-core.c: Fix formatting.
2862 * section.c: Likewise.
2863 * sparclinux.c: Likewise.
2864 * sparclynx.c: Likewise.
2865 * sparcnetbsd.c: Likewise.
2866 * srec.c: Likewise.
2867 * stabs.c: Likewise.
2868 * stab-syms.c: Likewise.
2869 * sunos.c: Likewise.
2870 * syms.c: Likewise.
2871 * sysdep.h: Likewise.
2872
f78c5281
NC
28732000-12-18 Nick Clifton <nickc@redhat.com>
2874
2875 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2876 defined.
2877 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2878 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2879
02b89dce
NC
28802000-12-18 Nick Clifton <nickc@redhat.com>
2881
2882 * vms-misc.c (_bfd_vms_get_record): Add default case to
2883 file_format switch.
2884
d20966a7
NC
28852000-12-15 Miloslav Trmac <mitr@volny.cz>
2886
2887 * elfcore.h (elf_core_file_p): Move to the start of the program
2888 headers before attempting to read them.
2889
6fa957a9
KH
28902000-12-14 Kazu Hirata <kazu@hxi.com>
2891
2892 * peigen.c: Fix formatting.
2893 * som.c: Likewise.
2894 * som.h: Likewise.
2895
9602af51
KH
28962000-12-13 Kazu Hirata <kazu@hxi.com>
2897
2898 * peigen.c: Fix formatting.
2899
514829c3
JW
29002000-12-12 Jim Wilson <wilson@redhat.com>
2901
2902 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2903
3a71aec8
NC
29042000-12-08 Mark Salter <msalter@redhat.com>
2905
2906 * binary.c (binary_set_section_contents): Ignore sections
2907 with zero size.
2908
1518639e
KH
29092000-12-12 Kazu Hirata <kazu@hxi.com>
2910
2911 * m68klinux.c: Fix formatting.
2912 * m68knetbsd.c: Likewise.
2913 * mipsbsd.c: Likewise.
2914 * netbsd-core.c: Likewise.
2915 * netbsd.h: Likewise.
2916 * newsos3.c: Likewise.
2917 * nlm32-alpha.c: Likewise.
2918 * nlm32-i386.c: Likewise.
2919 * nlm32-ppc.c: Likewise.
2920 * nlm32-sparc.c: Likewise.
2921 * nlmcode.h: Likewise.
2922 * nlmswap.h: Likewise.
2923 * nlm-target.h: Likewise.
2924 * ns32knetbsd.c: Likewise.
2925
b79e8c78
NC
29262000-12-10 Fred Fish <fnf@be.com>
2927
d952f17a
AM
2928 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2929 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2930
38b1a46c
NC
29312000-12-12 Nick Clifton <nickc@redhat.com>
2932
2933 * cpu-sh.c: Fix formattng.
2934 * elf.c: Fix formattng.
2935 * elf32-mips.c: Fix formattng.
2936 * elf32-sh.c: Fix formattng.
2937 * elf64-alpha.c: Fix formattng.
2938
857ec808
NC
29392000-12-09 Nick Clifton <nickc@redhat.com>
2940
2941 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2942 dwarf2_find_line_info as last parameter to invocation of
2943 _bfd_dwarf2_find_nearest_line.
2944 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2945 dwarf2_find_line_info as last parameter to invocation of
2946 _bfd_dwarf2_find_nearest_line.
2947
51db3708
NC
29482000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2949
2950 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2951 (BFD_LIBS): ...to here.
2952 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2953 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2954 * Makefile.in: Regenerate.
2955 * configure.in: Remove dwarf.lo from the elf shell variable.
2956 * configure: Regenerate.
2957 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2958 * libcoff.h: Regenerate.
d952f17a 2959 * coffgen.c (coff_find_nearest_line): Call
857ec808 2960 _bfd_dwarf2_find_nearest_line.
51db3708 2961 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2962 accordingly.
2963 (read_abbrevs): Likewise
2964 (decode_line_info): Likewise.
2965 (parse_comp_unit): Likewise.
2966 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2967 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2968 * libbfd.h: Regenerate.
2969 * elf.c (_bfd_elf_find_nearest_line): Update call.
2970 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2971 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2972 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2973 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2974 (styp_to_sec_flags): Handle DWARF2 sections.
2975 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2976 to _bfd_find_nearest_line.
2977 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2978 call to _bfd_find_nearest_line.
d952f17a 2979
435b1e90
KH
29802000-12-08 Kazu Hirata <kazu@hxi.com>
2981
2982 * coffgen.c: Fix formatting.
fe8bc63d 2983 * elf-m10300.c: Likewise.
435b1e90
KH
2984 * elf32-i386.c: Likewise.
2985 * elf32-i960.c: Likewise.
2986 * elf32-m68k.c: Likewise.
2987 * elf32-mcore.c: Likewise.
2988 * elf32-ppc.c: Likewise.
2989 * elf32-sh.c: Likewise.
2990 * elf32-sparc.c: Likewise.
2991 * elf32-v850.c: Likewise.
fe8bc63d
KH
2992 * elf64-alpha.c: Likewise.
2993 * elf64-hppa.c: Likewise.
2994 * elf64-mips.c: Likewise.
435b1e90 2995 * elf64-sparc.c: Likewise.
435b1e90 2996
8da6118f
KH
29972000-12-07 Kazu Hirata <kazu@hxi.com>
2998
2999 * elf32-ppc.c: Fix formatting.
3000 * elf64-x86-64.c: Likewise.
3001
a9922e52
UC
30022000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3003
3004 From Ralf Baechle <ralf@gnu.org>
3005
3006 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3007 BFDs containing no sections or empty .text, .data or .bss sections
3008 to be merged, regardless of their flags.
3009
c3668558
KH
30102000-12-06 Kazu Hirata <kazu@hxi.com>
3011
3012 * elf32-m32r.c: Fix formatting.
3013 * elf32-m68hc11.c: Likewise.
3014 * elf32-m68hc12.c: Likewise.
3015 * elf32-m68k.c: Likewise.
3016 * elf32-mcore.c: Likewise.
3017 * elf32-pj.c: Likewise.
3018 * elf32-ppc.c: Likewise.
3019
6609fa74
KH
30202000-12-05 Kazu Hirata <kazu@hxi.com>
3021
3022 * elf32-fr30.c: Fix formatting.
3023 * elf32-hppa.c: Likewise.
3024 * elf32-i370.c: Likewise.
3025 * elf32-i386.c: Likewise.
3026 * elf32-i860.c: Likewise.
3027 * elf32-i960.c: Likewise.
3028
a7c10850
KH
30292000-12-03 Kazu Hirata <kazu@hxi.com>
3030
3031 * elf32-arm.h: Fix formatting.
3032 * elf32-avr.c: Likewise.
3033 * elf32-cris.c: Likewise.
3034 * elf32-d10v.c: Likewise.
3035 * elf32-d30v.c: Likewise.
3036 * elf-hppa.h: Likewise.
3037 * elf-m10200.c: Likewise.
3038 * elf-m10300.c: Likewise.
3039
e7af610e
NC
30402000-12-01 Chris Demetriou <cgd@sibyte.com>
3041
d952f17a
AM
3042 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3043 bfd_mach_mips32_4k. Update FIXME comment.
3044 * archures.c (bfd_mach_mips32): New constant.
3045 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3046 the latter, renumber it.
3047 * bfd-in2.h (bfd_mach_mips32): New constant.
3048 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3049 the latter, renumber it.
3050 * cpu-mips.c (I_mips32): New constant.
3051 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3052 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3053 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3054 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3055 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3056 with E_MIPS_MACH_MIPS32_4K.
3057 (_bfd_mips_elf_final_write_processing): Replace
3058 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3059 bfd_mach_mips32 case.
3060 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3061 comparison with support for MIPS32.
3062 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3063 MIPS32.
3064
3065 * aoutx.h (NAME(aout,machine_type)): Add cases for
3066 bfd_mach_mips5 and bfd_mach_mips64.
3067 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
3068 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
3069 * cpu_mips.c (I_mips5, I_mips64): New definitions.
3070 (arch_info_struct): Add entries for bfd_mach_mips5 and
3071 bfd_mach_mips64.
3072 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
3073 _bfd_mips_elf_print_private_bfd_data): Add cases for
3074 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
3075 (_bfd_mips_elf_final_write_processing): Add cases for
3076 bfd_mach_mips5 and bfd_mach_mips64.
3077
7898deda 3078 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 3079 bfd_mach_mips_sb1 case.
7898deda
NC
3080 * archures.c (bfd_mach_mips_sb1): New constant.
3081 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
3082 * cpu-mips.c (I_sb1): New constant.
d952f17a 3083 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 3084 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
3085 E_MIPS_MACH_SB1.
3086 (_bfd_mips_elf_final_write_processing): Add case for
3087 bfd_mach_mips_sb1.
3088
30892000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
3090
3091 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
3092 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3093 (sparc*-*-rtems*): Switched from a.out to ELF.
3094
8d88c4ca 30952000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
3096
3097 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
3098 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
3099 (elf64-x86-64.lo): Add dependencies.
3100 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
3101 bfd_mach_x86_64_intel_syntax.
3102 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
3103 * config.bfd (x86_64): Add.
3104 * configure.in: Add support for bfd_elf64_x86_64_vec.
3105 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
3106 (bfd_i386_arch, i8086_ar): Link in.
3107 * elf64-x86-64.c: New file.
3108 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
3109 * targets.c (bfd_elf64_x86_64_vec): Add.
3110 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 3111
fbc4fff4
KH
31122000-11-30 Kazu Hirata <kazu@hxi.com>
3113
3114 * xcofflink.c: Fix formatting.
3115
e60b52c6
KH
31162000-11-28 Kazu Hirata <kazu@hxi.com>
3117
3118 * aoutx.h: Fix formatting.
3119 * bfd-in.h: Likewise.
3120 * bfd-in2.h: Likewise.
3121 * cache.c: Likewise.
3122 * cisco-core.c: Likewise.
3123 * coff64-rs6000.c: Likewise.
3124 * coffcode.h: Likewise.
3125 * coffswap.h: Likewise.
3126 * corefile.c: Likewise.
be3ccd9c 3127 * elf32-mips.c: Likewise.
e60b52c6 3128
336eced2
KH
31292000-11-27 Kazu Hirata <kazu@hxi.com>
3130
3131 * aout-adobe.c: Fix formatting.
244148ad
KH
3132 * coff64-rs6000.c: Likewise.
3133 * coffgen.c: Likewise.
3134 * cofflink.c: Likewise.
336eced2 3135
d71f672e
PB
31362000-11-27 Philip Blundell <pb@futuretv.com>
3137
3138 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3139 (obj_coff_strings_written): New accessor macro for above.
3140 * libcoff.h: Regenerate.
3141 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3142 strings.
3143 * coffcode.h (coff_write_object_contents): No need to write out
3144 the string table if it's already been done.
3145
bc7a577d
PB
31462000-11-22 Philip Blundell <pb@futuretv.com>
3147
d952f17a 3148 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
3149 weak undefined symbols.
3150
077b8428
NC
31512000-11-24 Nick Clifton <nickc@redhat.com>
3152
3153 * archures.c (bfd_mach_arm_5TE): Define.
3154 (bfd_mach_arm+XScale): Define.
3155 * bfd-in2.h: Regenerate.
3156
3157 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3158 BFD_RELOC_ARM_PCREL_BLX.
3159
3160 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3161 XScale machine numbers.
3162
3163 * config.bfd (xscale-elf): Add target.
3164 (xscale-coff): Add target.
3165
3166 * cpu-arm.c: Add xscale machine name.
3167 Add v5t, v5te and XScale machine numbers.
3168
e9e41bd9
KH
31692000-11-23 Kazu Hirata <kazu@hxi.com>
3170
3171 * aix386-core.c: Fix formatting.
3172
64bf6ae6
JW
31732000-11-22 Jim Wilson <wilson@redhat.com>
3174
3175 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3176 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3177 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3178 (ins_imms_scaled): Initialize sign_bit at function entry.
3179 (elf64_ia64_operands): Add missing initializers.
3180 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3181 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3182 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3183 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3184 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3185 parameters.
3186 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3187 and free_extsyms at function entry.
3188 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3189 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3190 (get_got): Delete unused local srel.
3191 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3192 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 3193
1abaf976
KH
31942000-11-21 Kazu Hirata <kazu@hxi.com>
3195
6e301b2b
KH
3196 * coff-a29k.c: Fix formatting.
3197 * coff-h8500.c: Likewise.
3198 * coff-i960.c: Likewise.
3199 * coff-ppc.c: Likewise.
3200 * coff-rs6000.c: Likewise.
3201 * coff-stgo32.c: Likewise.
3202 * coff-tic54x.c: Likewise.
3203 * coff-w65.c: Likewise.
3204 * cpu-h8500.c: Likewise.
3205 * cpu-hppa.c: Likewise.
3206 * cpu-ns32k.c: Likewise.
3207 * ecoff.c: Likewise.
1abaf976
KH
3208 * ecofflink.c: Likewise.
3209
a0fc8ba1
NC
32102000-11-21 Nick Clifton <nickc@redhat.com>
3211
3212 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
3213 remove possibility of infinite loop.
3214
beb0d161
KH
32152000-11-20 Kazu Hirata <kazu@hxi.com>
3216
3217 * aix386-core.c: Fix formatting.
3218 * aout-adobe.c: Likewise.
3219 * aout-arm.c: Likewise.
3220 * aout-encap.c: Likewise.
3221 * aout-ns32k.c: Likewise.
3222 * aout-target.h: Likewise.
3223 * aout-tic30.c: Likewise.
3224 * aoutf1.h: Likewise.
3225 * aoutx.h: Likewise.
3226 * archive.c: Likewise.
eb6e10cb
KH
3227 * bfd-in.h: Likewise.
3228 * bfd-in2.h: Likewise.
3229 * bfd.c: Likewise.
3230 * bout.c: Likewise.
beb0d161 3231
2c2475db
JW
32322000-11-17 H.J. Lu <hjl@gnu.org>
3233
3234 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
3235 pltoff entries for DT_INIT and DT_FINI.
3236 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
3237 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
3238 entries.
3239
18b27f17
RH
32402000-11-16 Richard Henderson <rth@redhat.com>
3241
3242 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
3243 (allocate_dynrel_entries): Likewise.
3244 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
3245 (set_pltoff_entry): Likewise.
3246 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
3247 (elfNN_ia64_reloc_type_lookup): Likewise.
3248 (elfNN_ia64_install_value): Likewise.
3249 (elfNN_ia64_relocate_section): Likewise.
3250 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
3251 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
3252
98591c73
KH
32532000-11-16 Kazu Hirata <kazu@hxi.com>
3254
71f6b586
KH
3255 * cpu-a29k.c: Fix formatting.
3256 * cpu-alpha.c: Likewise.
3257 * cpu-arm.c: Likewise.
3258 * cpu-avr.c: Likewise.
3259 * cpu-d10v.c: Likewise.
3260 * cpu-h8500.c: Likewise.
3261 * cpu-hppa.c: Likewise.
3262 * cpu-i370.c: Likewise.
3263 * cpu-i386.c: Likewise.
3264 * cpu-i960.c: Likewise.
3265 * cpu-ia64-opc.c: Likewise.
3266 * cpu-ia64.c: Likewise.
3267 * cpu-m32r.c: Likewise.
3268 * cpu-m68hc11.c: Likewise.
3269 * cpu-m68hc12.c: Likewise.
3270 * cpu-m68k.c: Likewise.
3271 * cpu-m88k.c: Likewise.
3272 * cpu-mips.c: Likewise.
3273 * cpu-ns32k.c: Likewise.
3274 * cpu-pj.c: Likewise.
3275 * cpu-powerpc.c: Likewise.
3276 * cpu-sh.c: Likewise.
3277 * cpu-sparc.c: Likewise.
3278 * cpu-tic54x.c: Likewise.
3279 * cpu-v850.c: Likewise.
3280 * cpu-vax.c: Likewise.
3281 * cpu-w65.c: Likewise.
3282 * cpu-we32k.c: Likewise.
3283 * cpu-z8k.c: Likewise.
3284 * dwarf1.c: Likewise.
98591c73
KH
3285 * dwarf2.c: Likewise.
3286
c5930ee6
KH
32872000-11-15 Kazu Hirata <kazu@hxi.com>
3288
3289 * coff-arm.c: Fix formatting.
3290 * coff-ppc.c: Likewise.
3291 * coff-rs6000.c: Likewise.
cbfe05c4
KH
3292 * coff-sh.c: Likewise.
3293 * coff-sparc.c: Likewise.
3294 * coff-tic30.c: Likewise.
3295 * coff-tic54x.c: Likewise.
3296 * coff-tic80.c: Likewise.
3297 * coff-w65.c: Likewise.
3298 * coff-we32k.c: Likewise.
3299 * coff-z8k.c: Likewise.
c5930ee6 3300
dac544a8
RH
33012000-11-15 Richard Henderson <rth@redhat.com>
3302
3303 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
3304 section with the same ALLOC|LOAD flags as the source section.
3305
c810873d
JJ
33062000-11-14 Jakub Jelinek <jakub@redhat.com>
3307
3308 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
3309 by STO_ALPHA constants.
3310
43646c9d
KH
33112000-11-14 Kazu Hirata <kazu@hxi.com>
3312
3313 * coff-pmac.c: Fix formatting.
3314 * coff-ppc.c: Likewise.
3315
051b8577
L
33162000-11-13 H.J. Lu <hjl@gnu.org>
3317
3318 * elflink.h (elf_link_add_object_symbols): Also add indirect
3319 symbols for common symbols with the default version.
3320
90460d97
PB
33212000-11-09 Philip Blundell <pb@futuretv.com>
3322
3323 * section.c (STD_SECTION): Set gc_mark flag.
3324
b48499ec
KH
33252000-11-11 Kazu Hirata <kazu@hxi.com>
3326
3327 * coff-i960.c: Likewise.
3328 * coff-m68k.c: Likewise.
3329 * coff-m88k.c: Likewise.
3330 * coff-mcore.c: Likewise.
3331 * coff-mips.c: Likewise.
3332
c5aeb40f
AO
33332000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
3334
3335 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
3336
5fcfd273
KH
33372000-11-10 Kazu Hirata <kazu@hxi.com>
3338
3339 * coff-h8300.c: Fix formatting.
3340 * coff-h8500.c: Likewise.
3341 * coff-i386.c: Likewise.
3342 * coff-i860.c: Likewise.
3343 * coff-i960.c: Likewise.
3344 * coff-ia64.c: Likewise.
3345
047066e1
KH
33462000-11-09 Kazu Hirata <kazu@hxi.com>
3347
3348 * archive.c: Fix formatting.
3349 * archures.c: Likewise.
3350
9a951beb
RH
33512000-11-07 Richard Henderson <rth@redhat.com>
3352
3353 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
3354 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
3355 * section.c (bfd_set_section_contents): Call memcpy if
3356 section->contents set and location not equal to contents plus offset.
3357
aebad5fe
KH
33582000-11-08 Kazu Hirata <kazu@hxi.com>
3359
8546af74
KH
3360 * bfd-in.h: Fix formatting.
3361 * bfd-in2.h: Likewise.
3362 * bfd.c: Likewise.
aebad5fe
KH
3363 * binary.c: Likewise.
3364 * bout.c: Likewise.
346ceb11
KH
3365 * coff-a29k.c: Likewise.
3366 * coff-alpha.c: Likewise.
3367 * coff-apollo.c: Likewise.
3368 * coff-aux.c: Likewise.
aebad5fe 3369
0ef5a5bd
KH
33702000-11-07 Kazu Hirata <kazu@hxi.com>
3371
3372 * aix386-core.c: Fix formatting.
3373 * aoutf1.h: Likewise.
3374 * aoutx.h: Likewise.
3375 * archures.c: Likewise.
3376 * armnetbsd.c: Likewise.
3377
d562d2fb
AM
33782000-11-07 Alan Modra <alan@linuxcare.com.au>
3379
3380 * coff-h8300.c (special): Adjust reloc address.
3381
bbe66d08
JW
33822000-11-06 Steve Ellcey <sje@cup.hp.com>
3383
4efc3e05 3384 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
3385 to differentiate elf32 and elf64 on ia64.
3386 * bfd-in2.h: Regenerate.
3387 * config.bfd: Add target for "ia64*-*-hpux*".
3388 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
3389 * configure: Regenerate.
4efc3e05 3390 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
3391 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
3392
3393 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
3394 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
3395 * Makefile.in: Regnerate.
4efc3e05 3396 * elf64-ia64.c: Deleted.
bbe66d08
JW
3397 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
3398
c4dfa77f
KH
33992000-11-06 Kazu Hirata <kazu@hxi.com>
3400
3401 * aout-adobe.c: Fix formatting.
3402 * aout-arm.c: Likewise.
3403 * aout-cris.c: Likewise.
3404 * aout-encap.c: Likewise.
3405 * aout-ns32k.c: Likewise.
3406 * aout-target.h: Likewise.
3407 * aout-tic30.c: Likewise.
3408
cf919dfd
PB
34092000-11-05 Philip Blundell <philb@gnu.org>
3410
3411 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
3412 BFDs containing no sections to be merged, regardless of their flags.
3413
34142000-11-04 Philip Blundell <philb@gnu.org>
3415
3416 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
3417 if a relocation for an undefined symbol also results in an
3418 overflow.
3419
8d88c4ca 34202000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
3421
3422 * config.bfd: Add support for Sun Chorus.
3423
46d59bfa
DB
34242000-11-05 David O'Brien <obrien@FreeBSD.org>
3425
3426 * configure.in: Recognize alpha-*-freebsd*.
3427 * configure: Regenerate.
3428
d952f17a 34292000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
3430
3431 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
3432 (Chunk): New global variable set by a parameter in objcopy.c.
3433 (S3Forced): New global variable set by a parameter in
3434 objcopy.c.
3435 (srec_set_section_contents): If S3Forced is true, always generate
3436 S3 records.
3437 (srec_write_section): Use 'Chunk' to limit maximum length of S
3438 records.
3439
59ff2774
NC
34402000-11-02 Per Lundberg <plundis@chaosdev.org>
3441
3442 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
3443 * Makefile.in: Regenerate.
3444 * bfd-in2.h: Regenerate.
3445 * po/bfd.pot: Regenerate.
d952f17a 3446
ee43f35e
PB
34472000-10-31 Philip Blundell <philb@gnu.org>
3448
3449 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
3450 EF_SOFT_FLOAT if it is defined.
3451
1006ba19
PB
34522000-10-27 Philip Blundell <philb@gnu.org>
3453
3454 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
3455 attempts to mix PIC code with non-PIC, just mark the output as
3456 being position dependent.
d952f17a
AM
3457 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
3458 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 3459 all mismatches, not just the first one.
d952f17a 3460
c4920b97
NC
34612000-10-25 Chris Demetriou <cgd@sibyte.com>
3462
3463 * ieee.c (ieee_archive_p): Plug one of many possible
3464 memory leaks in error handling.
3465
19f7b010
JJ
34662000-10-20 Jakub Jelinek <jakub@redhat.com>
3467
3468 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
3469 elf32_sparc_object_p, elf32_sparc_final_write_processing):
3470 Support v8plusb.
3471 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
3472 sparc64_elf_object_p): Support v9b.
3473 * archures.c: Declare v8plusb and v9b machines.
3474 * bfd-in2.h: Ditto.
3475 * cpu-sparc.c: Ditto.
3476
e1e0340b
GK
34772000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3478
ea5fbc67
GK
3479 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
3480 of a GOT reloc.
3481
e1e0340b
GK
3482 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
3483 (SYMBOL_CALLS_LOCAL): New macro.
3484 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
3485 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
3486 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
3487 (ppc_elf_relocate_section): Use flag variable to determine
3488 whether the relocation refers to a local symbol.
3489 Test whether a PLTREL24 reloc will produce a reloc by looking
3490 to see whether a PLT entry was made.
3491
a4b120e1
GK
34922000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
3493
3494 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
3495 entries that could serve as a definition for a weak symbol.
3496
5af5b85b
UC
34972000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
3498
3499 From Ralf Baechle <ralf@gnu.org>
3500
3501 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
3502 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
3503 against local symbols.
3504 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 3505
3ef20aaa
AM
35062000-10-12 Alan Modra <alan@linuxcare.com.au>
3507
24376d1b
AM
3508 * section.c (struct sec): Add kept_section.
3509 (struct bfd_comdat_info): Remove sec, we can use above.
3510 (STD_SECTION): Add initializer.
3511 (bfd_make_section_anyway): Init here too.
3512
3513 * bfd-in2.h: Regenerate.
3514
3515 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 3516 zeroing of `flags'.
24376d1b
AM
3517 (elf_link_input_bfd): Set all asection->symbol->value's here, and
3518 fudge values for discarded link-once section symbols.
3519
3ef20aaa
AM
3520 * elf64-hppa.c: Include alloca-conf.h
3521
c0e219cc
AM
35222000-10-11 Alan Modra <alan@linuxcare.com.au>
3523
d01e2a23
AM
3524 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
3525
c0e219cc
AM
3526 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
3527
fe268b66
AM
35282000-10-10 Alan Modra <alan@linuxcare.com.au>
3529
3530 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
3531
4d7ce4dd
AM
35322000-10-10 Tom Rix <trix@redhat.com>
3533
d952f17a 3534 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
3535 newsect->symbol fails to alloc. Use bfd_release instead of free.
3536
f3b6f7c3
RH
35372000-10-09 Richard Henderson <rth@cygnus.com
3538
3539 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
3540 (elf64_ia64_unwind_entry_compare): New.
3541 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
3542
44852b19
AM
35432000-10-07 Alan Modra <alan@linuxcare.com.au>
3544
fc8c40a0
AM
3545 * elflink.h (size_dynamic_sections): Don't create various tags if
3546 .dynstr is excluded from the link. Don't set first dynsym entry
3547 if dynsymcount is zero.
3548 (elf_bfd_final_link): Don't try to swap out dynamic syms if
3549 .dynsym excluded from the link. Don't try to write any dynamic
3550 sections excluded from the link.
3551
44852b19
AM
3552 * elf.c (swap_out_syms): Handle global section symbols.
3553
3e4554a2
DD
35542000-10-05 DJ Delorie <dj@redhat.com>
3555
3556 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
3557 * coffcode.h (coff_set_alignment_hook): read extended reloc count
3558 (coff_write_relocs): write extended reloc count
3559 (coff_write_object_contents): account for extended relocs
3560
fa152c49
JW
35612000-10-05 Jim Wilson <wilson@cygnus.com>
3562
3563 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
3564 field.
3565 * elf.c (_bfd_elf_make_section_from_shdr): Call the
3566 elf_backend_section_flags function.
3567 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
3568 code.
3569 (elf64_ia64_section_flags): New function containing flag conversion
3570 code.
3571 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
3572 * elfxx-target.h (elf_backend_section_flags): Define.
3573 (elfNN_bed): Initialize elf_backend_section_flags field.
3574
36605136
AM
35752000-10-02 Alan Modra <alan@linuxcare.com.au>
3576
3577 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
3578 _bfd_elf32_gc_record_vtable. Correct a comment.
3579
4b6609a0
UC
35802000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
3581
3582 From Ralf Baechle <ralf@gnu.org>
3583
3584 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
3585 produces binaries with got[1] = 0x80000001 to differenciate them
3586 for the dynamic linker from the broken binaries produced by old
3587 versions.
36605136 3588
f572a39d
AM
35892000-09-30 Petr Sorfa <petrs@sco.com>
3590
3591 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
3592 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
3593 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
3594 * configure: Regenerate.
3595
4da81684
HPN
35962000-09-27 Hans-Peter Nilsson <hp@axis.com>
3597
3598 Define two bfd_targets for absence and presence of leading
3599 underscore on symbols. Make sure to only link same kind.
3600 * elf32-cris.c (cris_elf_object_p,
3601 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
3602 cris_elf_merge_private_bfd_data): New.
3603 (elf_backend_object_p, elf_backend_final_write_processing,
3604 bfd_elf32_bfd_print_private_bfd_data,
3605 bfd_elf32_bfd_merge_private_bfd_data): Define.
3606 <Target vector definition>: Include elf32-target.h twice with
3607 different macro settings:
3608 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
3609 bfd_elf32_us_cris_vec.
3610 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
3611 (elf_symbol_leading_char): First as 0, then '_'.
3612 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
3613 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
3614 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
3615 * configure: Regenerate.
3616 * targets.c: Declare bfd_elf32_us_cris_vec.
3617 * po/bfd.pot: Regenerate.
3618
9a5aca8c
AM
36192000-09-29 Momchil Velikov <velco@fadata.bg>
3620
3621 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
3622 R_ARM_THM_PC22 relocations.
3623
512a2384
AM
36242000-09-29 NIIBE Yutaka <gniibe@chroot.org>
3625
3626 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
3627
6c99a5c3
AM
36282000-09-29 Momchil Velikov <velco@fadata.bg>
3629
3630 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
3631 is has the SEC_HAS_CONTENTS flag set.
3632