2000-07-31 Jason Eckhardt <jle@cygnus.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2000-07-31 Jason Eckhardt <jle@cygnus.com>
2
3 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
4 * bfd-in2.h, libbfd.h: Regenerate.
5
6 2000-07-31 Nick Clifton <nickc@cygnus.com>
7
8 * section.c (struct sec): Add new boolean field 'segment_mark'.
9 (STD_SECTION): Initialise new field to zero.
10
11 * bfd-in2.h: Regenerate.
12
13 * elf.c (copy_private_bfd_data): Reorganise section to segment
14 mapping to cope with moved sections requiring new segments,
15 and overlapping segments.
16 (SEGMENT_END): New macro: Return the end address of a segment.
17 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
18 contains a section by comparing their VMA addresses.
19 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
20 contains a section by comparing their LMA addresses.
21 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
22 section should be included in a segment.
23 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
24 follows another in memory.
25 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
26 segments overlap.
27
28 200007-22 Jason Eckhardt <jle@cygnus.com>
29
30 * cpu-i860.c: Added comments.
31
32 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
33 bfd_elf32_i860_little_vec.
34 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
35 (ELF_MAXPAGESIZE): Changed to 4096.
36
37 * targets.c (bfd_elf32_i860_little_vec): Declaration of
38 new target.
39 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
40
41 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
42 config for little endian elf32 i860.
43 (targ_defvec): Define for the new config above
44 as "bfd_elf32_i860_little_vec".
45 (targ_selvecs): Define for the new config above
46 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
47
48 * configure.in (bfd_elf32_i860_little_vec): Added recognition
49 of new target vec.
50
51 * configure: Regenerated.
52
53 2000-07-27 H.J. Lu <hjl@gnu.org>
54
55 * elflink.h (elf_merge_symbol): Take one more argument,
56 dt_needed, to indicate if the symbol comes from a DT_NEEDED
57 entry. Don't overide the existing weak definition if dt_needed
58 is true.
59 (elf_link_add_object_symbols): Pass dt_needed to
60 elf_merge_symbol ().
61
62 2000-07-27 Nick Clifton <nickc@cygnus.com>
63
64 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
65 allocated contents.
66
67 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
68
69 * configure.host (*-*-aix*): AIX has 'long long' always.
70
71 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
72 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
73 (xcoff_write_archive_contents_big): Don't update the offset
74 of the symbol table, xcoff_write_armap will do it.
75
76 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
77
78 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
79 of dynobj for SGI_COMPAT checks.
80
81 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
82
83 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
84 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
85 * bfd-in2.h: Regenerate.
86
87 2000-07-21 Nick Clifton <nickc@cygnus.com>
88
89 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
90 range symbol indices in relocs and issue an error message.
91
92 2000-07-20 H.J. Lu <hjl@gnu.org>
93
94 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
95 info->new_dtags when setting DT_FLAGS_1. It will only be set
96 by the new linker options. It shouldn't break anything.
97
98 2000-07-20 H.J. Lu <hjl@gnu.org>
99
100 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
101 only if info->new_dtags is true.
102
103 2000-07-20 H.J. Lu <hjl@gnu.org>
104
105 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
106 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
107
108 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
109
110 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
111 (ALL_MACHINES_CFILES): Add cpu-cris.c.
112 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
113 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
114 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
115 * Makefile.in: Rebuild.
116 * aclocal.m4: Rebuild.
117 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
118 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
119 (bfd_cris_arch): Declare.
120 (bfd_archures_list): Add bfd_cris_arch.
121 * bfd-in2.h: Rebuild.
122 * config.bfd: (cris-*-*): New target.
123 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
124 * configure: Rebuild.
125 * elf.c (prep_headers): Add bfd_arch_cris.
126 * libbfd.h: Rebuild.
127 * libaout.h (enum machine_type): Add M_CRIS.
128 * reloc.c: Add CRIS relocations.
129 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
130 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
131 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
132 * po/POTFILES.in, po/bfd.pot: Regenerate.
133
134 2000-07-19 H.J. Lu <hjl@gnu.org>
135
136 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
137 DF_TEXTREL if DT_TEXTREL is set.
138 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
139 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
140 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
141 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
142 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
143 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
144 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
145 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
146 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
147 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
148
149 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
150 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
151 DT_RPATH is set.
152 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
153
154 2000-07-19 H.J. Lu <hjl@gnu.org>
155
156 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
157 * bfd-in2.h: Rebuild.
158
159 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
160 (elf_dt_soname): New.
161
162 * elf.c (bfd_elf_set_dt_needed_soname): New.
163
164 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
165 entry if the shared object loaded by DT_NEEDED is used to
166 resolve the reference in a regular object.
167
168 2000-07-19 H.J. Lu <hjl@gnu.org>
169
170 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
171 DT_DEPAUDIT and DT_AUDIT as strings.
172
173 2000-07-19 Nick Clifton <nickc@cygnus.com>
174
175 * format.c: Fix formatting.
176
177 2000-07-19 H.J. Lu <hjl@gnu.org>
178
179 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
180
181 2000-07-19 H.J. Lu <hjl@gnu.org>
182
183 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
184 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
185 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
186 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
187 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
188 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
189 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
190
191 Tue Jul 18 13:11:54 2000 Andrew Cagney <cagney@b1.cygnus.com>
192
193 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
194 renamed functions from here...
195 (assign_section_numbers): Use renamed functions.
196 (prep_headers): Use renamed functions.
197
198 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
199 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
200 * bfd-in2.h: Regenerate.
201
202 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
203
204 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
205 parenthesis in if statement.
206
207 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
208
209 Enable the support for Traditional MIPS.
210 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
211 return ict_none appropriately for traditional mips targets.
212 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
213 (STUB_MOVE): Conditionalize for traditonal mips.
214 (STUB_LI16): Likewise.
215 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
216 room for RTPROC header.
217 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
218 the permission for the PT_DYNAMIC as read, write and execute.
219 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
220 for traditonal mips.
221 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
222 _DYNAMIC_LINKING for traditonal mips.
223 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
224 in case of traditonal mips.
225 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
226 entry is required. For a function if PLT is not required then set the
227 corresponding hash table entry to 0.
228 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
229 traditonal mips.
230 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
231 shared object set the value to 0.
232 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
233 _DYNAMIC_LINKING for traditonal mips.
234 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
235 for traditonal mips.
236
237 2000-07-15 H.J. Lu <hjl@gnu.org>
238
239 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
240
241 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
242
243 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
244 out a structure that is BFD_IN_MEMORY.
245
246 2000-07-11 Alan Modra <alan@linuxcare.com.au>
247
248 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
249 bfd pointer. Print section id instead of bfd pointer for local
250 syms. Prefix addend with `+' for global syms as well as local.
251 Correct calculation of name component lengths.
252 (elf64_hppa_check_relocs): Update call to get_dyn_name.
253
254 From David Huggins-Daines <dhd@linuxcare.com>
255 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
256 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
257 (elf64_hppa_modify_segment_map): Likewise.
258
259 Tue Jul 11 17:21:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
262 addresses to be "naturally" sign extended. Return -1 if unknown.
263 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
264 * bfd-in2.h: Regenerate.
265
266 Tue Jul 11 16:25:52 2000 Andrew Cagney <cagney@b1.cygnus.com>
267
268 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
269 and ECOF_SIGNED_64 to list ways to extract an offset.
270 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
271 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
272 Update.
273 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
274 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
275
276 Tue Jul 11 16:03:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
277
278 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
279 bfd_get_start_address.
280 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
281 (elf_swap_ehdr_out): Ditto.
282
283 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
284
285 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
286 compatibility with older binutils.
287
288 2000-07-10 Alan Modra <alan@linuxcare.com.au>
289
290 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
291 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
292
293 From Ryan Bradetich <rbradetich@uswest.net>
294 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
295 (parse_line_table): Ditto.
296 (_bfd_dwarf1_find_nearest_line): Ditto.
297 * syms.c (cmpindexentry): Remove extra `*' from params.
298
299 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
300
301 * elf32-mips.c (sort_dynamic_relocs): New Function.
302 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
303 via qsort to sort the dynamic relocations in increasing r_symndx
304 value.
305
306 2000-07-09 Alan Modra <alan@linuxcare.com.au>
307
308 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
309 ATTRIBUTE_UNUSED to unused args.
310 (get_opd): Likewise.
311 (get_plt): Likewise.
312 (get_dlt): Likewise.
313 (get_stub): Likewise.
314 (elf64_hppa_adjust_dynamic_symbol): Likewise.
315 (elf64_hppa_link_output_symbol_hook): Likewise.
316 (elf64_hppa_check_relocs): Delete unused var.
317 (elf64_hppa_size_dynamic_sections): Likewise.
318 (elf64_hppa_finalize_opd): Likewise.
319 (elf64_hppa_finalize_dynreloc): Likewise.
320 (elf64_hppa_modify_segment_map): Likewise.
321 (elf64_hppa_finish_dynamic_sections): Likewise.
322
323 * elf-hppa.h (elf_hppa_final_write_processing): Add
324 ATTRIBUTE_UNUSED to unused args.
325 (elf_hppa_final_link_relocate): Likewise.
326 (elf_hppa_record_segment_addrs): Add paretheses.
327 (elf_hppa_relocate_section): Constify dyn_name.
328
329 From David Huggins-Daines <dhd@linuxcare.com>
330 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
331 rearrange case statement so that it gets preferred to 32-bit ones.
332
333 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
334 asection->id instead of address of asection structure.
335 (elf32_hppa_size_stubs): Likewise.
336
337 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
338 for .init* and .fini*.
339
340 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
341 and addends used in stub names to 32 bits.
342 (elf32_hppa_size_stubs): Likewise.
343
344 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
345 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
346 not bfd_put_64. Fix minor comment typo and formatting.
347
348 Changes to create multiple linker stubs, positioned immediately
349 before the section where they are required.
350 * elf32-hppa.c: Don't include hppa_stubs.h.
351 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
352 (elf32_hppa_stub_hash_table): Delete.
353 (elf32_hppa_link_hash_entry): Delete.
354 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
355 stub_hash_table, and store the struct here rather than a pointer.
356 Delete output_symbol_count. Add offset array. Change
357 global_value to a bfd_vma.
358 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
359 (elf32_hppa_stub_hash_traverse): Delete.
360 (elf32_hppa_name_of_stub): Delete.
361 (elf32_hppa_link_hash_lookup): Delete.
362 (elf32_hppa_link_hash_traverse): Delete.
363 (elf32_hppa_stub_hash_table_init): Delete.
364 (elf32_hppa_size_of_stub): Pass input section and offset rather
365 than location and calculate location here. Don't pass name as all
366 stubs are now the same size.
367 (elf32_hppa_stub_hash_newfunc): Init new fields.
368 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
369 too.
370 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
371 comparing against ints. Rewrite stub handling code.
372 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
373 Case enums to int before comparing against ints. Remove
374 bfd_reloc_dangerous case.
375 (elf32_hppa_build_one_stub): Rewrite.
376 (elf32_hppa_size_one_stub): New function.
377 (elf32_hppa_build_stubs): Rewrite.
378 (elf32_hppa_size_stubs): Pass in linker call-back functions.
379 Rewrite stub-handling specific code.
380
381 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
382
383 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
384
385 * hppa_stubs.h: Delete.
386 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
387 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
388 * Makefile.in: Regenerate.
389
390 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
391 e_nlrsel.
392
393 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
394
395 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
396 and section name for bfd_reloc_notsupported error message.
397 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
398 bfd_reloc_notsupported.
399 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
400
401 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
402 undefined weak symbols for all relocs.
403 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
404 offsets are relative to one past the delay slot.
405 (elf32_hppa_size_stubs): Account for reloc addend when calculating
406 branch destination. Put addend into stub name too.
407 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
408 adjust by 8 when deciding whether a linker stub is needed. Put
409 addend into stub name as for above.
410
411 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
412 various args and vars.
413 (elf32_hppa_bfd_final_link_relocate): Here too.
414 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
415 inner block var to avoid shadowing.
416
417 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
418 unsigned.
419 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
420 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
421 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
422
423 * libhppa.h: Change practically all unsigned ints to plain ints.
424 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
425 prototypes.
426
427 From Ryan Bradetich <rbradetich@uswest.net>
428 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
429 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
430 suit above.
431 From David Huggins-Daines <dhd@linuxcare.com>
432 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
433 to the new OP_* ones.
434
435 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
436 error exit. Bail out earlier on plabel relocs that we aren't
437 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
438 string, and then don't free our copy.
439 (elf32_hppa_build_one_stub): Make insn unsigned int.
440
441 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
442 available with BL, not BE and BLE.
443
444 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
445 code for elf arg relocs.
446 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
447 argument with elf_link_hash_entry h. Handle undefined weak
448 symbols. Move $global$ lookup from here...
449 (elf32_hppa_relocate_section): ...to here. Return correct error
450 message for non-handled relocs.
451 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
452 wrong test was -0x3ffff to +0x40000.
453
454 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
455 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
456 Handle them as such.
457 (elf_hppa_relocate_insn): Fix a typo.
458
459 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
460 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
461 assemble_17, assemble_21): Delete.
462 Supply defines for all 64 possible opcodes.
463 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
464 formats. Handle COMICLR.
465 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
466 -10, -16, 16, 22.
467
468 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
469 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
470 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
471 to suit.
472 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
473 the local syms - did this code get deleted accidentally? Ignore
474 undefined and undefweak syms.
475
476 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
477 block. Use it instead of elf64_hppa_hash_table (info).
478 (elf_hppa_final_link_relocate): Use hppa_info instead of
479 elf64_hppa_hash_table (info).
480
481 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
482 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
483 (hppa_rebuild_insn): Mask immediate bits here instead.
484 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
485
486 2000-07-08 Alan Modra <alan@linuxcare.com.au>
487
488 * section.c (struct sec): Add id field. Tidy comment formatting.
489 (bfd_make_section_anyway): Set id.
490 (STD_SECTION): Init id too.
491 Change CONST to const throughout.
492 * archures.c (bfd_arch_info): Tidy comment.
493 (bfd_arch_list): Change a CONST to const.
494 * libbfd-in.h: Tidy comments and replace CONST with const.
495 * elf-bfd.h: Likewise.
496 * libbfd.h: Regenerate.
497 * bfd-in2.h: Regenerate.
498 * libcoff.h: Regenerate.
499
500 2000-07-07 DJ Delorie <dj@redhat.com>
501
502 * archive.c (_bfd_write_archive_contents): Add an informative
503 comment.
504
505 2000-07-06 Kazu Hirata <kazu@hxi.com>
506
507 * srec.c: Fix formatting.
508
509 2000-06-05 DJ Delorie <dj@redhat.com>
510
511 * MAINTAINERS: new
512
513 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
514
515 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
516 value of PC-relative offsets.
517
518 2000-07-03 Jim Wilson <wilson@cygnus.com>
519
520 * elf64-alpha.c (alpha_elf_size_info): New.
521 (elf_backend_size_info): Define to alpha_elf_size_info.
522 * elfcode.h (elf_size_info): Change hash bucket size to 4.
523
524 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
525
526 * elf32-mips.c: Include elf32-target.h again for the traditional
527 MIPS targets.
528
529 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
530
531 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
532 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
533 (avr_info_to_howto_rela): Likewise.
534 (elf32_avr_gc_mark_hook): Likewise.
535 (elf32_avr_gc_sweep_hook): Likewise.
536 (elf32_avr_relocate_section): Likewise.
537
538 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
539
540 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
541 an external symbol for a non-shared, non-relocatable link.
542
543 2000-07-03 Nick Clifton <nickc@redhat.com>
544
545 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
546 is an external symbol.
547 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
548 external symbol.
549
550 2000-07-03 Kazu Hirata <kazu@hxi.com>
551
552 * reloc16.c: Fix formatting.
553
554 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
555
556 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
557 to add a new target for traditional mips i.e
558 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
559 * configure.in: Likewise.
560 * configure: Rebuild.
561 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
562 bfd_target_vector.
563 (bfd_elf32_tradlittlemips_vec): Likewise.
564 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
565 to see that elfNN_bed does not get redefined even if the target file
566 is included twice for a chip. See elf32-mips.c.
567
568 2000-07-01 Alan Modra <alan@linuxcare.com.au>
569
570 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
571 (CLEANFILES): Add DEPA.
572 * Makefile.in: Regenerate.
573
574 2000-06-30 DJ Delorie <dj@cygnus.com>
575
576 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
577 can't assume the PE header is at 0x80.
578
579 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
580
581 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
582
583 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
584
585 * go32stub.h: Update stub.
586
587 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
588
589 * archures.c (bfd_mach_avr5): Define.
590 * bfd-in2.h (bfd_mach_avr5): Define.
591 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
592 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
593 (compatible): Update comment. Add missing test.
594 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
595 for avr2 and avr4. Simplify 8K wrap code.
596 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
597 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
598
599 2000-06-26 Kazu Hirata <kazu@hxi.com>
600
601 * coff-h8300.c: Fix formatting.
602 * cpu-h8300.c: Likewise.
603
604 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
605
606 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
607 for local symbols whose names are unknown.
608
609 2000-06-22 Alan Modra <alan@linuxcare.com.au>
610
611 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
612 find one.
613 * Makefile.in: Regenerate.
614 * doc/Makefile.in: Regenerate.
615
616 2000-06-20 H.J. Lu <hjl@gnu.org>
617
618 * Makefile.am: Rebuild dependency.
619 * Makefile.in: Rebuild.
620
621 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
622
623 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
624 (elf_backend_copy_indirect_symbol): Map to the new function.
625
626 2000-06-20 Alan Modra <alan@linuxcare.com.au>
627
628 * archive.c (normalize): Correct pointer comparison when checking
629 for backslashes.
630 (bfd_bsd_truncate_arname): Likewise.
631 (bfd_gnu_truncate_arname): Likewise.
632
633 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
634
635 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
636 sections elf_{text,data}_{section,symbol}.
637 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
638 (_bfd_mips_elf_hide_symbol): New function.
639 (elf_backend_hide_symbol): Map to the new function.
640 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
641 definitions of mips_elf_{text,data}_{section,symbol}.
642 (mips_elf_local_relocation_p): Try to find the direct symbol
643 based on new check_forced argument.
644 (mips_elf_calculate_relocation): Use new version of
645 mips_elf_local_relocation_p.
646 (mips_elf_relocate_section): Likewise.
647 (_bfd_mips_elf_relocate_section): Likewise.
648 (mips_elf_sort_hash_table): Only assert that have enough GOT
649 space.
650 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
651 entry if the relocation based on the new external argument.
652 (mips_elf_create_dynamic_relocation): Assert that we have a
653 section contents allocated where we can swap out the dynamic
654 relocations.
655 (mips_elf_calculate_relocation): Find the real hash-table entry
656 correctly by using h->root.root.type. Only create a dynamic
657 relocation entry if the symbol is defined in a shared library.
658 Create an external GOT entry for the GOT16 relocation if the
659 symbol was forced local.
660 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
661 dynamic index if the symbol was forced local.
662
663 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
664
665 * elf32-mips.c: Fix typos in comments.
666
667 2000-06-19 Mark Kettenis <kettenis@gnu.org>
668
669 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
670 CORE_VERSION_1.
671
672 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
673
674 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
675 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
676 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
677 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
678 (bfd_elf32_m68hc11_vec): Likewise.
679 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
680 Supports 68hc11 & 68hc12 at the same time.
681 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
682 bfd_target_vector.
683 (bfd_elf32_m68hc11_vec): Likewise.
684 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
685 * archures.c (bfd_m68hc12_arch): Define and register in global list
686 (bfd_m68hc11_arch): Likewise.
687 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
688 BFD_RELOC_M68HC11_3B): Define.
689 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
690 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
691
692 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
693
694 * elf_bfd.h (struct elf_backend_data): Add info argument to
695 elf_backend_hide_symbol.
696 (_bfd_elf_link_hash_hide_symbol): Likewise.
697 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
698 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
699 * elflink.h (elf_link_add_object_symbols): Likewise.
700 (elf_link_assign_sym_version): Likewise.
701
702 2000-06-18 H.J. Lu <hjl@gnu.org>
703
704 * coff-i386.c (coff_i386_reloc): Don't return in case of
705 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
706 Compensate PE relocations when linking with non-PE object
707 files to generate a non-PE executable.
708
709 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
710
711 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
712 GOT entries if we're doing a static link or -Bsymbolic link.
713
714 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
715
716 * elflink.h (elf_link_adjust_relocs): Check for and call backend
717 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
718 available.
719 (elf_link_output_relocs): Likewise.
720 (elf_reloc_link_order): Likewise.
721
722 2000-06-16 Nicholas Duffek <nsd@redhat.com>
723
724 * archures.c (enum bfd_architecture): #define constants for
725 PowerPc and RS6000 machine numbers.
726 * bfd-in2.h: Regenerate.
727 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
728 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
729 and RS6000 machine numbers using #defined constants from
730 archures.c.
731 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
732 machine numbers using #defined constants from archures.c. Add
733 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
734 64-bit words in 620 entry.
735 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
736 RSC, and RS2.
737 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
738
739 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
740
741 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
742 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
743 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
744
745 2000-06-16 Nicholas Duffek <nsd@redhat.com>
746
747 * bfd-in.h (bfd_family_coff): Define.
748 * bfd-in2.h: Regenerate.
749 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
750 coff_find_nearest_line): Check COFFness using bfd_family_coff()
751 instead of bfd_target_coff_flavour.
752 * cofflink.c (_bfd_coff_final_link): Likewise.
753 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
754 exclude XCOFF files.
755 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
756 Likewise.
757 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
758 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
759 * xcofflink.c (XCOFF_XVECP): Delete.
760 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
761 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
762 bfd_xcoff_record_link_assignment,
763 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
764 check for bfd_target_xcoff_flavour.
765
766 2000-06-16 Nicholas Duffek <nsd@redhat.com>
767
768 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
769 files on AIX 4.3.
770 (read_hdr): New function.
771 (rs6000coff_core_p): Store mstsave or __context64 struct instead
772 of trying to extract individual registers. Set abfd->arch_info
773 to match the architecture that created the core file.
774 (rs6000coff_get_section_contents): Delete.
775 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
776
777 2000-06-14 H.J. Lu <hjl@gnu.org>
778
779 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
780 is NULL.
781
782 2000-06-13 H.J. Lu <hjl@gnu.org>
783
784 * configure: Regenerate.
785
786 Tue Jun 13 01:28:57 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
787
788 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
789 armpei_little_vec.
790
791 2000-06-08 David O'Brien <obrien@FreeBSD.org>
792
793 * configure.in (VERSION): Update to show this is the CVS mainline.
794
795 2000-06-07 Alan Modra <alan@linuxcare.com.au>
796
797 * elf32-d10v.c: Include elf/d10v.h
798 (enum reloc_type): Delete.
799 * elf32-d30v.c: Include elf/d30v.h
800 (enum reloc_type): Delete.
801
802 * Makefile.am: Run "make dep-am" to regenerate dependencies.
803 * Makefile.in: Regenerate.
804
805 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
806 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
807 move HOWTOs into elf_howto_table.
808 (R_386_standard, R_386_ext_offset): Define.
809 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
810 (elf_i386_reloc_type_lookup): Modify calculation of index into
811 elf_howto_table since we've removed the padding.
812 (elf_i386_info_to_howto_rel): Likewise.
813 (elf_i386_relocate_section): Likewise.
814
815 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
816
817 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
818
819 2000-06-05 H.J. Lu <hjl@gnu.org>
820
821 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
822 an error when seeing an undefined symbol with hidden/internal
823 attribute. It is handled in *_relocate_section ().
824
825 2000-06-05 H.J. Lu <hjl@gnu.org>
826
827 * elflink.h (elf_fix_symbol_flags): Follow the link for the
828 indirect symbol for the ELF_LINK_NON_ELF bit.
829 (elf_link_output_extsym): Don't output the indirect symbol even
830 if the ELF_LINK_NON_ELF bit is set.
831
832 2000-06-01 J.T. Conklin <jtc@redback.com>
833
834 * config.bfd (i[3456]86-*-netbsdelf*): New target.
835 (i[3456]86-*-netbsdaout*): New target.
836 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
837 (i[3456]86-*-openbsd*): Likewise.
838
839 Tue May 30 15:39:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
840
841 * trad-core.c: From hpux-core.c, include <dirent.h> or
842 <sys/ndir.h> when possible.
843
844 2000-05-31 Nick Clifton <nickc@cygnus.com>
845
846 * opintl.h (_(String)): Explain why dgettext is used instead
847 of gettext.
848
849 2000-05-31 Ulrich Drepper <drepper@redhat.com>
850
851 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
852 definitions. We must not assume they are sorted in the file
853 according to their index numbers.
854
855 2000-05-31 Alan Modra <alan@linuxcare.com.au>
856
857 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
858 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
859 R_PARISC_DIR17F are for absolute branches; Handle them as such.
860
861 2000-05-30 Nick Clifton <nickc@cygnus.com>
862
863 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
864 80960CA, 80960MC as valid machine names.
865
866 2000-05-30 H.J. Lu <hjl@gnu.org>
867
868 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
869 visibility bits if the symbol is undefined. Correctly handle
870 weak undefined symbols with hidden and internal attributes.
871
872 * elflink.h (elf_link_add_object_symbols): Always turn the
873 symbol into local if it has the hidden or internal attribute.
874
875 2000-05-29 Philip Blundell <philb@gnu.org>
876
877 * ppcboot.c: Add packed attribute if compiling with GCC.
878
879 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
880
881 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
882
883 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
884
885 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
886 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
887 corefile on a 64-bit (Sparc Solaris) host. Also clean up
888 a few old comments.
889
890 2000-05-26 Alan Modra <alan@linuxcare.com.au>
891
892 * Makefile.am: Update dependencies with "make dep-am"
893 * Makefile.in: Regenerate.
894
895 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
896 bindtextdomain): Replace defines with those from intl/libgettext.h
897 to quieten gcc warnings.
898
899 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
900
901 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
902
903 * archive.c (normalize, bfd_bsd_truncate_arname,
904 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
905 file names with backslashes.
906
907 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
908 before opening it.
909
910 * sysdep.h: Include filenames.h.
911
912 2000-05-26 Alan Modra <alan@linuxcare.com.au>
913
914 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
915
916 2000-05-26 Jakub Jelinek <jakub@redhat.com>
917
918 * elf64-sparc.c (sparc64_elf_relax_section): New.
919 (sparc64_elf_relocate_section): Optimize tail call into branch always
920 if possible.
921 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
922 (elf32_sparc_relax_section): New.
923
924 2000-05-26 Jakub Jelinek <jakub@redhat.com>
925
926 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
927 Remove unusued variables.
928 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
929 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
930 previous fix, so that shared libs really don't influence targets
931 extension mask and memory model.
932
933 2000-05-23 H.J. Lu <hjl@gnu.org>
934
935 * elf64-alpha.c (elf64_alpha_relocate_section): Check
936 h->root.other not h->other.
937 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
938
939 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
940
941 2000-05-23 H.J. Lu <hjl@gnu.org>
942
943 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
944 undefined symbol with the non-default visibility attributes.
945 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
946 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
947 * elf32-i370.c (i370_elf_relocate_section): Likewise.
948 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
949 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
950 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
951 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
952 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
953 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
954 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
955 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
956
957 2000-05-22 Richard Henderson <rth@cygnus.com>
958
959 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
960 PCREL22, PCREL64I. Zero size of special relocs.
961 (elf64_ia64_reloc_type_lookup): Likewise.
962 (USE_BRL, oor_brl, oor_ip): New.
963 (elf64_ia64_relax_section): New.
964 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
965 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
966 (elf64_ia64_relocate_section): Likewise.
967 (bfd_elf64_bfd_relax_section): New.
968 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
969 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
970 * bfd-in2.h, libbfd.h: Regenerate.
971
972 2000-05-22 Nick Clifton <nickc@cygnus.com>
973
974 * configure.in : Add peigen.lo to MIPS PE targets.
975 * configure: Regenerate.
976
977 2000-05-22 Momchil Velikov <velco@fadata.bg>
978
979 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
980 only if it is known for both input and output bfds. Separate
981 error message strings as in some languages, it may be necessary
982 to change more than one place in the string to change between
983 'big' and 'little'.
984
985 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
986 endianess checks, call _bfd_generic_verify_endian_match() instead.
987
988 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
989
990 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
991
992 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
993 endianess before checking bfd flavours.
994
995 2000-05-22 H.J. Lu <hjl@gnu.org>
996
997 * elflink.h (elf_link_output_extsym): Clear the visibility
998 field for symbols not defined locally.
999
1000 2000-05-18 Alan Modra <alan@linuxcare.com.au>
1001
1002 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
1003 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
1004 (hppa_rebuild_insn): Mask immediate bits here instead.
1005 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
1006
1007 2000-05-18 Momchil Velikov <velco@fadata.bg>
1008
1009 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
1010 relocs for an executable, ensure that they are virtual addresses.
1011
1012 Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
1013
1014 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
1015
1016 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1017 Rick Gorton <gorton@scrugs.lkg.dec.com>
1018
1019 * elflink.h: Add emitrelocations support: when enabled, relocation
1020 information and relocation sections are put into final output
1021 executables. If the emitrelocations flag is set, do the following:
1022 (elf_bfd_final_link): Emit relocation sections.
1023 (elf_link_input_bfd): Compute relocation section contents.
1024 (elf_gc_sections): Don't clean relocation sections.
1025
1026 2000-05-16 Catherine Moore <clm@cygnux.com>
1027
1028 * som.c (som_decode_symclass): Recognize weak symbols.
1029
1030 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
1031
1032 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
1033 read idata section only from dataoff.
1034 (pe_print_edata): Correctly check for valid eat_member.
1035
1036 Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1037
1038 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1039
1040 2000-05-14 Philip Blundell <philb@gnu.org>
1041
1042 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
1043
1044 2000-05-12 Alan Modra <alan@linuxcare.com.au>
1045
1046 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
1047
1048 * peigen.c (pe_print_idata): Look for .idata section and print
1049 info even if data directory has zero entries. Read idata section
1050 starting from dataoff, and adjust all data offsets to suit. Cast
1051 all bfd_vma vars to unsigned long before passing to fprintf.
1052 * peigen.c (pe_print_edata): Similarly, look for .edata section
1053 and print info even if data directory has zero entries. Cast
1054 all bfd_vma vars to unsigned long before passing to fprintf.
1055
1056 From Szabolcs Szakacsits <szaka@F-Secure.com>
1057 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
1058 directory size which may be bogus.
1059 * peigen.c (pe_print_edata): Similarly.
1060
1061 2000-05-09 Alan Modra <alan@linuxcare.com.au>
1062
1063 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
1064 section is empty.
1065 (copy_private_bfd_data): Allow for space possibly taken up by elf
1066 headers when calculating segment physical address from lma.
1067
1068 2000-05-08 Alan Modra <alan@linuxcare.com.au>
1069
1070 * versados.c (versados_scan): Init stringlen and pass_2_done.
1071
1072 * trad-core.c (trad_unix_core_file_p): Return
1073 bfd_error_wrong_format rather than bfd_error_file_truncated.
1074
1075 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
1076 add_data_entry. DataDirectory virtual address is relative.
1077 (pe_print_idata): Account for relative DataDirectory virtual
1078 addresses. Don't trash datasize inside POWERPC_LE_PE code.
1079 (pe_print_edata): Similarly.
1080
1081 From Szabolcs Szakacsits <szaka@F-Secure.com>
1082 * peigen.c (dir_names): Add Delay Import Directory.
1083 (pe_print_idata): Always search for bfd section containing
1084 idata address rather than looking up section name. Print this
1085 section name rather than .idata.
1086 (pe_print_edata): Similarly. Also print some fields as %08lx.
1087 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
1088 Win32Version.
1089
1090 Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
1091
1092 * xcoff.h: Rename to xcoff-target.h
1093 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
1094 * coff-rs6000.c: Ditto.
1095 * coff64-rs6000.c: Ditto.
1096 * coff-pmac.c: Ditto.
1097 * Makefile.in: Regenerate.
1098
1099 Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
1100
1101 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
1102 Change U802TOC64MAGIC to U803XTOCMAGIC.
1103
1104 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
1105
1106 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
1107 * bfd-in.h: Prototype bfd_elf_get_arch_size.
1108 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
1109
1110 2000-05-04 Alan Modra <alan@linuxcare.com.au>
1111
1112 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
1113
1114 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1115
1116 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
1117 hidden and internal symbols.
1118 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
1119 visibility.
1120 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
1121 assign a PLT or GOT entry to symbols with hidden and
1122 internal visibility.
1123
1124 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
1125
1126 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
1127 the .bss section.
1128 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1129
1130 2000-05-02 H.J. Lu <hjl@gnu.org>
1131
1132 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
1133 ELFOSABI_SYSV.
1134
1135 2000-05-02 Alan Modra <alan@linuxcare.com.au>
1136
1137 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
1138 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
1139 dependencies.
1140 * Makefile.in: Regenerate.
1141
1142 Mon May 1 16:56:47 2000 Jim Wilson <wilson@cygnus.com>
1143
1144 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
1145 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
1146 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
1147 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
1148 * Makefile.in: Rebuild.
1149
1150 2000-05-02 Alan Modra <alan@linuxcare.com.au>
1151
1152 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
1153 doesn't work very well.
1154
1155 * elf-hppa.h (elf_hppa_internal_shdr): Define.
1156 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
1157 Set hdr->s_type to 1 if ARCH_SIZE == 32.
1158 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
1159 (elf_hppa_info_to_howto): Likewise.
1160 (elf_hppa_info_to_howto_rel): Likewise.
1161 (elf_hppa_reloc_type_lookup): Likewise.
1162 (elf_hppa_is_local_label_name): Likewise.
1163 (elf_hppa_fake_sections): Likewise.
1164 (elf_hppa_final_write_processing): Likewise.
1165 (elf_hppa_howto_table): Fully initialise all entries.
1166 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
1167 (elf_hppa_info_to_howto): Likewise.
1168 (elf_hppa_info_to_howto_rel): Likewise.
1169 (elf_hppa_reloc_type_lookup): Likewise.
1170 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
1171 elf_hppa_unmark_useless_dynamic_symbols,
1172 elf_hppa_remark_useless_dynamic_symbols,
1173 elf_hppa_record_segment_addrs, elf_hppa_final_link,
1174 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
1175 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
1176 elf32-hppa.c mess is cleaned up.
1177 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
1178 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
1179 r_field then call hppa_field_adjust inline func with variable
1180 r_field arg, instead call hppa_field_adjust with fixed arg.
1181 In case R_PARISC_PCREL22F, don't set r_field.
1182 (elf_hppa_relocate_insn): Change args and return type to unsigned
1183 int. Call re_assemble_* funcs to do the work.
1184
1185 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
1186 sign extending.
1187
1188 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
1189 extending.
1190 (sign_extend): Mask first before sign extending.
1191 (low_sign_extend): Rewrite without condition expression.
1192 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
1193 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
1194 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
1195 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
1196 result as function return value rather than through pointer arg.
1197 Accept unsigned int args, and return unsigned int.
1198 (re_assemble_3): New. Combines function of dis_assemble_3 with
1199 re-assembly of opcode and immediate.
1200 (re_assemble_12): Likewise.
1201 (re_assemble_16): Likewise.
1202 (re_assemble_17): Likewise.
1203 (re_assemble_21): Likewise.
1204 (re_assemble_22): Likewise.
1205 (hppa_field_adjust): Rewrite and document, paying attention to
1206 size of types and signed/unsigned issues.
1207 (get_opcode): Shift before masking.
1208 (FDLW): Rename to FLDW.
1209 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
1210 (hppa_rebuild_insn): Change args and return value to unsigned
1211 int. Make use of re_assemble_*. Correct case 11.
1212
1213 * dep-in.sed: Handle ../opcodes/.
1214 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
1215 elf64-hppa.h, hppa_stubs.h, xcoff.h.
1216 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
1217 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
1218 elfarm-nabi.lo dependencies outside of auto-dependency area.
1219 Regenerate dependencies.
1220 * Makefile.in: Regenerate.
1221
1222 * configure.in (TRAD_HEADER): Test non-null before
1223 AC_DEFINE_UNQUOTED.
1224 * configure: Regenerate.
1225
1226 * reloc.c: Fix mis-spelling in comment.
1227
1228 2000-05-01 Alan Modra <alan@linuxcare.com.au>
1229
1230 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
1231 * vms.c (vms_openr_next_archived_file): Return NULL.
1232
1233 Fri Apr 28 21:34:44 2000 Clinton Popetz <cpopetz@cygnus.com>
1234
1235 * coffcode.h Copy changes mistakenly done to libcoff.h in
1236 4/24/2000 patch.
1237
1238 2000-04-29 Andreas Jaeger <aj@suse.de>
1239
1240 * libbfd-in.h: Correctly check GCC version.
1241 * bfd-in.h: Likewise.
1242 * libhppa.h: Likewise.
1243 * libbfd.h: Regenerate.
1244 * bfd-in2.h: Regenerate.
1245
1246 Fri Apr 28 14:58:37 2000 Clinton Popetz <cpopetz@cygnus.com>
1247
1248 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
1249 coffdu-rs6000.{lo,c}.
1250 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
1251 on xcoff.h
1252 * Makefile.in: Regenerate.
1253 * xcoff.h: New file.
1254 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
1255 * coff-rs6000.c: Move all declarations and defines that are
1256 common to the xcoff backends into xcoff.h
1257 * coff64-rs6000.c: Ditto,
1258
1259 Fri Apr 28 08:35:21 2000 Clinton Popetz <cpopetz@cygnus.com>
1260
1261 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
1262 _bfd_coff_force_symnames in strings and
1263 _bfd_coff_debug_string_prefix_length to their default values.
1264 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
1265
1266 Fri Apr 28 08:05:12 2000 Clinton Popetz <cpopetz@cygnus.com>
1267
1268 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
1269 _bfd_coff_force_symnames in strings and
1270 _bfd_coff_debug_string_prefix_length to their default values.
1271
1272 2000-04-27 Alan Modra <alan@linuxcare.com.au>
1273
1274 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
1275 Check local_got_refcounts before dereferencing.
1276
1277 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
1278 before deciding we don't need R_PPC_PLT32 relocation.
1279 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
1280 dereferencing.
1281
1282 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
1283
1284 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
1285 .plt entries.
1286 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
1287 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
1288 (elf_i386_relocate_section): Allow for .plt to go missing.
1289 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
1290 can use a relative reloc for got as elf_i386_relocate_section.
1291 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
1292
1293 Wed Apr 26 16:31:28 2000 Clinton Popetz <cpopetz@cygnus.com>
1294
1295 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
1296
1297 Mon Apr 24 15:20:35 2000 Clinton Popetz <cpopetz@cygnus.com>
1298
1299 * Makefile.am (coff64-rs6000.lo): New rule.
1300 * Makefile.in: Regenerate.
1301 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
1302 xcoff_is_local_label_name, xcoff_rtype2howto,
1303 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
1304 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
1305 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
1306 (NO_COFF_SYMBOLS): Define.
1307 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
1308 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
1309 internally.
1310 (MINUS_ONE): New macro.
1311 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
1312 relocation.
1313 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
1314 coff_SWAP_aux_out): Map to the new functions.
1315 * coff64-rs6000.c: New file.
1316 * libcoff.h (bfd_coff_backend_data): Add new fields
1317 _bfd_coff_force_symnames_in_strings and
1318 _bfd_coff_debug_string_prefix_length.
1319 (bfd_coff_force_symnames_in_strings,
1320 bfd_coff_debug_string_prefix_length): New macros for above fields.
1321 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
1322 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
1323 of using coff_swap_sym_in directly.
1324 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
1325 (coff_set_flags) Set magic for XCOFF64.
1326 (coff_compute_section_file_positions): Add symbol name length to
1327 string section length if bfd_coff_debug_string_prefix_length is
1328 true.
1329 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
1330 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
1331 using coff_swap_lineno_in directly.
1332 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
1333 and _bfd_coff_debug_string_prefix_length fields.
1334 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
1335 symbol names into strings table when
1336 bfd_coff_force_symnames_in_strings is true.
1337 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
1338 SET_RELOC_VADDR): New macros.
1339 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
1340 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
1341 code.
1342 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
1343 changes within RS6000COFF_C specific code.
1344 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
1345 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
1346 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
1347 Extend existing hack on target name.
1348 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
1349 target name.
1350 * coff-tic54x.c (ticof): Keep up to date with new fields
1351 in bfd_coff_backend_data.
1352 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
1353 targ_selvecs to include rs6000coff64_vec for rs6000.
1354 * configure.in: Add rs6000coff64_vec case.
1355 * cpu-powerpc.c: New bfd_arch_info_type.
1356
1357 Mon Apr 24 02:17:31 2000 Jeffrey A Law (law@cygnus.com)
1358
1359 * config.bfd: Only disable elf32-hppa vectors, not all of the
1360 BSD and OSF configuration support. Provide (disabled) clauses
1361 for PA64 support.
1362 * configure.in: Add clause for PA64 support.
1363 * configure: Rebuilt.
1364
1365 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
1366 (bfd_elf64_hppa_vec): Declare.
1367
1368 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
1369 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
1370 (elf64-hppa.lo): Add dependencies.
1371 * Makefile.in: Rebuilt.
1372
1373 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
1374
1375 Mon Apr 24 02:14:29 2000 Jason Eckhardt <jle@cygnus.com>
1376
1377 * libhppa.h (dis_assemble_16): New function.
1378 (pa_arch): Added pa20w element.
1379
1380 Mon Apr 24 01:49:03 2000 Ulrich Drepper <drepper@cygnus.com>
1381
1382 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
1383 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
1384 bfd_elf64_slurp_reloc_table.
1385
1386 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
1387 definitions to get external names.
1388 (elf_write_relocs): Renamed from write_relocs and make global.
1389 (elf_slurp_reloc_table): Make global.
1390 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
1391
1392 * archive.c (hpux_uid_gid_encode): New function.
1393 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
1394 defined and the ID is greater than 99999.
1395 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
1396 special uid/gid fields into 32 bit values.
1397
1398 2000-04-21 Matthew Green <mrg@cygnus.com>
1399
1400 * config.bfd: Add NetBSD/sparc64 support.
1401
1402 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1403 David Mosberger <davidm@hpl.hp.com>
1404 Timothy Wall <twall@cygnus.com>
1405 Jim Wilson <wilson@cygnus.com>
1406
1407 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
1408 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
1409 (BFD64_BACKENDS): Add elf64-ia64.lo.
1410 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
1411 (cpu-ia64.lo, elf64-ia64.lo): New rules.
1412 * Makefile.in: Rebuild.
1413 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
1414 (bfd_ia64_arch): Declare.
1415 (bfd_archures_list): Add bfd_ia64_arch.
1416 * bfd-in2.h: Rebuild.
1417 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
1418 * configure: Rebuild.
1419 * configure.host: (ia64-*-linux*): New host.
1420 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
1421 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
1422 * elf.c (prep_headers): Add bfd_arch_ia64.
1423 * libbfd.h: Rebuild.
1424 * reloc.c: Add IA-64 relocations.
1425 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
1426 Declare.
1427 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
1428 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
1429
1430 2000-04-21 Richard Henderson <rth@cygnus.com>
1431
1432 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
1433 contents when performing a partial link.
1434 (bfd_elf_d30v_reloc_21): Likewise.
1435
1436 2000-04-20 H.J. Lu <hjl@gnu.org>
1437
1438 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
1439 patch to symbols defined by a shared object.
1440 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
1441
1442 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1443
1444 K&R compiler fixes.
1445 * dwarf2.c (concat_filename): Avoid string literal concatenation.
1446 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
1447
1448 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
1449
1450 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
1451 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
1452 (coff-ia64.lo): Add dependency.
1453 * Makefile.in: Regenerate.
1454 * coff-ia64.c: New file.
1455 * efi-app-ia32.c: Ditto.
1456 * efi-app-ia64.c: Ditto.
1457 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
1458 (coff_set_flags): Ditto.
1459 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
1460 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
1461 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
1462 * configure: Regenerate.
1463 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
1464 (PUT_OPTHDR_IMAGE_BASE): Ditto.
1465 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
1466 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
1467 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
1468 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
1469 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
1470 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
1471 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
1472 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
1473 (GET_PDATA_ENTRY): Ditto.
1474 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
1475 data_start. Use above macros to read fields that are 64 bit wide for
1476 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
1477 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
1478 FileAlignment and SectionAlignment to minimum alignment if they
1479 are zero.
1480 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
1481 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
1482 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
1483 Use above macros to write fields that are 64 bit wide for
1484 COFF_WITH_PEP64.
1485 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
1486 5*4 otherwise. This should be right for IA-32 and IA-64, but may
1487 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
1488 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
1489 begin address, end address, and unwind info address only. Use
1490 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
1491 print addresses.
1492 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
1493 HIGH3ADJ relocation names.
1494 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
1495 * targets.c: Declare bfd_efi_app_ia32_vec and
1496 bfd_efi_app_ia64_vec.
1497 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
1498 bfd_efi_app_ia64_vec.
1499
1500 2000-04-17 Timothy Wall <twall@cygnus.com>
1501
1502 * bfd-in2.h: Add prototypes for tic54x load page access.
1503 * bfd-in.h: Regenerate.
1504 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
1505 in customized _set_arch_mach function.
1506 * coffcode.h (coff_set_alignment_hook): Set section load page if
1507 the appropriate macro is defined.
1508 (write_object_contents): Read section load page.
1509
1510 2000-04-13 Alan Modra <alan@linuxcare.com.au>
1511
1512 * elf32-hppa.h: Update copyright date.
1513
1514 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
1515 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
1516
1517 * elf32-d30v.c (MAX32): Don't use LL suffix.
1518 (MIN32): Define in terms of MAX32.
1519 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
1520
1521 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
1522 expression.
1523
1524 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
1525
1526 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1527
1528 * dep-in.sed: Match space before file name, not after.
1529 * Makefile.am: Regenerate dependencies.
1530 * Makefile.in: Regenerate.
1531
1532 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
1533 case, allow address wrap-around stupidly removed 2000-03-17. Sign
1534 extend without an if statement.
1535
1536 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1537
1538 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
1539 signed quantites.
1540 * elf32-mips.c (gprel16_with_gp): Likewise.
1541 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
1542 here using -0x40000, not (int)0xfffc0000.
1543 (elf32_hppa_size_of_stub): Likewise.
1544
1545 2000-04-11 Timothy Wall <twall@cygnus.com>
1546
1547 * coff-tic54x.c: Now builds with all targets.
1548 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
1549 * Makefile.in: Regenerate.
1550 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
1551 unitialized variable.
1552
1553 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1554
1555 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1556 --enable-build-warnings option.
1557 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1558 * Makefile.in, configure: Re-generate.
1559
1560 2000-04-07 Nick Clifton <nickc@cygnus.com>
1561
1562 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
1563 BFD_RELOC_THUMB_PCREL_BLX.
1564
1565 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1566 R_ARM_XPC25 and R_ARM_THM_PC22.
1567
1568 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
1569 R_ARM_XPC25 and R_ARM_THM_XPC22.
1570 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
1571 R_ARM_[XPC25|THM_XPC22].
1572
1573 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
1574 elf/arm-oabi.h to elf/arm.h
1575
1576 * Makefile.am: Fix dependency for elfarm-oabi.c
1577 * Makefile.in: Regenerate.
1578
1579 * bfd-in2.h: Regenerate.
1580 * libbfd.h: Regenerate.
1581
1582 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
1583
1584 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
1585 and restore it on failure. Release newly allocated tdata on
1586 failure.
1587
1588 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
1589
1590 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
1591 (decode_line_info): Set it. Report error if unit->line_offset is
1592 equal to or larger than it.
1593
1594 2000-04-07 Timothy Wall <twall@cygnus.com>
1595
1596 * targets.c: Added vecs for tic54x.
1597 * reloc.c: Added relocs for tic54x.
1598 * libbfd.h: Regenerated.
1599 * configure: Add TI COFF vecs for tic54x.
1600 * configure.in: Ditto.
1601 * config.bfd (targ_cpu): Recognize new tic54x target.
1602 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
1603 * bfd-in2.h: Add tic54x target and relocations.
1604 * Makefile.am, Makefile.in: Add tic54x target.
1605 * archures.c (bfd_archures_list): Add tic54x target.
1606 * coff-tic54x.c: New.
1607 * cpu-tic54x.c: New.
1608
1609 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
1610
1611 * elfcore.h (elf_core_file_p): call backend_object_p which
1612 thereby gets an opportunity to update the arch/machine type.
1613
1614 2000-04-06 Timothy Wall <twall@cygnus.com>
1615
1616 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
1617 class. Handle SEC_CLINK and SEC_BLOCK flags.
1618 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
1619 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
1620
1621 2000-04-06 Nick Clifton <nickc@cygnus.com>
1622
1623 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
1624 EF_INTERWORK if this is an unknown EABI.
1625 (elf32_arm_merge_private_bfd_data): Check EABI version
1626 numbers. Only check EF_xxx flags if the EABI version number
1627 is unknown.
1628 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
1629 if the EABI version number is unknown.
1630 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
1631 if the EABI version number is unknown.
1632
1633 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1634
1635 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
1636 BFD_RELOC_SH_LOOP_END.
1637 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
1638 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
1639 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
1640 (sh_elf_reloc_loop): New function.
1641 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
1642 any more.
1643 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
1644 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
1645 * bfd-in2.h, libbfd.h: Regenerate.
1646
1647 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1648
1649 * po/bfd.pot: Regenerate.
1650
1651 * Makefile.am: Remove extraneous mkdep comment.
1652 (MKDEP): Use gcc -MM rather than mkdep.
1653 (DEP): Quote when passing vars to sub-make. Add warning
1654 message to end.
1655 (DEP1): Rewrite for "gcc -MM".
1656 (CLEANFILES): Add DEP2.
1657 Update dependencies.
1658 * Makefile.in: Regenerate.
1659
1660 2000-04-03 Kevin Buettner <kevinb@redhat.com>
1661
1662 * configure.in: Added corefile support for AIX 4.3. In particular,
1663 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
1664 compiling rs6000-core.c.
1665 * configure: Regenerated.
1666
1667 2000-04-03 H.J. Lu <hjl@gnu.org>
1668
1669 * cache.c (bfd_open_file): Unlink the output file only if
1670 it has non-zero size.
1671
1672 2000-04-01 Ken Block USG <block@zk3.dec.com>
1673
1674 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
1675 relative relocations for non-loaded sections in shared objects.
1676 (elf64_alpha_check_relocs): Similarly.
1677
1678 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
1679
1680 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
1681 BFD_RELOC_16 to switch for extended relocs.
1682 (MY_swap_ext_reloc_in): New.
1683 (MY_swap_ext_reloc_out): New.
1684 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
1685 than NAME(aout,swap_ext_reloc_in) for extended relocs.
1686 (NAME(aout,squirt_out_relocs)): Similarly use
1687 MY_swap_ext_reloc_out.
1688 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
1689
1690 2000-04-03 Kazu Hirata <kazu@hxi.com>
1691
1692 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
1693 the R_PCRWORD_B case.
1694
1695 2000-03-31 Thomas de Lellis <tdel@wrs.com>
1696
1697 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
1698 on some targets.
1699 * ihex.c : Ditto.
1700
1701 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
1702
1703 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
1704 HOWTO references to bfd_elf_generic_reloc, that have
1705 partial_inplace == true, now use the new function. The function
1706 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
1707 extends its fixes to the R_M32R_{16,24,32} relocs.
1708 The new logic in m32r_elf_lo16_reloc() has been removed, and
1709 it instead calls the new routine to obtain that functionality.
1710
1711 2000-03-27 Alan Modra <alan@linuxcare.com.au>
1712
1713 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
1714 elf32_avr_check_relocs, avr_final_link_relocate,
1715 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
1716 elf32_avr_object_p): Add prototypes.
1717 (elf32_avr_gc_mark_hook): Add default for h->root.type.
1718 (bfd_elf_avr_final_write_processing): Make static.
1719
1720 2000-03-27 Denis Chertykov <denisc@overta.ru>
1721
1722 * cpu-avr.c: New file. BFD support routines for AVR architecture.
1723 * archures.c (bfd_architecture): Add AVR architecture.
1724 (bfd_archures_list): Add reference to AVR architecture info.
1725 * elf.c (prep_headers): Handle bfd_arch_avr.
1726 * reloc.c: Add various AVR relocation enums.
1727 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
1728 list.
1729 * Makefile.am: Add support for AVR elf.
1730 * configure.in: Likewise.
1731 * config.bfd: Likewise.
1732 * Makefile.in: Regenerate.
1733 * configure: This too.
1734 * bfd-in2.h: And this.
1735 * libbfd.h: And this.
1736
1737 2000-03-24 H.J. Lu <hjl@gnu.org>
1738
1739 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
1740 (elf64_alpha_find_reloc_at_ofs): Likewise.
1741
1742 2000-03-17 Alan Modra <alan@linuxcare.com.au>
1743
1744 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
1745 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
1746 allowable range used to be -2**(n-1) to 2**n-1.
1747 * reloc.c (_bfd_relocate_contents): Same here. Also replace
1748 "boolean overflow" with "bfd_reloc_status_type flag".
1749
1750 2000-03-14 Doug Evans <dje@casey.transmeta.com>
1751
1752 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
1753
1754 2000-03-14 Kazu Hirata <kazu@hxi.com>
1755
1756 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
1757 of shrinks properly, including the last reloc.
1758
1759 2000-03-13 Kazu Hirata <kazu@hxi.com>
1760
1761 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
1762 check for R_MOVL2.
1763
1764 2000-03-11 Alan Modra <alan@linuxcare.com.au>
1765
1766 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
1767 a format mismatch rather than an "error" from bfd_read such as
1768 bfd_error_file_truncated.
1769
1770 2000-03-10 Geoff Keating <geoffk@cygnus.com>
1771
1772 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
1773 sign-extension and big-endian compensation for
1774 R_MIPS_64 even in ld -r.
1775
1776 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
1777
1778 * elf32-mips.c (mips_elf_next_relocation): Rename from
1779 mips_elf_next_lo16_relocation, and generalize to look
1780 for any relocation type.
1781 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
1782 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
1783 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
1784 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
1785 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
1786 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
1787 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
1788 (mips_rtype_to_howto): Likewise.
1789 (mips_elf_calculate_relocation): Handle new relocs.
1790 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
1791 are paired. The addend for R_MIPS_GNU_REL16_S2
1792 is shifted right two bits.
1793
1794 2000-03-10 Alan Modra <alan@linuxcare.com.au>
1795
1796 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
1797 comment, and ensure it doesn't happen again.
1798 (bfd_install_relocation): Same here.
1799 (_bfd_relocate_contents): Don't bother assigning unused signmask
1800 shift result. Fix typos in comments.
1801 Remove trailing whitespace throughout file.
1802
1803 2000-03-07 Doug Evans <dje@casey.transmeta.com>
1804
1805 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
1806 * bfd-in2.h: Rebuild.
1807
1808 2000-03-06 Nick Clifton <nickc@cygnus.com>
1809
1810 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
1811 sym_ptr_ptr fields.
1812 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
1813 (SIZEOF_ILF_STRINGS): Redefine.
1814 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
1815 relative reloc, as opposed to a section relative reloc.
1816 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
1817 not C_LABEL.
1818 Add length of symbol's prefix to string pointer.
1819 Store a pointer to the symbol in the symbol pointer table.
1820 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
1821 Initialise the symbol pointer table.
1822 Store the hint in the Hint/Name table.
1823 Make the jump reloc be symbol realtive, not section relative.
1824 Create an import symbol for imported code.
1825
1826 2000-03-06 Catherine Moore <clm@cygnus.com>
1827
1828 * elf.c (swap_out_syms): Check for null type_ptr.
1829
1830 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
1831
1832 * aout-target.h (MY(write_object_contents)): Remove unused
1833 and unusable "#if CHOOSE_RELOC_SIZE".
1834 * pc532-mach.c (MY(write_object_contents)): Ditto.
1835 * netbsd.h (MY(write_object_contents)): Ditto.
1836 * hp300hpux.c (MY(write_object_contents)): Ditto.
1837 * freebsd.h (MY(write_object_contents)): Ditto.
1838 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
1839
1840 2000-02-29 H.J. Lu <hjl@gnu.org>
1841
1842 * peicode.h (jtab): Make it static.
1843
1844 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
1845 defined and COFF_IMAGE_WITH_PE is not defined.
1846 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
1847 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
1848
1849 2000-03-01 Nick Clifton <nickc@cygnus.com>
1850
1851 * coff-arm.c (bfd_arm_process_before_allocation): Make
1852 'symndx' signed to prevent compile time warning.
1853
1854 * coff-mcore.c: Remove unused prototype for pe_object_p.
1855
1856 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
1857 functions that are not used when COFF_IMAGE_WITH_PE is
1858 defined.
1859 (struct sh_opcode): Change type of 'flags' field to unsigned
1860 long so that it can hold the USESAS flag.
1861
1862 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
1863
1864 * elf-m10300.c (mn10300_elf_relax_section): Initialise
1865 'sym_sec'.
1866
1867 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
1868 parameters.
1869 Remove unusued variables and code.
1870 (elf_backend_add_symbol_hook): Fix prototype.
1871
1872 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
1873 'srelgot'.
1874
1875 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
1876 'oldinst'.
1877
1878 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
1879 parameters.
1880 Remove unusued variables and code.
1881 (elf_backend_add_symbol_hook): Fix prototype.
1882
1883 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
1884
1885 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
1886 to unused function parameter.
1887
1888 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
1889 parameters.
1890 Use EMPTY_HOWTO to initialise empty howto slots.
1891 Remove unused variables.
1892
1893 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
1894
1895 2000-03-01 H.J. Lu <hjl@gnu.org>
1896
1897 * aoutx.h (aout_link_input_section_std): Pass "true" to
1898 the undefined_symbol callback.
1899 (aout_link_input_section_ext): Likewise.
1900 * bout.c (get_value): Likewise.
1901 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
1902 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
1903 Likewise.
1904 (alpha_relocate_section): Likewise.
1905 * coff-arm.c (coff_arm_relocate_section): Likewise.
1906 * coff-i960.c (coff_i960_relocate_section): Likewise.
1907 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
1908 * coff-mips.c (mips_relocate_section): Likewise.
1909 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
1910 * coff-sh.c (sh_relocate_section): Likewise.
1911 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
1912 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
1913 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1914 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1915 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1916 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1917 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1918 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1919 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1920 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1921 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1922 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1923 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
1924 * elflink.h (elf_link_output_extsym): Likewise.
1925 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
1926 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
1927 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
1928
1929 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
1930 undefined_symbol callback when building shared library with
1931 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
1932 "true".
1933 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1934 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1935 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1936 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1937 (elf32_mips_get_relocated_section_content): Likewise.
1938 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1939 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1940 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1941 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1942
1943 2000-02-28 Nick Clifton <nickc@cygnus.com>
1944
1945 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
1946 * Makefile.in: Regenerate.
1947
1948 * configure.in: Add support for mips and sh pe vectors.
1949 * configure: regenerate.
1950
1951 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
1952 targets.
1953
1954 * targets.c: Add mips and sh pe vectors.
1955
1956 * libpei.h (coff_final_link_postscript): Only define if not
1957 already defined.
1958
1959 * coffcode.h: Add support for WinCE magic numbers.
1960
1961 * peigen.c (pe_print_reloc): Update comment and rearrange
1962 appending of newline character.
1963
1964 * peicode.h: Add support for Image Library Format.
1965 (pe_ILF_vars): Structure containing data used by ILF code.
1966 (pe_ILF_make_a_section): New function. Create a section based
1967 on ILF data.
1968 (pe_ILF_make_a_reloc): New function. Create a reloc based on
1969 ILF data.
1970 (pe_ILF_make_a_symbol): New function. Create a symbol based
1971 on ILF data.
1972 (pe_ILF_save_relocs): New function. Store the relocs created
1973 by pe_ILF_make_a_reloc in a section.
1974 (pe_ILF_build_a_bfd): New function. Create a BFD describing
1975 an ILF object.
1976 (pe_ILF_object_p): New function. Return a bfd_target pointer
1977 for an ILF object.
1978 (pe_bfd_object_p): If an ILF object is detected call
1979 pe_ILF_object_p on it.
1980
1981 * coff-arm.c: Add support for WinCE relocs which are different
1982 from normal ARM COFF relocs.
1983 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
1984
1985 * coff-sh.c: Add support for sh-pe target.
1986 * pe-sh.c: New file. Support code for sh-pe target.
1987 * pei-sh.c: New file. Support code for sh-pe target.
1988
1989 * pe-mips.c: New file. Support code for mips-pe target.
1990 * pei-mips.c: New file. Support code for mips-pe target.
1991
1992 2000-02-27 Jakub Jelinek <jakub@redhat.com>
1993
1994 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
1995 architecture if the object causing the bump is dynamic.
1996 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
1997 and also don't it for memory ordering.
1998 (sparc64_elf_write_relocs): Take src_rela out of the loop.
1999
2000 2000-02-27 Ian Lance Taylor <ian@zembu.com>
2001
2002 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
2003 calling bfd_get_section_size_before_reloc.
2004 (decode_line_info): Likewise.
2005 (_bfd_dwarf2_find_nearest_line): Likewise.
2006
2007 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
2008
2009 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
2010 name of the libtool directory.
2011 * Makefile.in: Rebuild.
2012
2013 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
2014
2015 * som.c (SOM_HOWTO): Define.
2016 (som_hppa_howto_table): Use it.
2017
2018 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2019
2020 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
2021
2022 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
2023
2024 2000-02-24 Catherine Moore <clm@cygnus.com>
2025
2026 * som.c (som_misc_symbol_info): Add field
2027 secondary_def.
2028 (som_bfd_derive_misc_symbol_info): Initialize
2029 secondary_def.
2030 (som_build_and_write_symbol_table): Keep track
2031 of secondary_def field.
2032 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
2033 if secondary_def field is set.
2034 (som_bfd_ar_write_symbol_stuff): Initialize
2035 secondary_def.
2036
2037 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
2038
2039 * dwarf2.c (read_address): Read 16-bits addresses.
2040 (parse_comp_unit): Accept addr_size == 2.
2041
2042 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2043
2044 * bfd-in.h: Update copyright date.
2045
2046 2000-02-23 Linas Vepstas <linas@linas.org>
2047
2048 * cpu-i370.c: New file.
2049 * elf32-i370.c: New file.
2050 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
2051 (bfd_i370_arch): New.
2052 (bfd_archures_list): Add bfd_i370_arch.
2053 * elf.c (prep_headers): Add bfd_arch_i370.
2054 * Makefile.am: Add support for IBM 370 elf.
2055 * config.bfd: Likewise.
2056 * configure.in: Likewise.
2057 * libbfd.h (bfd_reloc_code_real_names): Likewise.
2058 * reloc.c (bfd_reloc_code_type): Likewise.
2059 * targets.c: Likewise.
2060
2061 * Makefile.in: Regenerate.
2062 * configure: Regenerate.
2063 * bfd-in2.h: Regenerate.
2064
2065 2000-02-22 Ian Lance Taylor <ian@zembu.com>
2066
2067 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
2068 invalid relocation types, and change them to R_386_NONE.
2069
2070 2000-02-22 H.J. Lu <hjl@gnu.org>
2071
2072 * elflink.h (elf_link_add_object_symbols): If a version symbol is
2073 not defined, don't add a second ELF_VER_CHR.
2074
2075 * elflink.h (elf_bfd_final_link): Call output_extsym for global
2076 symbols converted to local symbols even when stripping all
2077 symbols.
2078 (elf_link_output_extsym): Process global symbols converted to
2079 local symbols even if they are being stripped.
2080
2081 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2082
2083 * archures.c (bfd_octets_per_byte): Return unsigned int.
2084 (bfd_arch_mach_octets_per_byte): Ditto.
2085 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
2086 comparison warning.
2087 * section.c (bfd_get_section_size_before_reloc): Quell signed
2088 vs. unsigned comparison warning.
2089 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
2090 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
2091 change. What was I thinking?
2092 * bfd-in2.h: Regenerate.
2093
2094 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
2095 (elf_gc_sections): Same here.
2096 (elf_gc_common_finalize_got_offsets): And here.
2097
2098 2000-02-21 Ian Lance Taylor <ian@zembu.com>
2099
2100 ELF HPPA doesn't work at present; remove it until it does.
2101 * config.bfd: Comment out setting targ_defvec to
2102 bfd_elf32_hppa_vec.
2103 * Makefile.am: Rebuild dependencies.
2104 (BFD32_BACKENDS): Remove elf32-hppa.lo.
2105 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
2106 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
2107 * Makefile.in: Rebuild.
2108 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
2109
2110 2000-02-18 Geoff Keating <geoffk@cygnus.com>
2111
2112 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
2113 is no bfd_free(). Revert bfd_free part of previous change.
2114
2115 2000-02-18 Geoff Keating <geoffk@cygnus.com>
2116
2117 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
2118 arrays.
2119 (coff_compute_section_file_positions): Use bfd_free to pair
2120 bfd_malloc.
2121 (coff_write_object_contents): Likewise.
2122
2123 * coff-rs6000.c (xcoff_howto_table_16): New variable.
2124 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
2125
2126 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
2127
2128 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
2129 (xcoff_ar_file_hdr_big): New structure.
2130 (SIZEOF_AR_FILE_HDR_BIG): New macro.
2131 (xcoff_ar_hdr_big): New structure.
2132 (SIZEOF_AR_HDR_BIG): New macro.
2133 (xcoff_big_format_p): New macro.
2134 (xcoff_ardata_big): New macro.
2135 (arch_xhdr_big): New macro.
2136 (xcoff_slurp_armap): Handle large archives.
2137 (xcoff_archive_p): Detect large archives.
2138 (xcoff_read_ar_hdr): Handle large archives.
2139 (xcoff_openr_next_archived_file): Handle large archives.
2140 (xcoff_generic_stat_arch_elt): Handle large archives.
2141 (xcoff_write_armap_old): Rename from xcoff_write_armap.
2142 (xcoff_write_armap_big): New function.
2143 (xcoff_write_armap): New function, dispatch to _old or _big.
2144 (xcoff_write_archive_contents_old): Rename from
2145 xcoff_write_archive_contents.
2146 (xcoff_write_archive_contents_big): New function.
2147 (xcoff_write_archive_contents): New function, dispatch to _old or
2148 _big.
2149
2150 2000-02-18 Richard Henderson <rth@cygnus.com>
2151
2152 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
2153 and hide_symbol members.
2154 (elf_link_hash_copy_indirect): Remove.
2155 (elf_link_hash_hide_symbol): Remove.
2156 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
2157 and elf_backend_hide_symbol.
2158 (_bfd_elf_link_hash_copy_indirect): Declare.
2159 (_bfd_elf_link_hash_hide_symbol): Declare.
2160 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
2161 (_bfd_elf_link_hash_hide_symbol): Likewise.
2162 (_bfd_elf_link_hash_table_init): Don't init killed members.
2163 * elflink.h (elf_link_add_object_symbols): Use the bed function
2164 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
2165 (elf_link_assign_sym_version): Likewise.
2166 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
2167 (elf_backend_hide_symbol): Likewise.
2168 (elfNN_bed): Update for new members.
2169
2170 2000-02-17 Kevin Buettner <kevinb@redhat.com>
2171
2172 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
2173 STACK_END_ADDR): Define for new core file format.
2174 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
2175 for handling the vagaries of the various core file structures used
2176 by AIX over the years.
2177 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
2178 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
2179 core_dumpx structure.
2180
2181 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2182
2183 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
2184 (bfd_mach_sh3_dsp): Likewise.
2185 (bfd_mach_sh4): Reinstate.
2186 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
2187 * bfd-in2.h: Regenerate.
2188 * coff-sh.c (struct sh_opcode): flags is no longer short.
2189 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
2190 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
2191 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
2192 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
2193 (sh_opcodes): No longer const.
2194 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
2195 (sh_insn_uses_reg): Check for USESAS and USESR8.
2196 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
2197 (_bfd_sh_align_load_span): Return early for SH4.
2198 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
2199 Take into account that field b of a parallel processing insn
2200 could be mistaken for a separate insn.
2201 * cpu-sh.c (arch_info_struct): New array elements for
2202 sh2, sh-dsp and sh3-dsp.
2203 Reinstate element for sh4.
2204 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
2205 (SH4_NEXT): Reinstate.
2206 (SH3_NEXT, SH3E_NEXT): Adjust.
2207 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
2208 * elf32-sh.c (sh_elf_set_private_flags): New function.
2209 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
2210 (sh_elf_merge_private_data): New function.
2211 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
2212 (bfd_elf32_bfd_copy_private_bfd_data): Define.
2213 (bfd_elf32_bfd_merge_private_bfd_data): Change to
2214 sh_elf_merge_private_data.
2215
2216 2000-02-13 Richard Henderson <rth@cygnus.com>
2217
2218 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
2219 hide_symbol members.
2220 (elf_link_hash_copy_indirect): New.
2221 (elf_link_hash_hide_symbol): New.
2222 * elflink.h (elf_link_add_object_symbols): Break out copy from
2223 indirect new new symbol to elf.c.
2224 (elf_link_assign_sym_version): Break out privatization of
2225 non-exported symbol to elf.c.
2226 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
2227 (_bfd_elf_link_hash_hide_symbol): New.
2228 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
2229
2230 2000-02-13 Ian Lance Taylor <ian@zembu.com>
2231
2232 * section.c (_bfd_strip_section_from_output): Add info parameter.
2233 If it passed as non-NULL, use it to check whether any input BFD
2234 has an input section which uses this output section. Change all
2235 callers.
2236 * bfd-in2.h: Rebuild.
2237
2238 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
2239 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
2240 1999-11-29.
2241 * bfd-in2.h: Rebuild.
2242
2243 2000-02-10 Timothy Wall <twall@cygnus.com>
2244
2245 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
2246 allow final modifications of swapped-in symbol.
2247 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
2248 * coffcode.h (coff_write_relocs): Use macro
2249 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
2250 symbol index should be set to -1.
2251
2252 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
2253
2254 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
2255 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
2256 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
2257 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
2258 sh_insns_uses_or_sets_freg): New functions.
2259 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
2260 * (sh_insns_conflict): Use new functions and new macros to
2261 detect conflicts when two instructions both set same integer registers,
2262 both set same fp register, and both set special register.
2263
2264 2000-02-09 Timothy Wall <twall@cygnus.com>
2265
2266 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
2267 swapping in sections, so that the swapping routines have access to
2268 the arch/mach info.
2269
2270 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
2271
2272 * coff-go32.c: Update comment. Update copyright.
2273
2274 2000-01-27 Thomas de Lellis <tdel@windriver.com>
2275
2276 * syms.c (bfd_decode_symclass)
2277 Two new class characters were added - 'V' and 'v'. The
2278 meaning of 'W' is now restricted to just weak non-object
2279 symbols. This allows differentiation between, for example,
2280 weak functions vs weak objects. nm for example now dumps:
2281 'W' = weak global
2282 'w' = weak unresolved
2283 'V' = weak global object
2284 'v' = weak unresolved object
2285
2286 (bfd_is_undefined_symclass): New function. Return true if the
2287 given symbol class represents and undefined/unresolved symbol.
2288
2289 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
2290 unresolved symbols.
2291
2292 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
2293
2294 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
2295 STT_ARM_16BIT flag set, but it is not attached to a data object
2296 return STT_ARM_16BIT so that it will be treated as code by the
2297 disassembler.
2298
2299 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2300
2301 * coff-i386.c (i3coff_object_p): Remove prototype.
2302 Update copyright.
2303
2304 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
2305 to name. Update copyright.
2306
2307 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
2308 assignment to avoid warning. Update copyright.
2309
2310 2000-01-24 Robert Lipe (robertl@sco.com)
2311
2312 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
2313 instead of using GNU C extension.
2314
2315 2000-01-21 Nick Clifton <nickc@cygnus.com>
2316
2317 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
2318 amount from a bfd_in_memory structure.
2319 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
2320 structure.
2321
2322 2000-01-14 Nick Clifton <nickc@cygnus.com>
2323
2324 * linker.c (default_indirect_link_order): oops - fix incorrectly
2325 applied patch from Tim Wall.
2326
2327 2000-01-13 Timothy Wall (twall@tiac.net>
2328
2329 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
2330 = scnhsz, filhsz, relsz, aoutsz, etc)
2331
2332 * coffswap.h: Ditto.
2333
2334 2000-01-13 Nick Clifton <nickc@cygnus.com>
2335
2336 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
2337 interwork thumb to arm stub.
2338
2339 2000-01-13 Timothy Wall (twall@tiac.net>
2340
2341 * archures.c (bfd_octets_per_byte): New function: Return
2342 target byte size.
2343 (bfd_arch_mach_octets_per_byte): New function: Return target
2344 byte size.
2345
2346 * section.c: Distinguish between octets and bytes for usage of
2347 _cooked_size, _raw_size, and output_offset. Clarify
2348 description of bfd_set_section_contents.
2349
2350 * bfd-in2.h: Regenerate.
2351
2352 * coffgen.c: Indicate that the offset parameter is in bytes, not
2353 octets.
2354
2355 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
2356 where appropriate to get the octet offset when calling
2357 bfd_set_section_contents.
2358 (bfd_coff_reloc_link_order): Ditto.
2359
2360 * linker.c (bfd_generic_reloc_link_order): Ditto.
2361 (_bfd_default_link_order): Ditto.
2362
2363 * reloc.c (bfd_perform_relocation): Distinguish between octets
2364 and bytes. Use octets when indexing into octet data; use bytes
2365 when calculating target addresses.
2366 (bfd_install_relocation): Ditto.
2367
2368 * srec.c (srec_write_section): Ditto.
2369
2370 2000-01-13 Nick Clifton <nickc@cygnus.com>
2371
2372 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
2373 3 to 2. This allows 4 byte sized sections, which is necessary for
2374 dlltool to build functioning DLLs.
2375
2376 2000-01-10 Philip Blundell <pb@futuretv.com>
2377
2378 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
2379 (arm*-*-conix*): New target.
2380
2381 2000-01-10 Egor Duda <deo@logos-m.ru>
2382
2383 * config.bfd: Include elf32_i386 vector to target list for cygwin
2384 and mingw.
2385
2386 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
2387 * configure.in: Test for structure win32_pstatus_t in
2388 <sys/procfs.h>
2389 * configure: Regenerate.
2390
2391 * elf.c (elfcore_grok_win32pstatus): New function: process
2392 win32_pstatus_t notes in elf core file.
2393 (elfcore_grok_note): Detect win32_pstatus notes.
2394
2395 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
2396
2397 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
2398 visibility.
2399 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
2400 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
2401
2402 1999-12-29 Richard Henderson <rth@cygnus.com>
2403
2404 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
2405 if no dynamic sections created.
2406
2407 1999-12-27 Nick Clifton <nickc@cygnus.com>
2408
2409 * peicode.h (pe_bfd_object_p): Only define for PE format
2410 targets.
2411
2412 1999-12-17 Nick Clifton <nickc@cygnus.com>
2413
2414 * coff-i386.c (i3coff_object_p): Delete.
2415 (i386coff_vec): Replace reference to i3coff_object_p with a
2416 reference to coff_object_p.
2417
2418 * coff-mcore.c (pe_object_p): Delete.
2419
2420 * peicode.h (pe_bfd_object_p): New function: Detect the
2421 presence of a PE format COFF object file. Also detect and
2422 warn about the presence of LINK6 format Image Library Format
2423 object files.
2424
2425 1999-12-16 Nick Clifton <nickc@cygnus.com>
2426
2427 * coff-arm.c (NUM_ELEM): New macro.
2428 (NUM_RELOCS): New macro: The number of known ARM relocs.
2429 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
2430 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
2431 of range.
2432 (bfd_arm_process_before_allocation): Produce a warning message if
2433 an out of range symbol index is encountered.
2434
2435 1999-12-14 Nick Clifton <nickc@cygnus.com>
2436
2437 * elflink.h (is_global_symbol_definition): New Function: Return
2438 true iff the symbol is being given a global definition in this
2439 bfd.
2440 (elf_link_is_defined_archive_symbol): Do not bother processing
2441 symbols for an archive element that has already been included
2442 in the link.
2443 Use is_global_symbol_definition().
2444
2445 1999-12-09 Andrew Cagney <cagney@cygnus.com>
2446
2447 * config.bfd: Add support for sparc-*-netbsdelf* and
2448 sparc-*-netbsdaout*.
2449
2450 1999-12-13 Nick Clifton <nickc@cygnus.com>
2451
2452 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
2453 if the symbol is in the common section.
2454
2455 1999-12-10 Nick Clifton <nickc@cygnus.com>
2456
2457 * elflink.h (elf_link_is_defined_archive_symbol): New
2458 function: Decide if a symbol, in an archive map is there
2459 because it is defined in the archive element, or because it is
2460 just another common declaration of it.
2461 (elf_link_add_archive_symbols): Use
2462 elf_link_is_defined_archive_symbol to decide if an archive
2463 element contain a reference to a common symbol should be
2464 linked in or not.
2465
2466 1999-12-10 Nick Clifton <nickc@cygnus.com>
2467
2468 * elflink.h: Revert previous patch.
2469 * targets.c: Revert previous patch.
2470 * libbfd-in2.h: Revert previous patch.
2471 * libbfd.h: Revert previous patch.
2472 * elfxx-target.h: Revert previous patch.
2473 * archive.c: Revert previous patch.
2474 * aout-target.h: Revert previous patch.
2475 * aout-tic30.h: Revert previous patch.
2476 * bfd.c: Revert previous patch.
2477 * coff-alpha.c: Revert previous patch.
2478 * coff-rs6000.c: Revert previous patch.
2479 * elf64-mips.c: Revert previous patch.
2480 * ieee.c: Revert previous patch.
2481 * libecoff.h: Revert previous patch.
2482 * oasys.c: Revert previous patch.
2483 * som.c: Revert previous patch.
2484 * vms.c: Revert previous patch.
2485
2486 1999-12-09 Nick Clifton <nickc@cygnus.com>
2487
2488 * elflink.h (elf_link_add_archive_symbols): Add an archive
2489 element even if contains a symbol which is currently only
2490 considered to be a common.
2491
2492 * targets.c (struct bfd_target): Add new field
2493 _bfd_allow_commons_in_armap.
2494 * bfd-in2.h:Regenerate.
2495
2496 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
2497 Define.
2498 (_bfd_archive_bsd_allow_commons_in_armap): Define.
2499 * libbfd.h: Regenerate.
2500
2501 * elfxx-target.h: If using COFF archive map, override
2502 definition of allow_commons_in_armap and replace with
2503 bfd_false.
2504
2505 * archive.c (bfd_compute_and_write_armap): Do not place common
2506 symbols into the archive map unless _bfd_allow_commons_in_armap
2507 returns true.
2508
2509 * aout-target.h (MY_allow_commons_in_armap): Define.
2510 * aout-tic30.h (MY_allow_commons_in_armap): Define.
2511 * bfd.c (bfd_allow_commons_in_armap): Define.
2512 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
2513 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
2514 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
2515 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
2516 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
2517 * oasys.c (oasys_allow_commons_in_armap): Define.
2518 * som.c (som_allow_commons_in_armap): Define.
2519 * vms.c (vms_allow_commons_in_armap): Define.
2520
2521 1999-12-07 Jim Blandy <jimb@cygnus.com>
2522
2523 Add support for SSE registers in ELF core files.
2524 * elf.c (elfcore_make_note_pseudosection): New function.
2525 (elfcore_grok_prfpreg): Use it.
2526 (elfcore_grok_prxfpreg): New function.
2527 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
2528
2529 1999-12-03 Ian Lance Taylor <ian@zembu.com>
2530
2531 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
2532 value by 4 before storing it back in the field. From
2533 Koundinya. K <kk@ddeorg.soft.net>.
2534
2535 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
2536
2537 * archures.c (bfd_mach_am33): Define.
2538 * bfd-in2.h: Rebuilt.
2539 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
2540 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
2541 (compute_function_info): Handle additional registers saved by
2542 movm on the am33.
2543 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
2544 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
2545
2546 1999-11-29 Jim Blandy <jimb@cygnus.com>
2547
2548 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
2549 functions.
2550 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
2551 declarations.
2552
2553 1999-11-27 Michael Meissner <meissner@cygnus.com>
2554
2555 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
2556 internal use within gas for alpha explicit relocations.
2557 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
2558 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
2559 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
2560 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
2561 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
2562 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
2563
2564 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
2565 BFD_RELOC_ALPHA_USER_*.
2566
2567 * bfd-in2.h: Regenerate.
2568 * libbfd.h: Regenerate.
2569
2570 1999-11-26 Fred Fish <fnf@cygnus.com>
2571
2572 * elf.c (elfcore_read_notes): Add prototype for static function.
2573 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
2574 (bfd_section_from_phdr): Replacement function that calls
2575 _bfd_elf_make_section_from_phdr for generic segment types and
2576 backend fucntion pointed to by elf_backend_section_from_phdr for
2577 backend specific segment types.
2578 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
2579 now called by _bfd_elf_make_section_from_phdr. Note that this func
2580 is now just a stub between the caller and bfd_section_from_phdr.
2581
2582 * elf-bfd.h (struct elf_backend_data): Add new function pointer
2583 elf_backend_section_from_phdr.
2584 (elf_backend_section_from_phdr): Add prototype.
2585
2586 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
2587 (elfNN_bed): Add elf_backend_section_from_phdr.
2588
2589 1999-11-25 Nick Clifton <nickc@cygnus.com>
2590
2591 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
2592 SEC_CODE and SEC_READONLY flags to glue sections.
2593
2594 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
2595 SEC_CODE and SEC_READONLY flags to glue sections.
2596
2597 1999-11-20 Nick Clifton <nickc@cygnus.com>
2598
2599 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
2600 delta.
2601
2602 1999-11-19 Catherine Moore <clm@cygnus.com>
2603
2604 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
2605 (elf_cpu32_plt_entry): Likewise.
2606
2607 1999-11-18 Nick Clifton <nickc@cygnus.com>
2608
2609 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
2610 for RVA relocs.
2611 (coff_mcore_relocate_section): Initialise addend to 0.
2612 Special case processing of RVA reloc.
2613
2614 1999-11-17 Richard Henderson <rth@cygnus.com>
2615
2616 * elf-bfd.h (struct elf_backend_data): Reorder collect and
2617 type_change_ok; add sign_extend_vma.
2618 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
2619 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
2620 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
2621 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
2622 (elfNN_bed): Follow struture changes.
2623
2624 1999-11-09 Ian Lance Taylor <ian@zembu.com>
2625
2626 * libbfd.c (bfd_read): Check result of read against desired result
2627 using !=, not <.
2628 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
2629 invalid compared to the section size.
2630
2631 * ieee.c (ieee_slurp_debug): Get the length of the debug
2632 information right if there is no data part.
2633
2634 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
2635
2636 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
2637 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
2638
2639 1999-10-28 Ian Lance Taylor <ian@zembu.com>
2640
2641 * elflink.h (elf_bfd_final_link): Make last_local signed.
2642
2643 1999-10-27 Ian Lance Taylor <ian@zembu.com>
2644
2645 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
2646 starts with a zero.
2647
2648 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
2649
2650 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
2651 bfd_mach_d10v_ts3.
2652 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
2653 * bfd-in2.h: Regenerate.
2654
2655 1999-10-15 Andrew Haley <aph@cygnus.com>
2656
2657 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
2658
2659 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
2660
2661 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
2662
2663 1999-10-08 Ian Lance Taylor <ian@zembu.com>
2664
2665 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
2666 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
2667 too.
2668
2669 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
2670
2671 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
2672 relocs also need the GP value.
2673 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
2674 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
2675 the GP value for R_MIPS_LITERAL relocs too. Handle
2676 R_MIPS_64 relocs properly on big-endian MIPS.
2677 (mips_elf_sign_extend): Behave properly with 'long long'.
2678 (mips_elf_highest): Correct typo.
2679
2680 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
2681
2682 * cpu-m32r.c (arch_info_struct): New static global.
2683 (bfd_m32r_arch): Refer to it.
2684 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
2685 (m32r_elf_print_private_bfd_data): Ditto.
2686 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
2687 * archures.c (bfd_mach_m32rx): Define it.
2688 * bfd-in2.h: Rebuild.
2689
2690 1999-09-28 Fred Fish <fnf@cygnus.com>
2691
2692 * targets.c (cisco_core_vec): Replaced with two new vecs ...
2693 (cisco_core_big_vec): Add new bigendian vec.
2694 (cisco_core_little_vec): Add new little endian vec.
2695
2696 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
2697 (crash_info_locs): Add array of possible offsets.
2698 (MASK_ADDR): Mask to apply to crash info offset.
2699 (crashinfo_external): Add textbase, database, bssbase and
2700 turn into a typedef.
2701 (cisco_core_file_validate): Renamed from cisco_core_file_p.
2702 Many small changes to account for additional hardware versions.
2703 Pick a reasonable size for ".reg" section. Add a ".crash"
2704 section to allow access to crashinfo_external struct.
2705 (cisco_core_file_p): New version of this function that
2706 iterates over crash_info_locs, calling cisco_core_file_validate.
2707 (cisco_core_vec): Old big endian only vec replaced with ...
2708 (cisco_core_big_vec): Add big endian version.
2709 (cisco_core_little_vec): Add little endian version.
2710
2711 * configure.in (cisco_core_vec): Split to two new vectors ...
2712 (cisco_core_big_vec): New target vector.
2713 (cisco_core_little_vec): New target vector.
2714 * configure: Regenerate.
2715 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
2716 to cisco_core_big_vec in targ_selvecs.
2717
2718 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
2719
2720 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
2721 (mips_elf_relocate_got_local): Unused, delete.
2722 (mips_elf_relocate_global_got): Unused, delete.
2723
2724 1999-09-24 Fred Fish <fnf@cygnus.com>
2725
2726 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
2727 to initialize it to something meaningful. Then use it to generate
2728 more useful segment names.
2729
2730 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
2731
2732 * som.c (NO_PCREL_MODES): Define if the system does not define
2733 R_SHORT_PCREL_MODE.
2734 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
2735 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
2736 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
2737 * libhppa.h (dis_assemble_22): New function.
2738 (bfd_hppa_insn2fmt): Handle long branch.
2739
2740 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
2741 in PA2.0.
2742
2743 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
2744
2745 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
2746 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
2747 (reloc_howto_type howto_table): Tidy comments and whitespace.
2748
2749 1999-09-17 Nick Clifton <nickc@cygnus.com>
2750
2751 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
2752 previous delta. Set sec->gc_mark instead.
2753
2754 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
2755
2756 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
2757 (elf_cpu32_plt_entry): Likewise.
2758
2759 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
2760
2761 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
2762
2763 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
2764 symbol table, then just compute a suitable value (but do not
2765 create a __gp symbol).
2766
2767 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
2768 symbols when building shared libraries.
2769 (elf_hppa_final_link_relocate): Correct handling of PCREL
2770 relocations against undefined symbols.
2771
2772 1999-09-16 Nick Clifton <nickc@cygnus.com>
2773
2774 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
2775 interworking sections as linker created so that they will not
2776 be removed by garbage collection.
2777
2778 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
2779
2780 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
2781 (elf_hppa_final_link_relocate): Consistently create an absolute
2782 address, then subtract out the value of __gp.
2783
2784 1999-09-14 Michael Meissner <meissner@cygnus.com>
2785
2786 * configure.in (Canonicalization of target names): Remove adding
2787 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
2788 generates $ac_config_sub with a ${CONFIG_SHELL} already.
2789 * configure: Regenerate.
2790
2791 1999-09-14 Nick Clifton <nickc@cygnus.com>
2792
2793 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
2794 Mitsubishi).
2795
2796 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
2797
2798 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
2799 (elf_hppa_final_link): Initialize text_segment_base and
2800 data_segment_base.
2801 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
2802
2803 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
2804 (elf_hppa_final_link_relocate): Likewise.
2805 (elf_hppa_relocate_insn): Likewise.
2806 (elf_hppa_relocate_section): Initialize HOWTO.
2807
2808 1999-09-13 Donn Terry <donn@interix.com>
2809
2810 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
2811 handling to support both GNU and MS objects.
2812
2813 * coffcode.h (coff_write_object_contents): Don't check reloc_count
2814 when determining whether to set F_RELFLG.
2815
2816 1999-09-13 Philip Blundell <pb@nexus.co.uk>
2817
2818 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
2819 PC24 relocs if the target is an undefined weak symbol.
2820 (arm_add_to_rel): Fix compiler warning.
2821 (elf32_arm_plt0_entry): Correct comments.
2822
2823 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
2824
2825 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
2826 an absolute symbol in REL relocs.
2827
2828 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
2829
2830 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
2831 Stub SEGREL32. Return an error for any relocation not handled.
2832
2833 1999-09-12 Ian Lance Taylor <ian@zembu.com>
2834
2835 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
2836 constant symbols, and avoid multiple definition errors on them.
2837
2838 1999-09-12 Donn Terry <donn@interix.com>
2839
2840 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
2841 significant bit is set.
2842
2843 1999-09-11 Ian Lance Taylor <ian@zembu.com>
2844
2845 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2846
2847 * elfcode.h (write_relocs): Handle an absolute symbol in REL
2848 relocs as we do for RELA relocs.
2849
2850 1999-09-11 Donn Terry <donn@interix.com>
2851
2852 * libpei.h (_bfd_pei_final_link_postscript): Declare.
2853 (coff_final_link_postscript): Define.
2854 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
2855 directory entries here.
2856 (_bfd_pei_final_link_postscript): New function.
2857
2858 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
2859 section flags based on the section name.
2860
2861 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
2862 get the overflow of the s_nlnno field from the s_nreloc field.
2863 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
2864 the s_nlnno overflow of the .text section into the s_nreloc
2865 field.
2866
2867 * peigen.c (add_data_entry): Declare.
2868 (pei_swap_aouthdr_out): Get image size right. Set linker version
2869 more intuitively.
2870 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
2871 (pe_print_idata): Code cleanup, print more info, get rid of (now)
2872 extraneous ImageBase.
2873 (pe_print_edata): Likewise.
2874 (pe_print_pdata): Likewise. Print exception entries.
2875 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
2876 (tbl): Make const, add "UNKNOWN".
2877 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
2878 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
2879 section data directory.
2880 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
2881
2882 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
2883 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
2884 * peicode.h (coff_get_symbol_info): Define.
2885
2886 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
2887 -DSTRICT_PE_FORMAT.
2888 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
2889 than __INTERIX.
2890 (coff_classify_symbol): Re-revert 1999-08-08 patch if
2891 STRICT_PE_FORMAT.
2892
2893 * libpei.h: New file, broken out of peicode.h.
2894 * peigen.c: New file, broken out of peicode.h.
2895 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
2896 * configure.in: Add peigen.lo to list of files required for each
2897 PE target.
2898 * Makefile.am: Rebuild dependencies.
2899 (BFD32_BACKENDS): Add peigen.lo.
2900 (BFD32_BACKENDS_CFILES): Add peigen.c.
2901 (SOURCE_HFILES): Add libpei.h.
2902 * configure, Makefile.in: Rebuild.
2903
2904 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
2905 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
2906 instead. Don't clear the s_paddr field for an uninitialized data
2907 section.
2908
2909 * coffcode.h (coff_mkobject_hook): Set timestamp field in
2910 coff_data_type to f_timdat.
2911 * peicode.h (pe_mkobject_hook): Likewise.
2912
2913 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
2914 number if COFF_IMAGE_WITH_PE.
2915
2916 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
2917 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
2918 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
2919 there is no SEC_DEBUGGING section.
2920 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
2921 IMAGE_FILE_DEBUG_STRIPPED.
2922
2923 * pe-i386.c (COFF_LONG_FILENAMES): Define.
2924 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2925 * pei-i386.c (COFF_LONG_FILENAMES): Define.
2926 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2927
2928 * coffswap.h (IMAGE_BASE): Don't define.
2929 * pei-arm.c (IMAGE_BASE): Don't define.
2930 * pei-i386.c (IMAGE_BASE): Don't define.
2931 * pei-mcore.c (IMAGE_BASE): Don't define.
2932 * pei-ppc.c (IMAGE_BASE): Don't define.
2933
2934 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
2935 symbol, switch on the class when determining whether to modify the
2936 value. For PE, don't modify the value of a C_FCN symbol not named
2937 .bf.
2938
2939 * libbfd-in.h (_bfd_abort): Declare.
2940 (abort): Define.
2941 * bfd.c (_bfd_abort): New function.
2942 * libbfd.h: Rebuild.
2943
2944 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
2945 special handling.
2946
2947 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
2948 don't write out the associated line numbers.
2949
2950 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
2951 aux entries.
2952
2953 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
2954 changes when the base type is unknown.
2955
2956 * coffgen.c (coff_print_symbol): Fix printing of aux record for
2957 function symbols.
2958
2959 * syms.c (BSF_DEBUGGING_RELOC): Define.
2960 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
2961 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
2962 symbols named .bf.
2963 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
2964 BSF_DEBUGGING_RELOC set.
2965 * bfd-in2.h: Rebuild.
2966
2967 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2968
2969 * ecoff.c (bfd_debug_section): Update initialization for new
2970 comdat_info field.
2971 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
2972 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
2973
2974 1999-09-10 H.J. Lu <hjl@gnu.org>
2975
2976 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
2977 _bfd_filnmlen field.
2978 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2979
2980 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
2981
2982 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
2983 for FPTR relocs involving local symbols.
2984
2985 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
2986 value for the stub address in a call through a stub.
2987 Install the value for a local symbol directly into the DLT
2988 instead of generating a reloc. Correctly handle FPTR64 relocs.
2989
2990 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
2991 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
2992 (elf_hppa_final_link): Call them.
2993
2994 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2995
2996 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
2997 (elf_adjust_dynamic_symbol): ...from here.
2998
2999 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
3000
3001 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
3002 relocation, remove them. SECREL64->LTOFF16WF.
3003 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
3004 DIR* relocations.
3005 (elf_hppa_relocate_insn): Similarly.
3006
3007 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
3008 (elf_hppa_relocate_insn): Similarly.
3009
3010 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
3011 GPREL* relocations.
3012 (elf_hppa_relocate_insn): Similarly.
3013
3014 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
3015 Handle LTOFF_TP* relocs.
3016 (elf_hppa_relocate_insn): Similarly.
3017
3018 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
3019 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
3020 (elf_hppa_relocate_insn): Handle PCREL* relocs.
3021
3022 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
3023 DIR32, DIR64 and FPTR64 relocations.
3024 (elf_hppa_relocate_insn): Similarly.
3025
3026 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
3027 address of the .PARISC.global section.
3028 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
3029 table entry elf_hppa_final_link_relocate. Do not give a warning
3030 for a reloc against an external symbol if it has a PA64 hash
3031 table entry.
3032 (elf_hppa_final_link_relocate): Significantly rework. Handle
3033 DLTIND relocations. Compute the final value of the relocation
3034 before passing the value of elf_hppa_relocate_insn.
3035 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
3036 relocation support. Handle DLTIND relocation requests just like
3037 DLTREL relocation requests. Simplify branch handling.
3038
3039 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
3040
3041 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
3042 non-allocated section as done in i386 version.
3043 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
3044 statement since this is no know relocation.
3045
3046 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
3047
3048 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
3049 relocs.
3050 (elf_hppa_relocate_insn): Similarly.
3051
3052 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
3053 DLTREL14WD relocs.
3054 (elf_hppa_relocate_insn): Similarly.
3055
3056 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
3057 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
3058 Pass the relocate type rather than the insn format to
3059 elf_hppa_relocate_insn.
3060 (elf_hppa_relocate_insn): Make switch dependent on relocation type
3061 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
3062
3063 1999-09-07 Ian Lance Taylor <ian@zembu.com>
3064
3065 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
3066 (bfd_coff_filnmlen): Define.
3067 (bfd_coff_std_swap_table): Initialize new field.
3068 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
3069 than FILNMLEN.
3070 (coff_write_symbols): Likewise.
3071 (coff_get_normalized_symtab): Likewise.
3072 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
3073 * libcoff.h: Rebuild.
3074
3075 1999-09-06 Donn Terry <donn@interix.com>
3076
3077 * coffcode.h (sort_by_secaddr): New static function if
3078 COFF_IMAGE_WITH_PE.
3079 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
3080 sections by VMA when assigning target_index values. Always set
3081 virt_size.
3082
3083 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
3084 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
3085 pe_flags field.
3086 * libcoff.h: Rebuild.
3087
3088 * coffcode.h (coff_set_custom_section_alignment): Add const to
3089 declaration to match definition.
3090 (coff_write_object_contents): Don't set F_AR32W(R)? if
3091 COFF_WITH_PE.
3092
3093 * coff-i386.c (in_reloc_p): Add declaration.
3094 (i386coff_vec): Simplify initialization of
3095 application_section_flags.
3096
3097 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
3098 version. Move COFF_WITH_PE specific code to new version.
3099 (stype_to_sec_flags): Likewise. Add section parameter.
3100 * coffgen.c (make_a_section_from_file): Set target_index before
3101 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
3102 * libcoff.h: Rebuild.
3103
3104 * syms.c (stt): Add some PE/PEI section names.
3105 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
3106 symbol.
3107 (bfd_symbol_info): Check for 'w'.
3108
3109 * section.c (struct bfd_comdat_info): Define.
3110 (asection): Add comdat field.
3111 (STD_SECTION): Initialize comdat field.
3112 (bfd_make_section_anyway): Likewise.
3113 * bfd-in2.h: Rebuild.
3114
3115 1999-09-06 Andreas Schwab <schwab@suse.de>
3116
3117 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
3118 to version symbols.
3119
3120 1999-09-06 Nick Clifton <nickc@cygnus.com>
3121
3122 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
3123 bfd_realloc instead of calloc and realloc.
3124
3125 1999-09-04 Steve Chamberlain <sac@pobox.com>
3126
3127 * cpu-pj.c: New file.
3128 * elf32-pj.c: New file.
3129 * config.bfd (pj*): New cpu.
3130 (pj-*-*, pjl-*-*): New targets.
3131 * configure.in (bfd_elf32_pj_vec): New target vector.
3132 (bfd_elf32_pjl_vec): New target vector.
3133 * archures.c (bfd_arch_pj): Define.
3134 * elf.c (prep_headers): Handle bfd_arch_pj.
3135 * reloc.c: Define BFD_RELOC_PJ_* relocations.
3136 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
3137 to target vector list.
3138 * Makefile.am: Rebuild dependencies.
3139 (ALL_MACHINES): Add cpu-pj.lo.
3140 (ALL_MACHINES_CFILES): Add cpu-pj.c.
3141 (BFD32_BACKENDS): Add elf32-pj.lo.
3142 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
3143 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
3144
3145 1999-09-04 Ian Lance Taylor <ian@zembu.com>
3146
3147 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
3148 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
3149 and NON_GOT_REF from weak defined symbol to real symbol.
3150 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
3151 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
3152 create a COPY reloc.
3153 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
3154 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
3155 don't create a COPY reloc.
3156
3157 1999-09-03 Ian Lance Taylor <ian@zembu.com>
3158
3159 * elflink.h (elf_bfd_final_link): When counting relocations, don't
3160 count those in sections we are not including in the link.
3161
3162 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
3163
3164 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
3165 field in hpux11 shared libraries.
3166
3167 1999-09-02 Nick Clifton <nickc@cygnus.com>
3168
3169 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
3170
3171 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
3172
3173 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
3174 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
3175 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
3176
3177 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
3178
3179 * elflink.h (record_link_assignment): When possible, keep the
3180 original type of the symbol.
3181
3182 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
3183
3184 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
3185 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
3186 tools were configured.
3187 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
3188
3189 1999-08-26 Mark Mitchell <mark@codesourcery.com>
3190
3191 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
3192 GOT entries for GOT16 relocations; they're not required.
3193
3194 1999-08-24 Nick Clifton <nickc@cygnus.com>
3195
3196 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
3197
3198 * config.bfd (arm-*-netbsd*): New target.
3199 * configure.in (armnetbsd_vec): New target vector.
3200 * configure: Regenerate
3201 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
3202
3203 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
3204 (ALL_MACHINES_CFILES): Add armnetbsd.c.
3205 (armnetbsd.lo): New rule with deps.
3206 * Makefile.in: Regenerate.
3207
3208 * armnetbsd.c: New file: Definitions specific to arm-netbsd
3209 target.
3210
3211 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
3212
3213 * som.c (som_slurp_symbol_table): Fix typo in comment.
3214
3215 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
3216
3217 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
3218 here instead of using elf_section_data...
3219
3220 1999-08-19 Nick Clifton <nickc@cygnus.com>
3221
3222 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
3223 relocations into the base file.
3224 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
3225 we are building a base file.
3226
3227 1999-08-19 Nick Clifton <nickc@cygnus.com>
3228
3229 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
3230 a REL style reloc.
3231 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
3232 REL relocs when performing a partial relocation.
3233
3234 1999-08-18 Donn Terry <donn@interix.com>
3235
3236 * cofflink.c: Move definitions of N_TMASK, et. al., out of
3237 _bfd_coff_link_input_bfd into top level.
3238
3239 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
3240 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
3241 (coff_i386_rtype_to_howto): Likewise.
3242 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
3243 Completely ignore symbols which are all zero.
3244 (dummy_reloc16_estimate): Add return 0.
3245 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
3246 variable copy to name_copy to avoid shadowing outer scope
3247 variable.
3248 * libcoff-in.h (coff_data_type): Change raw_syment_count field
3249 from unsigned int to unsigned long. Add timestamp field.
3250 * libcoff.h: Rebuild.
3251
3252 1999-08-17 H.J. Lu <hjl@gnu.org>
3253
3254 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
3255 macro definition.
3256
3257 1999-08-17 Ian Lance Taylor <ian@zembu.com>
3258
3259 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
3260 for special section symbols.
3261 * elflink.h (elf_merge_symbol): If we have no old BFD, check
3262 BSF_DYNAMIC on the section symbol to see whether the old BFD is
3263 dynamic.
3264
3265 1999-08-15 Mark Mitchell <mark@codesourcery.com>
3266
3267 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
3268 coincidence of variable names between old and new code.
3269
3270 1999-08-12 Nick Clifton <nickc@cygnus.com>
3271
3272 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
3273 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
3274 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
3275 and 'addend' parameter a 'bfd_signed_vma'.
3276 (elf32_arm_final_link_relocate): Do not involve stubs in
3277 R_ARM_THM_PC22 relocs relative to section symbols, they are long
3278 jumps, not function calls.
3279
3280 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
3281
3282 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
3283 in R_ARM_PC24 relocs.
3284
3285 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
3286
3287 * elf-hppa.h (elf_hppa_fake_sections): New function.
3288 * elf32-hppa.c (elf_backend_fake_sections): Define.
3289
3290 * elf-hppa.h (elf_hppa_final_write_processing): Update for
3291 recent changes to the arch_info structure.
3292
3293 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
3294 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
3295 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
3296 list.
3297
3298 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
3299 Ralf Baechle <ralf@uni-koblenz.de>
3300
3301 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
3302 output DT_MIPS_GOTSYM.
3303 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
3304 DT_MIPS_SYMTABNO if there are no global GOT symbols.
3305
3306 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
3307
3308 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
3309 prototype. Handle local symbols. Add commentary.
3310 (mips_elf_calculate_relocation): Adjust accordingly.
3311 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
3312 relocations.
3313
3314 * elflink.h (elf_bfd_final_link): Tweak last change.
3315
3316 1999-08-09 Mark Mitchell <mark@codesourcery.com>
3317
3318 * elflink.h (elf_link_size_reloc_section): Use the counts in the
3319 elf-section data to allocate just the right amount of relocation
3320 space. Don't allocate the hash space twice.
3321 (elf_bfd_final_link): Calculate the amount of space to allocate in
3322 each relocation section.
3323
3324 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
3325
3326 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
3327 64bit mode, generate a section relative relocation for a 32bit
3328 wide relocation.
3329 (elf_hppa_is_local_label_name): New function.
3330 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
3331 shared between 32bit and 64bit port.
3332
3333 1999-08-09 Mark Mitchell <mark@codesourcery.com>
3334
3335 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
3336 R_MIPS_GOT16 and R_MIPS_CALL16.
3337 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
3338 to use when looking for a preexisting GOT entry.
3339
3340 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
3341
3342 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
3343 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
3344 not binutils.
3345 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3346
3347 1999-08-09 Geoff Keating <geoffk@cygnus.com>
3348
3349 * elflink.h (elf_link_output_extsym): Don't output a weak
3350 reference to an undefined symbol just because it was defined weak
3351 in a shared object.
3352
3353 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
3354
3355 * coffgen.c (coff_find_nearest_line): When looking for file, use
3356 last best match rather than first. If address is beyond last line
3357 number record, don't return the last line as the correct value.
3358
3359 1999-08-08 Ian Lance Taylor <ian@zembu.com>
3360
3361 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
3362 * bfd-in2.h: Rebuild.
3363
3364 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
3365
3366 * libcoff-in.h (struct coff_section_alignment_entry): Define.
3367 * coffcode.h (coff_set_custom_section_alignment): New static
3368 function.
3369 (coff_section_alignment_table): New static array.
3370 (coff_new_section_hook): Use coff_set_customer_section_alignment.
3371 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
3372 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
3373 * libcoff.h: Rebuild.
3374
3375 1999-08-08 Ian Lance Taylor <ian@zembu.com>
3376
3377 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
3378 MKDEP.
3379 * Makefile.in: Rebuild.
3380
3381 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
3382
3383 * section.c (SEC_SHARED): Define.
3384 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
3385 (styp_to_sec_flags): Likewise.
3386 * peicode.h (coff_swap_scnhdr_out): Likewise.
3387 * bfd-in2.h: Rebuild.
3388
3389 1999-08-08 Ian Lance Taylor <ian@zembu.com>
3390
3391 * coffcode.h (coff_classify_symbol): Comment out part of
3392 1999-08-05 change which breaks cygwin DLLs.
3393
3394 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
3395 * aclocal.m4, configure: Rebuild.
3396
3397 1999-08-06 Ian Lance Taylor <ian@zembu.com>
3398
3399 * section.c (global_syms): Only initialize union field if
3400 __STDC__.
3401
3402 1999-08-04 Mark Mitchell <mark@codesourcery.com>
3403
3404 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
3405 the size of a GOT entry here.
3406 (mips_elf_calculate_relocation): Don't create a local GOT entry
3407 for the symbol in a GOT16 relocation; just for it's high-order bit
3408 (_bfd_mips_elf_relocate_section): Fix thinko.
3409
3410 1999-08-05 Ian Lance Taylor <ian@zembu.com>
3411
3412 Based on patches from Donn Terry <donn@interix.com>:
3413 * coffcode.h (enum coff_symbol_classification): Define.
3414 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
3415 _bfd_coff_classify_symbol. Change return type.
3416 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
3417 (coff_slurp_symbol_table): Use coff_classify_symbol.
3418 (coff_classify_symbol): New static function.
3419 (coff_sym_is_global): Never define.
3420 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
3421 * cofflink.c (coff_link_check_ar_symbols): Use
3422 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
3423 (coff_link_add_symbols): Likewise.
3424 (_bfd_coff_link_input_bfd): Likewise.
3425 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
3426 coff_classify_symbol.
3427 * libcoff.h: Rebuild.
3428
3429 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
3430
3431 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
3432 (e_ltpsel, e_rtpsel): Similarly.
3433
3434 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
3435 and 14bit ertpsel. Handle 64bit psel.
3436
3437 1999-08-04 Mark Mitchell <mark@codesourcery.com>
3438
3439 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
3440 handling for REL relocations. And only left-shift R_MIPS26
3441 relocation addends where necessary.
3442
3443 1999-08-03 Mark Mitchell <mark@codesourcery.com>
3444
3445 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
3446 (mips_elf_next_lo16_relocation): Don't compute the addend here.
3447 Just return the relocation found.
3448 (mips_elf_relocate_section): Pull the LO16 addend out of the
3449 section itself when using REL relocations.
3450
3451 * elf32-mips.c (mips_elf_calculate_relocation): Restore
3452 _DYNAMIC_LINK handling and handling of undefined symbols in shared
3453 libraries.
3454
3455 1999-08-03 Ian Lance Taylor <ian@zembu.com>
3456
3457 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
3458 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
3459 relocation against a symbol in an input section with no output
3460 section. From Daniel Jacobowitz <drow@false.org>.
3461
3462 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
3463
3464 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
3465 look for generated file correctly.
3466 * aclocal.m4, configure: Rebuild.
3467
3468 1999-08-02 Mark Mitchell <mark@codesourcery.com>
3469
3470 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
3471 and R_MIPS16_26 relocations correctly when relocating.
3472 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
3473 and R_MIPS_CALL_LO16 are for global symbols.
3474
3475 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
3476
3477 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
3478 some fields.
3479 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
3480 variables and initialize them.
3481
3482 1999-08-01 Mark Mitchell <mark@codesourcery.com>
3483
3484 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
3485 there are no global symbols requiring GOT entries.
3486 (_bfd_mips_elf_size_dynamic_sections): Likewise.
3487 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
3488 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
3489
3490 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
3491 symbols are considered to have the value zero.
3492 (_bfd_mips_elf_relocate_section): Don't try to perform a
3493 relocation for an undefined symbol.
3494 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
3495 GOT16 relocations.
3496
3497 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
3498
3499 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
3500 wants ba,a,pt %xcc instead of %icc.
3501 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
3502 of large PLT entries.
3503 (sparc64_elf_plt_ptr_offset): Fix calculation.
3504 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
3505 addend should be relative to load address, not .plt section start.
3506 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
3507
3508 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
3509
3510 * elf-bfd.h (struct elf_backend_data): Add
3511 print_symbol_all and output_arch_syms backend methods.
3512 * elfxx-target.h: Likewise.
3513 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
3514 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
3515 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
3516 functions.
3517 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
3518 symbols in .dynsym, add their names into .dynstr. Put those symbols
3519 into dynlocal.
3520 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
3521 pointers to STT_REGISTER symbols in dynsym section.
3522 (sparc64_elf_print_symbol_all): New function.
3523 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
3524 printing using the print_symbol_all hook.
3525
3526 1999-07-30 Catherine Moore <clm@cygnus.com>
3527
3528 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
3529 R_ARM_GNU_VTENTRY.
3530
3531 1999-07-29 Richard Henderson <rth@cygnus.com>
3532
3533 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
3534 dynamic_sections_created.
3535
3536 1999-07-29 Richard Henderson <rth@cygnus.com>
3537
3538 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
3539 (mips_rtype_to_howto): ... new function.
3540 (_bfd_mips_elf_relocate_section): Use it.
3541
3542 1999-07-28 Mark Mitchell <mark@codesourcery.com>
3543
3544 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
3545
3546 1999-07-27 Nick Clifton <nickc@cygnus.com>
3547
3548 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
3549
3550 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
3551 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
3552
3553 1999-07-23 Donn Terry <donn@interix.com>
3554
3555 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
3556 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
3557 * cofflink.c (coff_link_add_symbols): If PE, handle section
3558 symbols specially.
3559 * libcoff.h: Rebuild.
3560
3561 * config.bfd (i[3456]86-*-interix*): New target.
3562
3563 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
3564
3565 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
3566 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
3567 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
3568 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
3569 (COFF_SUPPORT_GNU_LINKONCE): Define.
3570 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
3571 (COFF_SUPPORT_GNU_LINKONCE): Define.
3572
3573 1999-07-21 Ian Lance Taylor <ian@zembu.com>
3574
3575 From Mark Elbrecht:
3576 * makefile.dos: Remove; obsolete.
3577 * configure.bat: Remove; obsolete.
3578
3579 1999-07-21 H.J. Lu <hjl@gnu.org>
3580
3581 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
3582
3583 1999-07-21 Philippe De Muyter <phdm@macqel.be>
3584
3585 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
3586 message and fail if a symbol index is out of range.
3587
3588 1999-07-21 Ian Lance Taylor <ian@zembu.com>
3589
3590 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
3591 when looking at a R_MIPS_GOT16 relocation.
3592
3593 1999-07-20 Nick Clifton <nickc@cygnus.com>
3594
3595 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3596
3597 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
3598
3599 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
3600 removed in previous change.
3601 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
3602 in relocateable output.
3603
3604 1999-07-19 Ian Lance Taylor <ian@zembu.com>
3605
3606 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
3607 structure.
3608
3609 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
3610 if they appear to be specially created by the linker.
3611
3612 1999-07-19 Nick Clifton <nickc@cygnus.com>
3613
3614 * targets.c (alternative_target): New field in bfd_target
3615 structure.
3616 (bfd_search_for_target): New function: Find a target that
3617 satisifies a search function.
3618 * bfd-in2.h: Regenerate.
3619
3620 * elfxx-target.h: Initialise the alternative_target field of
3621 the bfd_target structures to point to the other target (if
3622 defined).
3623 * nlm-target.h: Initialise the alternative_target field of
3624 the bfd_target structures to point to the other target (if
3625 defined).
3626
3627 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
3628 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
3629
3630 * aix386-core.c: Initialise new field of bfd_target structure.
3631 * aout-adobe.c: Initialise new field of bfd_target structure.
3632 * aout-arm.c: Initialise new field of bfd_target structure.
3633 * aout-target.h: Initialise new field of bfd_target structure.
3634 * aout-tic30.c: Initialise new field of bfd_target structure.
3635 * binary.c: Initialise new field of bfd_target structure.
3636 * bout.c: Initialise new field of bfd_target structure.
3637 * cisco-core.c: Initialise new field of bfd_target structure.
3638 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3639 * coff-alpha.c: Initialise new field of bfd_target structure.
3640 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
3641 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3642 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
3643 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
3644 * coff-i386.c: Initialise new field of bfd_target structure.
3645 * coff-i860.c: Initialise new field of bfd_target structure.
3646 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3647 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3648 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3649 * coff-mips.c: Initialise new field of bfd_target structure.
3650 * coff-ppc.c: Initialise new field of bfd_target structure.
3651 * coff-rs6000.c: Initialise new field of bfd_target structure.
3652 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
3653 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
3654 * coff-tic30.c: Initialise new field of bfd_target structure.
3655 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3656 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
3657 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3658 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
3659 * hppabsd-core.c: Initialise new field of bfd_target structure.
3660 * hpux-core.c: Initialise new field of bfd_target structure.
3661 * i386msdos.c: Initialise new field of bfd_target structure.
3662 * i386os9k.c: Initialise new field of bfd_target structure.
3663 * ieee.c: Initialise new field of bfd_target structure.
3664 * ihex.c: Initialise new field of bfd_target structure.
3665 * irix-core.c: Initialise new field of bfd_target structure.
3666 * mipsbsd.c: Initialise new field of bfd_target structure.
3667 * netbsd-core.c: Initialise new field of bfd_target structure.
3668 * oasys.c: Initialise new field of bfd_target structure.
3669 * osf-core.c: Initialise new field of bfd_target structure.
3670 * ppcboot.c: Initialise new field of bfd_target structure.
3671 * ptrace-core.c: Initialise new field of bfd_target structure.
3672 * sco5-core.c: Initialise new field of bfd_target structure.
3673 * som.c: Initialise new field of bfd_target structure.
3674 * srec.c: Initialise new field of bfd_target structure.
3675 * tekhex.c: Initialise new field of bfd_target structure.
3676 * trad-core.c: Initialise new field of bfd_target structure.
3677 * versados.c: Initialise new field of bfd_target structure.
3678 * vms.c: Initialise new field of bfd_target structure.
3679
3680 1999-07-19 Andreas Schwab <schwab@suse.de>
3681
3682 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
3683 and rel_hdr.
3684
3685 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
3686
3687 * elflink.h (elf_link_adjust_relocs): New function.
3688 (elf_bfd_final_link): Use it.
3689 (elf_link_input_bfd): Deal with the fact that there can be
3690 two relocation sections for a single section.
3691 (elf_reloc_link_order): Likewise.
3692
3693 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
3694 a relocateable object.
3695 (_bfd_mips_elf_relocate_section): Handle relocateable links.
3696
3697 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
3698
3699 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
3700 (sparc64_elf_get_reloc_upper_bound,
3701 sparc64_elf_get_dynamic_reloc_upper_bound,
3702 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
3703 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
3704 New functions.
3705 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
3706 ELF64_R_TYPE_ID/DATA where appropriate.
3707
3708 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
3709
3710 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
3711 DT_SPARC_PLTFMT.
3712
3713 1999-07-16 Ian Lance Taylor <ian@zembu.com>
3714
3715 * elf32-mips.c (mips_elf_local_relocation_p): New static
3716 function.
3717 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
3718 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
3719 Always set *require_jalxp.
3720 (mips_elf_stub_section_p): Mark abfd parameter as unused.
3721 (_bfd_mips_elf_relocate_section): Only look for LO16 following
3722 GOT16 if the GOT16 is against a local symbol. Don't return false
3723 for an undefined symbol. If there is an overflow, assert that we
3724 have a name.
3725
3726 1999-07-16 Andreas Schwab <schwab@suse.de>
3727
3728 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
3729 variables `link' and `elfsec'.
3730 (elf_bfd_final_link): Remove unused variable `os'.
3731
3732 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
3733
3734 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
3735 a PT_PHDR program headers.
3736 (_bfd_mips_elf_final_link): Don't assume there are going to be
3737 section symbols when we're not building a shared object.
3738 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
3739 we need one.
3740
3741 1999-07-15 J.T. Conklin <jtc@redback.com>
3742
3743 * config.bfd (i[3456]86-*-vxworks*): New target.
3744
3745 1999-07-15 Mark Mitchell <mark@codesourcery.com>
3746
3747 * elf32-mips.c (mips_elf_stub_section_p): New function.
3748 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
3749 (mips_elf_relocate_section): Adjust calling sequence for
3750 mips_elf_calculate_relocation and mips_elf_perform_relocation.
3751 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
3752 required.
3753
3754 1999-07-15 Ian Lance Taylor <ian@zembu.com>
3755
3756 * configure.in: Bump version number to 2.9.5.
3757 * configure: Rebuild.
3758
3759 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
3760
3761 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
3762 64bit format.
3763 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
3764 to derive final type instead of hardwiring a selection.
3765
3766 1999-07-14 Mark Mitchell <mark@codesourcery.com>
3767
3768 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
3769 things relocated by R_MIPS16_GPREL.
3770 (mips_elf_perform_relocation): Likewise.
3771
3772 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
3773
3774 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
3775
3776 1999-07-14 Richard Henderson <rth@cygnus.com>
3777
3778 * elf32-mips.c (struct mips_got_info): Add global_gotno.
3779 (_bfd_mips_elf_size_dynamic_sections): Set it.
3780 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
3781 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
3782 new argument max_local.
3783
3784 1999-07-14 Mark Mitchell <mark@codesourcery.com>
3785
3786 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
3787 subwords when handling an R_MIPS16_26 relocation.
3788 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
3789 semantics.
3790
3791 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
3792 dst_mask to match reality.
3793 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
3794 (mips_elf_obtain_contents): Use bfd_get.
3795 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
3796 (mips_elf_relocate_section): Likewise.
3797
3798 1999-07-13 Mark Mitchell <mark@codesourcery.com>
3799
3800 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
3801 (mips_elf_relocate_section): Adjust calling sequence for
3802 mips_elf_perform_relocation.
3803 (mips_elf_perform_relocation): Take additional argument. Handle
3804 R_MIPS16_26. Use bfd_put for convenience.
3805
3806 1999-07-13 Richard Henderson <rth@cygnus.com>
3807
3808 * elf.c (assign_file_positions_for_segments): Thinko last change.
3809 Always overwrite p_flags.
3810
3811 1999-07-13 Richard Henderson <rth@cygnus.com>
3812
3813 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
3814 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
3815 .dynbss and .rel[a].bss if want_dynbss.
3816 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
3817
3818 1999-07-13 Richard Henderson <rth@cygnus.com>
3819
3820 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
3821
3822 1999-07-13 Richard Henderson <rth@cygnus.com>
3823
3824 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
3825 (struct elf_link_hash_table): Add dynlocal.
3826 (_bfd_elf_link_lookup_local_dynindx): Prototype.
3827 (_bfd_elf_link_adjust_dynindx): Delete.
3828 (_bfd_elf_link_renumber_dynsyms): Prototype.
3829 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
3830 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
3831 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
3832 (_bfd_elf_link_lookup_local_dynindx): New function.
3833 (elf_link_renumber_hash_table_dynsyms): New function.
3834 (_bfd_elf_link_renumber_dynsyms): New function.
3835 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
3836 (struct elf_assign_sym_version_info): Delete removed_dynamic.
3837 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
3838 instead of elf_link_remove_section_and_adjust_dynindices.
3839 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
3840 (elf_link_assign_sym_version): Remove removed_dynamic code.
3841 (elf_link_renumber_dynsyms): Delete.
3842 (elf_bfd_final_link): Install section and local symbols into .dynsym.
3843
3844 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
3845 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
3846 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
3847 * elf32-mips.c: Similarly.
3848 * elf32-ppc.c: Similarly.
3849 * elf32-sparc.c: Similarly.
3850 * elf64-alpha.c: Similarly.
3851 * elf64-sparc.c: Similarly.
3852
3853 1999-07-13 Mark Mitchell <mark@codesourcery.com>
3854
3855 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
3856 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
3857 when the relocation is against _gp_disp.
3858
3859 1999-07-12 Mark Mitchell <mark@codesourcery.com>
3860
3861 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
3862 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
3863 to possibly_dynamic_relocs. Adjust usage throughout code.
3864 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
3865 (elf_mips_ctor64_howto): Likewise.
3866 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
3867 Adjust indentation.
3868 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
3869 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
3870 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
3871 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
3872
3873 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3874
3875 * Makefile.am: Rebuild dependencies.
3876 * Makefile.in: Rebuild.
3877
3878 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
3879 * bfd-in2.h: Rebuild.
3880
3881 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3882 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
3883 structure initializations. Add casts.
3884 * reloc.c (EMPTY_HOWTO): Define.
3885 * bfd-in2.h: Rebuild.
3886 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
3887 comparisons against 0.
3888 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
3889 previous_ibfd_e_flags to unsigned long.
3890 * vms.h (struct vms_private_data_struct): Change section_count to
3891 unsigned.
3892 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
3893 (_bfd_vms_write_gsd): Change symnum to unsigned.
3894 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
3895 * vms-tir.c (etir_sta): Change psect to unsigned.
3896 (alloc_section): Change idx to unsigned.
3897 (tir_sta, tir_ctl): Change psect to unsigned.
3898 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
3899 * vms.c (priv_section_count): Change to unsigned.
3900
3901 1999-07-12 Andreas Schwab <schwab@suse.de>
3902
3903 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
3904 * m68klinux.c: Likewise.
3905
3906 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3907
3908 * Many files: Changes to avoid gcc warnings: Remove unused local
3909 variables. Add default case to enum switches.
3910 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
3911 compile if not COFF_IMAGE_WITH_PE.
3912 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
3913 (bfd_arm_get_bfd_for_interworking): Likewise.
3914 (bfd_arm_process_before_allocation): Likewise.
3915 * epoc-pei-arm.c: Don't rename bfd_arm functions.
3916 * pei-arm.c: Likewise.
3917 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
3918 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
3919 (mips_elf_got16_entry): Put parens around & in body of ==.
3920 (mips_elf_calculate_relocation): Correct test for empty string.
3921 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
3922 stderr.
3923 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
3924 format.
3925
3926 1999-07-11 Ian Lance Taylor <ian@zembu.com>
3927
3928 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3929 as appropriate. Fill in structure initializations. Add variable
3930 initializations. Add casts.
3931 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
3932 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
3933
3934 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
3935 char *.
3936 * elf-bfd.h (bfd_elf_hash): Update declaration.
3937 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
3938 when calling bfd_elf_hash.
3939
3940 1999-07-11 Mark Mitchell <mark@codesourcery.com>
3941
3942 * libbfd.c (bfd_put_8): Make it of type `void'.
3943 * bfd-in2.h: Regenerated.
3944 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
3945 for 32-bit hosts.
3946 (_bfd_mips_elf_final_link): Likewise.
3947
3948 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
3949
3950 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
3951
3952 * config.bfd (hppa*-*-linux-gnu*): New target
3953
3954 1999-07-07 Mark Mitchell <mark@codesourcery.com>
3955
3956 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
3957 (_bfd_mips_elf_create_dynamic_sections): New function.
3958 (_bfd_mips_elf_add_symbol_hook): Likewise.
3959 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
3960 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
3961 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
3962 (_bfd_mips_elf_gc_mark_hook): Likewise.
3963 (_bfd_mips_elf_gc_sweep_hook): Likewise.
3964 (_bfd_mips_elf_always_size_sections): Likewise.
3965 (_bfd_mips_elf_size_dynamic_sections): Likewise.
3966 (_bfd_mips_elf_check_relocs): Likewise.
3967 (_bfd_mips_elf_link_hash_table_create): Likewise.
3968 (_bfd_mips_elf_print_private_data): Likewise.
3969 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
3970 (_bfd_mips_elf_final_link): Likewise.
3971 (_bfd_mips_elf_additional_program_headers): Likewise.
3972 (_bfd_mips_elf_modify_segment_map): Likewise.
3973 (_bfd_mips_elf_relocate_section): Likewise.
3974 * elf32-mips.c (mips_elf32_object_p): Move contents into
3975 _bfd_mips_elf_object_p.
3976 (mips_elf_additional_program_headers): Rename to
3977 _bfd_mips_elf_additional_program_headers.
3978 (mips_elf_modify_segment_map): Rename to
3979 _bfd_mips_elf_modify_segment_map.
3980 (elf_mips_abi_name): Change prototype.
3981 (mips_elf32_section_from_shdr): Merge into
3982 _bfd_mips_elf_section_from_shdr.
3983 (mips_elf32_section_processing): Merge into
3984 _bfd_mips_elf_section_processing.
3985 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
3986 the right back-end ELF linker.
3987 (mips_elf_relocate_section): Rename to
3988 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
3989 (mips_elf_link_output_symbol_hook): Rename to
3990 _bfd_mips_elf_link_output_symbol_hook.
3991 (mips_elf_create_dynamic_section): Rename to
3992 _bfd_mips_elf_create_dynamic_section.
3993 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
3994 Adjust for 64-bit code. Use mips_elf_got_section.
3995 (mips_elf_adjust_dynamic_symbol): Rename to
3996 _bfd_mips_elf_adjust_dynamic_symbol. Use
3997 mips_elf_allocate_dynamic_relocations.
3998 (mips_elf_finish_dynamic_symbol): Rename to
3999 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
4000 Adjust for 64-bit code.
4001 (mips_elf_finish_dynamic_sections): Rename to
4002 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
4003 (mips_elf_always_size_sections): Rename to
4004 _bfd_mips_elf_always_size_sections.
4005 (mips_elf_add_symbol_hook): Rename to
4006 _bfd_mips_elf_add_symbol_hook.
4007 (mips_elf_next_lo16_addend): Constify.
4008 (mips_elf_calculate_relocation): Likewise.
4009 (mips_elf_obtain_contents): Likewise.
4010 (mips_elf_perform_relocation): Likewise.
4011 (mips_elf_create_dynamic_relocation): Likewise.
4012 (mips_elf_allocate_dynamic_relocations): New function.
4013 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
4014 (MIPS_ELF_REL_SIZE): Likewise.
4015 (MIPS_ELF_DYN_SIZE): Likewise.
4016 (MIPS_ELF_GOT_SIZE): Likewise.
4017 (MIPS_ELF_SYM_SIZE): Likewise.
4018 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
4019 (MIPS_ELF_GET_WORD): Likewise.
4020 (MIPS_ELF_PUT_WORD): Likewise.
4021 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
4022 (STUB_LW): Conditionalize for 64-bit value.
4023 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
4024 entries.
4025 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
4026 Check it for inconsistency.
4027 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
4028 ABI.
4029 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
4030 .msym.
4031 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
4032 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
4033 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
4034 (mips_elf_local_got_index): Likewise.
4035 (mips_elf_got_page): Likewise.
4036 (mips_elf_got_info): Likewise.
4037 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
4038 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
4039 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
4040 instead of constant `2'.
4041 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
4042 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
4043 (mips_elf_size_dynamic_sections): Use
4044 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
4045 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
4046 Adjust all releveant entries in elf backend table.
4047 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
4048 (mips_elf64_section_processing): Likewise.
4049 Adjust elf backend entries to use _bfd_mips_elf variants now
4050 publicly available.
4051
4052 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
4053 hash-entry sizes.
4054 (size_dynamic_sections): Likewise.
4055 (elf_link_output_extsym): Likewise.
4056 * elf.c: (elf_fake_sections): Likewise.
4057 * libbfd.c (bfd_get): New macro.
4058 (bfd_put): Likewise.
4059 * bfd-in2.h: Regenerated.
4060
4061 1999-07-07 Mark Mitchell <mark@codesourcery.com>
4062
4063 * elf-bfd.h (elf_size_info): Add hash_entry_size,
4064 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
4065 wap_reloca_in, and swap_reloca_out.
4066 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
4067 multiple internal relocations per external relocation.
4068 (link_read_relocs): Likewise.
4069 (elf_bfd_final_link): Likewise.
4070 (elf_link_input_bfd): Likewise.
4071 (elf_gc_mark): Likewise.
4072 (elf_gc_smash_unused_vtentry_relocs): Likewise.
4073 * elfcode.h (elf_swap_dyn_out): Adjust type to match
4074 elf_swap_dyn_in.
4075 (size_info): Add entries for new fields.
4076 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
4077 (mips_elf64_be_swap_reloc_in): New function.
4078 (mips_elf64_be_swap_reloc_out): Likewise.
4079 (mips_elf64_be_swap_reloca_in): Likewise.
4080 (mips_elf64_be_swap_reloca_out): Likewise.
4081 (mips_elf64_size_info): Add entries for new fields.
4082
4083 1999-07-07 Ian Lance Taylor <ian@zembu.com>
4084
4085 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
4086 field equals the new rel_count field.
4087 (elf_link_input_bfd): When doing a relocateable link, use the new
4088 rel_count field rather than the reloc_count field.
4089 (elf_reloc_link_order): Likewise.
4090 (elf_finish_pointer_linker_section): Likewise.
4091
4092 Based on patch from H.J. Lu <hjl@gnu.org>:
4093 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
4094 shared library to override a weak definition in a regular object.
4095
4096 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
4097
4098 * libhppa.h: Revert July 2, 1999 patch.
4099
4100 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
4101 need to generate DLTIND relocations, not DLTREL relocations.
4102
4103 1999-07-05 Nick Clifton <nickc@cygnus.com>
4104
4105 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
4106 architectures.
4107 (coff_set_flags): Recognise arm 5 architectures.
4108
4109 * cpu-arm.c: Add support for strongarm and arm9 cpus.
4110 Add support for armv5 architecture.
4111
4112 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
4113
4114 * reloc.c: Add new, assembler only, ARM reloc:
4115 BFD_RELOC_ARM_ADRL_IMMEDIATE.
4116
4117 * bfd-in2.h: Regenerate.
4118
4119 1999-07-02 Mark Mitchell <mark@codesourcery.com>
4120
4121 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
4122 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
4123 * elf.c (_bfd_elf_find_nearest_line): Pass it.
4124 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
4125 * elf32-mips.c (ABI_64_P): New macro.
4126 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
4127 (_bfd_mips_elf_find_nearest_line): Adjust call to
4128 _bfd_dwarf2_find_nearest_line.
4129 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4130 * libbfd.h: Regenerated.
4131
4132 1999-07-02 Ian Lance Taylor <ian@zembu.com>
4133
4134 * config.bfd: Add * at the end of i[3456]86-*-unixware.
4135
4136 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
4137
4138 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
4139 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
4140
4141 1999-07-01 Mark Mitchell <mark@codesourcery.com>
4142
4143 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
4144 fields.
4145 (_bfd_elf_init_reloc_shdr): New function.
4146 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
4147 bfd_alloc followed by memset.
4148 (_bfd_elf_init_reloc_shdr): New function, split out from ...
4149 (elf_fake_sections): Here.
4150 (assign_section_numbers): Assign section numbers for the second
4151 relocation section, if required.
4152 * elflink.h (elf_link_output_relocs): New function.
4153 (elf_link_size_reloc_section): Likewise.
4154 (elf_bfd_final_link): Use elf_link_size_reloc_section.
4155 (elf_link_input_bfd): Use elf_link_output_relocs.
4156
4157 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
4158 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
4159
4160 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
4161
4162 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
4163 with 22bit format.
4164
4165 1999-06-28 Mark Mitchell <mark@codesourcery.com>
4166
4167 * elf32-mips.c (mips_elf_got_info): Move declaration before
4168 prototypes. Change global_gotsym to be a pointer to a hash entry,
4169 rather than a number index.
4170 (mips_elf_link_hash_entry): Move declaration before prototypes.
4171 (mips_elf_irix6_finish_dynamic_symbol): New function.
4172 (mips_elf_sign_extend): Likewise.
4173 (mips_elf_high): Likewise.
4174 (mips_elf_higher): Likewise.
4175 (mips_elf_highest): Likewise.
4176 (mips_elf_global_got_index): Likewise.
4177 (mips_elf_local_got_index): Likewise.
4178 (mips_elf_got_offset_from_index): Likeiwse.
4179 (mips_elf_record_global_got_symbol): Likewise.
4180 (mips_elf_got_page): Likewise.
4181 (mips_elf_next_lo16_addend): Likewise.
4182 (mips_elf_calculate_relocation): Likewise.
4183 (mips_elf_obtain_contents): Likewise.
4184 (mips_elf_perform_relocation): Likewise.
4185 (mips_elf_assign_gp): Likewise.
4186 (mips_elf_sort_hash_table_f): Likewise.
4187 (mips_elf_sort_hash_table): Likewise.
4188 (mips_elf_got_section): Likewise.
4189 (mips_elf_got_info): Likewise.
4190 (mips_elf_create_local_got_entry): Likewise.
4191 (mips_elf_got16_entry): Likewise.
4192 (mips_elf_create_dynamic_relocation): Likewise.
4193 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
4194 (mips_elf_final_gp): Use mips_elf_assign_gp.
4195 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
4196 into SHN_SCOMMON automatically on IRIX6.
4197 (mips_elf_add_symbol_hook): Likewise.
4198 (mips_elf_relocate_section): Rewrite, using
4199 mips_elf_calculate_relocation and mips_elf_perform_relocation.
4200 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
4201 Don't deal with .rld_map on IRIX6.
4202 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
4203 section flags appropriately for .got.
4204 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
4205 the got. Call mips_elf_record_global_got_symbol and allocate
4206 local got space appropriately.
4207 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
4208 char *. Rework calculation of GOT size. Sort dynamic symbol
4209 table entries so entries that do not require GOT entries appear at
4210 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
4211 code dealing with DT_INIT and DT_FINI. Remove fiddling with
4212 global_gotsym.
4213 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
4214 entries.
4215 (mips_elf_finish_dynamic_symbol): Use
4216 mips_elf_irix6_finish_dynamic_symbol.
4217 (mips_elf_finish_dynamic_sections): Correct off-by-one error
4218 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
4219 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
4220
4221 1999-06-30 Ian Lance Taylor <ian@zembu.com>
4222
4223 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
4224 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
4225
4226 1999-06-04 Philip Blundell <philb@gnu.org>
4227
4228 * elf32-arm.h (elf_backend_got_header_size): Define.
4229 (elf_backend_plt_header_size): Likewise.
4230
4231 1999-06-28 Jim Pick <jim@jimpick.com>
4232
4233 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
4234
4235 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
4236
4237 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
4238 relocation function.
4239 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
4240
4241 1999-06-27 Mark Mitchell <mark@codesourcery.com>
4242
4243 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
4244 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
4245 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
4246 (_bfd_mips_elf_section_from_shdr): Use them.
4247 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
4248 of GP-relative sections.
4249 (_bfd_mips_elf_set_section_contents): Use them.
4250 (_bfd_mips_elf_section_processing): Share code between .sdata and
4251 .lit4/.lit8 sections. Set appropriate flags for .srdata.
4252 (mips_elf_additional_program_headers): Add handling for
4253 PT_MIPS_OPTIONS segment on IRIX6.
4254 (mips_elf_modify_segment_map): Likeiwse.
4255 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
4256 Include the options sections on IRIX6. Don't look for GP-relative
4257 sections by name; use SHF_MIPS_GPREL instead.
4258 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
4259 the N32 ABI.
4260 (mips_elf_create_dynamic_sections): Don't muck about with section
4261 alignments and such on IRIX6.
4262 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
4263 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
4264 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
4265 bfd_zalloc rather than bfd_alloc and memset.
4266 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
4267 Don't assert the existence of .rld_map on IRIX6.
4268 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
4269
4270 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
4271 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
4272 instead.
4273
4274 1999-06-26 Mark Mitchell <mark@codesourcery.com>
4275
4276 * elf32-mips.c (mips_elf_swap_msym_in): New function.
4277 (mips_elf_swap_msym_out): New function.
4278 (mips_elf_create_msym_section): Likewise.
4279 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
4280 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
4281 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
4282 section not named .msym.
4283 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
4284 .msym directly. Set appropriate attributes for the .msym
4285 section.
4286 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
4287 (mips_elf_link_hash_newfunc): Clear it.
4288 (mips_elf_create_dynamic_sections): Create the .msym section
4289 on IRIX6.
4290 (mips_elf_size_dynamic_sections): Allocate space for the
4291 .msym section. Add a DT_MIPS_MSYM entry.
4292 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
4293 the symbol.
4294 (mips_elf_finish_dynamic_sections): Assign a value for
4295 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
4296
4297 * elf32-mips.c (irix_compat_t): New enumeration.
4298 (ABI_N32_P): New macro.
4299 (IRIX_COMPAT): Likewise.
4300 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
4301 (mips_elf_relocate_section): Fix typo.
4302
4303 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
4304
4305 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
4306 as writable PE sections.
4307
4308 1999-06-26 David Mosberger <davidm@hpl.hp.com>
4309
4310 * dwarf2.c (struct arange): New type.
4311 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
4312 (arange_add): New function.
4313 (decode_line_info): Keep track of address ranges that a compilation
4314 unit covers.
4315 (comp_unit_contains_address): Return true if address is contained
4316 in _any_ of the address ranges associated with a compilation unit.
4317 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
4318 on the first comp_unit that contains the address.
4319
4320 1999-06-26 David Mosberger <davidm@hpl.hp.com>
4321
4322 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
4323 (decode_line_info): Add variable STASH and initialize it to point
4324 to the per-bfd dwarf2_debug info. Remove static variable
4325 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
4326
4327 1999-06-26 Ian Lance Taylor <ian@zembu.com>
4328
4329 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
4330 shared library to have an undefined symbol.
4331
4332 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
4333 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
4334
4335 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
4336
4337 * elf-hppa.c (elf_hppa_final_write_processing): New function.
4338 * elf32-hppa.c: Remove everything related to symbol extension
4339 sections & records. Use the common elf_hppa_final_write_processing.
4340
4341 1999-06-22 Mark Mitchell <mark@codesourcery.com>
4342
4343 * elflink.h (size_dynamic_sections): Use user-specified init/fini
4344 functions instead of _init/_fini if requested.
4345
4346 1999-06-23 Ian Lance Taylor <ian@zembu.com>
4347
4348 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
4349 field.
4350
4351 1999-06-22 Ian Lance Taylor <ian@zembu.com>
4352
4353 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
4354 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
4355 field to 0, not -1.
4356 (ppc_elf_finish_dynamic_sections): Check for positive section
4357 dynindx field, rather than comparing against -1.
4358 (ppc_elf_relocate_section): Only return false if undefined_symbol
4359 or reloc_overflow fail, not always upon encountering an error.
4360
4361 1999-06-22 Mark Mitchell <mark@codesourcery.com>
4362
4363 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
4364 bfd_byte * before performing pointer arithmetic.
4365
4366 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
4367
4368 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
4369 support.
4370 * elf32-hppa.c: Include elf-hppa.h.
4371 (ARCH_SIZE): Define.
4372 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
4373 now.
4374 (elf32_hppa_info_to_howto): Similarly.
4375 (elf_hppa_howto_table): Similarly.
4376 (elf_hppa_reloc_type_lookup): Similarly.
4377 (hppa_elf_gen_reloc_type): Similarly.
4378 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
4379
4380 1999-06-22 Nick Clifton <nickc@cygnus.com>
4381
4382 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
4383 handling R_V850_22_PCREL relocation.
4384
4385 1999-06-21 Ian Lance Taylor <ian@zembu.com>
4386
4387 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
4388 type.
4389
4390 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
4391
4392 * section.c (_bfd_strip_section_from_output): Ignore sections
4393 DISCARDed by the link script.
4394
4395 1999-06-19 Ian Lance Taylor <ian@zembu.com>
4396
4397 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
4398 Remove unused local variable spp.
4399
4400 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
4401 the entry symbol is not set.
4402
4403 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
4404
4405 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
4406 GPDISP or LITUSE in a relocatable link.
4407
4408 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
4409
4410 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
4411 * (alloc_dwarf1_func): Likewise.
4412
4413 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
4414
4415 * libhppa.h: Fix various formatting errors.
4416 (assemble_3); Rewrite using CATENATE.
4417 (assemble_17): Fix various bugs.
4418
4419 1999-06-16 Nick Clifton <nickc@cygnus.com>
4420
4421 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
4422
4423 1999-06-15 Richard Henderson <rth@cygnus.com>
4424
4425 * section.c (SEC_SHORT): Define.
4426 * bfd-in2.h: Rebuild.
4427
4428 1999-06-13 Mark Mitchell <mark@codesourcery.com>
4429
4430 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
4431 Remove abfd parameter. Use _bfd_strip_section_from_output.
4432 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
4433
4434 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
4435 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
4436 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
4437 function.
4438 (bfd_elf_size_dynamic_sections): Use it.
4439
4440 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
4441
4442 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
4443 complain_overflow_bitfield to complain_overflow_signed.
4444
4445 1999-06-13 Mark Mitchell <mark@codesourcery.com>
4446
4447 * elflink.h (elf_link_read_relocs_from_section): New function,
4448 split out from ...
4449 (elf_link_read_relocs): Here. Use it for both relocation
4450 sections.
4451
4452 1999-06-12 Mark Mitchell <mark@codesourcery.com>
4453
4454 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
4455 asect->reloc_count is valid.
4456
4457 1999-06-12 Ian Lance Taylor <ian@zembu.com>
4458
4459 * elf32-mips.c (mips_elf32_section_processing): Permit a
4460 SHT_MIPS_REGINFO section to have a size of 0.
4461
4462 1999-06-12 David O'Brien <obrien@freebsd.org>
4463
4464 * config.bfd (alpha*-*-freebsd*): New target.
4465 (i[3456]86-*-freebsd*): Now defaults to ELF.
4466
4467 1999-06-11 Ian Lance Taylor <ian@zembu.com>
4468
4469 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
4470 wrap if the relocation covers the high bit of an address.
4471
4472 * dwarf2.c (decode_line_info): Remove unused variable first_time.
4473
4474 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
4475
4476 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
4477 instead of R_SPARC_max.
4478 (sparc64_elf_info_to_howto): Likewise.
4479 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
4480 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
4481
4482 1999-06-07 Richard Henderson <rth@cygnus.com>
4483
4484 * section.c (_bfd_strip_section_from_output): Remove output
4485 sections with no initial link_order.
4486
4487 1999-06-07 Nick Clifton <nickc@cygnus.com>
4488
4489 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
4490
4491 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4492
4493 * Makefile.am (SOURCE_HFILES): Add missing headers.
4494 * Makefile.in: Regenerated.
4495
4496 1999-06-06 Mark Mitchell <mark@codesourcery.com>
4497
4498 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
4499 the N32 ABI.
4500
4501 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4502
4503 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
4504 range undefweak symbols.
4505 * hash.c: Add missing comma after @xref{}
4506 * linker.c: Likewise.
4507
4508 1999-06-04 Nick Clifton <nickc@cygnus.com>
4509
4510 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
4511 if not defined.
4512 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
4513 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
4514 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
4515 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
4516
4517 1999-06-04 Ian Lance Taylor <ian@zembu.com>
4518
4519 * Makefile.am: Rebuild dependencies.
4520 (BFD32_BACKENDS): Add dwarf1.lo.
4521 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
4522 * Makefile.in: Rebuild.
4523
4524 1999-06-04 Nick Clifton <nickc@cygnus.com>
4525
4526 * Makefile.am: Add epoc-arm-pe target.
4527 * Makefile.in: Regenerate.
4528 * pe-arm.c: Only redefine interworking function names if they have
4529 not already been redefined.
4530 * pei-arm.c: Only redefine interworking function names if they have
4531 not already been redefined.
4532 * epoc-pe-arm.c: Redefine interworking function names to avoid a
4533 name space clash.
4534 * epoc-pei-arm.c: Redefine interworking function names to avoid a
4535 name space clash.
4536
4537 1999-06-03 Nick Clifton <nickc@cygnus.com>
4538
4539 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
4540
4541 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4542
4543 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
4544
4545 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
4546
4547 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
4548 start / stop for recalculating of r_addend of R_SH_SWITCH*.
4549
4550 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
4551
4552 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
4553 in other text sections.
4554
4555 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
4556
4557 * libbfd.c (_bfd_generic_verify_endian_match): New function.
4558 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
4559 * libbfd.h: Regenerate.
4560 * coff-sh.c (sh_merge_private_data): Delete.
4561 (coff_bfd_merge_private_bfd_data): Change to
4562 _bfd_generic_verify_endian_match.
4563 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
4564
4565 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
4566
4567 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
4568
4569 1999-06-03 Ian Lance Taylor <ian@zembu.com>
4570
4571 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
4572 prototype.
4573 (bfd_elf32_arm_process_before_allocation): Likewise.
4574 * bfd-in2.h: Rebuild.
4575
4576 1999-06-03 David Mosberger <davidm@hpl.hp.com>
4577
4578 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
4579 track of end_sequence markers.
4580 (add_line_info): Add END_SEQUENCE arg.
4581 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
4582 debug-line info---it doesn't work right if a compilation unit
4583 consists of multiple discontiguous code-sequences. It would be
4584 worthwhile to optimize for the common case where a compilation
4585 unit results in a contiguous set of code sequences, but this is
4586 quite tricky to get right for arbitrary DWARF2 files.
4587 (lookup_address_in_line_info_table): Don't use the last line entry
4588 for a compilation unit for anything with an address higher than
4589 this line entry. Also, check for end_sequence markers to
4590 correctly handle discontinuities.
4591 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
4592 compilation units, check all compilation units with each->high==0
4593 just like when reading compilation units.
4594
4595 * dwarf2.c (decode_line_info): Initialize table->files and
4596 table->last_line to NULL to avoid segfaults due to random
4597 values in these members.
4598 (concat_filename): Check for out-of-range file number before
4599 indexing filename table. Segfaults suck.
4600
4601 * dwarf2.c (decode_line_info): Don't truncate address to least
4602 significant 32 bits (breaks 64 bit targets).
4603 (lookup_address_in_function_table): Ditto.
4604 (comp_unit_contains_address): Ditto.
4605
4606 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
4607
4608 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
4609 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
4610 (mips_elf64_howto_table_rela): Likewise.
4611
4612 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
4613 split out from ...
4614 (elf_slurp_reloc_table): Here. Use it to handle the case where a
4615 single section has two associated relocation sections.
4616
4617 1999-06-02 Mark Salter <msalter@cygnus.com>
4618
4619 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
4620 COFF_WITH_PE defined.
4621
4622 1999-06-02 Nick Clifton <nickc@cygnus.com>
4623
4624 * pe-arm.c: Rename global arm interworking functions to avoid name
4625 collision when all targets BFD is built.
4626 * pei-arm.c: Ditto.
4627
4628 1999-05-31 Mark Mitchell <mark@codesourcery.com>
4629
4630 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
4631 may_use_rel_p, may_use_rela_p, default_use_rela_p.
4632 (bfd_elf_section_data): Add use_rela_p.
4633 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
4634 (_bfd_elf_new_section_hook): Likewise.
4635 (elf_fake_sections): Use may_use_rela_p, etc., instead of
4636 use_rela_p.
4637 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
4638 * elfcode.h (write_relocs): Determine whether or not use rela
4639 relocs based on the relocation section header.
4640 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
4641 instead of use_rela_p.
4642 * elfxx-target.h (elf_backend_may_use_relp): New macro.
4643 (elf_backend_may_use_rela_p): Likewise.
4644 (elf_backend_default_use_rela_p): Likewise.
4645 (elfNN_bed): Use them.
4646
4647 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
4648
4649 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
4650
4651 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
4652
4653 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
4654 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
4655 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
4656 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
4657 * bfd-in2.h: Regenerated.
4658 * libbfd.h: Likewise.
4659 * elf32-mips.c (mips_info_to_howto_rela): New function.
4660 (USE_REL): Adjust for new conventions.
4661 (MINUS_ONE): New macro.
4662 (elf_mips_howto_table): Add R_MIPS_SUB.
4663 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
4664 and MIPS_GOT_DISP.
4665 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
4666 .MIPS.content section.
4667 (_bfd_mips_elf_fake_sections): Treat all sections that begin
4668 with .MIPS.content as .MIPS.content sections. Set
4669 SHF_MNIPS_NOSTRIP for such section.
4670 (elf_info_to_howto): Define to mips_info_to_howto_rela.
4671 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
4672 MIPS_GOT_OFST, and MIPS_GOT_DISP.
4673
4674 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4675
4676 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
4677 variable.
4678
4679 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
4680 `else'.
4681
4682 1999-05-30 Philip Blundell <philb@gnu.org>
4683
4684 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
4685 1993-03-25 (!!). Take into account the bitmasks for the reloc so
4686 the addend does not overflow into the rest of the word.
4687
4688 1999-05-29 Nick Clifton <nickc@cygnus.com>
4689
4690 * bfd-in.h: Amend prototype for
4691 bfd_elf32_arm_process_before_allocation .
4692 * bfd-in.h: Regenerate.
4693
4694 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
4695 elements in a fixed sized array.
4696 (ARM_ELF_ABI_VERSION): Define.
4697 (ARM_ELF_OS_ABI_VERSION): Define.
4698 (R_ARM_THM_ABS5): Fix rightshift and size.
4699 (R_ARM_THM_PC22): Fix size.
4700 (R_ARM_PLT32): Define Howto.
4701 (find_howto): New function: Locate a howto based on a reloc
4702 number.
4703 (elf32_arm_info_to_howto): Use find_howto if necessary.
4704 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
4705 bfd_reloc_code_real_type.
4706 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
4707 and BFD_RELOC_VTABLE_ENTRY.
4708 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
4709
4710 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
4711 elements in a fixed sized array.
4712 (ARM_ELF_ABI_VERSION): Define.
4713 (ARM_ELF_OS_ABI_VERSION): Define.
4714 (R_ARM_THM_ABS5): Fix rightshift and size.
4715 (R_ARM_THM_PC22): Fix size.
4716 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
4717 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
4718 bfd_reloc_code_real_type.
4719
4720 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
4721 no_pipeline_knowledge.
4722 (elf32_arm_link_hash_create): Initialise new field to zero.
4723 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
4724 no_pipeline_knowledge. Use this parameter to initialise the field
4725 in the globals data structure.
4726 (elf32_arm_final_link_relocate): Only add in pipeline offset if
4727 no_pipeline_knowledge is false and the binary is from an old
4728 toolchain.
4729 (elf32_arm_merge_private_data): Generate an error if an attempt is
4730 made to linl together big endian and little endian code.
4731 (elf32_arm_post_process_headers): New function: Initialise the
4732 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
4733 header.
4734 (elf_backend_post_process_headers): Define.
4735
4736 1999-05-28 Nick Clifton <nickc@cygnus.com>
4737
4738 * elf-bfd.h (struct elf_backend_data): Add new field:
4739 elf_backend_post_process_headers.
4740
4741 * elfxx-target.h (elf_backend_post_process_headers): Define to
4742 NULL if not already defined.
4743 (elfNN_bed): Initialise elf_backend_post_process_headers field.
4744
4745 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
4746 to zero.
4747 (_bfd_elf_compute_section_file_positions): Call
4748 elf_backend_post_process_headers if defined.
4749
4750 1999-05-28 Ian Lance Taylor <ian@zembu.com>
4751
4752 * configure.in: Check whether getuid and getgid exist.
4753 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
4754 HAVE_GETGID are not defined, respectively.
4755 (bfd_write_armap): Don't special case on _WIN32 for getuid and
4756 getgid.
4757 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
4758 * configure, config.in: Rebuild.
4759
4760 1999-05-28 Martin Dorey <mdorey@madge.com>
4761
4762 * elf32-i960.c: New file.
4763 * elf.c (prep_headers): Handle bfd_arch_i960.
4764 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
4765 * config.bfd (i960-*-elf*): New target.
4766 * configure.in (bfd_elf32_i960_vec): New target vector.
4767 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
4768 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
4769 * Makefile.in, aclocal.m4, configure: Rebuild.
4770
4771 1999-05-27 Nick Clifton <nickc@cygnus.com>
4772
4773 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
4774 R_ARM_PLT32.
4775 (find_howto): New function: Find entries in the
4776 elf32_arm_howto_table.
4777 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
4778 computed simply.
4779 (elf32_arm_reloc_type_lookup): Add lookup for
4780 BFD_RELOC_ARM_PLT32.
4781
4782 1999-05-25 Philip Blundell <pb@nexus.co.uk>
4783
4784 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
4785 (elf32_arm_link_hash_table_create): Use above function as the
4786 constructor for hash table entries.
4787 (elf32_arm_relocate_section): Avoid crash when there is no output
4788 section.
4789 (elf32_arm_final_link_relocate): New parameter h.
4790 (elf32_arm_relocate_section): Pass symbol hash entry to above
4791 routine.
4792 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
4793 comments.
4794
4795 1999-05-25 Catherine Moore <clm@cygnus.com>
4796
4797 * coff-arm.c (coff_arm_relocate_section): Don't emit
4798 base file entries for pc-relative values.
4799
4800 1999-05-25 DJ Delorie <dj@cygnus.com>
4801
4802 * peicode.h (coff_swap_sym_in): When we create the actual section
4803 to reflect the not-there section C_SECTION symbols refer to,
4804 change the symbol class to C_STAT as the section is now really
4805 there.
4806
4807 1999-05-24 Philip Blundell <pb@nexus.co.uk>
4808
4809 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
4810 1999-03-25.
4811
4812 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
4813
4814 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
4815 F_PIC_INT to F_PIC.
4816 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
4817 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
4818
4819 1999-05-16 Nick Clifton <nickc@cygnus.com>
4820
4821 * coff-mcore.c (in_reloc_p): Reinstate.
4822
4823 1999-05-15 Nick Clifton <nickc@cygnus.com>
4824
4825 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
4826 * bfd-in2.h: Regenerate.
4827 * coff-mcore.c (in_reloc_p): Remove defintion.
4828 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
4829 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
4830 IMAGE_REL_MCORE_RVA.
4831 (coff_mcore_rtype_to_howto): Add special processing for
4832 IMAGE_REL_MCORE_RVA.
4833 (coff_mcore_relocate_section): Add support for
4834 IMAGE_REL_MCORE_RVA.
4835 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
4836 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
4837 R_MCORE_RELATIVE.
4838 (mcore_elf_relocate_section): Delete redundant case labels.
4839
4840 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4841
4842 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
4843 precedence between bit-and and comparison.
4844
4845 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
4846
4847 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
4848 list of target formats (targ_selvecs).
4849 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
4850 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
4851
4852 1999-05-10 DJ Delorie <dj@cygnus.com>
4853
4854 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
4855 reasonable mode until "ar x" is smart enough to skip it (fixes
4856 gcc/libgcc.a builds on mips-ecoff targets
4857
4858 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
4859 to work. Hack to support MS import libraries, which use different
4860 COMDAT types than GNU.
4861 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
4862 to implied zero-length sections (see peicode below)
4863 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
4864 filename symbols, which use one *or more* auxents.
4865 * coffswap.h (coff_swap_aux_in): ditto
4866 * peicode.h (coff_swap_sym_in): Build the implied zero-length
4867 sections
4868
4869 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
4870
4871 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
4872 for all relocations.
4873
4874 1999-05-10 Catherine Moore <clm@cygnus.com>
4875
4876 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
4877 if COFF_IMAGE_WITH_PE.
4878 (bfd_arm_process_before_allocation): Likewise.
4879 (bfd_arm_get_bfd_for_interworking): Likewise.
4880 * coff-arm.c: Likewise.
4881 * bfd-in2.h: Regenerate.
4882 * configure.in (armpe_little_vec): Remove coff-arm.lo.
4883 (armpe_big_vec): Likewise.
4884 * configure: Rebuild.
4885
4886 1999-05-10 Nick Clifton <nickc@cygnus.com>
4887
4888 * elf.c (elf_fake_sections): Check for .rel. as start of rel
4889 section, not just .rel. Same for .rela.
4890
4891 1999-05-07 Nick Clifton <nickc@cygnus.com>
4892
4893 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
4894 endianism with an error message.
4895
4896 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
4897
4898 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
4899 assignment from "unsigned char *" to "char *".
4900 (decode_line_info): Likewise for dwarf_line_buffer assignment.
4901
4902 1999-05-05 Catherine Moore <clm@cygnus.com>
4903
4904 * coff-arm.c (coff_arm_relocate_section): Add one to
4905 address of ARM_RVA32 thumb functions.
4906
4907 1999-05-05 Catherine Moore <clm@cygnus.com>
4908
4909 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
4910 (elf32_m68k_copy_private_bfd_data): New.
4911 (elf32_m68k_merge_private_bfd_data): New.
4912 (elf32_m68k_print_private_bfd_data): New.
4913 (CPU32_FLAG): Define.
4914 (PLT_CPU32_ENTRY_SIZE): Define.
4915 (elf_cpu32_plt0_entry): Declare.
4916 (elf_cpu32_plt_entry): Declare.
4917 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
4918 (elf_m68k_finish_dynamic_symbol): Likewise.
4919 (elf_m68k_finish_dynamic_sections): Likewise.
4920 (elf_backend_plt_header_size): Remove definition.
4921 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4922 (bfd_elf32_bfd_merge_private_bfd_data): Define.
4923 (bfd_elf32_bfd_set_private_flags): Define.
4924 (bfd_elf32_bfd_print_private_bfd_data): Define.
4925
4926 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
4927
4928 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
4929 and R_LONG_PCREL_MODE.
4930
4931 1999-04-29 Nick Clifton <nickc@cygnus.com>
4932
4933 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
4934
4935 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
4936
4937 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
4938 in relocation calculation.
4939
4940 1999-04-26 Tom Tromey <tromey@cygnus.com>
4941
4942 * aclocal.m4, configure: Updated for new version of libtool.
4943
4944 1999-04-21 Nick Clifton <nickc@cygnus.com>
4945
4946 * coff-mcore.c: Add support for mcore relocs.
4947
4948 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
4949
4950 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
4951 incorrect use EF_MIPS_xxBITPTRS.
4952
4953 1999-04-18 Ian Lance Taylor <ian@zembu.com>
4954
4955 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
4956 variable insn.
4957
4958 * bfd-in2.h: Rebuild.
4959 * libbfd.h: Rebuild.
4960
4961 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
4962
4963 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
4964 (coff_arm_relocate_section): Add ARM26D transform. Only
4965 change to ARM26D for relocateable links.
4966
4967 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
4968
4969 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
4970 (bfd_elf32_bfd_print_private_bfd_data): New.
4971
4972 1999-04-15 Doug Evans <devans@casey.cygnus.com>
4973
4974 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
4975 refetch addend if USE_REL, add many comments regarding current state.
4976 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
4977 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
4978 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
4979 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
4980
4981 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
4982
4983 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
4984 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
4985
4986 1999-04-13 David Mosberger <davidm@hpl.hp.com>
4987
4988 * dwarf2.c (decode_line_info): Don't truncate address to least
4989 significant 32 bits (breaks 64 bit targets).
4990 (lookup_address_in_function_table): Ditto.
4991 (comp_unit_contains_address): Ditto.
4992
4993 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
4994
4995 * coff-arm.c (arm_emit_base_file_entry): New routine.
4996 (A2T3_OFFSET): Define.
4997 (T2A3_OFFSET): Define.
4998 (coff_arm_relocate_section): Emit base file entries for interworking
4999 stubs.
5000
5001 1999-04-13 Philip Blundell <philb@gnu.org>
5002
5003 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
5004 relocs 17 through 19.
5005
5006 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
5007
5008 * elfcode.h: Remove fnmatch.h.
5009 * elflink.h (elf_link_assign_sym_version): Call back to ld
5010 instead of calling fnmatch.
5011
5012 * config.bfd (i?86-*-beoself): Include pe vecs.
5013
5014 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
5015
5016 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
5017 to go missing.
5018
5019 1999-04-10 Richard Henderson <rth@cygnus.com>
5020
5021 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
5022 when trying to resolve dynamic symbol references.
5023 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5024 * elf32-mips.c (mips_elf_relocate_section): Likewise.
5025 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5026 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5027 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5028 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5029 * elflink.h (elf_link_output_extsym): Likewise.
5030
5031 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
5032
5033 * section.c (_bfd_strip_section_from_output): New function moved from
5034 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
5035 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
5036 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5037 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
5038 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5039 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5040 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5041 * bfd-in2.h: Update.
5042
5043 1999-04-09 Ian Lance Taylor <ian@zembu.com>
5044
5045 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
5046
5047 1999-04-08 Nick Clifton <nickc@cygnus.com>
5048
5049 * coff-mcore.c: New File: Support for mcore-pe targets.
5050 * cpu-mcore.c: New File: Support for mcore targets.
5051 * elf32-mcore.c: New File: Support for mcore-elf target.
5052 * pe-mcore.c: New File: Definitions for mcore-pe target.
5053 * pei-mcore.c: New File: Definitions for mcore-pei target.
5054 * Makefile.am: Add support for MCore targets.
5055 * Makefile.in: Regenerate.
5056 * config.bfd: Add support for MCore targets.
5057 * configure.in: Add support for MCore targets.
5058 * configure: Regenerate.
5059 * archures.c: Add support for MCore architecture.
5060 * bfd-in2.h: Regenerate.
5061 * coffcode.h: Add support for mcore-pe targets.
5062 * elf.c: Add support for mcore-elf target.
5063 * reloc.c: Add support for MCore relocs.
5064 * targets.c: Add support for MCore targets.
5065
5066 1999-04-07 Nick Clifton <nickc@cygnus.com>
5067
5068 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
5069 R_ARM_XPC25 and R_ARM_THM_XPC22.
5070 (elf32_arm_reloc_map): Remove redundant entries.
5071
5072 1999-04-06 Ian Lance Taylor <ian@zembu.com>
5073
5074 * sysdep.h (LC_MESSAGES): Never define.
5075
5076 1999-04-06 Chris Torek <torek@bsdi.com>
5077
5078 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
5079 all callers. Rewrite completely.
5080 (_bfd_relocate_contents): Rewrite overflow checking.
5081 * bfd-in2.h: Rebuild.
5082
5083 1999-04-05 Ian Lance Taylor <ian@zembu.com>
5084
5085 From Gabriel Paubert <paubert@iram.es>:
5086 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
5087 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
5088 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
5089 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
5090 * ppcboot.c (ppcboot_vec): Use little endian routines for
5091 headers.
5092
5093 * elf.c (elfcore_strndup): Only define if it will be used.
5094 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
5095 and irelend.
5096 (ppc_elf_check_relocs): Remove unused local i.
5097 (ppc_elf_gc_mark_hook): Add default case to switch.
5098
5099 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
5100 * srec.c (srec_scan): Accept \r in symbol definitions.
5101 (srec_object_p): Set HAS_SYMS if we saw any symbols.
5102 (symbolsrec_object_p): Likewise.
5103
5104 1999-04-04 Don Bowman <don@pixsci.com>
5105
5106 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
5107
5108 1999-04-04 Ian Lance Taylor <ian@zembu.com>
5109
5110 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
5111 last_line.
5112 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
5113 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
5114 switch.
5115 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
5116 local i.
5117 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
5118 local val.
5119
5120 1999-03-31 Nick Clifton <nickc@cygnus.com>
5121
5122 * config.bfd: Add support for arm-epoc-pe target.
5123 * configure.in: Add support for arm-epoc-pe target.
5124 * configure: Regenerate.
5125 * targets.c: Add support for arm-epoc-pe target.
5126 * coff-arm.c: Allow header files to override definition of
5127 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
5128 * pe-arm.h: Allow previous header files to override definition of
5129 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
5130 * pei-arm.h: Allow previous header files to override definition of
5131 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
5132 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
5133 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
5134
5135 1999-03-30 Nick Clifton <nickc@cygnus.com>
5136
5137 * elf.c (elf_map_symbols): Handle the case where section
5138 symbols are generated for content-less sections which are
5139 not mapped to the output file.
5140
5141 * linker.c: Replace direct references to fields in BFD structure
5142 with accessor macros.
5143
5144 * elflink.h: Replace direct references to fields in BFD structure
5145 with accessor macros.
5146
5147 1999-03-25 Philip Blundell <pb@nexus.co.uk>
5148
5149 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
5150
5151 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
5152 account when adjusting section symbols during a partial link.
5153
5154 1999-03-24 Nick Clifton <nickc@cygnus.com>
5155
5156 * coff-sparc.c (struct coff_reloc_map): Change type of field
5157 'bfd_reloc_val' to bfd_reloc_code_real_type.
5158 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
5159 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
5160 * elf32-arc.c (struct arc_reloc_map): Ditto.
5161 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
5162 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
5163 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
5164 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
5165 * elf32-sh.c (struct elf_reloc_map): Ditto.
5166 * elf32-sparc.c (struct elf_reloc_map): Ditto.
5167 * elf32-v850.c (struct v850_reloc_map): Ditto.
5168 * elf64-sparc.c (struct elf_reloc_map): Ditto.
5169 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
5170 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
5171
5172 1999-03-17 Martin Hunt <hunt@cygnus.com>
5173
5174 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
5175 function so source-level assembly works. If multiple N_SOs
5176 are seen without and N_FUNs, create an indextable entry with
5177 a NULL function name.
5178
5179 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
5180
5181 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
5182 of certian similar cpus.
5183
5184 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
5185
5186 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
5187 Add the 5000. Change the architecture for the 5400 to mips4.
5188 (elf_mips_mach): Add r5000.
5189
5190 1999-03-11 Doug Evans <devans@casey.cygnus.com>
5191
5192 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
5193
5194 1999-03-11 Nick Clifton <nickc@cygnus.com>
5195
5196 * binary.c (binary_set_section_contents): Generate warning about
5197 huge file offsets for any section that will occupy file space, not
5198 just those that are loadable.
5199
5200 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
5201
5202 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
5203
5204 1999-02-22 Jim Lemke <jlemke@cygnus.com>
5205
5206 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
5207
5208 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
5209
5210 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
5211 * elflink.h: Revert all changes since Feb 16. Instead:
5212 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
5213 appropriate. Copy it to version symbols.
5214 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
5215 symbols if appropriate.
5216 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
5217 symbol if appropriate.
5218 (elf_link_output_extsym): If symbol is marked as undefined, and
5219 has no nonweak references, mark it as weak undefined.
5220
5221 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
5222
5223 * elflink.h (elf_merge_symbol): When overriding a dynamic
5224 definition with a weak undefined symbol, set NEEDS_PLT if it is a
5225 function.
5226 (elf_link_add_object_symbols): Don't copy the other field if we
5227 are overridding.
5228
5229 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
5230
5231 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
5232 shared object with a weak undefined symbol.
5233
5234 1999-02-18 Nick Clifton <nickc@cygnus.com>
5235
5236 * elfarm-nabi.c: Set partial_inplace back to false.
5237
5238 1999-02-17 Nick Clifton <nickc@cygnus.com>
5239
5240 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
5241 (USER_LABEL_PREFIX): Set to "_".
5242
5243 The following patches are from: Scott Bambrough
5244 <scottb@corelcomputer.com>
5245
5246 * libaout.h (M_ARM6_NETBSD): Set to 143.
5247
5248 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
5249 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
5250 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
5251 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
5252 * bfd-in2.h: Regenerate.
5253
5254 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
5255 'true' as REL relocs are now being used. Add new PIC relocs:
5256 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
5257 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
5258
5259 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
5260 of targets.
5261 (elf32_arm_final_link_relocate): Change parameters so that entire
5262 reloc is passed. Add support for PIC relocs.
5263 (elf32_arm_relocate_section): Pass entire reloc to
5264 elf32_arm_final_link_relocate.
5265 (elf32_arm_check_relocs): Handle new PIC relocs.
5266 (elf32_arm_adjust_dynamic_symbol): New function.
5267 (elf32_arm_size_dynamic_sections): New function.
5268 (elf32_arm_discard_copies): New function.
5269 (elf32_arm_finish_dynamic_symbol): New function.
5270 (elf32_arm_finish_dynamic_sections): New function.
5271 (ELF_MAXPAGE_SIZE): Define.
5272 (bfd_elf32_bfd_reloc_type_lookup): Define.
5273 (elf_backend_relocate_section): Define.
5274 (elf_backend_adjust_dynamic_symbol): Define.
5275 (elf_backend_create_dynamic_sections): Define.
5276 (elf_backend_finish_dynamic_symbol): Define.
5277 (elf_backend_finish_dynamic_sections): Define.
5278 (elf_backend_size_dynamic_sections): Define.
5279 (elf_backend_plt_readonly): Define.
5280 (elf_backend_want_got_plt): Define.
5281 (elf_backend_want_plt_sym): Define.
5282
5283 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
5284
5285 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
5286 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
5287 (_bfd_mips_elf_fake_sections): Likewise.
5288
5289 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5290
5291 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
5292 bfd_elf32_arm_get_bfd_for_interworking,
5293 bfd_elf32_arm_process_before_allocation): Define to avoid clash
5294 with elfarm-nabi.c.
5295
5296 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
5297 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
5298 elf32_arm_find_nearest_line): Make them static.
5299
5300 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
5301
5302 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
5303 callers. Do not merge a definition from a shared object with a
5304 weak undefined symbol.
5305 (elf_link_add_object_symbols): Do not change the symbol type or
5306 size if the old symbol overrides the new one.
5307
5308 1999-02-08 Nick Clifton <nickc@cygnus.com>
5309
5310 * config.bfd: Add support for strongarm target.
5311
5312 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5313
5314 * elf32-m68k.c (reloc_map): Use the correct types for the struct
5315 fields instead of unsigned char.
5316
5317 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
5318
5319 * Makefile.am: Rebuild dependencies.
5320 * Makefile.in: Rebuild.
5321
5322 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
5323
5324 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
5325 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
5326 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
5327 * acinclude.m4: Add comments to uses of AC_DEFINE.
5328 * acconfig.h: Remove.
5329 * configure: Rebuild with current autoconf/automake.
5330 * aclocal.m4: Likewise.
5331 * config.in: Likewise.
5332 * Makefile.in: Likewise.
5333
5334 1999-02-04 DJ Delorie <dj@cygnus.com>
5335
5336 * libbfd.c (real_read): don't call fread for zero bytes. This
5337 covers up a bug (or misuse of bfd) that's exposed by Solaris.
5338
5339 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
5340
5341 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
5342 of a jump is in the current 256 MB region.
5343
5344 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
5345
5346 * format.c (bfd_check_format_matches): Change last patch to only
5347 take effect for the binary target.
5348
5349 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
5350
5351 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
5352
5353 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
5354
5355 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
5356
5357 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
5358
5359 * format.c (bfd_check_format_matches): If the target was
5360 previously specified, don't check other targets when checking for
5361 an archive file.
5362
5363 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
5364
5365 * elf32-arm.h (elf32_arm_reloc_map): Removed.
5366 (elf32_arm_reloc_type_lookup): Removed
5367 * elfarm-nabi.c (elf32_arm_reloc_map): New.
5368 (elf32_arm_reloc_type_lookup): New.
5369 * elfarm-oabi.c (elf32_arm_reloc_map): New.
5370 (elf32_arm_reloc_type_lookup): New.
5371
5372 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
5373
5374 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
5375 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
5376 * Makefile.am: Use new files.
5377 * Makefile.in: Regenerate.
5378 * configure.in: Use new files.
5379 * configure: Regenerate.
5380
5381 1999-02-01 Nick Clifton <nickc@cygnus.com>
5382
5383 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
5384 (fr30_elf_gc_sweep_hook): New function.
5385 (elf_backend_can_gc_sections): Define.
5386
5387 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
5388
5389 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
5390 and bfd_elf32_bigarm_oabi_vec.
5391
5392 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
5393
5394 * Makefile.am (elf32-arm-oldabi.lo): New.
5395 (elf32-arm-newabi.lo): New.
5396 * Makefile.in: Regenerate.
5397 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
5398 (arm-*-elf): Likewise.
5399 (arm-*-oabi): New.
5400 (thumb-*-oabi): New.
5401 * configure: Regenerate.
5402 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
5403 (bfd_elf32_bigarm_oabi_vec): New.
5404 * elf32-arm-newabi.c: New.
5405 * elf32-arm-oldabi.c: New.
5406 * elf32-arm.c: Removed.
5407 * elf32-arm.h: New.
5408
5409 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
5410
5411 * binary.c (binary_set_section_contents): Omit warnings for
5412 unloadable sections.
5413
5414 1999-01-31 Michael Meissner <meissner@cygnus.com>
5415
5416 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
5417 powerpc{,le}-*-eabi.
5418
5419 1999-01-29 Nick Clifton <nickc@cygnus.com>
5420
5421 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
5422 * dwarf2.c (read_signed_leb128): Remove unused variables.
5423
5424 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
5425
5426 * elf.c (assign_file_positions_for_segments): Only adjust
5427 p_align when needed.
5428
5429 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
5430
5431 * binary.c (binary_set_section_contents): Don't return early for a
5432 non-loadable section, in case the first section is non-loadable.
5433 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
5434 W. Rozycki <macro@ds2.pg.gda.pl>.
5435
5436 1999-01-28 Nick Clifton <nickc@cygnus.com>
5437
5438 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
5439 R_FR30_GNU_VTENTRY relocs.
5440
5441 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
5442
5443 * elflink.h (elf_link_output_sym): Zero syms which are
5444 part of sections which have been excluded.
5445
5446 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
5447
5448 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
5449 to F_PIC_INT.
5450 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
5451 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
5452
5453 1999-01-27 Nick Clifton <nickc@cygnus.com>
5454
5455 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
5456 relocation.
5457 (fr30_final_link_relocate): Use computed value as result of
5458 relocation.
5459
5460 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
5461
5462 * binary.c (binary_set_section_contents): Emit warning for
5463 huge file offsets due to widely-dispersed section LMAs.
5464
5465 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
5466
5467 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
5468 align first section to largest section alignment, not first
5469 section alignment.
5470
5471 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5472
5473 * configure.in: Require autoconf 2.12.1 or higher.
5474
5475 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
5476
5477 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
5478 * bfd-in2.h: Likewise.
5479 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
5480
5481 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
5482
5483 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
5484 * cpu-mips.c: Add support for and independent 4111.
5485 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
5486 (_bfd_mips_elf_final_write_processing):
5487 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
5488
5489 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
5490
5491 * elf32-mips.c (elf_mips_abi_name): New.
5492 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
5493
5494 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
5495
5496 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
5497 Handle bfd_mach_mips4300.
5498
5499 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
5500
5501 * elf32-i386.c: Remove leaked development code from patch
5502 1998-12-10 by Richard Henderson.
5503
5504 1998-12-10 Richard Henderson <rth@cygnus.com>
5505
5506 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
5507 in debug sections for symbol defined externally.
5508
5509 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5510
5511 * targets.c (bfd_target_vector): Remove duplicate entry for
5512 tekhex_vec.
5513
5514 1998-12-09 Nick Clifton <nickc@cygnus.com>
5515
5516 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
5517 since we are using RELAs.
5518
5519 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
5520
5521 SCO Open Server Release 5 core file support, from Jouke Numan
5522 <jnuman@hiscom.nl>:
5523 * sco5-core.c: New file.
5524 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
5525 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
5526 * Makefile.am: Rebuild dependencies.
5527 (OPTIONAL_BACKENDS): Add sco5-core.lo.
5528 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
5529 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
5530 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
5531 * bfd-in2.h, configure, Makefile.in: Rebuild.
5532
5533 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
5534
5535 * config.bfd (hppa*-*-mpeix*): New target.
5536 * configure.in: Add AC_HEADER_DIRENT.
5537 (hppa*-*-mpeix*): New target.
5538 * configure.host (hppa*-*-mpeix*): New host.
5539 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
5540 friends rather than just including <sys/dir.h>.
5541 * som.h (struct som_symbol): Add hppa_priv_level and apto
5542 tc_data. Change all users.
5543 (struct somdata): Add comp_unit field.
5544 (obj_som_compilation_unit): Define.
5545 (bfd_som_attach_compilation_unix): Declare.
5546 * som.c: Check HOST_HPPAMPEIX.
5547 (struct som_misc_symbol_info): Add new field priv_level.
5548 (som_object_setup): Add current_offset parameter. Change all
5549 callers.
5550 (setup_sections): Likewise.
5551 (som_object_p): For EXECLIBMAGIC, read the lst header.
5552 (som_write_symbol_strings): Add compilation_unit parameter.
5553 Change all callers.
5554 (som_finish_writing): Write out compilation_unit.
5555 (som_bfd_derive_misc_symbol_info): Set priv_level.
5556 (som_build_and_write_symbol_table): Set xleast field to 3.
5557 (som_slurp_symbol_table): Set symbol priv_level.
5558 (bfd_som_attach_compilation_unit): New function.
5559 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
5560 priv_level into symbol_value.
5561 * configure, config.in: Rebuild.
5562
5563 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
5564
5565 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
5566 warning function to call _bfd_error_handler instead.
5567
5568 * libbfd.c (COERCE32): Cast through unsigned long and long to
5569 avoid bug in old version of gcc.
5570
5571 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
5572 (elf_backend_additional_program_headers): Don't define.
5573
5574 1998-12-08 Nick Clifton <nickc@cygnus.com>
5575
5576 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
5577 relocations to include offset of 2 included in the insns, and the
5578 offset of the relocs within the section.
5579
5580 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
5581
5582 The following changes were made by David Taylor
5583 <taylor@texas.cygnus.com>, Edith Epstein
5584 <eepstein@sophia.cygnus.com>, Jim Blandy
5585 <jimb@zwingli.cygnus.com>, and Elena Zannoni
5586 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
5587 changes originally made by HP; HP did not create ChangeLog
5588 entries.
5589
5590 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
5591 automake macro library.
5592
5593 * hpux-core.c (hpux_core_core_file_p): this function now
5594 understands HPUX 10.30 thread info. Yes, the thread stacks can be
5595 found in the corefile! Also, in hpux_core_core_file_p, if we
5596 encounter a section with an unknown type, don't punt. Instead,
5597 just skip it. Also, count the number of sections of known type
5598 that we encounter. If we encounter at least one good one, then
5599 we'll declare that the file is a core file. If we encounter any
5600 unknown ones but some known ones, then we'll issue a warning (but
5601 still declare it to be a core file). Also, correctly decide when a
5602 file is not a core.
5603 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
5604 (CORE_ANON_SHMEM): define if not defined.
5605 (hpux_core_struct): add members lwpid and user_tid.
5606 (core_kernel_thread_id, core_user_thread_id): new macros.
5607 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
5608 the name before storing it in the bfd.
5609 (hpux_core_core_file_p): handle threads.
5610
5611 * libhppa.h (GET_FIELD): protect against redefinition.
5612 (HPPA_WIDE): define.
5613 (GET_FIELD): define.
5614 (GET_BIT): define.
5615 (MASK): define.
5616 (CATENATE): define.
5617 (ELEVEN): define.
5618 (sign_extend): redefine.
5619 (assemble_6): define.
5620 (assemble_12): rewrite.
5621 (assemble_16): define.
5622 (assemble_16a): define.
5623 (assemble_17): rewrite.
5624 (assemble_22): define.
5625
5626 1998-12-07 Nick Clifton <nickc@cygnus.com>
5627
5628 * elf32-fr30.c (fr30_final_link_relocate): Using signed
5629 relocations for signed values.
5630
5631 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
5632
5633 * mipsbsd.c (MY(set_arch_mach)): Make static.
5634 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
5635 bfd_mach_mips* macros rather than simple numbers.
5636
5637 COFF weak symbol support, based on patches from Mark Elbrecht
5638 <snowball3@usa.net>:
5639 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
5640 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
5641 (coff_write_alien_symbol): Likewise.
5642 * cofflink.c (coff_link_check_ar_symbols): Likewise.
5643 (coff_link_add_symbols): Likewise.
5644 (_bfd_coff_link_input_bfd): Likewise.
5645 (_bfd_coff_write_global_sym): Likewise.
5646
5647 * elf.c (copy_private_bfd_data): Always initialize the
5648 includes_phdrs field.
5649
5650 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
5651 file defines a symbol first mentioned in an ELF file.
5652
5653 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
5654 possible, rather than only if BFD64.
5655 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
5656 not __GNUC__.
5657 * bfd-in2.h: Rebuild.
5658
5659 * srec.c (srec_set_section_contents): Correct test to avoid
5660 switching to 4 byte addresses after seeing a second section which
5661 requires 3 byte addresses. From Joel Schantz
5662 <joel.schantz@argosys.boeing.com>.
5663
5664 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
5665 <aymeric.vincent@emi.u-bordeaux.fr>.
5666
5667 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
5668
5669 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
5670 decide whether the output file is -mrelocatable-lib,
5671 -mrelocatable, or neither. (gdb.base/nodebug.exp)
5672
5673 1998-12-03 Nick Clifton <nickc@cygnus.com>
5674
5675 * elf32-fr30.c: Add support for R_FR30_48 reloc.
5676 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
5677 * bfd-in2.h: Regenerate.
5678 * libbfd.h: Regenerate
5679
5680 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
5681
5682 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
5683 link against a dynamic symbol with no type or size.
5684
5685 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
5686
5687 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
5688 relocation for section which does not get loaded.
5689 (elf_i386_relocate_section) [R_386_32]: Likewise.
5690
5691 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
5692
5693 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
5694 reloc_count and i long instead of unsigned long. Handle error
5695 return from bfd_canonicalize_reloc.
5696
5697 1998-12-01 Nick Clifton <nickc@cygnus.com>
5698
5699 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
5700 a hash table.
5701
5702 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5703
5704 * elf32-sh.c (elf/sh.h): Include.
5705 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
5706 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
5707 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
5708 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
5709 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
5710
5711 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
5712
5713 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
5714 causes division by zero later on.
5715
5716 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
5717
5718 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
5719 needed.
5720
5721 1998-11-25 DJ Delorie <dj@cygnus.com>
5722
5723 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
5724 hook now.
5725
5726 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
5727
5728 * elf32-fr30.c (fr30_elf_relocate_section): Call
5729 fr30_final_link_relocate.
5730 (fr30_final_link_relocate): New function: Handle I20 and I32
5731 relocs.
5732 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
5733 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
5734 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
5735
5736 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
5737 chain to empty.
5738
5739 The following changes are based on a patch submitted by Gianluca
5740 Moro <glctr@abc.it>:
5741
5742 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
5743 not already been updated.
5744 (find_remembered_hi16s_reloc): New parameter 'already_found'
5745 returns state of remembered hi16s reloc.
5746 (remember_hi16s_reloc): Set 'found' field to false.
5747 (hi16s_location): Add 'found' field.
5748
5749 1998-11-23 DJ Delorie <dj@cygnus.com>
5750
5751 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
5752 to see .DLL files as unrecognized.
5753 (i3coff_object_p): Sorry, had to hack it to not recognize these
5754 files (pei-i386) on request.
5755
5756 1998-11-23 DJ Delorie <dj@cygnus.com>
5757
5758 * opncls.c (bfd_make_readable): need more cleanup for symbols and
5759 relents. Call bfd_check_format to reinitialize.
5760
5761 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
5762
5763 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
5764 warnings.
5765
5766 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
5767
5768 * aclocal.m4: regenerate
5769 * configure: regenerate
5770
5771 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
5772
5773 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
5774 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
5775 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
5776 respect it as an upper bound on what memory to reference.
5777 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5778 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
5779 update vtable_entries_size appropriately.
5780
5781 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
5782
5783 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
5784 reloc number.
5785
5786 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
5787
5788 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
5789 bfds; they have no "file" so we fake it.
5790 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
5791 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
5792 resizing the memory buffer.
5793 * opncls.c (bfd_make_writable): New function; lets you write a
5794 bfd_create'd bfd to an in-memory buffer.
5795 (bfd_make_readable): New function; lets you read back that buffer
5796 as if it were from bfd_openr. Used to build generated archive
5797 members (winsup's ld's dlltool)
5798
5799 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
5800
5801 * po/bfd.pot: Regenerated.
5802
5803 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
5804
5805 * elf32-v850.c (hi16s_location): Replaced fixed size array with
5806 linked list.
5807
5808 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
5809
5810 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
5811 element of the gotentry list for local symbols too.
5812 (elf64_alpha_relocate_section): Unify local and global handling.
5813 Assert that gotent->use_count > 0.
5814
5815 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
5816
5817 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
5818 update for file name changes of July 2, 1998.
5819 (vms_vax_vec): New.
5820 * configure: Rebuild.
5821
5822 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
5823
5824 * po/bfd.pot: Regenerated.
5825
5826 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
5827
5828 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
5829 * aclocal.m4, configure: regenerate
5830
5831 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
5832
5833 * elf.c (prep_headers): Add support for bfd_arch_fr30.
5834
5835 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
5836
5837 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
5838 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
5839 was cached.
5840 * aclocal.m4, configure: regenerated.
5841
5842 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
5843
5844 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
5845 R_D10V_GNU_VTENTRY relocs.
5846 (elf_d10v_howto_table): Likewise.
5847 (d10v_reloc_map d10v_reloc_map): Likewise.
5848 (elf32_d10v_gc_mark_hook): New.
5849 (elf32_d10v_gc_sweep_hook): New.
5850 (elf32_d10v_check_relocs): New.
5851 (elf32_d10v_relocate_section): New.
5852 (elf_backend_relocate_section): Define.
5853 (elf_backend_can_gc_sections): Define.
5854
5855 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
5856
5857 * Makefile.am (BFD32_BACKENDS): Move vms files here...
5858 (BFD64_BACKENDS): ...from here.
5859 (BFD32_BACKENDS_CFILES): Move vms files here...
5860 (BFD64_BACKENDS_CFILES): ...from here.
5861 * Makefile.in: Rebuild.
5862
5863 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
5864
5865 * Makefile.am: Add FR30 target.
5866 * Makefile.in: Add FR30 target.
5867 * archures.c: Add support for FR30.
5868 * config.bfd: Add support for FR30.
5869 * configure.in: Add support for FR30.
5870 * reloc.c: Add support for FR30 relocations.
5871 * targets.c: Add support for FR30 relocations.
5872 * bfd-in2.h: Regenerate.
5873 * configure: Regenerate.
5874 * libbfd.h: Regenerate.
5875 * cpu-fr30.c: New file.
5876 * elf32-fr30.c: New file.
5877
5878 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
5879
5880 * configure.in: detect cygwin* instead of cygwin32*
5881 * configure: regenerate
5882
5883 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
5884
5885 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
5886 use bfd_malloc and free instead and check return value from bfd_malloc.
5887
5888 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
5889
5890 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
5891 * libbfd.h: Rebuild.
5892
5893 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
5894 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
5895 (MIPS_TEXT_DYNSYM_SECN): Likewise.
5896 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
5897 section.
5898 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
5899 field.
5900 (mips_elf_link_hash_table_create): Don't initialize
5901 dynsym_sec_strindex.
5902 (mips_elf_gc_mark_hook): Add default case to avoid warning.
5903 (mips_elf_size_dynamic_sections): Generate a section symbol for
5904 every output section.
5905 (mips_elf_finish_dynamic_sections): Count all sections for
5906 DT_MIPS_UNREFEXTNO.
5907 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
5908 output sections.
5909
5910 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
5911
5912 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
5913 for later PLT entries in large PLTs.
5914 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
5915
5916 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
5917
5918 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
5919
5920 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
5921
5922 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
5923 * elflink.h (elf_collect_hash_codes): New function. This function is
5924 called for each exported symbol and we compute the ELF hash value for
5925 it.
5926 (compute_bucket_value): New function. It is called from
5927 size_dynamic_sections to determine the hash table size. When we are
5928 optimizing a better, but slower, algorithm is used.
5929 (size_dynamic_sections): Call compute_bucket_value.
5930
5931 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
5932
5933 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
5934
5935 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
5936 R_SH_GNU_VTENTRY.
5937 (sh_elf_gc_mark_hook): New.
5938 (sh_elf_gc_sweep_hook): New.
5939 (sh_elf_check_relocs): New.
5940 (elf_backend_can_gc_sections): Define.
5941
5942 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
5943
5944 * acinclude.m4: undo previous gettext change
5945 * aclocal.m4: rebuild with right version of aclocal.
5946
5947 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
5948
5949 * acinclude.m4, aclocal.m4: move gettext-related fragments from
5950 aclocal.m4 to acinclude.m4, so they don't get lost.
5951
5952 * elfcore.h: rewrite for better corefile support.
5953 * elf.c (elfcore_*): new functions.
5954 * elf-bfd.h (elf_obj_tdata): new structure members.
5955 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
5956 flavor of procfs.
5957 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
5958
5959 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
5960
5961 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
5962 and R_M32R_GNU_VTENTRY.
5963 (elf_backend_can_gc_sections): Define.
5964 (m32r_elf_check_relocs): New.
5965 (m32r_elf_gc_mark_hook): New.
5966 (m32r_elf_gc_sweep_hook): New.
5967 (m32r_elf_relocate_section): Handle VT relocs.
5968
5969 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
5970
5971 * coff-arm.c (arm_relocate_section): Remove redundant test.
5972
5973 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
5974 cleat that the 'bitsize' field is the size of the bitfield AFTER
5975 relocation not before.
5976
5977 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
5978
5979 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
5980 relocs.
5981
5982 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
5983
5984 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
5985 R_SPARC_GNU_VTENTRY.
5986 (elf32_sparc_check_relocs): Handle them.
5987 (elf32_sparc_reloc_type_lookup): Likewise.
5988 (elf32_sparc_relocate_section): Likewise.
5989 (elf32_sparc_gc_mark_hook): New.
5990 (elf32_sparc_gc_sweep_hook): New.
5991
5992 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
5993
5994 * som.c (som_finish_writing): Perform some sanity checks when
5995 writing an executable or shared library.
5996
5997 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
5998
5999 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
6000 * configure.in (elf): Add dwarf1.lo.
6001 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
6002 * elf.c (_bfd_elf_find_nearest_line): Add call to
6003 _bfd_dwarf1_find_nearest_line.
6004 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
6005 Add call to _bfd_dwarf1_find_nearest_line.
6006 * configure: Rebuilt.
6007
6008 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
6009
6010 * elflink.h (elf_gc_sections): Do not allow garbage
6011 collection if dynamic sections have been created.
6012
6013 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
6014
6015 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
6016 R_V850_GNU_VTENTRY.
6017 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
6018 (v850_elf_perform_relocation): Likewise.
6019 (v850_elf_final_link_relocate): Likewise.
6020 (v850_elf_relocate_section): Likewise.
6021 (v850_elf_gc_sweep_hook): New routine.
6022 (v850_elf_gc_mark_hook): New routine.
6023 (elf_backend_can_gc_sections): Define.
6024
6025 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
6026
6027 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
6028 that dynobj exists.
6029
6030 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
6031
6032 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
6033 Declare size as bfd_size_type.
6034 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
6035
6036 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
6037
6038 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
6039 structure.
6040 * som.c (CPU_PA_RISC2_0): Define.
6041 (_PA_RISC2_0_ID): Likewise.
6042 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
6043
6044 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
6045
6046 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
6047 has a base which is already defined, only add the referenced
6048 symbol to the dynamic symbol table if it is defined or referenced
6049 by a regular file.
6050
6051 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
6052 correctly.
6053
6054 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6055
6056 * elflink.h (elf_link_add_object_symbols): Undo last change.
6057
6058 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
6059
6060 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
6061 symbol for the indirect alias to a versioned symbol.
6062
6063 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
6064
6065 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
6066 (elf32_i386_vtentry_howto): New.
6067 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
6068 or elf32_i386_vtinherit_howto on lookup.
6069
6070 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6071
6072 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
6073 reloc_type. Rename R_68K__max to R_68K_max.
6074 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
6075 reloc.
6076
6077 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
6078
6079 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
6080 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
6081
6082 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
6083 after.
6084
6085 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
6086
6087 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
6088 message has a null byte terminator.
6089
6090 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
6091
6092 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
6093 word subject to R_V850_32 relocation.
6094
6095 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
6096
6097 * dwarf2.c: Add comment describing problem computing line numbers
6098 for undefined symbols at link time.
6099
6100 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
6101
6102 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
6103 transform a defweak into a plt entry.
6104 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
6105 plt entry references to receive a RELATIVE reloc.
6106 (elf64_alpha_finish_dynamic_symbol): Fill them in.
6107 (elf64_alpha_relocate_section): Assert we don't overrun
6108 the allocated relocation space.
6109
6110 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
6111
6112 * elf.c (swap_out_syms): Always treat section symbols as
6113 special, even if they are attached to a common section.
6114
6115 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
6116
6117 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
6118 sections with v850 common section attributes into named v850
6119 common sections.
6120 (v850_elf_add_symbol_hook): Move symbols in sections with v850
6121 common section attributes into named v850 common sections.
6122
6123 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
6124
6125 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
6126 statement.
6127
6128 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
6129
6130 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
6131 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
6132 reloc to the wrong section a warning, not an error. .dynsbss
6133 is not an output section, so there is no need to check for it.
6134
6135 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
6136
6137 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
6138
6139 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
6140
6141 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
6142 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
6143 R_ARM_GNU_VTENTRY.
6144 (elf32_arm_gc_mark_hook): New.
6145 (elf32_arm_gc_sweep_hook): New.
6146 (elf32_arm_check_relocs): New.
6147 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
6148 relocations.
6149 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
6150 relocations.
6151
6152 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
6153
6154 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
6155 assume there is no PLT or GOT.
6156
6157 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
6158
6159 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
6160 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
6161 also accepted as a function symbol type.
6162
6163 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6164
6165 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
6166
6167 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
6168
6169 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
6170 match definition of _bfd_gc_sections field.
6171 * libbfd.h: Rebuild.
6172
6173 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
6174
6175 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
6176 the addend of a dynamic relocation referencing a section.
6177 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6178 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
6179
6180 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
6181
6182 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
6183 bed has a size_dynamic_sections routine before trying to use it.
6184
6185 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
6186
6187 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
6188 _bfd_elf_rel_vtable_reloc_fn.
6189
6190 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
6191
6192 * Makefile.am: Add elf32-arm.c.
6193 * Makefile.in: Rebuild.
6194 * elf-bfd.h: Add elf_backend_get_symbol_type.
6195 * elf.c (swap_out_syms): If defined, call
6196 elf_backend_get_symbol_type.
6197 * elf32-arm.c: Define elf_backend_get_symbol_type.
6198 (elf32_arm_get_symbol-type): New routine.
6199 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
6200 (bfd_elf32_arm_process_before_allocation): Change to
6201 check for STT_ARM_TFUNC.
6202 (elf32_arm_final_link_relocate): Likewise.
6203 * elfxx-target.h: Add elf_backend_get_symbol_type.
6204
6205 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
6206
6207 * archures.c (bfd_mach_alpha_ev[456]): New.
6208 * cpu-alpha.c: Rework to match these types.
6209 * bfd-in2.h: Rebuild.
6210
6211 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
6212
6213 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
6214 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
6215
6216 * elf32-i386.c (elf_howto_table): Add vtable relocs.
6217 (elf_i386_reloc_type_lookup): Recognize them.
6218 (elf_i386_check_relocs): Pass them off to generic code.
6219 (elf_i386_relocate_section): Ignore them.
6220 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
6221 (elf_backend_can_gc_sections): True.
6222
6223 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
6224
6225 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
6226 before looking at owner field.
6227 (elf32_arm_to_thumb_stub): Ditto.
6228 (elf32_arm_relocate_section): Compute name before calling
6229 elf32_arm_final_link_relocate().
6230
6231 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
6232
6233 * elf.c: comment and formatting cleanups.
6234 * elfcore.h: ditto.
6235
6236 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
6237
6238 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
6239 (core files are treated differently than object files).
6240 * elf-bfd.h (_bfd_elf_write_corefile_contents,
6241 bfd_elf_mkcorefile): declare.
6242 * elfxx-target.h (_bfd_elf_write_corefile_contents,
6243 bfd_elf_mkcorefile): add to bfd_target vector.
6244 * elfcore.h (elf_core_file_p): save the program header table,
6245 and set the bfd architecture from the elf file header.
6246 * elf.c (bfd_elf_mkcorefile): new function.
6247 (_bfd_elf_write_corefile_contents): new function.
6248 (assign_file_positions_for_segments): add cases for handling
6249 PT_NOTE segments. (assign_file_positions_except_relocs):
6250 core files should be handled the same as exec files.
6251 (prep_headers): identify core files as type ET_CORE.
6252 (copy_private_bfd_data): identify the sections belonging to
6253 the PT_NOTE segment.
6254
6255 * elf32-sparc.c (elf32_sparc_final_write_processing):
6256 add break statement to default case.
6257
6258 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
6259
6260 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
6261 section (not input) will be in sections ".sbss", ".sbss2",
6262 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
6263 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
6264 output_offset for correct evaluation of addend.
6265
6266 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
6267
6268 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
6269 elf32_arm_allocate_interworking_sections and
6270 elf32_arm_process_before_allocation.
6271
6272 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
6273
6274 * bfd-in.h: Ammend prototype for
6275 elf32_arm_process_before_allocation to remove surplus third
6276 argument.
6277
6278 * bfd-in2.h: Regenerate.
6279
6280 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
6281
6282 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
6283
6284 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
6285
6286 * aoutx.h (aout_link_input_section_ext): Use the relocation already
6287 calculated for RELOC_SPARC_REV32 case.
6288
6289 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
6290
6291 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
6292 elf32_arm_allocate_interworking_sections and
6293 elf32_arm_process_before_allocation.
6294 * bfd-in2.h: Regenerated.
6295 * elf32-arm.c Define elf32_arm_link_hash_table.
6296 (insert_thumb_branch): New routine.
6297 (find_thumb_glue): New routine.
6298 (find_arm_glue): New routine.
6299 (record_arm_to_thumb_glue): New routine.
6300 (record_thumb_to_arm_glue): New routine.
6301 (elf32_arm_link_hash_table_create): New routine.
6302 (elf32_arm_get_bfd_for_interworking): New routine.
6303 (elf32_arm_allocate_interworking_sections) New routine.
6304 (elf32_arm_process_before_allocation) New routine.
6305 (elf32_thumb_to_arm_stub): New routine.
6306 (elf32_arm_to_thumb_stub): New routine.
6307 (elf32_print_private_bfd_data): Fix typo.
6308 (elf32_arm_final_link_relocate): Add argument sym_sec.
6309 Check for branches to thumb symbols in case R_ARM_PC24.
6310 Check for branches to arm symbols in case R_ARM_THM_PC22.
6311 (elf32_arm_relocate_section): Pass symbol section to
6312 elf32_arm_final_link_relocate.
6313
6314 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
6315
6316 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
6317 entries unless the symbol is defined in the executable; in
6318 particular, undefined weak symbols get a PLT entry.
6319
6320 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
6321
6322 * libaout.h: Remove nested comment to avoid warning.
6323
6324 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
6325
6326 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
6327 R_ARM_PC24 relocation.
6328
6329 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
6330
6331 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
6332 argument is_local. Add argument sym_flags. Check sym_flags
6333 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
6334 (elf32_arm_relocate_section): Don't pass local sym and pass
6335 sym_flags to elf32_arm_final_link_relocate.
6336
6337 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
6338
6339 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
6340 to not count too few relocs for dynamicly linked executables.
6341
6342 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
6343
6344 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
6345 symbols without a dynamic index dynamic. Consider all weak
6346 symbols dynamic.
6347 (elf64_alpha_strip_section_from_output): Don't assume 1-1
6348 correspondance between input and output sections.
6349
6350 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6351
6352 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
6353 that use a .got.plt section start the got offset at zero.
6354
6355 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
6356
6357 * ieee.c (ieee_write_processor): Correct the processor ID written
6358 out for bfd_arch_m68k, accommodating change of March 25.
6359
6360 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
6361
6362 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
6363 R_ARM_THM_RPC22 relocations.
6364
6365 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
6366
6367 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
6368 are always dynamic.
6369 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
6370 .got relocs in -Bsymbolic shared objects.
6371
6372 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
6373
6374 * elf32-arm.c: Add private flags to ELF header.
6375 (elf32_arm_print_private_bfd_data): New Function.
6376 (elf32_arm_set_private_flags): New Function.
6377 (elf32_arm_copy_private_flags): New Function.
6378 (elf32_arm_merge_private_bfd_data): New Function.
6379
6380 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
6381
6382 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
6383 a local symbol.
6384 (elf32_sparc_relocate_section): Likewise.
6385
6386 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
6387
6388 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
6389 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
6390 (ppc_elf_relocate_section): Pull sgot and splt search to the start
6391 of the function. Recognize no .plt as static linking.
6392
6393 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
6394
6395 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
6396 ".liblist" string through gettext.
6397
6398 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
6399
6400 * Makefile.am: Add support for elf32-arm.lo.
6401 * Makefile.in: Rebuild.
6402 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
6403 (thumb-*-elf): Define targ_defvec and targ_selvecs.
6404 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
6405 * configure: Regenerate.
6406 * elf.c: (prep_headers): Support arch_type of EM_ARM.
6407 * targets.c: Support new targets bfd_elf32_bigarm_vec and
6408 bfd_target bfd_elf32_littlearm_vec.
6409 * elf32-arm.c: New file.
6410
6411 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
6412
6413 * libaout.h (M_SPARCLITE_LE): New machine.
6414 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
6415 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
6416 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
6417 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
6418 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
6419 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
6420 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
6421 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
6422 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
6423 be BFD_RELOC_SPARC_REV32.
6424 * reloc.c: Ditto.
6425 * config.bfd (sparc86x-*-aout): New
6426
6427 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
6428
6429 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
6430 actually mapping the output sections.
6431
6432 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
6433
6434
6435 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
6436 (mn10300_elf_reloc_map): Similarly.
6437 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
6438
6439 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
6440
6441 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
6442 Irix 6.
6443 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
6444 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
6445 elf_mips_reloc_type defined in elf/mips.h.
6446
6447 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
6448
6449 * elf64-mips.c: Remove reloc_type definition completely. It's now
6450 in elf/mips.h.
6451
6452 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
6453
6454 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
6455 as they are defined in elf/mips.h now.
6456
6457 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
6458
6459
6460 * Re-add lost change:
6461 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
6462 "movm_stack_size".
6463 (mn10300_elf_relax_section): Include stack space for register saves
6464 in the imm8 field of a "call" instruction.
6465 (compute_function_info): Determine how much stack is allocated by
6466 the movm instruction. Fix typo.
6467 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
6468
6469 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
6470
6471 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
6472 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
6473
6474 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
6475
6476 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
6477
6478 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
6479
6480 * elf32-hppa.h: Let ELF header define the enum containing the
6481 external reloc numbers.
6482 * elf32-i386.h: Likewise.
6483
6484 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
6485
6486 * elf-m10300.c: Let ELF header now define the macros to get the enum.
6487 * elf32-mips.c: Likewise.
6488 * elf32-ppc.c: Likewise.
6489
6490 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
6491
6492 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
6493 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
6494 prblems.
6495 * bfd-in.h: Regenerate.
6496 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
6497 parameter to 'unsigned int' to avoid K&R compatability problems.
6498
6499 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
6500
6501 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
6502 functionname_ptr to be const. Change line_ptr to be unsigned.
6503
6504 * coffcode.h (coff_link_output_has_begun): Simplify handling when
6505 macro is not defined. Change second parameter from bfd_link_info
6506 to coff_final_link_info. Add prototype.
6507 (coff_final_link_postscript): Simplify handling when macro is not
6508 defined. Add prototype.
6509
6510 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
6511
6512 * elf-mn10300.c: Before include system specific ELF header define
6513 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
6514 * elf32-mips.c: Likewise.
6515 * elf32-ppc.c: Likewise.
6516
6517 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
6518
6519 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
6520 temporary patch over to elf64-mips.c as well.
6521
6522 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
6523
6524 * elf32-mips.c (reloc_type): Temporarily disable definition of
6525 standard relocation since they are now defined in elf/mips.h.
6526
6527 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
6528
6529 * elf-m10200.c (mn10200_elf_final_link_relocate):
6530 Modify range test for case R_MN10200_8.
6531
6532 * elf-m10300.c (mn10300_elf_final_link_relocate):
6533 Modify range test for case R_MN10300_8.
6534
6535 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
6536
6537 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
6538 * elf32-i386.c (elf_backend_got_header_size): Define.
6539 (elf_backend_plt_header_size): Define.
6540 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
6541 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
6542 * elfxx-target.h: Provide a default of zero.
6543 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
6544 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
6545
6546 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
6547 entry from an executable, even if the plt refcount goes to 0.
6548
6549 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6550
6551 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
6552 directory name at the line number.
6553
6554 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
6555 with an unspecified type.
6556
6557 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
6558
6559 * sunos.c: Add undef of valid to avoid problem on SunOS.
6560
6561 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
6562
6563 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
6564
6565 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6566
6567 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
6568 R_68K_PCxx and R_68K_xx relocations. Make sure that
6569 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
6570 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
6571 R_68K_xx relocations.
6572 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
6573 that has no plt entry.
6574 (elf_m68k_relocate_section): Ignore the plt offset in a static
6575 link.
6576 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
6577 an ignored symbol.
6578 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
6579 a static link.
6580
6581 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
6582 types.
6583 (howto_table, reloc_map): Add entries for them.
6584 (elf_m68k_check_relocs): Handle them. Implement reference
6585 counting for got and plt entries.
6586 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
6587 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
6588 symbols.
6589 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
6590 (elf_m68k_relocate_section): Handle the new reloc types.
6591 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
6592 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
6593 * elflink.h (elf_link_add_object_symbols): When creating an
6594 indirect reference for symbol versioning also copy the plt
6595 offset.
6596 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
6597 flag also reset the plt offset.
6598 (elf_link_assign_sym_version): Likewise.
6599 (elf_gc_common_finalize_got_offsets): Increment the got offset by
6600 the size of the entry in bytes.
6601 (elf_gc_allocate_got_offsets): Likewise.
6602
6603 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
6604
6605 * elflink.h (elf_gc_sections): Return true rather than falling off
6606 the bottom.
6607
6608 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
6609 xmalloc.
6610
6611 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
6612
6613 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
6614 comment describing when it should be enabled.
6615 Changed definition of USER_LABEL_PREFIX to "", to fall into line
6616 with GCC sources.
6617
6618 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
6619
6620 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
6621 information ATN records.
6622
6623 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
6624
6625 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
6626 section for an absolute symbol in a fully linked file. Based on
6627 patch from Christian Holland <CHolland@de.lucent.com>.
6628
6629 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
6630
6631 * coff-m88k.c (m88k_special_reloc): Don't lose the information
6632 that a symbol is undefined.
6633
6634 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
6635
6636 * som.c (som_bfd_gc_sections): Define.
6637
6638 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
6639
6640 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
6641 overflows in ARM_26D patches, since they have already been
6642 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
6643
6644 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
6645
6646 * coffcode.h (coff_write_object_contents): If we have any long
6647 section names, call coff_write_symbols even if there are no
6648 symbols.
6649
6650 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
6651
6652 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
6653 PT_LOAD segment, rather than only setting it once for the entire
6654 file.
6655
6656 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
6657 rather than ignoring every phdr with a p_paddr of 0, ignore all
6658 the phdrs if they all have a p_paddr of 0.
6659
6660 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
6661 section was discarded from the link.
6662
6663 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6664
6665 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
6666
6667 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6668
6669 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
6670 floating point operations.
6671
6672 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
6673
6674 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
6675 function symbols.
6676
6677 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
6678
6679 Merge of vax/vms (read-only) support
6680 * configure.com: Support Vax target.
6681 * makefile.vms: Support Vax target.
6682 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
6683 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
6684 support.
6685 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
6686 support.
6687 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
6688 support.
6689 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
6690 support.
6691 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
6692 support.
6693 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
6694 * targets.c (bfd_target_ovax_flavour): New flavour.
6695 (vms_alpha_vec): Renamed from evax_alpha_vec.
6696 (vms_vax_vec): New.
6697 (target_vector): Update accordingly.
6698 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
6699 evax_alpha_vec.
6700 (vax*-*-*vms*): New target.
6701 * Makefile.am: Update for renamed files. Rebuild dependencies.
6702 * bfd-in2.h: Rebuild.
6703 * configure.in, Makefile.in, aclocal.m4: Rebuild.
6704
6705 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
6706
6707 Based on patch from Matt Semersky <matts@scd.hp.com>:
6708 * linker.c (_bfd_generic_final_link): Force a trailing NULL
6709 pointer on abfd->outsymbols.
6710 (generic_add_output_symbol): Handle NULL sym parameter.
6711
6712 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
6713
6714 * elf.c (copy_private_bfd_data): Add support for changing VMA or
6715 LMA of sections.
6716
6717 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
6718
6719 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
6720 when handling 32 bit immediate relocs.
6721 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
6722
6723 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
6724
6725 * section.c (STD_SECTION): Account for recently added gc_mark
6726 field in struct asection.
6727
6728 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
6729 (bfd_elf32_bfd_merge_private_bfd_data): Define.
6730
6731 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
6732
6733 ELF Section-level Garbage Collection:
6734 * bfd.c (bfd_gc_sections): New.
6735 * aout-adobe.c: Hook to default implementation.
6736 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
6737 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
6738 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
6739 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
6740 * tekhex.c, versados.c: Likewise.
6741 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
6742 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
6743
6744 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
6745 (bfd_generic_gc_sections): New.
6746 * section.c (SEC_KEEP): New.
6747 (asection): Add gc_mark member.
6748
6749 * elfcode.h (elf_gc*): New name remappings.
6750 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
6751 sections to be excluded.
6752 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
6753 (elf_gc_propogate_vtable_entries_used): New.
6754 (elf_gc_smash_unused_vtentry_relocs): New.
6755 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
6756 (elf_gc_common_finalize_got_offsets): New.
6757 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
6758 * elfxx-target.h: Add and default gc hooks.
6759
6760 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
6761 for unions.
6762 (struct elf_obj_tdata): Likewise for local_got_offsets.
6763 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
6764 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
6765 * elf64-sparc.c, elflink.h: Likewise.
6766
6767 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
6768 (ELF_LINK_HASH_MARK): Define.
6769 (struct elf_backend_data): Add GC hooks.
6770 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
6771
6772 * elf-m10300.c (mn10300_elf_check_relocs): New.
6773 (mn10300_elf_gc_mark_hook): New.
6774 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
6775 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
6776 (mn10300_elf_final_link_relocate): Likewise.
6777 (mn10300_elf_relocate_section): Likewise.
6778 (elf_backend_can_gc_sections): Define.
6779 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
6780 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
6781 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
6782 (mips_info_to_howto_rel): Likewise.
6783 (mips_elf_relocate_section): Likewise.
6784 (mips_elf_check_relocs): Likewise.
6785 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
6786 (elf_backend_can_gc_sections): Define.
6787 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
6788 (ppc_elf_howto_raw): Handle them.
6789 (ppc_elf_reloc_type_lookup): Likewise.
6790 (ppc_elf_relocate_section): Likewise.
6791 (ppc_elf_check_relocs): Reference count .got and .plt entries.
6792 Handle new vtable relocs.
6793 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
6794 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
6795 (elf_backend_can_gc_sections): Define.
6796
6797 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
6798
6799 * archures.c (bfd_mach_mn10300): Define.
6800 * elf-m10300.c: Include elf/mn10300.h
6801 (elf_mn10300_mach): New function.
6802 (_bfd_mn10300_elf_final_write_processing): Likewise.
6803 (_bfd_mn10300_elf_object_p): Likewise.
6804 (elf_backendfinal_write_processing): Define.
6805 (elf_backend_object_p): Likewise.
6806
6807 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
6808
6809 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
6810 relocation.
6811
6812 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
6813
6814 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
6815 link_next field, not the next field.
6816
6817 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
6818
6819 * elf.c (map_sections_to_segments): Check the section address
6820 against the phdr size both with and without a modulo of
6821 maxpagesize.
6822
6823 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
6824
6825 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
6826 linker created empty input section if the output section has the
6827 same name.
6828
6829 * elflink.h (elf_link_output_extsym): Print an error message if
6830 _bfd_elf_section_from_bfd_section fails.
6831
6832 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
6833 failure.
6834
6835 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
6836
6837 * elf.c (copy_private_bfd_data): Improve handling of Solaris
6838 native linker output. Avoid putting an empty section in more than
6839 one segment.
6840
6841 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
6842
6843 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
6844 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
6845
6846 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
6847
6848 * elf.c (swap_out_syms): New arg relocatable_p.
6849 Don't add section VMA to symbols for relocatable output.
6850 (_bfd_elf_compute_section_file_positions): Update call to
6851 swap_out_syms.
6852
6853 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
6854
6855 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
6856 against 'addend' be signed rather than unsigned.
6857
6858 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
6859
6860 * elf32-m32r.c: Add prototyps for static functions.
6861
6862 * coff-arm.c: Add prototypes for static functions.
6863
6864 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
6865
6866 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
6867 LMA is used to order sections in a segment.
6868
6869 * elf32-v850.c: Add prototypes for static functions.
6870 Change type of addend parameter to bfd_vma in various functions.
6871
6872 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
6873
6874 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
6875 complain_overflow_signed instead of complain_overflow_bitfield.
6876
6877 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6878
6879 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
6880 when comparing against 0.
6881
6882 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
6883
6884 * Makefile.am (config.status): New target.
6885 * Makefile.in: Rebuild.
6886
6887 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
6888
6889 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
6890 error if previous object endianness doesn't match current object.
6891
6892 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
6893
6894 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
6895 _bfd_elf_print_private)bfd_data ().
6896
6897 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
6898
6899 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
6900 and size_change_ok.
6901 (elf_link_add_object_symbols): Set type_change_ok and
6902 size_change_ok before calling elf_merge_symbol.
6903
6904 * elf32-mips.c (mips_elf_relocate_section): If we issue an
6905 undefined symbol error, don't also issue an overflow error.
6906
6907 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
6908
6909 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
6910 R_PPC_LOCAL24PC relocation should be local; if not, print an error
6911 message instead of crashing.
6912
6913 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
6914
6915 * archures.c (bfd_mach_cpu32): Define.
6916 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
6917 bfd_mach_cpu32.
6918 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
6919 * ieee.c: Include <ctype.h>.
6920 (ieee_object_p): Parse out process ID string to make it more
6921 likely to be acceptable for bfd_scan_arch.
6922 * bfd-in2.h: Rebuild.
6923
6924 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
6925
6926 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
6927 _bfd_elf_print_private_bfd_data() so that the program header will
6928 be displayed.
6929
6930 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
6931
6932 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
6933 0x68. Reindent. Add some comments.
6934
6935 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
6936
6937 * elf.c (copy_private_bfd_data): Adjust physical address of
6938 segment in output BFD to contain LMAs of its sections.
6939
6940 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
6941
6942 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
6943 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
6944 endian data 32 bit relocations.
6945 (elf32_sparc_merge_private_bfd_data): Check if linking little
6946 endian objects with big endian objects.
6947 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
6948 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
6949 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
6950 * reloc.c: Same.
6951 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
6952 * archures.c (bfd_mach_sparc_sparclite_le): New.
6953 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
6954
6955 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
6956
6957 * peicode.h (add_data_entry): Fix precedence of operators in if ()
6958 statement.
6959
6960 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
6961
6962 * bfd-in.h: Move over patch to bfd-in2.h.
6963
6964 * reloc.c (bfd_check_overflow): Add casts before shifts which may
6965 not fit in 32 bits.
6966 (_bfd_relocate_contents): Likewise.
6967
6968 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
6969
6970 * peicode.h (add_data_entry): If the section has no private data
6971 then do not create a Data Dictionary entry for it.
6972
6973 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
6974
6975 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
6976 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
6977 elf64_alpha_size_got_sections): Rewrite, handling multiple got
6978 subsections during relaxation more correctly.
6979
6980 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
6981
6982 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
6983 Add extra argument to bfd_arm_process_before_allocation ().
6984 * bfd-in.h: Reflect changes made in bfd-in2.h.
6985 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
6986 coff class of a BFD symbol.
6987 * coff-arm.c: Add support for interworking between Thumb code and
6988 non-interworking aware ARM code.
6989
6990 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
6991
6992 * po/Make-in (install-info): New target.
6993
6994 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
6995
6996 * filemode.c: Remove; not used.
6997
6998 If sysdep.h includes a header file, don't include it again:
6999 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
7000 <errno.h>.
7001 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
7002 <sysdep.h>.
7003 * archive.c: Don't include <string.h> or <errno.h>.
7004 * evax-alpha.c; Don't include <stdio.h>.
7005 * evax-egsd.c: Likewise.
7006 * evax-etir.c: Likewise.
7007 * evax-misc.c: Likewise.
7008 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
7009 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
7010 <errno.h>.
7011 * hpux-core.c: Likewise.
7012 * netbsd-core.c: Likewise.
7013 * som.c: Likewise.
7014 * libbfd.c: Don't include <sys/types.h>.
7015 * nlmcode.h: Don't include <string.h>.
7016 * osf-core.c: Don't include <string.h> or <stdio.h>.
7017 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
7018 <errno.h>, or <unistd.h>.
7019 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
7020
7021 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
7022
7023 * configure.com: If the version number can not be found in
7024 configure.in, set it to "unknown" rather than "2.8.1".
7025
7026 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
7027
7028 * elf32-mips.c (elf_mips_mach): New.
7029 (_bfd_mips_elf_object_p): Use elf_mips_mach.
7030 (_bfd_mips_elf_final_write_processing): Use the names
7031 of machines, rather than the numbers. Set both the ARCH
7032 and MACH in e_flags. Handle a few more specific machines.
7033 (_bfd_mips_elf_merge_private_bfd_data): Merge both
7034 EF_MIPS_ARCH and EF_MIPS_MACH.
7035
7036 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
7037
7038 * syms.c (bfd_is_local_label): Revert last change.
7039 * srec.c (srec_write_symbols): Discard debugging symbols.
7040
7041 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
7042
7043 * som.c: Include <ctype.h>.
7044 * som.h: Don't include sysdep.h.
7045
7046 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
7047
7048 * libbfd.h: Rebuilt.
7049 * libbfd-in.h: Removed gettext includes and defines.
7050 * sysdep.h: Moved gettext-related includes and defines here.
7051
7052 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
7053
7054 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
7055 an ad-hoc test. Kill bogus #if 0 code.
7056 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
7057
7058 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
7059
7060 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
7061 when generating a normal executable for a symbol defined in a
7062 regular file. When copying a reloc into the output file, adjust
7063 the addend for a PC relative reloc against a global symbol.
7064
7065 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
7066
7067 * libbfd.h: Rebuilt.
7068 * libbfd-in.h (_): Define as dgettext.
7069
7070 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
7071
7072 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
7073 not signed.
7074 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
7075 when declaring parameter types.
7076 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
7077
7078 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
7079
7080 * config.bfd: If we include any ELF targets in targ_defvec and/or
7081 targ_selvecs, then add the generic ELF targets to targ_selvecs.
7082 * elf32-gen.c (dummy): New static const variable.
7083 (elf_generic_info_to_howto): New static function.
7084 (elf_generic_info_to_howto_rel): New static function.
7085 (elf_info_to_howto): Define as elf_generic_info_to_howto.
7086 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
7087 * elf64-gen.c: Same changes as elf32-gen.c.
7088 * elfcode.h (elf_object_p): For the generic target, ignore a
7089 failure of bfd_default_set_arch_mach. Fix indentation a bit.
7090
7091 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
7092
7093 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
7094 * configure: Rebuild.
7095
7096 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
7097
7098 * config.bfd: Update OSR5/Unixware patterns.
7099
7100 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
7101
7102 * elf.c (assign_file_positions_for_segments): Allow for holes
7103 between sections added by a link script.
7104
7105 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
7106
7107 * configure.in: Change version number to 2.9.4
7108 * configure: Rebuild.
7109
7110 Based on patch from H.J. Lu <hjl@gnu.org>:
7111 * elf.c (bfd_elf_get_bfd_needed_list): New function.
7112 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
7113 * bfd-in2.h: Rebuild.
7114
7115 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
7116
7117 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
7118 Change all users.
7119
7120 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
7121
7122 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
7123 (elf64_alpha_relax_section): Fill them in.
7124 (elf64_alpha_relax_opt_call): Implement more than a stub.
7125 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
7126 alignment on .scommon.
7127 (elf64_alpha_merge_gots): Merge use counts as well.
7128
7129 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
7130
7131 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
7132 for calculating a local symbol's address.
7133 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
7134 Set the .got's cooked size as well as the raw size.
7135
7136 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
7137
7138 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
7139 internationalisation of printed information.
7140
7141 * coff-arm.c (coff_arm_print_private_bfd_data): Add
7142 internationalisation of printed information.
7143
7144 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
7145
7146 * syms.c (struct indexentry): Change directory_name, file_name,
7147 and function_name fields to char *.
7148 (struct stab_find_info): Change cached_file_name field to char *.
7149
7150 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
7151
7152 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
7153
7154 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
7155
7156 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
7157
7158 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
7159
7160 * Makefile.am (install-data-local): Make $(includedir).
7161 * Makefile.in: Rebuild.
7162
7163 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
7164
7165 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
7166
7167 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
7168
7169 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
7170 * Makefile.in: Rebuild.
7171
7172 * bfd-in2.h: Rebuild for Nick's changes.
7173
7174 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
7175
7176 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
7177 change wrt length == max_namelen.
7178
7179 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
7180
7181 * Many files: Added gettext invocations around user-visible
7182 strings.
7183 * libbfd-in.h: Added gettext includes and defines.
7184 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
7185 HAVE_LC_MESSAGES): Define.
7186 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
7187 po/Makefile.
7188 * Makefile.am (SUBDIRS): Added po.
7189 (POTFILES): New macro.
7190 (po/POTFILES.in): New target.
7191 (SOURCE_HFILES): New macro.
7192 (HFILES): Use it.
7193 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
7194
7195 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
7196
7197 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
7198 NT_PRSTATUS note section encountered, it contains the status of
7199 the currently executing thread when the core file was written.
7200
7201 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
7202
7203 * libcoff.h: Add extra parameter to
7204 bfd_coff_link_output_has_begun overrideable function.
7205 * cofflink.c: Pass extra parameter to
7206 bfd_coff_link_output_has_begun function.
7207 * bfd-in.h: Add prototypes for exported ARM interworking
7208 functions.
7209 * peicode.h: ARM specific code reorganised to conform to BFD
7210 coding conventions.
7211 * coffcode.h: ARM specific code reorganised to conform to BFD
7212 coding conventions.
7213 * coff-arm.c: Code reorganised to conform to the BFD coding
7214 conventions. Global variables have been moved into an ARM
7215 specific hash table structure and a new function:
7216 bfd_arm_get_bfd_for_interworking() has been created which is
7217 called from the linker scripts.
7218
7219 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
7220
7221 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
7222
7223 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
7224 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
7225 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
7226 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
7227
7228 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
7229
7230 * config.bfd: Added sparc86x support.
7231
7232 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
7233
7234 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
7235 an out of range pc-relative jump/call to an undefined weak symbol.
7236
7237 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
7238
7239 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
7240 comparisons signed.
7241
7242 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
7243
7244 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
7245 an error other than bfd_error_system_call, set the error to
7246 bfd_error_wrong_format.
7247
7248 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
7249 bfd_elf32_powerpcle_vec.
7250
7251 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
7252 program segments are zero, don't set p_paddr_valid.
7253
7254 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
7255
7256 * elf64-alpha.c: Initial implementation of relaxation --
7257 (struct alpha_elf_link_hash_entry): Add use_count member.
7258 (elf64_alpha_check_relocs): Initialize and increment it.
7259 (elf64_alpha_can_merge_gots): Check it when considering merging.
7260 (elf64_alpha_merge_gots): Drop entries with zero use.
7261 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
7262 (elf64_alpha_always_size_sections): Split out got sizing ...
7263 (elf64_alpha_size_got_sections): ... here. New function.
7264 (elf64_alpha_relax_find_reloc_ofs): New function.
7265 (elf64_alpha_relax_with_lituse): Likewise.
7266 (elf64_alpha_relax_without_lituse): Likewise.
7267 (elf64_alpha_relax_opt_call): Likewise.
7268 (elf64_alpha_relax_section): Likewise.
7269 (elf64_alpha_add_symbol_hook): Likewise.
7270 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
7271 (elf64_alpha_relocate_section): Likewise.
7272 (bfd_elf64_bfd_relax_section): Define.
7273 (elf_backend_add_symbol_hook): Likewise.
7274
7275 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
7276
7277 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
7278 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
7279 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
7280
7281 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
7282
7283 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
7284 * configure: Rebuild.
7285
7286 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
7287
7288 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
7289 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
7290 * configure.in: Define and substitute WIN32LDFLAGS and
7291 WIN32LIBADD.
7292 * aclocal.m4: Rebuild with new libtool.
7293 * configure, Makefile.in: Rebuild.
7294
7295 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
7296
7297 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
7298 before any other symbols in the same section.
7299
7300 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
7301
7302 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
7303 systems.
7304
7305 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
7306
7307 * dwarf2.c (comp_unit): Move it earlier in the source. Add
7308 addr_size.
7309 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
7310 Use addr_size for address size, rather than sizeof(bfd_vma).
7311 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
7312 Fix call to read_address.
7313 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
7314 Scrap other unneeded arguments. Fix call to read_address.
7315 (scan_unit_for_functions): Fix call to read_attribute.
7316 (parse_comp_unit): We now handle more values for addr_size.
7317 Set addr_size in unit. Fix call to read_attribute and
7318 decode_line_info.
7319
7320 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
7321
7322 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
7323
7324 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
7325
7326 * archures.c (bfd_default_scan): Add m68k cases back to default
7327 switch, reverting patch of March 25, since IEEE support depends
7328 upon them.
7329
7330 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
7331
7332 * Makefile.am (diststuff): New target.
7333 * Makefile.in: Rebuild.
7334
7335 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
7336
7337 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
7338 som_offset when we have an extended name table.
7339
7340 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
7341
7342 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
7343 trying to copy it.
7344 * Makefile.in: Rebuild.
7345
7346 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7347
7348 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
7349 symbols when creating a shared library.
7350 (elf_m68k_adjust_dynindx): New function, used by above code.
7351 (elf_m68k_finish_dynamic_sections): Initialize the section
7352 symbols.
7353 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
7354
7355 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
7356
7357 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
7358 value 11.
7359
7360 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7361
7362 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
7363 assertion.
7364
7365 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
7366
7367 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
7368 absolute symbols.
7369
7370 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
7371
7372 * configure.in: Set version to 2.9.1.
7373 * configure: Rebuild.
7374
7375 * Branched binutils 2.9.
7376
7377 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
7378
7379 * syms.c (ENABLE_CACHING): Define.
7380 (struct indexentry): Define.
7381 (struct stab_cache): Remove.
7382 (cmpindexentry): New static function.
7383 (struct stab_find_info): Add new fields: indextable,
7384 indextablesize, cached_indexentry, cached_offset, cached_stab, and
7385 cached_file_name. Remove fields: file_cache, function_cache, and
7386 line_cache.
7387 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
7388 index table and search it.
7389
7390 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
7391
7392 * elf.c (_bfd_elf_copy_private_section_data): Call
7393 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
7394
7395 * cpu-mips.c: Remove trailing comma at end of enumeration list.
7396
7397 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
7398
7399 * coff-arm.c: Define all globally visible variables and functions
7400 only when COFF_WITH_PE is not defined.
7401 * configure.in (armpe_little_vec, armpe_big_vec): Add
7402 coff-arm.lo.
7403 * configure: Rebuild.
7404
7405 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
7406
7407 Fix some gcc -Wall warnings:
7408 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
7409 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
7410 * archures.c (bfd_default_scan): Likewise.
7411 * bfd.c (bfd_scan_vma): Likewise.
7412 * binary.c (mangle_name): Likewise
7413 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
7414 * coff-sh.c (sh_relocate_section): Likewise.
7415 * coff-stgo32.c (create_go32_stub): Likewise.
7416 * coffcode.h (coff_slurp_line_table): Likewise.
7417 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
7418 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
7419 (assign_file_positions_for_segments): Likewise.
7420 * elf32-mips.c (mips_elf_relocate_section): Likewise.
7421 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
7422 * oasys.c (oasys_write_sections): Likewise.
7423 * ppcboot.c (ppcboot_object_p): Likewise.
7424 (mangle_name): Likewise.
7425 * riscix.c (riscix_fix_pcrel_26): Likewise.
7426 * srec.c (srec_scan): Likewise.
7427 * stabs.c (_bfd_write_section_stabs): Likewise.
7428 * sunos.c (sunos_add_dynamic_symbols): Likewise.
7429 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
7430 switch. Declare parameters for function pointers.
7431 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
7432 warning.
7433 * elf.c (elf_sort_sections): Likewise.
7434 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
7435 Add default cases to switches.
7436 (coff_arm_relocate_section): Remove unused local variables.
7437 Always set rstat.
7438 (coff_arm_bfd_set_private_flags): Change flag variable to type
7439 flagword.
7440 * coff-mips.c (mips_relocate_section): Initialize use_lo.
7441 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
7442 (dump_toc): Change cat to const, and initialize it.
7443 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
7444 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
7445 (sh_elf_relocate_section): Initialize r_symndx.
7446 * coffcode.h (coff_compute_section_file_positions): Only declare
7447 old_sofar if ALIGN_SECTIONS_IN_FILE.
7448 (coff_write_object_contents): Initialize csym.
7449 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
7450 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
7451 switch.
7452 * dwarf2.c: Include libiberty.h.
7453 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
7454 (decode_line_info): Remove unused local variables.
7455 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
7456 (m32r_elf_relocate_section): Likewise.
7457 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
7458 (v850_elf_reloc): Likewise.
7459 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
7460 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
7461 * elf.c (assign_file_positions_for_segments): Always set adjust.
7462 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
7463 parenthesize expression.
7464 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
7465 (m32r_elf_object_p): Return a value.
7466 (m32r_elf_print_private_bfd_data): Change fprintf format string.
7467 * elf32-mips.c (mips_elf_final_link): Initialize last.
7468 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
7469 * elf32-v850.c (v850_elf_object_p): Return a value.
7470 (v850_elf_print_private_bfd_data): Change fprintf format string.
7471 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
7472 unsigned long.
7473 * elflink.h (elf_link_add_object_symbols): Change vernum to
7474 unsigned int, and initialize it. Change fprintf format string.
7475 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
7476 when setting or comparing to soname_indx.
7477 (elf_create_pointer_linker_section): Change num_symbols to
7478 unsigned int.
7479 * libcoff-in.h (coff_data_type): Change flags to flagword.
7480 * peicode.h (pe_print_idata): Initialize idx. Change j to
7481 bfd_size_type. Initialize hint_member. Remove useless test to
7482 time_stamp.
7483 (pe_print_edata): Change num_functions and num_names in struct
7484 EDT_type to unsigned long. Remove cast. Change fprintf format
7485 string.
7486 * ppcboot.c (ppcboot_object_p): Change i to size_t.
7487 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
7488 int.
7489 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
7490 int *. Update uses. Change j to long.
7491 * bfd-in2.h, libcoff.h: Rebuild.
7492
7493 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
7494
7495 * elf32-v850.c Remove definition of USE_REL.
7496 (v850_elf_info_to_howto_rela): New function.
7497 (v850_elf_perform_relocation): Renamed from
7498 v850_elf_store_addend_in_insn. Removed replace argument.
7499 (v850_elf_reloc): store the relocation in the addend field instead
7500 of the insn.
7501 (v850_elf_final_link_relocate): Now calls
7502 v850_elf_perform_relocation.
7503 (v850_elf_relocate_section): Remove code to generate REL
7504 relocations.
7505
7506 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
7507
7508 * coffcode.h (coff_new_section_hook): Set the type and storage
7509 class in the native symbol information allocated for a new section
7510 symbol.
7511
7512 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
7513
7514 * peicode.h: Chain together calls to
7515 coff_bfd_copy_private_bfd_data and
7516 coff_bfd_print_private_bfd_data.
7517
7518 * coff-arm.c: Add prototypes for
7519 coff_arm_bfd_print_private_bfd_data and
7520 coff_arm_bfd_copy_private_bfd_data.
7521
7522 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
7523
7524 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
7525 build.
7526
7527 * peicode.h: Call arm-coff private data functions after handling
7528 pe private data.
7529
7530 * coff-arm.c: Turn statics into globals so that they can be shared
7531 both pe and pei backends.
7532
7533 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
7534
7535 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
7536 plain numbers.
7537 (sunos_write_object_contents): Likewise.
7538 * aoutx.h (NAME(aout,machine_type)): Likewise.
7539 * coffcode.h (coff_set_arch_mach_hook): Likewise.
7540
7541 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7542
7543 * archures.c (bfd_mach_m68*): Add definitions for various m68k
7544 variants.
7545 (bfd_default_scan): Remove m68k special cases.
7546 * bfd-in2.h: Rebuild.
7547 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
7548 than plain numbers.
7549 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
7550 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
7551 m68k:68000.
7552 (bfd_m68k_arch): Set mach field to zero to signal no explicit
7553 selection, change printable_name to just "m68k" and make that the
7554 default instead of m68k:68020.
7555
7556 * aout-tic30.c (NAME): Define this to avoid multiple definitions
7557 from aoutx.h.
7558 (MY_get_section_contents): Define as aout_32_get_section_contents
7559 rather than NAME(aout,get_section_contents).
7560
7561 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
7562
7563 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
7564 and call bfd_default_set_arch_mach to do the real work.
7565
7566 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
7567
7568 * bout.c (BALX): Include return register g14 as part of the insn.
7569 (BALX_MASK): New.
7570 (calljx_callback): Use it.
7571
7572 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
7573
7574 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
7575 * libbfd.h: Rebuild.
7576
7577 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
7578 byte_count to unsigned int.
7579 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
7580 unused local variables.
7581
7582 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
7583 variables er and er1.
7584
7585 * cpu-v850.c: Include <ctype.h>.
7586 (scan): Case isdigit argument to unsigned char.
7587
7588 From Yan Meroth <YAN.MEROTH@st.com>:
7589 * ihex.c (ihex_scan): Add extbase variable so that getting an
7590 extended linear address record does not ignore any previous
7591 extended address.
7592 (ihex_write_object_contents): When writing out an extended linear
7593 address record, zero out any previous extended address.
7594
7595 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
7596
7597 * ieee.c (do_one): Check section before dereferencing it.
7598 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
7599 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
7600
7601 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
7602
7603 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
7604
7605 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
7606
7607 * coff-arm.c: Add interworking functions to pe backends.
7608
7609 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
7610
7611 * configure.in: Use AM_DISABLE_SHARED.
7612 * aclocal.m4, configure: Rebuild with libtool 1.2.
7613
7614 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
7615
7616 * coff-arm.c (coff_arm_relocate_section): Better error messages
7617 when interowrking conflucts occur. Courtesy of Jonathan Walton
7618 and Tony Thompson.
7619 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
7620 relocations. Patch courtesy of Jonathan Walton and Tony
7621 Thompson.
7622
7623 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
7624
7625 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
7626 part of Feb 22 change controling when to override the existing
7627 symbol with the .plt entry.
7628
7629 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
7630
7631 * config.bfd (targ_cpu): Add thumb-pe target.
7632
7633 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
7634 functions in PE build.
7635
7636 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
7637
7638 * config.bfd (sparclite-*-elf*): Added.
7639
7640 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
7641
7642 * configure.in: Add elf.lo to elf shell variable.
7643 * Makefile.am (BFD_LIBS): Remove elf.lo.
7644 (BFD_LIBS_CFILES): Remove elf.c.
7645 (BFD32_BACKENDS): Add elf.lo.
7646 (BFD32_BACKENDS_CFILES): Add elf.c.
7647 * configure, Makefile.in: Rebuild.
7648
7649 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
7650
7651 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
7652 relocation against a non-local symbol should not have a dynamic
7653 relocation.
7654
7655 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
7656
7657 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
7658 COFF filehdr flags.
7659 (pe_print_private_bfd_data): Print PE flags. From Mikey
7660 <jeffdb@netzone.com>.
7661
7662 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
7663
7664 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
7665 a plt entry when we can determine that we authoritatively define
7666 the symbol.
7667
7668 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
7669
7670 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
7671 don't actually use trad-core, but a SunOS-style core file handled
7672 by gdb directly.
7673 * hosts/sparclinux.h: Remove.
7674
7675 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
7676
7677 * peicode.h (pe_print_idata): If there is no .idata section, look
7678 for the import tables in some other section. Make the initial
7679 label line up better with the data. Print the import address
7680 table even if there is no import name table. If the import
7681 address table holds actual addresses, print them.
7682
7683 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
7684
7685 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
7686 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
7687 bfd_error_system_call.
7688
7689 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
7690
7691 * Makefile.am (AUTOMAKE_OPTIONS): Define.
7692 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
7693
7694 From H.J. Lu <hjl@gnu.org>:
7695 * Makefile.am (libbfd_la_LDFLAGS): Define.
7696 * Makefile.in: Rebuild.
7697
7698 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
7699
7700 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
7701 * netbsd.h (MACHTYPE_OK): Define.
7702 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
7703 calling N_SET_MACHTYPE, rather than having a switch.
7704 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
7705 and M_ALPHA_NETBSD.
7706 * i386netbsd.c (MACHTYPE_OK): Don't define.
7707 (DEFAULT_MID): Define.
7708 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
7709 (MACHTYPE_OK): Don't define.
7710 (DEFAULT_MID): Define.
7711 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
7712 (DEFAULT_MID): Define.
7713 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
7714 (DEFAULT_MID): Define.
7715 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
7716 (DEFAULT_MID): Define.
7717
7718 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
7719 * vaxnetbsd.c: New file.
7720 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
7721 rather than netbsd_core.
7722 * targets.c (vaxnetbsd_vec): Declare.
7723 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
7724 defined, add netbsd_core_vec.
7725 * configure.in: Set COREFILE for alpha*-*-netbsd* and
7726 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
7727 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
7728 * config.bfd (alpha*-*-netbsd*): New target.
7729 * Makefile.am: Rebuild dependencies.
7730 (BFD32_BACKENDS): Add vaxnetbsd.lo.
7731 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
7732 * configure, Makefile.in: Rebuild.
7733
7734 * configure.host: Remove the old shared library build stuff. We
7735 now use libtool instead.
7736
7737 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
7738
7739 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
7740
7741 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
7742
7743 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
7744 * configure: Rebuild.
7745
7746 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
7747 * elf32-v850.c (remember_hi16s_reloc): New function.
7748 (find_remembered_hi16s_reloc): New function.
7749 (v850_elf_store_addend_in_insn): Use the above new functions to
7750 match up HI6S relocs with LO16 relocs.
7751
7752 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
7753
7754 * configure.in: Change -linux* to -linux-gnu*.
7755 * config.bfd, configure.host: Likewise.
7756 * configure: Rebuild.
7757
7758 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
7759
7760 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
7761 LO16/HI16S bug and improve comments about what is going on.
7762
7763 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
7764
7765 * configure, aclocal.m4: Rebuild with new libtool.
7766
7767 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
7768
7769 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
7770 when merging v850 code into v850e/v850ea code. Do not initialise
7771 output flags if the input is the default architecture.
7772
7773 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
7774
7775 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
7776 get the size from bfd_arch_bits_per_address instead of directly
7777 from the isa.
7778
7779 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
7780
7781 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
7782 to wrap, just return all 1's bits instead.
7783 * libbfd.h: Regenerate.
7784
7785 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
7786
7787 * coff-i386.c (coff_pe_i386_relocate_section): New static function
7788 if COFF_WITH_PE.
7789 (coff_relocate_section): If COFF_WITH_PE, define as
7790 coff_pe_i386_relocate_section.
7791 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
7792 skip empty sections, to match coff_write_object_contents.
7793
7794 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
7795 rather than swapping out r_offset twice. From Luke Deller
7796 <luked@cse.unsw.edu.au>.
7797
7798 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
7799
7800 * configure.in: Set libtool_enable_shared rather than
7801 libtool_shared. Remove diversion hack.
7802 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
7803 with new libtool.
7804
7805 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
7806
7807 * syms.c (struct stab_cache): Define.
7808 (struct stab_find_info): Remove cached_offset, cached_stab,
7809 cached_str, and cached_stroff fields. Add file_cache,
7810 function_cache, and line_cache fields.
7811 (_bfd_stab_section_find_nearest_line): Use extensive caching to
7812 speed up searches.
7813
7814 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
7815
7816 * peicode.h (pe_print_idata): Check for import of ordinal rather
7817 than name.
7818 (pe_print_edata): If there is no .edata section, look for the
7819 export data in some other section.
7820
7821 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
7822
7823 * configure.in: Change version to 2.8.4.
7824 * configure: Regenerated.
7825
7826 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
7827
7828 Add tms320c30 support:
7829 * cpu-tic30.c: New file.
7830 * aout-tic30.c: New file.
7831 * coff-tic30.c: New file.
7832 * archures.c (bfd_arch_tic30): Define.
7833 (bfd_tic30_arch): Declare.
7834 (bfd_archures_list): Add bfd_tic30_arch.
7835 * targets.c (bfd_target_vector): Add tic30_aout_vec and
7836 tic30_coff_vec.
7837 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
7838 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
7839 (coff_set_flags): Likewise.
7840 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
7841 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
7842 * Makefile.am: Rebuild dependencies.
7843 (ALL_MACHINES): Add cpu-tic30.lo.
7844 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
7845 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
7846 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
7847 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
7848
7849 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
7850
7851 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
7852 to lag behind LO16 reloc by a couple of instructions.
7853
7854 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
7855
7856 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
7857 make to reexamine the file timestamp.
7858 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
7859
7860 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
7861 0x100000.
7862
7863 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
7864
7865 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
7866 to create .dynsbss and .rela.sbss sections.
7867 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
7868 copied from dynamic objects into .sbss.
7869 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
7870 use it. Correct typo of .rela.sdata2.
7871 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
7872 put the data, which may now be in .sbss.
7873 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
7874 (elf_backend_create_dynamic_sections): Define as
7875 ppc_elf_create_dynamic_sections.
7876
7877 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
7878 against _GLOBAL_OFFSET_TABLE_.
7879 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
7880 shared libraries which refer to local symbols. Make sure that the
7881 test for allocating space for a reloc in a shared object is the
7882 same as the test for emitting a reloc.
7883
7884 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
7885
7886 * config.bfd (i[3456]-*-mingw32*): New target.
7887 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
7888 * aclocal.m4, configure: Rebuild.
7889
7890 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
7891
7892 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
7893 have a bfd_object.
7894
7895 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
7896
7897 Sparc v9 ABI compliant PLT:
7898 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
7899 (plt_templates, sparc64_elf_build_plt_entry): Delete.
7900 (LARGE_PLT_THRESHOLD): New define.
7901 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
7902 (sparc64_elf_build_plt): New function.
7903 (sparc64_elf_plt_entry_offset): Likewise.
7904 (sparc64_elf_plt_ptr_offset): Likewise.
7905 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
7906 contain the index for convenience. Skip the initial entries
7907 in .rela.plt.
7908 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
7909 memory for the benefit of .rela.plt.
7910 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
7911 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
7912 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
7913 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
7914 Call sparc64_elf_build_plt.
7915 (elf_backend_want_got_plt): No.
7916 (elf_backend_plt_readonly): No.
7917 (elf_backend_plt_alignment): 8.
7918
7919 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
7920 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
7921 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
7922 to be called.
7923
7924 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
7925
7926 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
7927 processors.
7928 * cpu-mips.c (arch_info_struct): Add mips variants.
7929 * bfd-in2.h: Rebuilt.
7930
7931 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
7932
7933 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
7934 t2a3_b_insn.
7935
7936 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
7937
7938 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
7939 (i[3456]86sco3.2v5*coff): New target.
7940
7941 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
7942
7943 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
7944
7945 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
7946
7947 * bfd.c (bfd_get_error_handler): Add orthogonal function.
7948 * bfd-in2.h: Regenerate.
7949
7950 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
7951
7952 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
7953
7954 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
7955
7956 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
7957 adjust addend for an output common symbol (from Jimmy Blair
7958 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
7959 defined symbol to counteract adjustment made in generic relocation
7960 code.
7961
7962 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
7963
7964 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
7965
7966 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
7967 (GET_SCNDHR_NLNNO): Likewise.
7968
7969 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
7970
7971 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
7972
7973 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
7974
7975 * elf32-m32r.c: Add macros to handle NOP insertion.
7976
7977 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
7978
7979 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
7980 (xcoff_mark): Likewise.
7981 (xcoff_build_ldsyms): Mark absolute symbols.
7982
7983 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
7984
7985 * bout.c (b_out_write_object_contents): Sort symbols before output
7986 to keep {CALL,BAL}NAME symbols adjacent.
7987 (b_out_symbol_cmp): New function.
7988
7989 For older changes see ChangeLog-9697
7990 \f
7991 Local Variables:
7992 mode: change-log
7993 left-margin: 8
7994 fill-column: 74
7995 version-control: never
7996 End:
This page took 0.197429 seconds and 4 git commands to generate.