Fix linker segfault that occured when linking ia64-linux kernel.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
ccdb16fc
JW
1Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
2
3 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
4 (decode_line_info): Set it. Report error if unit->line_offset is
5 equal to or larger than it.
6
81635ce4
TW
72000-04-07 Timothy Wall <twall@cygnus.com>
8
9 * targets.c: Added vecs for tic54x.
10 * reloc.c: Added relocs for tic54x.
11 * libbfd.h: Regenerated.
12 * configure: Add TI COFF vecs for tic54x.
13 * configure.in: Ditto.
14 * config.bfd (targ_cpu): Recognize new tic54x target.
15 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
16 * bfd-in2.h: Add tic54x target and relocations.
17 * Makefile.am, Makefile.in: Add tic54x target.
18 * archures.c (bfd_archures_list): Add tic54x target.
19 * coff-tic54x.c: New.
20 * cpu-tic54x.c: New.
21
279b54a1
MS
222000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
23
24 * elfcore.h (elf_core_file_p): call backend_object_p which
25 thereby gets an opportunity to update the arch/machine type.
26
34cbe64e
TW
272000-04-06 Timothy Wall <twall@cygnus.com>
28
29 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
30 class. Handle SEC_CLINK and SEC_BLOCK flags.
31 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
32 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
33
fc830a83
NC
342000-04-06 Nick Clifton <nickc@cygnus.com>
35
36 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
37 EF_INTERWORK if this is an unknown EABI.
38 (elf32_arm_merge_private_bfd_data): Check EABI version
39 numbers. Only check EF_xxx flags if the EABI version number
40 is unknown.
41 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
42 if the EABI version number is unknown.
43 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
44 if the EABI version number is unknown.
45
015551fc
JR
46Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
47
48 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
49 BFD_RELOC_SH_LOOP_END.
50 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
51 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
52 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
53 (sh_elf_reloc_loop): New function.
54 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
55 any more.
56 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
57 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
58 * bfd-in2.h, libbfd.h: Regenerate.
59
41b49281
AM
602000-04-04 Alan Modra <alan@linuxcare.com.au>
61
8ad3436c
AM
62 * po/bfd.pot: Regenerate.
63
41b49281
AM
64 * Makefile.am: Remove extraneous mkdep comment.
65 (MKDEP): Use gcc -MM rather than mkdep.
66 (DEP): Quote when passing vars to sub-make. Add warning
67 message to end.
68 (DEP1): Rewrite for "gcc -MM".
69 (CLEANFILES): Add DEP2.
70 Update dependencies.
71 * Makefile.in: Regenerate.
72
653f71ca
KB
732000-04-03 Kevin Buettner <kevinb@redhat.com>
74
75 * configure.in: Added corefile support for AIX 4.3. In particular,
76 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
77 compiling rs6000-core.c.
78 * configure: Regenerated.
79
9e422a2e
ILT
802000-04-03 H.J. Lu <hjl@gnu.org>
81
82 * cache.c (bfd_open_file): Unlink the output file only if
41b49281 83 it has non-zero size.
9e422a2e 84
c555c5c5
AM
852000-04-01 Ken Block USG <block@zk3.dec.com>
86
87 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
88 relative relocations for non-loaded sections in shared objects.
89 (elf64_alpha_check_relocs): Similarly.
90
1642229e
HPN
91Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
92
93 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
94 BFD_RELOC_16 to switch for extended relocs.
95 (MY_swap_ext_reloc_in): New.
96 (MY_swap_ext_reloc_out): New.
97 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
98 than NAME(aout,swap_ext_reloc_in) for extended relocs.
99 (NAME(aout,squirt_out_relocs)): Similarly use
100 MY_swap_ext_reloc_out.
101 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
102
4259e8b6
JL
1032000-04-03 Kazu Hirata <kazu@hxi.com>
104
105 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
106 the R_PCRWORD_B case.
107
65d7f9a6
AM
1082000-03-31 Thomas de Lellis <tdel@wrs.com>
109
110 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
111 on some targets.
112 * ihex.c : Ditto.
113
8b125cde
DE
114Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
115
116 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
117 HOWTO references to bfd_elf_generic_reloc, that have
118 partial_inplace == true, now use the new function. The function
119 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
120 extends its fixes to the R_M32R_{16,24,32} relocs.
121 The new logic in m32r_elf_lo16_reloc() has been removed, and
122 it instead calls the new routine to obtain that functionality.
123
c555c5c5 1242000-03-27 Alan Modra <alan@linuxcare.com.au>
adde6300
AM
125
126 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
127 elf32_avr_check_relocs, avr_final_link_relocate,
128 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
129 elf32_avr_object_p): Add prototypes.
130 (elf32_avr_gc_mark_hook): Add default for h->root.type.
131 (bfd_elf_avr_final_write_processing): Make static.
132
1332000-03-27 Denis Chertykov <denisc@overta.ru>
134
135 * cpu-avr.c: New file. BFD support routines for AVR architecture.
136 * archures.c (bfd_architecture): Add AVR architecture.
137 (bfd_archures_list): Add reference to AVR architecture info.
138 * elf.c (prep_headers): Handle bfd_arch_avr.
139 * reloc.c: Add various AVR relocation enums.
140 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
141 list.
142 * Makefile.am: Add support for AVR elf.
143 * configure.in: Likewise.
144 * config.bfd: Likewise.
145 * Makefile.in: Regenerate.
146 * configure: This too.
147 * bfd-in2.h: And this.
148 * libbfd.h: And this.
149
cd6f9321
L
1502000-03-24 H.J. Lu <hjl@gnu.org>
151
152 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
153 (elf64_alpha_find_reloc_at_ofs): Likewise.
154
d5afc56e
AM
1552000-03-17 Alan Modra <alan@linuxcare.com.au>
156
157 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
158 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
159 allowable range used to be -2**(n-1) to 2**n-1.
160 * reloc.c (_bfd_relocate_contents): Same here. Also replace
161 "boolean overflow" with "bfd_reloc_status_type flag".
162
4c72e23a
CM
1632000-03-14 Doug Evans <dje@casey.transmeta.com>
164
165 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
166
c4d5c859
JL
1672000-03-14 Kazu Hirata <kazu@hxi.com>
168
169 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
170 of shrinks properly, including the last reloc.
171
003e46d0
JL
1722000-03-13 Kazu Hirata <kazu@hxi.com>
173
174 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
175 check for R_MOVL2.
176
c555c5c5 1772000-03-11 Alan Modra <alan@linuxcare.com.au>
911c6dae
AM
178
179 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
180 a format mismatch rather than an "error" from bfd_read such as
181 bfd_error_file_truncated.
182
7893e6a2
GK
1832000-03-10 Geoff Keating <geoffk@cygnus.com>
184
185 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
186 sign-extension and big-endian compensation for
187 R_MIPS_64 even in ld -r.
188
bb2d6cd7
GK
1892000-03-10 Geoffrey Keating <geoffk@cygnus.com>
190
191 * elf32-mips.c (mips_elf_next_relocation): Rename from
192 mips_elf_next_lo16_relocation, and generalize to look
193 for any relocation type.
194 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
195 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
196 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
197 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
198 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
199 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
200 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
201 (mips_rtype_to_howto): Likewise.
202 (mips_elf_calculate_relocation): Handle new relocs.
203 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
204 are paired. The addend for R_MIPS_GNU_REL16_S2
205 is shifted right two bits.
206
c555c5c5 2072000-03-10 Alan Modra <alan@linuxcare.com.au>
88b6bae0
AM
208
209 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
210 comment, and ensure it doesn't happen again.
211 (bfd_install_relocation): Same here.
212 (_bfd_relocate_contents): Don't bother assigning unused signmask
213 shift result. Fix typos in comments.
214 Remove trailing whitespace throughout file.
215
c1b7949f
DE
2162000-03-07 Doug Evans <dje@casey.transmeta.com>
217
218 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
219 * bfd-in2.h: Rebuild.
220
11c8a8d1
NC
2212000-03-06 Nick Clifton <nickc@cygnus.com>
222
223 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
224 sym_ptr_ptr fields.
225 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
226 (SIZEOF_ILF_STRINGS): Redefine.
227 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
228 relative reloc, as opposed to a section relative reloc.
229 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
230 not C_LABEL.
231 Add length of symbol's prefix to string pointer.
232 Store a pointer to the symbol in the symbol pointer table.
233 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
234 Initialise the symbol pointer table.
235 Store the hint in the Hint/Name table.
236 Make the jump reloc be symbol realtive, not section relative.
237 Create an import symbol for imported code.
238
b47e35fc
CM
2392000-03-06 Catherine Moore <clm@cygnus.com>
240
241 * elf.c (swap_out_syms): Check for null type_ptr.
242
8ba8a462
ILT
2432000-03-01 Hans-Peter Nilsson <hp@axis.com>
244
245 * aout-target.h (MY(write_object_contents)): Remove unused
246 and unusable "#if CHOOSE_RELOC_SIZE".
247 * pc532-mach.c (MY(write_object_contents)): Ditto.
248 * netbsd.h (MY(write_object_contents)): Ditto.
249 * hp300hpux.c (MY(write_object_contents)): Ditto.
250 * freebsd.h (MY(write_object_contents)): Ditto.
251 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
252
86033394
NC
2532000-02-29 H.J. Lu <hjl@gnu.org>
254
255 * peicode.h (jtab): Make it static.
256
257 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
258 defined and COFF_IMAGE_WITH_PE is not defined.
259 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
260 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
261
2622000-03-01 Nick Clifton <nickc@cygnus.com>
263
264 * coff-arm.c (bfd_arm_process_before_allocation): Make
265 'symndx' signed to prevent compile time warning.
266
267 * coff-mcore.c: Remove unused prototype for pe_object_p.
268
269 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
270 functions that are not used when COFF_IMAGE_WITH_PE is
271 defined.
272 (struct sh_opcode): Change type of 'flags' field to unsigned
273 long so that it can hold the USESAS flag.
274
275 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
276
277 * elf-m10300.c (mn10300_elf_relax_section): Initialise
278 'sym_sec'.
279
280 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
281 parameters.
282 Remove unusued variables and code.
283 (elf_backend_add_symbol_hook): Fix prototype.
284
285 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
286 'srelgot'.
287
288 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
289 'oldinst'.
290
291 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
292 parameters.
293 Remove unusued variables and code.
294 (elf_backend_add_symbol_hook): Fix prototype.
295
296 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
297
298 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
299 to unused function parameter.
300
301 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
302 parameters.
303 Use EMPTY_HOWTO to initialise empty howto slots.
304 Remove unused variables.
305
306 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
307
5cc7c785
L
3082000-03-01 H.J. Lu <hjl@gnu.org>
309
310 * aoutx.h (aout_link_input_section_std): Pass "true" to
311 the undefined_symbol callback.
312 (aout_link_input_section_ext): Likewise.
313 * bout.c (get_value): Likewise.
314 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
315 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
316 Likewise.
317 (alpha_relocate_section): Likewise.
318 * coff-arm.c (coff_arm_relocate_section): Likewise.
319 * coff-i960.c (coff_i960_relocate_section): Likewise.
320 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
321 * coff-mips.c (mips_relocate_section): Likewise.
322 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
323 * coff-sh.c (sh_relocate_section): Likewise.
324 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
325 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
326 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
327 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
328 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
329 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
330 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
331 * elf32-i370.c (i370_elf_relocate_section): Likewise.
332 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
333 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
334 * elf32-sh.c (sh_elf_relocate_section): Likewise.
335 * elf32-v850.c (v850_elf_relocate_section): Likewise.
336 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
337 * elflink.h (elf_link_output_extsym): Likewise.
338 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
339 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
340 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
341
342 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
343 undefined_symbol callback when building shared library with
344 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
345 "true".
346 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
347 * elf32-i386.c (elf_i386_relocate_section): Likewise.
348 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
349 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
350 (elf32_mips_get_relocated_section_content): Likewise.
351 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
352 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
353 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
354 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
355
17505c5c
NC
3562000-02-28 Nick Clifton <nickc@cygnus.com>
357
358 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
359 * Makefile.in: Regenerate.
360
361 * configure.in: Add support for mips and sh pe vectors.
362 * configure: regenerate.
363
364 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
365 targets.
366
367 * targets.c: Add mips and sh pe vectors.
368
369 * libpei.h (coff_final_link_postscript): Only define if not
370 already defined.
371
372 * coffcode.h: Add support for WinCE magic numbers.
373
374 * peigen.c (pe_print_reloc): Update comment and rearrange
375 appending of newline character.
376
377 * peicode.h: Add support for Image Library Format.
378 (pe_ILF_vars): Structure containing data used by ILF code.
379 (pe_ILF_make_a_section): New function. Create a section based
380 on ILF data.
381 (pe_ILF_make_a_reloc): New function. Create a reloc based on
382 ILF data.
383 (pe_ILF_make_a_symbol): New function. Create a symbol based
384 on ILF data.
385 (pe_ILF_save_relocs): New function. Store the relocs created
386 by pe_ILF_make_a_reloc in a section.
387 (pe_ILF_build_a_bfd): New function. Create a BFD describing
388 an ILF object.
389 (pe_ILF_object_p): New function. Return a bfd_target pointer
390 for an ILF object.
391 (pe_bfd_object_p): If an ILF object is detected call
392 pe_ILF_object_p on it.
393
394 * coff-arm.c: Add support for WinCE relocs which are different
395 from normal ARM COFF relocs.
396 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
397
398 * coff-sh.c: Add support for sh-pe target.
399 * pe-sh.c: New file. Support code for sh-pe target.
400 * pei-sh.c: New file. Support code for sh-pe target.
401
402 * pe-mips.c: New file. Support code for mips-pe target.
403 * pei-mips.c: New file. Support code for mips-pe target.
404
37fb6db1
ILT
4052000-02-27 Jakub Jelinek <jakub@redhat.com>
406
407 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
408 architecture if the object causing the bump is dynamic.
409 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
410 and also don't it for memory ordering.
411 (sparc64_elf_write_relocs): Take src_rela out of the loop.
412
67d83c76
ILT
4132000-02-27 Ian Lance Taylor <ian@zembu.com>
414
415 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
416 calling bfd_get_section_size_before_reloc.
417 (decode_line_info): Likewise.
418 (_bfd_dwarf2_find_nearest_line): Likewise.
419
e56f75e9
ILT
4202000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
421
422 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
423 name of the libtool directory.
424 * Makefile.in: Rebuild.
425
36e89602
JL
426Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
427
428 * som.c (SOM_HOWTO): Define.
429 (som_hppa_howto_table): Use it.
430
246c6687
AO
4312000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
432
9d23b7fe
AO
433 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
434
246c6687
AO
435 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
436
ba20314e
CM
4372000-02-24 Catherine Moore <clm@cygnus.com>
438
439 * som.c (som_misc_symbol_info): Add field
440 secondary_def.
441 (som_bfd_derive_misc_symbol_info): Initialize
442 secondary_def.
443 (som_build_and_write_symbol_table): Keep track
444 of secondary_def field.
445 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
446 if secondary_def field is set.
447 (som_bfd_ar_write_symbol_stuff): Initialize
448 secondary_def.
449
ecb651f0
NC
4502000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
451
452 * dwarf2.c (read_address): Read 16-bits addresses.
453 (parse_comp_unit): Accept addr_size == 2.
454
5b93d8bb
AM
4552000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
456
457 * bfd-in.h: Update copyright date.
458
4592000-02-23 Linas Vepstas <linas@linas.org>
460
461 * cpu-i370.c: New file.
462 * elf32-i370.c: New file.
463 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
464 (bfd_i370_arch): New.
465 (bfd_archures_list): Add bfd_i370_arch.
466 * elf.c (prep_headers): Add bfd_arch_i370.
467 * Makefile.am: Add support for IBM 370 elf.
468 * config.bfd: Likewise.
469 * configure.in: Likewise.
470 * libbfd.h (bfd_reloc_code_real_names): Likewise.
471 * reloc.c (bfd_reloc_code_type): Likewise.
472 * targets.c: Likewise.
473
474 * Makefile.in: Regenerate.
475 * configure: Regenerate.
476 * bfd-in2.h: Regenerate.
477
a432cc3d
ILT
4782000-02-22 Ian Lance Taylor <ian@zembu.com>
479
480 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
481 invalid relocation types, and change them to R_386_NONE.
482
4832000-02-22 H.J. Lu <hjl@gnu.org>
484
1287d1cc
ILT
485 * elflink.h (elf_link_add_object_symbols): If a version symbol is
486 not defined, don't add a second ELF_VER_CHR.
487
a432cc3d
ILT
488 * elflink.h (elf_bfd_final_link): Call output_extsym for global
489 symbols converted to local symbols even when stripping all
490 symbols.
491 (elf_link_output_extsym): Process global symbols converted to
492 local symbols even if they are being stripped.
493
f6af82bd
AM
4942000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
495
496 * archures.c (bfd_octets_per_byte): Return unsigned int.
497 (bfd_arch_mach_octets_per_byte): Ditto.
498 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
499 comparison warning.
500 * section.c (bfd_get_section_size_before_reloc): Quell signed
501 vs. unsigned comparison warning.
502 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
503 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
504 change. What was I thinking?
505 * bfd-in2.h: Regenerate.
506
507 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
508 (elf_gc_sections): Same here.
509 (elf_gc_common_finalize_got_offsets): And here.
510
494e2c58
ILT
5112000-02-21 Ian Lance Taylor <ian@zembu.com>
512
513 ELF HPPA doesn't work at present; remove it until it does.
514 * config.bfd: Comment out setting targ_defvec to
515 bfd_elf32_hppa_vec.
516 * Makefile.am: Rebuild dependencies.
517 (BFD32_BACKENDS): Remove elf32-hppa.lo.
518 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
519 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
520 * Makefile.in: Rebuild.
521 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
522
2fca4467
GK
5232000-02-18 Geoff Keating <geoffk@cygnus.com>
524
525 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
526 is no bfd_free(). Revert bfd_free part of previous change.
527
5ea1af0d
GK
5282000-02-18 Geoff Keating <geoffk@cygnus.com>
529
530 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
531 arrays.
532 (coff_compute_section_file_positions): Use bfd_free to pair
533 bfd_malloc.
534 (coff_write_object_contents): Likewise.
535
536 * coff-rs6000.c (xcoff_howto_table_16): New variable.
537 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
538
4fb43185
GK
5392000-02-18 Ulrich Drepper <drepper@cygnus.com>
540
541 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
542 (xcoff_ar_file_hdr_big): New structure.
543 (SIZEOF_AR_FILE_HDR_BIG): New macro.
544 (xcoff_ar_hdr_big): New structure.
545 (SIZEOF_AR_HDR_BIG): New macro.
546 (xcoff_big_format_p): New macro.
547 (xcoff_ardata_big): New macro.
548 (arch_xhdr_big): New macro.
549 (xcoff_slurp_armap): Handle large archives.
550 (xcoff_archive_p): Detect large archives.
551 (xcoff_read_ar_hdr): Handle large archives.
552 (xcoff_openr_next_archived_file): Handle large archives.
553 (xcoff_generic_stat_arch_elt): Handle large archives.
554 (xcoff_write_armap_old): Rename from xcoff_write_armap.
555 (xcoff_write_armap_big): New function.
556 (xcoff_write_armap): New function, dispatch to _old or _big.
557 (xcoff_write_archive_contents_old): Rename from
558 xcoff_write_archive_contents.
559 (xcoff_write_archive_contents_big): New function.
560 (xcoff_write_archive_contents): New function, dispatch to _old or
561 _big.
562
c61b8717
RH
5632000-02-18 Richard Henderson <rth@cygnus.com>
564
565 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
566 and hide_symbol members.
567 (elf_link_hash_copy_indirect): Remove.
568 (elf_link_hash_hide_symbol): Remove.
569 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
570 and elf_backend_hide_symbol.
571 (_bfd_elf_link_hash_copy_indirect): Declare.
572 (_bfd_elf_link_hash_hide_symbol): Declare.
573 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
574 (_bfd_elf_link_hash_hide_symbol): Likewise.
575 (_bfd_elf_link_hash_table_init): Don't init killed members.
576 * elflink.h (elf_link_add_object_symbols): Use the bed function
577 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
578 (elf_link_assign_sym_version): Likewise.
579 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
580 (elf_backend_hide_symbol): Likewise.
581 (elfNN_bed): Update for new members.
582
6ad49cca
KB
5832000-02-17 Kevin Buettner <kevinb@redhat.com>
584
585 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
586 STACK_END_ADDR): Define for new core file format.
587 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
588 for handling the vagaries of the various core file structures used
589 by AIX over the years.
590 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
591 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
592 core_dumpx structure.
593
d4845d57
JR
594Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
595
596 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
597 (bfd_mach_sh3_dsp): Likewise.
598 (bfd_mach_sh4): Reinstate.
599 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
600 * bfd-in2.h: Regenerate.
601 * coff-sh.c (struct sh_opcode): flags is no longer short.
602 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
603 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
604 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
605 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
606 (sh_opcodes): No longer const.
607 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
608 (sh_insn_uses_reg): Check for USESAS and USESR8.
609 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
610 (_bfd_sh_align_load_span): Return early for SH4.
611 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
612 Take into account that field b of a parallel processing insn
613 could be mistaken for a separate insn.
614 * cpu-sh.c (arch_info_struct): New array elements for
615 sh2, sh-dsp and sh3-dsp.
616 Reinstate element for sh4.
617 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
618 (SH4_NEXT): Reinstate.
619 (SH3_NEXT, SH3E_NEXT): Adjust.
620 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
621 * elf32-sh.c (sh_elf_set_private_flags): New function.
622 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
623 (sh_elf_merge_private_data): New function.
624 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
625 (bfd_elf32_bfd_copy_private_bfd_data): Define.
626 (bfd_elf32_bfd_merge_private_bfd_data): Change to
627 sh_elf_merge_private_data.
628
2920b85c
RH
6292000-02-13 Richard Henderson <rth@cygnus.com>
630
631 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
632 hide_symbol members.
633 (elf_link_hash_copy_indirect): New.
634 (elf_link_hash_hide_symbol): New.
635 * elflink.h (elf_link_add_object_symbols): Break out copy from
636 indirect new new symbol to elf.c.
637 (elf_link_assign_sym_version): Break out privatization of
638 non-exported symbol to elf.c.
639 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
640 (_bfd_elf_link_hash_hide_symbol): New.
641 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
642
7f8d5fc9
ILT
6432000-02-13 Ian Lance Taylor <ian@zembu.com>
644
645 * section.c (_bfd_strip_section_from_output): Add info parameter.
646 If it passed as non-NULL, use it to check whether any input BFD
647 has an input section which uses this output section. Change all
648 callers.
649 * bfd-in2.h: Rebuild.
650
651 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
652 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
653 1999-11-29.
654 * bfd-in2.h: Rebuild.
655
6c784c9a
TW
6562000-02-10 Timothy Wall <twall@cygnus.com>
657
658 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
659 allow final modifications of swapped-in symbol.
660 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
661 * coffcode.h (coff_write_relocs): Use macro
662 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
663 symbol index should be set to -1.
664
84dcfba7
JR
665Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
666
667 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
668 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
669 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
670 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
671 sh_insns_uses_or_sets_freg): New functions.
672 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
673 * (sh_insns_conflict): Use new functions and new macros to
674 detect conflicts when two instructions both set same integer registers,
675 both set same fp register, and both set special register.
676
363d7b14
TW
6772000-02-09 Timothy Wall <twall@cygnus.com>
678
679 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
680 swapping in sections, so that the swapping routines have access to
681 the arch/mach info.
682
119a7ced
NC
6832000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
684
685 * coff-go32.c: Update comment. Update copyright.
686
fad6fcbb 6872000-01-27 Thomas de Lellis <tdel@windriver.com>
2f0ca46a 688
fad6fcbb
NC
689 * syms.c (bfd_decode_symclass)
690 Two new class characters were added - 'V' and 'v'. The
691 meaning of 'W' is now restricted to just weak non-object
692 symbols. This allows differentiation between, for example,
693 weak functions vs weak objects. nm for example now dumps:
694 'W' = weak global
695 'w' = weak unresolved
696 'V' = weak global object
697 'v' = weak unresolved object
698
699 (bfd_is_undefined_symclass): New function. Return true if the
700 given symbol class represents and undefined/unresolved symbol.
701
702 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
703 unresolved symbols.
704
705 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
706
2f0ca46a
NC
707 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
708 STT_ARM_16BIT flag set, but it is not attached to a data object
709 return STT_ARM_16BIT so that it will be treated as code by the
fd6848f6 710 disassembler.
2f0ca46a 711
305c7206
AM
7122000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
713
714 * coff-i386.c (i3coff_object_p): Remove prototype.
715 Update copyright.
716
717 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
718 to name. Update copyright.
719
720 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
721 assignment to avoid warning. Update copyright.
722
b5f303f0
NC
7232000-01-24 Robert Lipe (robertl@sco.com)
724
725 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
726 instead of using GNU C extension.
727
2e4bb80e
NC
7282000-01-21 Nick Clifton <nickc@cygnus.com>
729
730 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
731 amount from a bfd_in_memory structure.
732 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
733 structure.
734
28240dcd
NC
7352000-01-14 Nick Clifton <nickc@cygnus.com>
736
737 * linker.c (default_indirect_link_order): oops - fix incorrectly
738 applied patch from Tim Wall.
739
6b3b007b
NC
7402000-01-13 Timothy Wall (twall@tiac.net>
741
742 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
743 = scnhsz, filhsz, relsz, aoutsz, etc)
744
745 * coffswap.h: Ditto.
746
756fa1b9
NC
7472000-01-13 Nick Clifton <nickc@cygnus.com>
748
749 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
750 interwork thumb to arm stub.
751
9a968f43
NC
7522000-01-13 Timothy Wall (twall@tiac.net>
753
754 * archures.c (bfd_octets_per_byte): New function: Return
755 target byte size.
756 (bfd_arch_mach_octets_per_byte): New function: Return target
757 byte size.
758
fd6848f6 759 * section.c: Distinguish between octets and bytes for usage of
9a968f43
NC
760 _cooked_size, _raw_size, and output_offset. Clarify
761 description of bfd_set_section_contents.
762
763 * bfd-in2.h: Regenerate.
764
765 * coffgen.c: Indicate that the offset parameter is in bytes, not
766 octets.
767
768 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
769 where appropriate to get the octet offset when calling
770 bfd_set_section_contents.
771 (bfd_coff_reloc_link_order): Ditto.
772
773 * linker.c (bfd_generic_reloc_link_order): Ditto.
774 (_bfd_default_link_order): Ditto.
775
776 * reloc.c (bfd_perform_relocation): Distinguish between octets
777 and bytes. Use octets when indexing into octet data; use bytes
778 when calculating target addresses.
779 (bfd_install_relocation): Ditto.
780
781 * srec.c (srec_write_section): Ditto.
782
f45fbf87
NC
7832000-01-13 Nick Clifton <nickc@cygnus.com>
784
785 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
786 3 to 2. This allows 4 byte sized sections, which is necessary for
787 dlltool to build funcitoning DLLs.
788
0decc840
NC
7892000-01-10 Philip Blundell <pb@futuretv.com>
790
791 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
792 (arm*-*-conix*): New target.
793
16e9c715
NC
7942000-01-10 Egor Duda <deo@logos-m.ru>
795
796 * config.bfd: Include elf32_i386 vector to target list for cygwin
797 and mingw.
798
799 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
800 * configure.in: Test for structure win32_pstatus_t in
801 <sys/procfs.h>
802 * configure: Regenerate.
803
804 * elf.c (elfcore_grok_win32pstatus): New function: process
805 win32_pstatus_t notes in elf core file.
806 (elfcore_grok_note): Detect win32_pstatus notes.
807
7a13edea
NC
8082000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
809
810 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
811 visibility.
812 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
813 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
814
ea44b734
RH
8151999-12-29 Richard Henderson <rth@cygnus.com>
816
817 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
818 if no dynamic sections created.
819
b1f10154
NC
8201999-12-27 Nick Clifton <nickc@cygnus.com>
821
822 * peicode.h (pe_bfd_object_p): Only define for PE format
823 targets.
824
cb665cd3
NC
8251999-12-17 Nick Clifton <nickc@cygnus.com>
826
827 * coff-i386.c (i3coff_object_p): Delete.
828 (i386coff_vec): Replace reference to i3coff_object_p with a
829 reference to coff_object_p.
830
831 * coff-mcore.c (pe_object_p): Delete.
832
833 * peicode.h (pe_bfd_object_p): New function: Detect the
834 presence of a PE format COFF object file. Also detect and
835 warn about the presence of LINK6 format Image Library Format
836 object files.
837
af74ae99
NC
8381999-12-16 Nick Clifton <nickc@cygnus.com>
839
840 * coff-arm.c (NUM_ELEM): New macro.
841 (NUM_RELOCS): New macro: The number of known ARM relocs.
842 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
843 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
844 of range.
845 (bfd_arm_process_before_allocation): Produce a warning message if
846 an out of range symbol index is encountered.
847
48dfb430
NC
8481999-12-14 Nick Clifton <nickc@cygnus.com>
849
850 * elflink.h (is_global_symbol_definition): New Function: Return
851 true iff the symbol is being given a global definition in this
852 bfd.
853 (elf_link_is_defined_archive_symbol): Do not bother processing
854 symbols for an archive element that has already been included
855 in the link.
856 Use is_global_symbol_definition().
857
93be3c4b
AC
8581999-12-09 Andrew Cagney <cagney@cygnus.com>
859
860 * config.bfd: Add support for sparc-*-netbsdelf* and
861 sparc-*-netbsdaout*.
862
ceddadb2
NC
8631999-12-13 Nick Clifton <nickc@cygnus.com>
864
865 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
866 if the symbol is in the common section.
867
a3a8c91d
NC
8681999-12-10 Nick Clifton <nickc@cygnus.com>
869
870 * elflink.h (elf_link_is_defined_archive_symbol): New
871 function: Decide if a symbol, in an archive map is there
872 because it is defined in the archive element, or because it is
873 just another common declaration of it.
874 (elf_link_add_archive_symbols): Use
875 elf_link_is_defined_archive_symbol to decide if an archive
876 element contain a reference to a common symbol should be
877 linked in or not.
878
77fb9c28
NC
8791999-12-10 Nick Clifton <nickc@cygnus.com>
880
881 * elflink.h: Revert previous patch.
882 * targets.c: Revert previous patch.
883 * libbfd-in2.h: Revert previous patch.
884 * libbfd.h: Revert previous patch.
885 * elfxx-target.h: Revert previous patch.
886 * archive.c: Revert previous patch.
887 * aout-target.h: Revert previous patch.
888 * aout-tic30.h: Revert previous patch.
889 * bfd.c: Revert previous patch.
890 * coff-alpha.c: Revert previous patch.
891 * coff-rs6000.c: Revert previous patch.
892 * elf64-mips.c: Revert previous patch.
893 * ieee.c: Revert previous patch.
894 * libecoff.h: Revert previous patch.
895 * oasys.c: Revert previous patch.
896 * som.c: Revert previous patch.
897 * vms.c: Revert previous patch.
898
ad247e3c
NC
8991999-12-09 Nick Clifton <nickc@cygnus.com>
900
901 * elflink.h (elf_link_add_archive_symbols): Add an archive
902 element even if contains a symbol which is currently only
903 considered to be a common.
904
905 * targets.c (struct bfd_target): Add new field
906 _bfd_allow_commons_in_armap.
907 * bfd-in2.h:Regenerate.
908
909 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
910 Define.
911 (_bfd_archive_bsd_allow_commons_in_armap): Define.
912 * libbfd.h: Regenerate.
913
914 * elfxx-target.h: If using COFF archive map, override
915 definition of allow_commons_in_armap and replace with
916 bfd_false.
917
918 * archive.c (bfd_compute_and_write_armap): Do not place common
919 symbols into the archive map unless _bfd_allow_commons_in_armap
920 returns true.
921
922 * aout-target.h (MY_allow_commons_in_armap): Define.
923 * aout-tic30.h (MY_allow_commons_in_armap): Define.
924 * bfd.c (bfd_allow_commons_in_armap): Define.
925 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
926 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
927 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
928 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
929 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
930 * oasys.c (oasys_allow_commons_in_armap): Define.
931 * som.c (som_allow_commons_in_armap): Define.
932 * vms.c (vms_allow_commons_in_armap): Define.
933
6fe6a461
JB
9341999-12-07 Jim Blandy <jimb@cygnus.com>
935
936 Add support for SSE registers in ELF core files.
937 * elf.c (elfcore_make_note_pseudosection): New function.
938 (elfcore_grok_prfpreg): Use it.
939 (elfcore_grok_prxfpreg): New function.
940 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
941
2a6d49ea
ILT
9421999-12-03 Ian Lance Taylor <ian@zembu.com>
943
944 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
945 value by 4 before storing it back in the field. From
946 Koundinya. K <kk@ddeorg.soft.net>.
947
31f8dc8f
JL
948Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
949
950 * archures.c (bfd_mach_am33): Define.
951 * bfd-in2.h: Rebuilt.
952 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
953 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
954 (compute_function_info): Handle additional registers saved by
955 movm on the am33.
956 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
957 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
958
98d8431c
JB
9591999-11-29 Jim Blandy <jimb@cygnus.com>
960
961 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
962 functions.
963 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
964 declarations.
965
fe174262
MM
9661999-11-27 Michael Meissner <meissner@cygnus.com>
967
968 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
969 internal use within gas for alpha explicit relocations.
970 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
971 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
972 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
973 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
974 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
975 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
976
977 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
978 BFD_RELOC_ALPHA_USER_*.
979
980 * bfd-in2.h: Regenerate.
981 * libbfd.h: Regenerate.
982
20cfcaae
NC
9831999-11-26 Fred Fish <fnf@cygnus.com>
984
985 * elf.c (elfcore_read_notes): Add prototype for static function.
986 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
987 (bfd_section_from_phdr): Replacement function that calls
988 _bfd_elf_make_section_from_phdr for generic segment types and
989 backend fucntion pointed to by elf_backend_section_from_phdr for
990 backend specific segment types.
991 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
992 now called by _bfd_elf_make_section_from_phdr. Note that this func
993 is now just a stub between the caller and bfd_section_from_phdr.
994
995 * elf-bfd.h (struct elf_backend_data): Add new function pointer
996 elf_backend_section_from_phdr.
997 (elf_backend_section_from_phdr): Add prototype.
998
999 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
1000 (elfNN_bed): Add elf_backend_section_from_phdr.
1001
811b4bf6
NC
10021999-11-25 Nick Clifton <nickc@cygnus.com>
1003
ba3d4249
NC
1004 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
1005 SEC_CODE and SEC_READONLY flags to glue sections.
1006
811b4bf6
NC
1007 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
1008 SEC_CODE and SEC_READONLY flags to glue sections.
1009
01ef19d2
NC
10101999-11-20 Nick Clifton <nickc@cygnus.com>
1011
1012 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
1013 delta.
1014
1ca42bad
CM
10151999-11-19 Catherine Moore <clm@cygnus.com>
1016
1017 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
1018 (elf_cpu32_plt_entry): Likewise.
1019
078c8694
NC
10201999-11-18 Nick Clifton <nickc@cygnus.com>
1021
1022 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
1023 for RVA relocs.
1024 (coff_mcore_relocate_section): Initialise addend to 0.
1025 Special case processing of RVA reloc.
1026
86dc0f79
RH
10271999-11-17 Richard Henderson <rth@cygnus.com>
1028
1029 * elf-bfd.h (struct elf_backend_data): Reorder collect and
1030 type_change_ok; add sign_extend_vma.
1031 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
1032 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
1033 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
1034 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
1035 (elfNN_bed): Follow struture changes.
1036
0bff3f4b
ILT
10371999-11-09 Ian Lance Taylor <ian@zembu.com>
1038
1039 * libbfd.c (bfd_read): Check result of read against desired result
1040 using !=, not <.
1041 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
1042 invalid compared to the section size.
1043
1044 * ieee.c (ieee_slurp_debug): Get the length of the debug
1045 information right if there is no data part.
1046
832fc202
JL
1047Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
1048
1049 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
1050 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
1051
71a40b32
ILT
10521999-10-28 Ian Lance Taylor <ian@zembu.com>
1053
1054 * elflink.h (elf_bfd_final_link): Make last_local signed.
1055
8140b664
ILT
10561999-10-27 Ian Lance Taylor <ian@zembu.com>
1057
1058 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
1059 starts with a zero.
1060
7af8cca9
MM
1061Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1062
1063 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
1064 bfd_mach_d10v_ts3.
1065 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
1066 * bfd-in2.h: Regenerate.
1067
a67a8777
AH
10681999-10-15 Andrew Haley <aph@cygnus.com>
1069
1070 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
1071
7a7191b7
JL
1072Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
1073
1074 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
1075
64df8d0b
ILT
10761999-10-08 Ian Lance Taylor <ian@zembu.com>
1077
1078 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
1079 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
1080 too.
1081
0af99795
GK
1082Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
1083
1084 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
1085 relocs also need the GP value.
1086 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
1087 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
1088 the GP value for R_MIPS_LITERAL relocs too. Handle
1089 R_MIPS_64 relocs properly on big-endian MIPS.
1090 (mips_elf_sign_extend): Behave properly with 'long long'.
1091 (mips_elf_highest): Correct typo.
1092
e916b64e
DE
1093Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
1094
1095 * cpu-m32r.c (arch_info_struct): New static global.
1096 (bfd_m32r_arch): Refer to it.
1097 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
1098 (m32r_elf_print_private_bfd_data): Ditto.
1099 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
a23ef39f
DE
1100 * archures.c (bfd_mach_m32rx): Define it.
1101 * bfd-in2.h: Rebuild.
e916b64e 1102
f4bda984
RH
11031999-09-28 Fred Fish <fnf@cygnus.com>
1104
1105 * targets.c (cisco_core_vec): Replaced with two new vecs ...
1106 (cisco_core_big_vec): Add new bigendian vec.
1107 (cisco_core_little_vec): Add new little endian vec.
1108
1109 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
1110 (crash_info_locs): Add array of possible offsets.
1111 (MASK_ADDR): Mask to apply to crash info offset.
1112 (crashinfo_external): Add textbase, database, bssbase and
1113 turn into a typedef.
1114 (cisco_core_file_validate): Renamed from cisco_core_file_p.
1115 Many small changes to account for additional hardware versions.
1116 Pick a reasonable size for ".reg" section. Add a ".crash"
1117 section to allow access to crashinfo_external struct.
1118 (cisco_core_file_p): New version of this function that
1119 iterates over crash_info_locs, calling cisco_core_file_validate.
1120 (cisco_core_vec): Old big endian only vec replaced with ...
1121 (cisco_core_big_vec): Add big endian version.
1122 (cisco_core_little_vec): Add little endian version.
1123
1124 * configure.in (cisco_core_vec): Split to two new vectors ...
1125 (cisco_core_big_vec): New target vector.
1126 (cisco_core_little_vec): New target vector.
1127 * configure: Regenerate.
1128 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
1129 to cisco_core_big_vec in targ_selvecs.
1130
d02f29ad
GK
11311999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1132
1133 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
1134 (mips_elf_relocate_got_local): Unused, delete.
1135 (mips_elf_relocate_global_got): Unused, delete.
1136
27ac83bf
RH
11371999-09-24 Fred Fish <fnf@cygnus.com>
1138
1139 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
1140 to initialize it to something meaningful. Then use it to generate
1141 more useful segment names.
1142
2667095f
JL
1143Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
1144
1145 * som.c (NO_PCREL_MODES): Define if the system does not define
1146 R_SHORT_PCREL_MODE.
1147 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
1148 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
1149 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
1150 * libhppa.h (dis_assemble_22): New function.
1151 (bfd_hppa_insn2fmt): Handle long branch.
1152
27ac83bf
RH
1153 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
1154 in PA2.0.
2667095f 1155
b7be1db6
AM
11561999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
1157
1158 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
1159 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
1160 (reloc_howto_type howto_table): Tidy comments and whitespace.
1161
57db232e
NC
11621999-09-17 Nick Clifton <nickc@cygnus.com>
1163
1164 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
1165 previous delta. Set sec->gc_mark instead.
1166
38f7d33d
CM
1167Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
1168
1169 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
1170 (elf_cpu32_plt_entry): Likewise.
1171
dfec422f
JL
1172Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
1173
b2df1460
JL
1174 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
1175
1209c612
JL
1176 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
1177 symbol table, then just compute a suitable value (but do not
1178 create a __gp symbol).
1179
dfec422f
JL
1180 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
1181 symbols when building shared libraries.
1182 (elf_hppa_final_link_relocate): Correct handling of PCREL
1183 relocations against undefined symbols.
1184
d0f2103d
NC
11851999-09-16 Nick Clifton <nickc@cygnus.com>
1186
1187 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
1188 interworking sections as linker created so that they will not
1189 be removed by garbage collection.
1190
19ef5465
JL
1191Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
1192
1193 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
1194 (elf_hppa_final_link_relocate): Consistently create an absolute
1195 address, then subtract out the value of __gp.
1196
6d83c84b
MM
11971999-09-14 Michael Meissner <meissner@cygnus.com>
1198
1199 * configure.in (Canonicalization of target names): Remove adding
1200 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1201 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1202 * configure: Regenerate.
1203
06a5ee55
NC
12041999-09-14 Nick Clifton <nickc@cygnus.com>
1205
1206 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
1207 Mitsubishi).
1208
b2e311df
JL
1209Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
1210
2ec0dd12
JL
1211 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
1212 (elf_hppa_final_link): Initialize text_segment_base and
1213 data_segment_base.
1214 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
1215
b2e311df
JL
1216 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
1217 (elf_hppa_final_link_relocate): Likewise.
1218 (elf_hppa_relocate_insn): Likewise.
1219 (elf_hppa_relocate_section): Initialize HOWTO.
1220
79207490
ILT
12211999-09-13 Donn Terry <donn@interix.com>
1222
e5db213d
ILT
1223 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
1224 handling to support both GNU and MS objects.
1225
79207490
ILT
1226 * coffcode.h (coff_write_object_contents): Don't check reloc_count
1227 when determining whether to set F_RELFLG.
1228
59f2c4e7
NC
12291999-09-13 Philip Blundell <pb@nexus.co.uk>
1230
1231 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
1232 PC24 relocs if the target is an undefined weak symbol.
1233 (arm_add_to_rel): Fix compiler warning.
1234 (elf32_arm_plt0_entry): Correct comments.
1235
2f66722d
AM
12361999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
1237
1238 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
1239 an absolute symbol in REL relocs.
1240
228d307f
JL
1241Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
1242
1243 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
1244 Stub SEGREL32. Return an error for any relocation not handled.
1245
49147fca
ILT
12461999-09-12 Ian Lance Taylor <ian@zembu.com>
1247
1248 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
1249 constant symbols, and avoid multiple definition errors on them.
1250
86b21447
ILT
12511999-09-12 Donn Terry <donn@interix.com>
1252
1253 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
1254 significant bit is set.
1255
eeaf533e
ILT
12561999-09-11 Ian Lance Taylor <ian@zembu.com>
1257
a50f8417
ILT
1258 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1259
eeaf533e
ILT
1260 * elfcode.h (write_relocs): Handle an absolute symbol in REL
1261 relocs as we do for RELA relocs.
1262
703153b5
ILT
12631999-09-11 Donn Terry <donn@interix.com>
1264
2fbadf2c
ILT
1265 * libpei.h (_bfd_pei_final_link_postscript): Declare.
1266 (coff_final_link_postscript): Define.
1267 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
1268 directory entries here.
1269 (_bfd_pei_final_link_postscript): New function.
1270
8c42d010
ILT
1271 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
1272 section flags based on the section name.
1273
cb43721d
ILT
1274 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
1275 get the overflow of the s_nlnno field from the s_nreloc field.
1276 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
1277 the s_nlnno overflow of the .text section into the s_nreloc
1278 field.
1279
5933bdc9
ILT
1280 * peigen.c (add_data_entry): Declare.
1281 (pei_swap_aouthdr_out): Get image size right. Set linker version
1282 more intuitively.
1283 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
1284 (pe_print_idata): Code cleanup, print more info, get rid of (now)
1285 extraneous ImageBase.
1286 (pe_print_edata): Likewise.
1287 (pe_print_pdata): Likewise. Print exception entries.
1288 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
1289 (tbl): Make const, add "UNKNOWN".
1290 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
1291 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
1292 section data directory.
1293 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
1294
7d2b58d6
ILT
1295 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
1296 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
1297 * peicode.h (coff_get_symbol_info): Define.
1298
0717ebb7
ILT
1299 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
1300 -DSTRICT_PE_FORMAT.
1301 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
1302 than __INTERIX.
1303 (coff_classify_symbol): Re-revert 1999-08-08 patch if
1304 STRICT_PE_FORMAT.
1305
277d1b5e
ILT
1306 * libpei.h: New file, broken out of peicode.h.
1307 * peigen.c: New file, broken out of peicode.h.
1308 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
1309 * configure.in: Add peigen.lo to list of files required for each
1310 PE target.
1311 * Makefile.am: Rebuild dependencies.
1312 (BFD32_BACKENDS): Add peigen.lo.
1313 (BFD32_BACKENDS_CFILES): Add peigen.c.
1314 (SOURCE_HFILES): Add libpei.h.
1315 * configure, Makefile.in: Rebuild.
1316
e166a60f
ILT
1317 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
1318 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
1319 instead. Don't clear the s_paddr field for an uninitialized data
1320 section.
1321
1135238b
ILT
1322 * coffcode.h (coff_mkobject_hook): Set timestamp field in
1323 coff_data_type to f_timdat.
1324 * peicode.h (pe_mkobject_hook): Likewise.
1325
05bf877a
ILT
1326 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
1327 number if COFF_IMAGE_WITH_PE.
1328
4cfec37b
ILT
1329 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
1330 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
1331 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
1332 there is no SEC_DEBUGGING section.
1333 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
1334 IMAGE_FILE_DEBUG_STRIPPED.
1335
33d7d197
ILT
1336 * pe-i386.c (COFF_LONG_FILENAMES): Define.
1337 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1338 * pei-i386.c (COFF_LONG_FILENAMES): Define.
1339 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1340
402ef9d4
ILT
1341 * coffswap.h (IMAGE_BASE): Don't define.
1342 * pei-arm.c (IMAGE_BASE): Don't define.
1343 * pei-i386.c (IMAGE_BASE): Don't define.
1344 * pei-mcore.c (IMAGE_BASE): Don't define.
1345 * pei-ppc.c (IMAGE_BASE): Don't define.
1346
8add8e30
ILT
1347 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
1348 symbol, switch on the class when determining whether to modify the
1349 value. For PE, don't modify the value of a C_FCN symbol not named
1350 .bf.
1351
c0bed66d
ILT
1352 * libbfd-in.h (_bfd_abort): Declare.
1353 (abort): Define.
1354 * bfd.c (_bfd_abort): New function.
1355 * libbfd.h: Rebuild.
1356
a50f8417
ILT
1357 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
1358 special handling.
1359
b545f675
ILT
1360 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
1361 don't write out the associated line numbers.
1362
2c546cd8
ILT
1363 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
1364 aux entries.
1365
5d3aaa74
ILT
1366 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
1367 changes when the base type is unknown.
1368
312191a6
ILT
1369 * coffgen.c (coff_print_symbol): Fix printing of aux record for
1370 function symbols.
1371
703153b5 1372 * syms.c (BSF_DEBUGGING_RELOC): Define.
d510f9a6
ILT
1373 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
1374 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
1375 symbols named .bf.
703153b5
ILT
1376 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
1377 BSF_DEBUGGING_RELOC set.
1378 * bfd-in2.h: Rebuild.
1379
7b50b349
ILT
13801999-09-10 Ian Lance Taylor <ian@zembu.com>
1381
1382 * ecoff.c (bfd_debug_section): Update initialization for new
1383 comdat_info field.
1384 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
1385 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
1386
13871999-09-10 H.J. Lu <hjl@gnu.org>
1388
1389 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
1390 _bfd_filnmlen field.
1391 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1392
af7dc644
JL
1393Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
1394
e48c661e
JL
1395 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
1396 for FPTR relocs involving local symbols.
1397
6a0b9871
JL
1398 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
1399 value for the stub address in a call through a stub.
1400 Install the value for a local symbol directly into the DLT
1401 instead of generating a reloc. Correctly handle FPTR64 relocs.
1402
af7dc644
JL
1403 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
1404 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
1405 (elf_hppa_final_link): Call them.
1406
fc4cc5bb
ILT
14071999-09-10 Ian Lance Taylor <ian@zembu.com>
1408
1409 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
1410 (elf_adjust_dynamic_symbol): ...from here.
1411
be7582f3
JL
1412Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
1413
b7263961
JL
1414 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
1415 relocation, remove them. SECREL64->LTOFF16WF.
1416 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
1417 DIR* relocations.
1418 (elf_hppa_relocate_insn): Similarly.
1419
8267b155
JL
1420 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
1421 (elf_hppa_relocate_insn): Similarly.
1422
6849fb4d
JL
1423 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
1424 GPREL* relocations.
1425 (elf_hppa_relocate_insn): Similarly.
1426
b233eaab
JL
1427 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
1428 Handle LTOFF_TP* relocs.
1429 (elf_hppa_relocate_insn): Similarly.
1430
571047ad
JL
1431 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
1432 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
1433 (elf_hppa_relocate_insn): Handle PCREL* relocs.
1434
e5bb3efc
JL
1435 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
1436 DIR32, DIR64 and FPTR64 relocations.
1437 (elf_hppa_relocate_insn): Similarly.
1438
be7582f3
JL
1439 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
1440 address of the .PARISC.global section.
1441 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
1442 table entry elf_hppa_final_link_relocate. Do not give a warning
1443 for a reloc against an external symbol if it has a PA64 hash
1444 table entry.
1445 (elf_hppa_final_link_relocate): Significantly rework. Handle
1446 DLTIND relocations. Compute the final value of the relocation
1447 before passing the value of elf_hppa_relocate_insn.
1448 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
1449 relocation support. Handle DLTIND relocation requests just like
1450 DLTREL relocation requests. Simplify branch handling.
1451
14521999-09-08 Ulrich Drepper <drepper@cygnus.com>
1453
1454 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
1455 non-allocated section as done in i386 version.
1456 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
1457 statement since this is no know relocation.
1458
c8933571
JL
1459Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
1460
084d930b
JL
1461 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
1462 relocs.
1463 (elf_hppa_relocate_insn): Similarly.
1464
11c19a4e
JL
1465 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
1466 DLTREL14WD relocs.
1467 (elf_hppa_relocate_insn): Similarly.
1468
c8933571
JL
1469 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
1470 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
1471 Pass the relocate type rather than the insn format to
1472 elf_hppa_relocate_insn.
1473 (elf_hppa_relocate_insn): Make switch dependent on relocation type
1474 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
1475
692b7d62
ILT
14761999-09-07 Ian Lance Taylor <ian@zembu.com>
1477
1478 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
1479 (bfd_coff_filnmlen): Define.
1480 (bfd_coff_std_swap_table): Initialize new field.
1481 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
1482 than FILNMLEN.
1483 (coff_write_symbols): Likewise.
1484 (coff_get_normalized_symtab): Likewise.
1485 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
1486 * libcoff.h: Rebuild.
1487
022a5af4
ILT
14881999-09-06 Donn Terry <donn@interix.com>
1489
75cc7189
ILT
1490 * coffcode.h (sort_by_secaddr): New static function if
1491 COFF_IMAGE_WITH_PE.
1492 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
1493 sections by VMA when assigning target_index values. Always set
1494 virt_size.
1495
8d3ad4e1 1496 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
fdfd89ab
ILT
1497 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
1498 pe_flags field.
8d3ad4e1
ILT
1499 * libcoff.h: Rebuild.
1500
8a1ad8e7
ILT
1501 * coffcode.h (coff_set_custom_section_alignment): Add const to
1502 declaration to match definition.
1503 (coff_write_object_contents): Don't set F_AR32W(R)? if
1504 COFF_WITH_PE.
1505
1506 * coff-i386.c (in_reloc_p): Add declaration.
1507 (i386coff_vec): Simplify initialization of
1508 application_section_flags.
1509
41733515
ILT
1510 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
1511 version. Move COFF_WITH_PE specific code to new version.
1512 (stype_to_sec_flags): Likewise. Add section parameter.
1513 * coffgen.c (make_a_section_from_file): Set target_index before
1514 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
1515 * libcoff.h: Rebuild.
1516
92962560
ILT
1517 * syms.c (stt): Add some PE/PEI section names.
1518 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
1519 symbol.
1520 (bfd_symbol_info): Check for 'w'.
1521
022a5af4
ILT
1522 * section.c (struct bfd_comdat_info): Define.
1523 (asection): Add comdat field.
1524 (STD_SECTION): Initialize comdat field.
1525 (bfd_make_section_anyway): Likewise.
1526 * bfd-in2.h: Rebuild.
1527
0d271c1a
AS
15281999-09-06 Andreas Schwab <schwab@suse.de>
1529
1530 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
1531 to version symbols.
1532
fed79cc6
NC
15331999-09-06 Nick Clifton <nickc@cygnus.com>
1534
1535 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
1536 bfd_realloc instead of calloc and realloc.
1537
0bcb993b
ILT
15381999-09-04 Steve Chamberlain <sac@pobox.com>
1539
1540 * cpu-pj.c: New file.
1541 * elf32-pj.c: New file.
1542 * config.bfd (pj*): New cpu.
1543 (pj-*-*, pjl-*-*): New targets.
1544 * configure.in (bfd_elf32_pj_vec): New target vector.
1545 (bfd_elf32_pjl_vec): New target vector.
1546 * archures.c (bfd_arch_pj): Define.
1547 * elf.c (prep_headers): Handle bfd_arch_pj.
1548 * reloc.c: Define BFD_RELOC_PJ_* relocations.
1549 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
1550 to target vector list.
1551 * Makefile.am: Rebuild dependencies.
1552 (ALL_MACHINES): Add cpu-pj.lo.
1553 (ALL_MACHINES_CFILES): Add cpu-pj.c.
1554 (BFD32_BACKENDS): Add elf32-pj.lo.
1555 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
1556 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1557
7843f00e
ILT
15581999-09-04 Ian Lance Taylor <ian@zembu.com>
1559
1560 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
1561 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
1562 and NON_GOT_REF from weak defined symbol to real symbol.
1563 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
1564 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
1565 create a COPY reloc.
1566 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
1567 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
1568 don't create a COPY reloc.
1569
814fe68a
ILT
15701999-09-03 Ian Lance Taylor <ian@zembu.com>
1571
1572 * elflink.h (elf_bfd_final_link): When counting relocations, don't
1573 count those in sections we are not including in the link.
1574
20e29382
JL
1575Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
1576
1577 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
1578 field in hpux11 shared libraries.
1579
4b56dbbd
NC
15801999-09-02 Nick Clifton <nickc@cygnus.com>
1581
1582 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
1583
2eb429af
JL
1584Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
1585
1586 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
1587 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
1588 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
1589
994819d2
NC
15901999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
1591
1592 * elflink.h (record_link_assignment): When possible, keep the
1593 original type of the symbol.
1594
0d571602
JL
1595Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
1596
1597 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
1598 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
1599 tools were configured.
1600 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
1601
9458945f
MM
16021999-08-26 Mark Mitchell <mark@codesourcery.com>
1603
1604 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
1605 GOT entries for GOT16 relocations; they're not required.
1606
021e3cc0
NC
16071999-08-24 Nick Clifton <nickc@cygnus.com>
1608
1609 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
1610
1611 * config.bfd (arm-*-netbsd*): New target.
1612 * configure.in (armnetbsd_vec): New target vector.
1613 * configure: Regenerate
1614 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
1615
1616 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
1617 (ALL_MACHINES_CFILES): Add armnetbsd.c.
1618 (armnetbsd.lo): New rule with deps.
1619 * Makefile.in: Regenerate.
1620
1621 * armnetbsd.c: New file: Definitions specific to arm-netbsd
1622 target.
1623
7da1b175
JL
1624Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
1625
1626 * som.c (som_slurp_symbol_table): Fix typo in comment.
1627
1ca74062
JL
1628Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
1629
1630 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
1631 here instead of using elf_section_data...
1632
69e70d30
NC
16331999-08-19 Nick Clifton <nickc@cygnus.com>
1634
1635 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
1636 relocations into the base file.
1637 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
1638 we are building a base file.
1639
98c1d4aa
NC
16401999-08-19 Nick Clifton <nickc@cygnus.com>
1641
1642 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
1643 a REL style reloc.
1644 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
1645 REL relocs when performing a partial relocation.
1646
00692651
ILT
16471999-08-18 Donn Terry <donn@interix.com>
1648
b2d638c7
ILT
1649 * cofflink.c: Move definitions of N_TMASK, et. al., out of
1650 _bfd_coff_link_input_bfd into top level.
1651
00692651
ILT
1652 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
1653 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
1654 (coff_i386_rtype_to_howto): Likewise.
1655 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
1656 Completely ignore symbols which are all zero.
1657 (dummy_reloc16_estimate): Add return 0.
1658 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
1659 variable copy to name_copy to avoid shadowing outer scope
1660 variable.
1661 * libcoff-in.h (coff_data_type): Change raw_syment_count field
1662 from unsigned int to unsigned long. Add timestamp field.
1663 * libcoff.h: Rebuild.
1664
1396cd2d
ILT
16651999-08-17 H.J. Lu <hjl@gnu.org>
1666
1667 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
1668 macro definition.
1669
0035bd7b
ILT
16701999-08-17 Ian Lance Taylor <ian@zembu.com>
1671
1672 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
1673 for special section symbols.
1674 * elflink.h (elf_merge_symbol): If we have no old BFD, check
1675 BSF_DYNAMIC on the section symbol to see whether the old BFD is
1676 dynamic.
1677
8535d39c
MM
16781999-08-15 Mark Mitchell <mark@codesourcery.com>
1679
1680 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
1681 coincidence of variable names between old and new code.
1682
bcbdc74c
NC
16831999-08-12 Nick Clifton <nickc@cygnus.com>
1684
1685 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
1686 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
1687 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
1688 and 'addend' parameter a 'bfd_signed_vma'.
1689 (elf32_arm_final_link_relocate): Do not involve stubs in
1690 R_ARM_THM_PC22 relocs relative to section symbols, they are long
1691 jumps, not function calls.
1692
23080146
NC
16931999-08-11 Robin Farine <advanc@dial.eunet.ch>
1694
1695 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
1696 in R_ARM_PC24 relocs.
1697
fc91f658
JL
1698Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
1699
052e120f
JL
1700 * elf-hppa.h (elf_hppa_fake_sections): New function.
1701 * elf32-hppa.c (elf_backend_fake_sections): Define.
1702
27ac83bf
RH
1703 * elf-hppa.h (elf_hppa_final_write_processing): Update for
1704 recent changes to the arch_info structure.
3a9acac8 1705
fc91f658
JL
1706 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
1707 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
1708 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
1709 list.
1710
5499724a 1711Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
27ac83bf 1712 Ralf Baechle <ralf@uni-koblenz.de>
5499724a
MM
1713
1714 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
1715 output DT_MIPS_GOTSYM.
1716 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
1717 DT_MIPS_SYMTABNO if there are no global GOT symbols.
1718
ce006217
MM
1719Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
1720
7b1f1231
MM
1721 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
1722 prototype. Handle local symbols. Add commentary.
1723 (mips_elf_calculate_relocation): Adjust accordingly.
1724 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
1725 relocations.
1726
ce006217
MM
1727 * elflink.h (elf_bfd_final_link): Tweak last change.
1728
b037af20
MM
17291999-08-09 Mark Mitchell <mark@codesourcery.com>
1730
1731 * elflink.h (elf_link_size_reloc_section): Use the counts in the
1732 elf-section data to allocate just the right amount of relocation
1733 space. Don't allocate the hash space twice.
1734 (elf_bfd_final_link): Calculate the amount of space to allocate in
1735 each relocation section.
1736
432bdd91
JL
1737Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
1738
1739 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
1740 64bit mode, generate a section relative relocation for a 32bit
1741 wide relocation.
1742 (elf_hppa_is_local_label_name): New function.
1743 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
1744 shared between 32bit and 64bit port.
1745
b944b044
MM
17461999-08-09 Mark Mitchell <mark@codesourcery.com>
1747
1748 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
1749 R_MIPS_GOT16 and R_MIPS_CALL16.
1750 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
b037af20 1751 to use when looking for a preexisting GOT entry.
b944b044 1752
840a9995
ILT
17531999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
1754
1755 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
1756 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
1757 not binutils.
1758 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1759
91d3970e
ILT
17601999-08-09 Geoff Keating <geoffk@cygnus.com>
1761
1762 * elflink.h (elf_link_output_extsym): Don't output a weak
1763 reference to an undefined symbol just because it was defined weak
1764 in a shared object.
1765
798c1fb8
ILT
17661999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1767
1768 * coffgen.c (coff_find_nearest_line): When looking for file, use
1769 last best match rather than first. If address is beyond last line
1770 number record, don't return the last line as the correct value.
1771
851edbaf
ILT
17721999-08-08 Ian Lance Taylor <ian@zembu.com>
1773
1774 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
1775 * bfd-in2.h: Rebuild.
1776
5dccc1dd
ILT
17771999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
1778
1779 * libcoff-in.h (struct coff_section_alignment_entry): Define.
1780 * coffcode.h (coff_set_custom_section_alignment): New static
1781 function.
1782 (coff_section_alignment_table): New static array.
1783 (coff_new_section_hook): Use coff_set_customer_section_alignment.
1784 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1785 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1786 * libcoff.h: Rebuild.
1787
74eeebea
ILT
17881999-08-08 Ian Lance Taylor <ian@zembu.com>
1789
1790 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
1791 MKDEP.
1792 * Makefile.in: Rebuild.
1793
bd826630
ILT
17941999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
1795
1796 * section.c (SEC_SHARED): Define.
1797 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
1798 (styp_to_sec_flags): Likewise.
1799 * peicode.h (coff_swap_scnhdr_out): Likewise.
1800 * bfd-in2.h: Rebuild.
1801
855b0be7
ILT
18021999-08-08 Ian Lance Taylor <ian@zembu.com>
1803
bd826630
ILT
1804 * coffcode.h (coff_classify_symbol): Comment out part of
1805 1999-08-05 change which breaks cygwin DLLs.
1806
855b0be7
ILT
1807 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
1808 * aclocal.m4, configure: Rebuild.
1809
22bc497d
ILT
18101999-08-06 Ian Lance Taylor <ian@zembu.com>
1811
1812 * section.c (global_syms): Only initialize union field if
1813 __STDC__.
1814
4f2860ca
MM
18151999-08-04 Mark Mitchell <mark@codesourcery.com>
1816
1817 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
1818 the size of a GOT entry here.
1819 (mips_elf_calculate_relocation): Don't create a local GOT entry
1820 for the symbol in a GOT16 relocation; just for it's high-order bit
1821 (_bfd_mips_elf_relocate_section): Fix thinko.
1822
5d54c628
ILT
18231999-08-05 Ian Lance Taylor <ian@zembu.com>
1824
1825 Based on patches from Donn Terry <donn@interix.com>:
1826 * coffcode.h (enum coff_symbol_classification): Define.
1827 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
1828 _bfd_coff_classify_symbol. Change return type.
1829 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
1830 (coff_slurp_symbol_table): Use coff_classify_symbol.
1831 (coff_classify_symbol): New static function.
1832 (coff_sym_is_global): Never define.
1833 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
1834 * cofflink.c (coff_link_check_ar_symbols): Use
1835 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
1836 (coff_link_add_symbols): Likewise.
1837 (_bfd_coff_link_input_bfd): Likewise.
1838 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
1839 coff_classify_symbol.
1840 * libcoff.h: Rebuild.
1841
36860900
JL
1842Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
1843
1560fbe4
JL
1844 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
1845 (e_ltpsel, e_rtpsel): Similarly.
1846
36860900
JL
1847 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
1848 and 14bit ertpsel. Handle 64bit psel.
1849
e7c44218
MM
18501999-08-04 Mark Mitchell <mark@codesourcery.com>
1851
1852 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
1853 handling for REL relocations. And only left-shift R_MIPS26
1854 relocation addends where necessary.
1855
3811169e
MM
18561999-08-03 Mark Mitchell <mark@codesourcery.com>
1857
23b255aa
MM
1858 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
1859 (mips_elf_next_lo16_relocation): Don't compute the addend here.
1860 Just return the relocation found.
1861 (mips_elf_relocate_section): Pull the LO16 addend out of the
1862 section itself when using REL relocations.
1863
3811169e
MM
1864 * elf32-mips.c (mips_elf_calculate_relocation): Restore
1865 _DYNAMIC_LINK handling and handling of undefined symbols in shared
1866 libraries.
1867
aab08431
ILT
18681999-08-03 Ian Lance Taylor <ian@zembu.com>
1869
2d146250
ILT
1870 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
1871 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
1872 relocation against a symbol in an input section with no output
1873 section. From Daniel Jacobowitz <drow@false.org>.
1874
cb94091f
ILT
1875 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
1876
aab08431
ILT
1877 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
1878 look for generated file correctly.
1879 * aclocal.m4, configure: Rebuild.
1880
5a44662b
MM
18811999-08-02 Mark Mitchell <mark@codesourcery.com>
1882
1883 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
1884 and R_MIPS16_26 relocations correctly when relocating.
1885 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
1886 and R_MIPS_CALL_LO16 are for global symbols.
1887
1fa0ddb3
RH
18881999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
1889
1890 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
1891 some fields.
1892 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
1893 variables and initialize them.
1894
97287574
MM
18951999-08-01 Mark Mitchell <mark@codesourcery.com>
1896
8b237a89
MM
1897 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
1898 there are no global symbols requiring GOT entries.
1899 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1900 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1901 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
1902
97287574
MM
1903 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
1904 symbols are considered to have the value zero.
1905 (_bfd_mips_elf_relocate_section): Don't try to perform a
1906 relocation for an undefined symbol.
1907 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
1908 GOT16 relocations.
1909
a11c78e7
RH
19101999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
1911
1912 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
1913 wants ba,a,pt %xcc instead of %icc.
1914 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
1915 of large PLT entries.
1916 (sparc64_elf_plt_ptr_offset): Fix calculation.
1917 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
1918 addend should be relative to load address, not .plt section start.
1919 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
1920
587ff49e
RH
19211999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
1922
1923 * elf-bfd.h (struct elf_backend_data): Add
1924 print_symbol_all and output_arch_syms backend methods.
1925 * elfxx-target.h: Likewise.
1926 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
1927 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
1928 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
1929 functions.
1930 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
1931 symbols in .dynsym, add their names into .dynstr. Put those symbols
1932 into dynlocal.
1933 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
1934 pointers to STT_REGISTER symbols in dynsym section.
1935 (sparc64_elf_print_symbol_all): New function.
1936 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
1937 printing using the print_symbol_all hook.
1938
d512aa07
CM
19391999-07-30 Catherine Moore <clm@cygnus.com>
1940
1941 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
1942 R_ARM_GNU_VTENTRY.
1943
441d6d79
RH
19441999-07-29 Richard Henderson <rth@cygnus.com>
1945
1946 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
1947 dynamic_sections_created.
1948
c9b3cbf3
RH
19491999-07-29 Richard Henderson <rth@cygnus.com>
1950
1951 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
1952 (mips_rtype_to_howto): ... new function.
1953 (_bfd_mips_elf_relocate_section): Use it.
1954
b89db8f2
MM
19551999-07-28 Mark Mitchell <mark@codesourcery.com>
1956
1957 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
1958
f8111282
NC
19591999-07-27 Nick Clifton <nickc@cygnus.com>
1960
1961 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
1962
1963 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
1964 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
1965
7d923127
ILT
19661999-07-23 Donn Terry <donn@interix.com>
1967
7fd9c191
ILT
1968 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
1969 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
1970 * cofflink.c (coff_link_add_symbols): If PE, handle section
1971 symbols specially.
1972 * libcoff.h: Rebuild.
1973
7d923127
ILT
1974 * config.bfd (i[3456]86-*-interix*): New target.
1975
242eabea
ILT
19761999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
1977
1978 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
1979 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
1980 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
1981 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
1982 (COFF_SUPPORT_GNU_LINKONCE): Define.
1983 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
1984 (COFF_SUPPORT_GNU_LINKONCE): Define.
1985
9c8ac5a9
ILT
19861999-07-21 Ian Lance Taylor <ian@zembu.com>
1987
1988 From Mark Elbrecht:
1989 * makefile.dos: Remove; obsolete.
980e4bf7 1990 * configure.bat: Remove; obsolete.
9c8ac5a9 1991
957ccf44
ILT
19921999-07-21 H.J. Lu <hjl@gnu.org>
1993
1994 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
1995
75987f83
ILT
19961999-07-21 Philippe De Muyter <phdm@macqel.be>
1997
1998 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
1999 message and fail if a symbol index is out of range.
2000
2841ecd0
ILT
20011999-07-21 Ian Lance Taylor <ian@zembu.com>
2002
2003 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
2004 when looking at a R_MIPS_GOT16 relocation.
2005
8a70eff3
NC
20061999-07-20 Nick Clifton <nickc@cygnus.com>
2007
2008 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2009
0db63c18
MM
2010Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
2011
2012 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
2013 removed in previous change.
2014 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
2015 in relocateable output.
2016
accc7f69
ILT
20171999-07-19 Ian Lance Taylor <ian@zembu.com>
2018
272dc76f
ILT
2019 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
2020 structure.
2021
accc7f69
ILT
2022 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
2023 if they appear to be specially created by the linker.
2024
c3c89269
NC
20251999-07-19 Nick Clifton <nickc@cygnus.com>
2026
2027 * targets.c (alternative_target): New field in bfd_target
2028 structure.
2029 (bfd_search_for_target): New function: Find a target that
2030 satisifies a search function.
2031 * bfd-in2.h: Regenerate.
2032
2033 * elfxx-target.h: Initialise the alternative_target field of
2034 the bfd_target structures to point to the other target (if
2035 defined).
2036 * nlm-target.h: Initialise the alternative_target field of
2037 the bfd_target structures to point to the other target (if
2038 defined).
2039
2040 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
2041 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
2042
2043 * aix386-core.c: Initialise new field of bfd_target structure.
2044 * aout-adobe.c: Initialise new field of bfd_target structure.
2045 * aout-arm.c: Initialise new field of bfd_target structure.
2046 * aout-target.h: Initialise new field of bfd_target structure.
2047 * aout-tic30.c: Initialise new field of bfd_target structure.
2048 * binary.c: Initialise new field of bfd_target structure.
2049 * bout.c: Initialise new field of bfd_target structure.
2050 * cisco-core.c: Initialise new field of bfd_target structure.
2051 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2052 * coff-alpha.c: Initialise new field of bfd_target structure.
2053 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
2054 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2055 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
2056 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
2057 * coff-i386.c: Initialise new field of bfd_target structure.
2058 * coff-i860.c: Initialise new field of bfd_target structure.
2059 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2060 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2061 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2062 * coff-mips.c: Initialise new field of bfd_target structure.
2063 * coff-ppc.c: Initialise new field of bfd_target structure.
2064 * coff-rs6000.c: Initialise new field of bfd_target structure.
2065 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2066 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
2067 * coff-tic30.c: Initialise new field of bfd_target structure.
2068 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2069 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2070 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2071 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2072 * hppabsd-core.c: Initialise new field of bfd_target structure.
2073 * hpux-core.c: Initialise new field of bfd_target structure.
2074 * i386msdos.c: Initialise new field of bfd_target structure.
2075 * i386os9k.c: Initialise new field of bfd_target structure.
2076 * ieee.c: Initialise new field of bfd_target structure.
2077 * ihex.c: Initialise new field of bfd_target structure.
2078 * irix-core.c: Initialise new field of bfd_target structure.
2079 * mipsbsd.c: Initialise new field of bfd_target structure.
2080 * netbsd-core.c: Initialise new field of bfd_target structure.
2081 * oasys.c: Initialise new field of bfd_target structure.
2082 * osf-core.c: Initialise new field of bfd_target structure.
2083 * ppcboot.c: Initialise new field of bfd_target structure.
2084 * ptrace-core.c: Initialise new field of bfd_target structure.
2085 * sco5-core.c: Initialise new field of bfd_target structure.
2086 * som.c: Initialise new field of bfd_target structure.
2087 * srec.c: Initialise new field of bfd_target structure.
2088 * tekhex.c: Initialise new field of bfd_target structure.
2089 * trad-core.c: Initialise new field of bfd_target structure.
2090 * versados.c: Initialise new field of bfd_target structure.
2091 * vms.c: Initialise new field of bfd_target structure.
2092
a9602746
AS
20931999-07-19 Andreas Schwab <schwab@suse.de>
2094
2095 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
2096 and rel_hdr.
2097
31367b81
MM
2098Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
2099
2100 * elflink.h (elf_link_adjust_relocs): New function.
2101 (elf_bfd_final_link): Use it.
2102 (elf_link_input_bfd): Deal with the fact that there can be
2103 two relocation sections for a single section.
2104 (elf_reloc_link_order): Likewise.
2105
2106 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
2107 a relocateable object.
2108 (_bfd_mips_elf_relocate_section): Handle relocateable links.
2109
f65054f7
RH
21101999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2111
2112 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
2113 (sparc64_elf_get_reloc_upper_bound,
2114 sparc64_elf_get_dynamic_reloc_upper_bound,
2115 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
2116 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
2117 New functions.
2118 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
2119 ELF64_R_TYPE_ID/DATA where appropriate.
2120
d6bcbdc1
RH
21211999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2122
2123 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
2124 DT_SPARC_PLTFMT.
2125
6387d602
ILT
21261999-07-16 Ian Lance Taylor <ian@zembu.com>
2127
2128 * elf32-mips.c (mips_elf_local_relocation_p): New static
2129 function.
2130 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
2131 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
2132 Always set *require_jalxp.
2133 (mips_elf_stub_section_p): Mark abfd parameter as unused.
2134 (_bfd_mips_elf_relocate_section): Only look for LO16 following
2135 GOT16 if the GOT16 is against a local symbol. Don't return false
2136 for an undefined symbol. If there is an overflow, assert that we
2137 have a name.
2138
318da145
AS
21391999-07-16 Andreas Schwab <schwab@suse.de>
2140
2141 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
2142 variables `link' and `elfsec'.
2143 (elf_bfd_final_link): Remove unused variable `os'.
2144
435394bf
MM
2145Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
2146
2147 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
2148 a PT_PHDR program headers.
2149 (_bfd_mips_elf_final_link): Don't assume there are going to be
2150 section symbols when we're not building a shared object.
2151 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
2152 we need one.
2153
ac352105
ILT
21541999-07-15 J.T. Conklin <jtc@redback.com>
2155
2156 * config.bfd (i[3456]86-*-vxworks*): New target.
2157
197b9ca0
MM
21581999-07-15 Mark Mitchell <mark@codesourcery.com>
2159
2160 * elf32-mips.c (mips_elf_stub_section_p): New function.
2161 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
2162 (mips_elf_relocate_section): Adjust calling sequence for
2163 mips_elf_calculate_relocation and mips_elf_perform_relocation.
2164 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
2165 required.
2166
3a6ae616
ILT
21671999-07-15 Ian Lance Taylor <ian@zembu.com>
2168
2169 * configure.in: Bump version number to 2.9.5.
2170 * configure: Rebuild.
2171
1b83fcb3
JL
2172Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
2173
2174 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
2175 64bit format.
2176 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
2177 to derive final type instead of hardwiring a selection.
2178
6296902e
MM
21791999-07-14 Mark Mitchell <mark@codesourcery.com>
2180
2181 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
2182 things relocated by R_MIPS16_GPREL.
2183 (mips_elf_perform_relocation): Likewise.
2184
2ac8ce5f
RH
2185Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
2186
2187 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
2188
b3be9b46
RH
21891999-07-14 Richard Henderson <rth@cygnus.com>
2190
2191 * elf32-mips.c (struct mips_got_info): Add global_gotno.
2192 (_bfd_mips_elf_size_dynamic_sections): Set it.
2193 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
2194 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
2195 new argument max_local.
2196
b7233c24
MM
21971999-07-14 Mark Mitchell <mark@codesourcery.com>
2198
1e52e2ee
MM
2199 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
2200 subwords when handling an R_MIPS16_26 relocation.
2201 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
2202 semantics.
2203
b7233c24
MM
2204 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
2205 dst_mask to match reality.
2206 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
2207 (mips_elf_obtain_contents): Use bfd_get.
2208 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
2209 (mips_elf_relocate_section): Likewise.
2210
e53bd91b
MM
22111999-07-13 Mark Mitchell <mark@codesourcery.com>
2212
2213 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
2214 (mips_elf_relocate_section): Adjust calling sequence for
2215 mips_elf_perform_relocation.
2216 (mips_elf_perform_relocation): Take additional argument. Handle
2217 R_MIPS16_26. Use bfd_put for convenience.
2218
28a7f3e7
RH
22191999-07-13 Richard Henderson <rth@cygnus.com>
2220
2221 * elf.c (assign_file_positions_for_segments): Thinko last change.
2222 Always overwrite p_flags.
2223
3018b441
RH
22241999-07-13 Richard Henderson <rth@cygnus.com>
2225
2226 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
2227 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
2228 .dynbss and .rel[a].bss if want_dynbss.
2229 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
2230
30b30c21
RH
22311999-07-13 Richard Henderson <rth@cygnus.com>
2232
2233 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
2234
3018b441
RH
22351999-07-13 Richard Henderson <rth@cygnus.com>
2236
30b30c21
RH
2237 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
2238 (struct elf_link_hash_table): Add dynlocal.
2239 (_bfd_elf_link_lookup_local_dynindx): Prototype.
2240 (_bfd_elf_link_adjust_dynindx): Delete.
2241 (_bfd_elf_link_renumber_dynsyms): Prototype.
2242 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
2243 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
2244 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
2245 (_bfd_elf_link_lookup_local_dynindx): New function.
2246 (elf_link_renumber_hash_table_dynsyms): New function.
2247 (_bfd_elf_link_renumber_dynsyms): New function.
2248 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
2249 (struct elf_assign_sym_version_info): Delete removed_dynamic.
2250 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
2251 instead of elf_link_remove_section_and_adjust_dynindices.
2252 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
2253 (elf_link_assign_sym_version): Remove removed_dynamic code.
2254 (elf_link_renumber_dynsyms): Delete.
2255 (elf_bfd_final_link): Install section and local symbols into .dynsym.
2256
2257 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
2258 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
2259 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
2260 * elf32-mips.c: Similarly.
2261 * elf32-ppc.c: Similarly.
2262 * elf32-sparc.c: Similarly.
2263 * elf64-alpha.c: Similarly.
2264 * elf64-sparc.c: Similarly.
2265
97a4bb05
MM
22661999-07-13 Mark Mitchell <mark@codesourcery.com>
2267
2268 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
2269 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
2270 when the relocation is against _gp_disp.
2271
a3c7651d
MM
22721999-07-12 Mark Mitchell <mark@codesourcery.com>
2273
2274 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
2275 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
2276 to possibly_dynamic_relocs. Adjust usage throughout code.
2277 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
2278 (elf_mips_ctor64_howto): Likewise.
2279 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
2280 Adjust indentation.
2281 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
2282 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
2283 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
2284 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
2285
5f771d47
ILT
22861999-07-12 Ian Lance Taylor <ian@zembu.com>
2287
67e5d3d6
ILT
2288 * Makefile.am: Rebuild dependencies.
2289 * Makefile.in: Rebuild.
2290
2291 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
2292 * bfd-in2.h: Rebuild.
2293
5f771d47
ILT
2294 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
2295 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
2296 structure initializations. Add casts.
2297 * reloc.c (EMPTY_HOWTO): Define.
2298 * bfd-in2.h: Rebuild.
2299 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
2300 comparisons against 0.
2301 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
2302 previous_ibfd_e_flags to unsigned long.
2303 * vms.h (struct vms_private_data_struct): Change section_count to
2304 unsigned.
2305 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
2306 (_bfd_vms_write_gsd): Change symnum to unsigned.
2307 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
2308 * vms-tir.c (etir_sta): Change psect to unsigned.
2309 (alloc_section): Change idx to unsigned.
2310 (tir_sta, tir_ctl): Change psect to unsigned.
2311 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
2312 * vms.c (priv_section_count): Change to unsigned.
2313
121089cb
AS
23141999-07-12 Andreas Schwab <schwab@suse.de>
2315
2316 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
2317 * m68klinux.c: Likewise.
2318
e049a0de
ILT
23191999-07-12 Ian Lance Taylor <ian@zembu.com>
2320
2321 * Many files: Changes to avoid gcc warnings: Remove unused local
2322 variables. Add default case to enum switches.
2323 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
2324 compile if not COFF_IMAGE_WITH_PE.
2325 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
2326 (bfd_arm_get_bfd_for_interworking): Likewise.
2327 (bfd_arm_process_before_allocation): Likewise.
2328 * epoc-pei-arm.c: Don't rename bfd_arm functions.
2329 * pei-arm.c: Likewise.
2330 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
2331 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
2332 (mips_elf_got16_entry): Put parens around & in body of ==.
2333 (mips_elf_calculate_relocation): Correct test for empty string.
2334 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
2335 stderr.
2336 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
2337 format.
2338
3a99b017
ILT
23391999-07-11 Ian Lance Taylor <ian@zembu.com>
2340
7442e600
ILT
2341 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
2342 as appropriate. Fill in structure initializations. Add variable
2343 initializations. Add casts.
2344 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
2345 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
2346
3a99b017
ILT
2347 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
2348 char *.
2349 * elf-bfd.h (bfd_elf_hash): Update declaration.
2350 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
2351 when calling bfd_elf_hash.
2352
65388f2d
MM
23531999-07-11 Mark Mitchell <mark@codesourcery.com>
2354
9ebbd33e
MM
2355 * libbfd.c (bfd_put_8): Make it of type `void'.
2356 * bfd-in2.h: Regenerated.
2357 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
2358 for 32-bit hosts.
2359 (_bfd_mips_elf_final_link): Likewise.
2360
65388f2d
MM
2361 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
2362
5b4e2818
JL
2363Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
2364
2365 * config.bfd (hppa*-*-linux-gnu*): New target
2366
c7ac6ff8
MM
23671999-07-07 Mark Mitchell <mark@codesourcery.com>
2368
103186c6
MM
2369 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
2370 (_bfd_mips_elf_create_dynamic_sections): New function.
2371 (_bfd_mips_elf_add_symbol_hook): Likewise.
2372 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
2373 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
2374 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
2375 (_bfd_mips_elf_gc_mark_hook): Likewise.
2376 (_bfd_mips_elf_gc_sweep_hook): Likewise.
2377 (_bfd_mips_elf_always_size_sections): Likewise.
2378 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2379 (_bfd_mips_elf_check_relocs): Likewise.
2380 (_bfd_mips_elf_link_hash_table_create): Likewise.
2381 (_bfd_mips_elf_print_private_data): Likewise.
2382 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
2383 (_bfd_mips_elf_final_link): Likewise.
2384 (_bfd_mips_elf_additional_program_headers): Likewise.
2385 (_bfd_mips_elf_modify_segment_map): Likewise.
2386 (_bfd_mips_elf_relocate_section): Likewise.
2387 * elf32-mips.c (mips_elf32_object_p): Move contents into
2388 _bfd_mips_elf_object_p.
2389 (mips_elf_additional_program_headers): Rename to
2390 _bfd_mips_elf_additional_program_headers.
2391 (mips_elf_modify_segment_map): Rename to
2392 _bfd_mips_elf_modify_segment_map.
2393 (elf_mips_abi_name): Change prototype.
2394 (mips_elf32_section_from_shdr): Merge into
2395 _bfd_mips_elf_section_from_shdr.
2396 (mips_elf32_section_processing): Merge into
2397 _bfd_mips_elf_section_processing.
2398 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
2399 the right back-end ELF linker.
2400 (mips_elf_relocate_section): Rename to
2401 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
2402 (mips_elf_link_output_symbol_hook): Rename to
2403 _bfd_mips_elf_link_output_symbol_hook.
2404 (mips_elf_create_dynamic_section): Rename to
2405 _bfd_mips_elf_create_dynamic_section.
2406 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
2407 Adjust for 64-bit code. Use mips_elf_got_section.
2408 (mips_elf_adjust_dynamic_symbol): Rename to
2409 _bfd_mips_elf_adjust_dynamic_symbol. Use
2410 mips_elf_allocate_dynamic_relocations.
2411 (mips_elf_finish_dynamic_symbol): Rename to
2412 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
2413 Adjust for 64-bit code.
2414 (mips_elf_finish_dynamic_sections): Rename to
2415 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
2416 (mips_elf_always_size_sections): Rename to
2417 _bfd_mips_elf_always_size_sections.
2418 (mips_elf_add_symbol_hook): Rename to
2419 _bfd_mips_elf_add_symbol_hook.
2420 (mips_elf_next_lo16_addend): Constify.
2421 (mips_elf_calculate_relocation): Likewise.
2422 (mips_elf_obtain_contents): Likewise.
2423 (mips_elf_perform_relocation): Likewise.
2424 (mips_elf_create_dynamic_relocation): Likewise.
2425 (mips_elf_allocate_dynamic_relocations): New function.
2426 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
2427 (MIPS_ELF_REL_SIZE): Likewise.
2428 (MIPS_ELF_DYN_SIZE): Likewise.
2429 (MIPS_ELF_GOT_SIZE): Likewise.
2430 (MIPS_ELF_SYM_SIZE): Likewise.
2431 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
2432 (MIPS_ELF_GET_WORD): Likewise.
2433 (MIPS_ELF_PUT_WORD): Likewise.
2434 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
2435 (STUB_LW): Conditionalize for 64-bit value.
2436 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
2437 entries.
2438 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
2439 Check it for inconsistency.
2440 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
2441 ABI.
2442 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
2443 .msym.
2444 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
2445 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
2446 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
2447 (mips_elf_local_got_index): Likewise.
2448 (mips_elf_got_page): Likewise.
2449 (mips_elf_got_info): Likewise.
2450 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
2451 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
2452 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
2453 instead of constant `2'.
2454 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
2455 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
2456 (mips_elf_size_dynamic_sections): Use
2457 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
2458 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
2459 Adjust all releveant entries in elf backend table.
2460 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
2461 (mips_elf64_section_processing): Likewise.
2462 Adjust elf backend entries to use _bfd_mips_elf variants now
2463 publicly available.
2464
c7ac6ff8
MM
2465 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
2466 hash-entry sizes.
2467 (size_dynamic_sections): Likewise.
2468 (elf_link_output_extsym): Likewise.
2469 * elf.c: (elf_fake_sections): Likewise.
2470 * libbfd.c (bfd_get): New macro.
2471 (bfd_put): Likewise.
2472 * bfd-in2.h: Regenerated.
2473
24741999-07-07 Mark Mitchell <mark@codesourcery.com>
2475
2476 * elf-bfd.h (elf_size_info): Add hash_entry_size,
2477 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
2478 wap_reloca_in, and swap_reloca_out.
2479 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
2480 multiple internal relocations per external relocation.
2481 (link_read_relocs): Likewise.
2482 (elf_bfd_final_link): Likewise.
2483 (elf_link_input_bfd): Likewise.
2484 (elf_gc_mark): Likewise.
2485 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2486 * elfcode.h (elf_swap_dyn_out): Adjust type to match
2487 elf_swap_dyn_in.
2488 (size_info): Add entries for new fields.
2489 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
2490 (mips_elf64_be_swap_reloc_in): New function.
2491 (mips_elf64_be_swap_reloc_out): Likewise.
2492 (mips_elf64_be_swap_reloca_in): Likewise.
2493 (mips_elf64_be_swap_reloca_out): Likewise.
2494 (mips_elf64_size_info): Add entries for new fields.
2495
0525d26e
ILT
24961999-07-07 Ian Lance Taylor <ian@zembu.com>
2497
2498 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
2499 field equals the new rel_count field.
2500 (elf_link_input_bfd): When doing a relocateable link, use the new
2501 rel_count field rather than the reloc_count field.
2502 (elf_reloc_link_order): Likewise.
2503 (elf_finish_pointer_linker_section): Likewise.
2504
2505 Based on patch from H.J. Lu <hjl@gnu.org>:
2506 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
2507 shared library to override a weak definition in a regular object.
2508
9db37001
JL
2509Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
2510
27ac83bf 2511 * libhppa.h: Revert July 2, 1999 patch.
37afc161 2512
9db37001
JL
2513 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
2514 need to generate DLTIND relocations, not DLTREL relocations.
2515
752149a0
NC
25161999-07-05 Nick Clifton <nickc@cygnus.com>
2517
478d07d6
NC
2518 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
2519 architectures.
2520 (coff_set_flags): Recognise arm 5 architectures.
2521
2522 * cpu-arm.c: Add support for strongarm and arm9 cpus.
2523 Add support for armv5 architecture.
2524
2525 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
2526
752149a0
NC
2527 * reloc.c: Add new, assembler only, ARM reloc:
2528 BFD_RELOC_ARM_ADRL_IMMEDIATE.
2529
2530 * bfd-in2.h: Regenerate.
2531
5e38c3b8
MM
25321999-07-02 Mark Mitchell <mark@codesourcery.com>
2533
2534 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
2535 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
2536 * elf.c (_bfd_elf_find_nearest_line): Pass it.
2537 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
2538 * elf32-mips.c (ABI_64_P): New macro.
2539 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
2540 (_bfd_mips_elf_find_nearest_line): Adjust call to
2541 _bfd_dwarf2_find_nearest_line.
2542 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2543 * libbfd.h: Regenerated.
2544
4766cbee
ILT
25451999-07-02 Ian Lance Taylor <ian@zembu.com>
2546
2547 * config.bfd: Add * at the end of i[3456]86-*-unixware.
2548
2a6d0fe7
JL
2549Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
2550
2551 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
2552 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
2553
23bc299b
MM
25541999-07-01 Mark Mitchell <mark@codesourcery.com>
2555
2556 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
2557 fields.
2558 (_bfd_elf_init_reloc_shdr): New function.
2559 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
2560 bfd_alloc followed by memset.
2561 (_bfd_elf_init_reloc_shdr): New function, split out from ...
2562 (elf_fake_sections): Here.
2563 (assign_section_numbers): Assign section numbers for the second
2564 relocation section, if required.
2565 * elflink.h (elf_link_output_relocs): New function.
2566 (elf_link_size_reloc_section): Likewise.
2567 (elf_bfd_final_link): Use elf_link_size_reloc_section.
2568 (elf_link_input_bfd): Use elf_link_output_relocs.
2569
2570 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
2571 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
2572
17bb48e0
JL
2573Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
2574
2575 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
2576 with 22bit format.
2577
7403cb63
MM
25781999-06-28 Mark Mitchell <mark@codesourcery.com>
2579
2580 * elf32-mips.c (mips_elf_got_info): Move declaration before
2581 prototypes. Change global_gotsym to be a pointer to a hash entry,
2582 rather than a number index.
2583 (mips_elf_link_hash_entry): Move declaration before prototypes.
2584 (mips_elf_irix6_finish_dynamic_symbol): New function.
2585 (mips_elf_sign_extend): Likewise.
2586 (mips_elf_high): Likewise.
2587 (mips_elf_higher): Likewise.
2588 (mips_elf_highest): Likewise.
2589 (mips_elf_global_got_index): Likewise.
2590 (mips_elf_local_got_index): Likewise.
2591 (mips_elf_got_offset_from_index): Likeiwse.
2592 (mips_elf_record_global_got_symbol): Likewise.
2593 (mips_elf_got_page): Likewise.
2594 (mips_elf_next_lo16_addend): Likewise.
2595 (mips_elf_calculate_relocation): Likewise.
2596 (mips_elf_obtain_contents): Likewise.
2597 (mips_elf_perform_relocation): Likewise.
2598 (mips_elf_assign_gp): Likewise.
2599 (mips_elf_sort_hash_table_f): Likewise.
2600 (mips_elf_sort_hash_table): Likewise.
2601 (mips_elf_got_section): Likewise.
2602 (mips_elf_got_info): Likewise.
2603 (mips_elf_create_local_got_entry): Likewise.
2604 (mips_elf_got16_entry): Likewise.
2605 (mips_elf_create_dynamic_relocation): Likewise.
2606 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
2607 (mips_elf_final_gp): Use mips_elf_assign_gp.
2608 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
2609 into SHN_SCOMMON automatically on IRIX6.
2610 (mips_elf_add_symbol_hook): Likewise.
2611 (mips_elf_relocate_section): Rewrite, using
2612 mips_elf_calculate_relocation and mips_elf_perform_relocation.
2613 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
2614 Don't deal with .rld_map on IRIX6.
2615 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
2616 section flags appropriately for .got.
2617 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
2618 the got. Call mips_elf_record_global_got_symbol and allocate
2619 local got space appropriately.
2620 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
2621 char *. Rework calculation of GOT size. Sort dynamic symbol
2622 table entries so entries that do not require GOT entries appear at
2623 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
2624 code dealing with DT_INIT and DT_FINI. Remove fiddling with
2625 global_gotsym.
2626 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
2627 entries.
2628 (mips_elf_finish_dynamic_symbol): Use
2629 mips_elf_irix6_finish_dynamic_symbol.
2630 (mips_elf_finish_dynamic_sections): Correct off-by-one error
2631 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
2632 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
2633
0dda5f7a
ILT
26341999-06-30 Ian Lance Taylor <ian@zembu.com>
2635
2636 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
2637 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
2638
04f7c78d
NC
26391999-06-04 Philip Blundell <philb@gnu.org>
2640
2641 * elf32-arm.h (elf_backend_got_header_size): Define.
2642 (elf_backend_plt_header_size): Likewise.
2643
a72747a3
NC
26441999-06-28 Jim Pick <jim@jimpick.com>
2645
2646 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
2647
caf3d37c
JL
2648Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
2649
2650 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
2651 relocation function.
2652 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
2653
9886bd43
MM
26541999-06-27 Mark Mitchell <mark@codesourcery.com>
2655
303f629d
MM
2656 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
2657 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
2658 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
2659 (_bfd_mips_elf_section_from_shdr): Use them.
2660 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
2661 of GP-relative sections.
2662 (_bfd_mips_elf_set_section_contents): Use them.
2663 (_bfd_mips_elf_section_processing): Share code between .sdata and
2664 .lit4/.lit8 sections. Set appropriate flags for .srdata.
2665 (mips_elf_additional_program_headers): Add handling for
2666 PT_MIPS_OPTIONS segment on IRIX6.
2667 (mips_elf_modify_segment_map): Likeiwse.
2668 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
2669 Include the options sections on IRIX6. Don't look for GP-relative
2670 sections by name; use SHF_MIPS_GPREL instead.
2671 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
2672 the N32 ABI.
2673 (mips_elf_create_dynamic_sections): Don't muck about with section
2674 alignments and such on IRIX6.
2675 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
2676 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
2677 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
2678 bfd_zalloc rather than bfd_alloc and memset.
2679 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
2680 Don't assert the existence of .rld_map on IRIX6.
2681 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
2682
9886bd43
MM
2683 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
2684 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
2685 instead.
2686
a94a7c1c
MM
26871999-06-26 Mark Mitchell <mark@codesourcery.com>
2688
c6142e5d
MM
2689 * elf32-mips.c (mips_elf_swap_msym_in): New function.
2690 (mips_elf_swap_msym_out): New function.
2691 (mips_elf_create_msym_section): Likewise.
2692 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
2693 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
2694 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
2695 section not named .msym.
2696 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
2697 .msym directly. Set appropriate attributes for the .msym
2698 section.
2699 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
2700 (mips_elf_link_hash_newfunc): Clear it.
2701 (mips_elf_create_dynamic_sections): Create the .msym section
2702 on IRIX6.
2703 (mips_elf_size_dynamic_sections): Allocate space for the
2704 .msym section. Add a DT_MIPS_MSYM entry.
2705 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
2706 the symbol.
2707 (mips_elf_finish_dynamic_sections): Assign a value for
2708 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
2709
a94a7c1c
MM
2710 * elf32-mips.c (irix_compat_t): New enumeration.
2711 (ABI_N32_P): New macro.
2712 (IRIX_COMPAT): Likewise.
2713 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
2714 (mips_elf_relocate_section): Fix typo.
2715
254f5c45
ILT
27161999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
2717
2718 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
2719 as writable PE sections.
2720
f623be2b
RH
27211999-06-26 David Mosberger <davidm@hpl.hp.com>
2722
2723 * dwarf2.c (struct arange): New type.
2724 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
2725 (arange_add): New function.
2726 (decode_line_info): Keep track of address ranges that a compilation
2727 unit covers.
2728 (comp_unit_contains_address): Return true if address is contained
2729 in _any_ of the address ranges associated with a compilation unit.
2730 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
2731 on the first comp_unit that contains the address.
2732
69dd2e2d
RH
27331999-06-26 David Mosberger <davidm@hpl.hp.com>
2734
2735 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
2736 (decode_line_info): Add variable STASH and initialize it to point
2737 to the per-bfd dwarf2_debug info. Remove static variable
2738 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
2739
0429ebd0
ILT
27401999-06-26 Ian Lance Taylor <ian@zembu.com>
2741
1d7b28df
ILT
2742 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
2743 shared library to have an undefined symbol.
2744
0429ebd0
ILT
2745 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
2746 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
2747
4517897e
JL
2748Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
2749
2750 * elf-hppa.c (elf_hppa_final_write_processing): New function.
2751 * elf32-hppa.c: Remove everything related to symbol extension
2752 sections & records. Use the common elf_hppa_final_write_processing.
2753
f0c2e336
MM
27541999-06-22 Mark Mitchell <mark@codesourcery.com>
2755
2756 * elflink.h (size_dynamic_sections): Use user-specified init/fini
2757 functions instead of _init/_fini if requested.
2758
03ae5f59
ILT
27591999-06-23 Ian Lance Taylor <ian@zembu.com>
2760
2761 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
2762 field.
2763
464e1740
ILT
27641999-06-22 Ian Lance Taylor <ian@zembu.com>
2765
2766 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
2767 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
2768 field to 0, not -1.
2769 (ppc_elf_finish_dynamic_sections): Check for positive section
2770 dynindx field, rather than comparing against -1.
2771 (ppc_elf_relocate_section): Only return false if undefined_symbol
2772 or reloc_overflow fail, not always upon encountering an error.
2773
2f5116e2
MM
27741999-06-22 Mark Mitchell <mark@codesourcery.com>
2775
2776 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
2777 bfd_byte * before performing pointer arithmetic.
2778
9e103c9c
JL
2779Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
2780
2781 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
2782 support.
2783 * elf32-hppa.c: Include elf-hppa.h.
2784 (ARCH_SIZE): Define.
2785 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
2786 now.
2787 (elf32_hppa_info_to_howto): Similarly.
2788 (elf_hppa_howto_table): Similarly.
2789 (elf_hppa_reloc_type_lookup): Similarly.
2790 (hppa_elf_gen_reloc_type): Similarly.
2791 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
2792
232fb1a3
NC
27931999-06-22 Nick Clifton <nickc@cygnus.com>
2794
2795 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
2796 handling R_V850_22_PCREL relocation.
2797
271025eb
ILT
27981999-06-21 Ian Lance Taylor <ian@zembu.com>
2799
2800 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
2801 type.
2802
0bde07d4
RH
2803Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
2804
2805 * section.c (_bfd_strip_section_from_output): Ignore sections
2806 DISCARDed by the link script.
2807
f800e11d
ILT
28081999-06-19 Ian Lance Taylor <ian@zembu.com>
2809
2810 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
2811 Remove unused local variable spp.
2812
2813 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
2814 the entry symbol is not set.
2815
72b60c23
RH
2816Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
2817
2818 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
2819 GPDISP or LITUSE in a relocatable link.
2820
aec89efb
JR
2821Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2822
2823 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
2824 * (alloc_dwarf1_func): Likewise.
2825
5ba624b0
JL
2826Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
2827
2828 * libhppa.h: Fix various formatting errors.
2829 (assemble_3); Rewrite using CATENATE.
2830 (assemble_17): Fix various bugs.
2831
59d23ada
NC
28321999-06-16 Nick Clifton <nickc@cygnus.com>
2833
2834 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
2835
0c3ff40b
RH
28361999-06-15 Richard Henderson <rth@cygnus.com>
2837
2838 * section.c (SEC_SHORT): Define.
2839 * bfd-in2.h: Rebuild.
2840
42751cf3
MM
28411999-06-13 Mark Mitchell <mark@codesourcery.com>
2842
78de0b43
MM
2843 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
2844 Remove abfd parameter. Use _bfd_strip_section_from_output.
2845 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
2846
42751cf3
MM
2847 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
2848 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
2849 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
2850 function.
2851 (bfd_elf_size_dynamic_sections): Use it.
2852
3e269912
ILT
28531999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
2854
2855 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
2856 complain_overflow_bitfield to complain_overflow_signed.
2857
6b5bd373
MM
28581999-06-13 Mark Mitchell <mark@codesourcery.com>
2859
2860 * elflink.h (elf_link_read_relocs_from_section): New function,
2861 split out from ...
2862 (elf_link_read_relocs): Here. Use it for both relocation
2863 sections.
2864
57e21bef
MM
28651999-06-12 Mark Mitchell <mark@codesourcery.com>
2866
2867 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
2868 asect->reloc_count is valid.
2869
cc3bfcee
ILT
28701999-06-12 Ian Lance Taylor <ian@zembu.com>
2871
2872 * elf32-mips.c (mips_elf32_section_processing): Permit a
2873 SHT_MIPS_REGINFO section to have a size of 0.
2874
7a50d4ac
ILT
28751999-06-12 David O'Brien <obrien@freebsd.org>
2876
2877 * config.bfd (alpha*-*-freebsd*): New target.
2878 (i[3456]86-*-freebsd*): Now defaults to ELF.
2879
f5f9cc4f
ILT
28801999-06-11 Ian Lance Taylor <ian@zembu.com>
2881
44257b8b
ILT
2882 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
2883 wrap if the relocation covers the high bit of an address.
2884
f5f9cc4f
ILT
2885 * dwarf2.c (decode_line_info): Remove unused variable first_time.
2886
60dac299
RH
28871999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
2888
2889 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
2890 instead of R_SPARC_max.
2891 (sparc64_elf_info_to_howto): Likewise.
2892 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
2893 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
2894
9d7428a9
RH
28951999-06-07 Richard Henderson <rth@cygnus.com>
2896
2897 * section.c (_bfd_strip_section_from_output): Remove output
2898 sections with no initial link_order.
2899
3c82f80f
NC
29001999-06-07 Nick Clifton <nickc@cygnus.com>
2901
2902 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
2903
eb519dff
AS
2904Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2905
2906 * Makefile.am (SOURCE_HFILES): Add missing headers.
2907 * Makefile.in: Regenerated.
2908
7f7e7b68
MM
29091999-06-06 Mark Mitchell <mark@codesourcery.com>
2910
2911 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
2912 the N32 ABI.
2913
dc1bc0c9
RH
29141999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2915
2916 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
2917 range undefweak symbols.
2918 * hash.c: Add missing comma after @xref{}
2919 * linker.c: Likewise.
2920
79e5982f
NC
29211999-06-04 Nick Clifton <nickc@cygnus.com>
2922
2923 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
2924 if not defined.
2925 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
2926 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
2927 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
2928 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
2929
4a54b465
ILT
29301999-06-04 Ian Lance Taylor <ian@zembu.com>
2931
2932 * Makefile.am: Rebuild dependencies.
2933 (BFD32_BACKENDS): Add dwarf1.lo.
2934 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
2935 * Makefile.in: Rebuild.
2936
7714a18c
NC
29371999-06-04 Nick Clifton <nickc@cygnus.com>
2938
2939 * Makefile.am: Add epoc-arm-pe target.
2940 * Makefile.in: Regenerate.
2941 * pe-arm.c: Only redefine interworking function names if they have
2942 not already been redefined.
2943 * pei-arm.c: Only redefine interworking function names if they have
2944 not already been redefined.
2945 * epoc-pe-arm.c: Redefine interworking function names to avoid a
2946 name space clash.
2947 * epoc-pei-arm.c: Redefine interworking function names to avoid a
2948 name space clash.
2949
dece4658
NC
29501999-06-03 Nick Clifton <nickc@cygnus.com>
2951
2952 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
2953
a9d024b8
AS
2954Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2955
2956 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
2957
06e1ba78
JR
2958Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2959
2960 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
2961 start / stop for recalculating of r_addend of R_SH_SWITCH*.
2962
084aa3aa
JR
2963Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2964
2965 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
2966 in other text sections.
2967
875f7f69
JR
2968Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2969
2970 * libbfd.c (_bfd_generic_verify_endian_match): New function.
2971 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
2972 * libbfd.h: Regenerate.
2973 * coff-sh.c (sh_merge_private_data): Delete.
2974 (coff_bfd_merge_private_bfd_data): Change to
2975 _bfd_generic_verify_endian_match.
2976 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
2977
6a9d5c9a
UD
29781999-06-03 Ulrich Drepper <drepper@cygnus.com>
2979
2980 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
2981
a3e38ad3
ILT
29821999-06-03 Ian Lance Taylor <ian@zembu.com>
2983
2984 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
2985 prototype.
2986 (bfd_elf32_arm_process_before_allocation): Likewise.
2987 * bfd-in2.h: Rebuild.
2988
159002ff
RH
29891999-06-03 David Mosberger <davidm@hpl.hp.com>
2990
2991 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
2992 track of end_sequence markers.
2993 (add_line_info): Add END_SEQUENCE arg.
2994 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
2995 debug-line info---it doesn't work right if a compilation unit
2996 consists of multiple discontiguous code-sequences. It would be
2997 worthwhile to optimize for the common case where a compilation
2998 unit results in a contiguous set of code sequences, but this is
2999 quite tricky to get right for arbitrary DWARF2 files.
3000 (lookup_address_in_line_info_table): Don't use the last line entry
3001 for a compilation unit for anything with an address higher than
3002 this line entry. Also, check for end_sequence markers to
3003 correctly handle discontinuities.
3004 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
3005 compilation units, check all compilation units with each->high==0
3006 just like when reading compilation units.
3007
3008 * dwarf2.c (decode_line_info): Initialize table->files and
3009 table->last_line to NULL to avoid segfaults due to random
3010 values in these members.
3011 (concat_filename): Check for out-of-range file number before
3012 indexing filename table. Segfaults suck.
3013
3014 * dwarf2.c (decode_line_info): Don't truncate address to least
3015 significant 32 bits (breaks 64 bit targets).
3016 (lookup_address_in_function_table): Ditto.
3017 (comp_unit_contains_address): Ditto.
3018
42fdc509
MM
30191999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
3020
3021 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
3022 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
3023 (mips_elf64_howto_table_rela): Likewise.
3024
3025 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
3026 split out from ...
3027 (elf_slurp_reloc_table): Here. Use it to handle the case where a
3028 single section has two associated relocation sections.
6a9d5c9a 3029
9d8cefa9
RH
30301999-06-02 Mark Salter <msalter@cygnus.com>
3031
3032 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
3033 COFF_WITH_PE defined.
3034
c9fca91d
NC
30351999-06-02 Nick Clifton <nickc@cygnus.com>
3036
3037 * pe-arm.c: Rename global arm interworking functions to avoid name
3038 collision when all targets BFD is built.
3039 * pei-arm.c: Ditto.
3040
bf572ba0
MM
30411999-05-31 Mark Mitchell <mark@codesourcery.com>
3042
3043 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
3044 may_use_rel_p, may_use_rela_p, default_use_rela_p.
3045 (bfd_elf_section_data): Add use_rela_p.
3046 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
3047 (_bfd_elf_new_section_hook): Likewise.
3048 (elf_fake_sections): Use may_use_rela_p, etc., instead of
3049 use_rela_p.
3050 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
3051 * elfcode.h (write_relocs): Determine whether or not use rela
3052 relocs based on the relocation section header.
3053 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
3054 instead of use_rela_p.
3055 * elfxx-target.h (elf_backend_may_use_relp): New macro.
3056 (elf_backend_may_use_rela_p): Likewise.
3057 (elf_backend_default_use_rela_p): Likewise.
3058 (elfNN_bed): Use them.
6a9d5c9a 3059
3fe702fd
RH
3060Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
3061
3062 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
3063
3f830999
MM
3064Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
3065
3066 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
3067 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
3068 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
3069 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
3070 * bfd-in2.h: Regenerated.
3071 * libbfd.h: Likewise.
3072 * elf32-mips.c (mips_info_to_howto_rela): New function.
3073 (USE_REL): Adjust for new conventions.
3074 (MINUS_ONE): New macro.
3075 (elf_mips_howto_table): Add R_MIPS_SUB.
6a9d5c9a 3076 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3f830999
MM
3077 and MIPS_GOT_DISP.
3078 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
3079 .MIPS.content section.
3080 (_bfd_mips_elf_fake_sections): Treat all sections that begin
3081 with .MIPS.content as .MIPS.content sections. Set
3082 SHF_MNIPS_NOSTRIP for such section.
3083 (elf_info_to_howto): Define to mips_info_to_howto_rela.
3084 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
3085 MIPS_GOT_OFST, and MIPS_GOT_DISP.
3086
70f06c4a
AS
3087Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3088
015985c9
AS
3089 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
3090 variable.
3091
70f06c4a 3092 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
6a9d5c9a 3093 `else'.
70f06c4a 3094
2ef994e0
NC
30951999-05-30 Philip Blundell <philb@gnu.org>
3096
3097 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
3098 1993-03-25 (!!). Take into account the bitmasks for the reloc so
3099 the addend does not overflow into the rest of the word.
3100
ba96a88f
NC
31011999-05-29 Nick Clifton <nickc@cygnus.com>
3102
3103 * bfd-in.h: Amend prototype for
3104 bfd_elf32_arm_process_before_allocation .
3105 * bfd-in.h: Regenerate.
6a9d5c9a 3106
ba96a88f
NC
3107 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
3108 elements in a fixed sized array.
3109 (ARM_ELF_ABI_VERSION): Define.
3110 (ARM_ELF_OS_ABI_VERSION): Define.
3111 (R_ARM_THM_ABS5): Fix rightshift and size.
3112 (R_ARM_THM_PC22): Fix size.
3113 (R_ARM_PLT32): Define Howto.
3114 (find_howto): New function: Locate a howto based on a reloc
3115 number.
3116 (elf32_arm_info_to_howto): Use find_howto if necessary.
3117 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3118 bfd_reloc_code_real_type.
3119 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
3120 and BFD_RELOC_VTABLE_ENTRY.
3121 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
3122
3123 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
3124 elements in a fixed sized array.
3125 (ARM_ELF_ABI_VERSION): Define.
3126 (ARM_ELF_OS_ABI_VERSION): Define.
3127 (R_ARM_THM_ABS5): Fix rightshift and size.
3128 (R_ARM_THM_PC22): Fix size.
3129 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
3130 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3131 bfd_reloc_code_real_type.
3132
3133 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
3134 no_pipeline_knowledge.
3135 (elf32_arm_link_hash_create): Initialise new field to zero.
3136 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
3137 no_pipeline_knowledge. Use this parameter to initialise the field
3138 in the globals data structure.
3139 (elf32_arm_final_link_relocate): Only add in pipeline offset if
3140 no_pipeline_knowledge is false and the binary is from an old
3141 toolchain.
3142 (elf32_arm_merge_private_data): Generate an error if an attempt is
3143 made to linl together big endian and little endian code.
3144 (elf32_arm_post_process_headers): New function: Initialise the
3145 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
6a9d5c9a 3146 header.
ba96a88f
NC
3147 (elf_backend_post_process_headers): Define.
3148
e6c51ed4
NC
31491999-05-28 Nick Clifton <nickc@cygnus.com>
3150
3151 * elf-bfd.h (struct elf_backend_data): Add new field:
3152 elf_backend_post_process_headers.
3153
3154 * elfxx-target.h (elf_backend_post_process_headers): Define to
3155 NULL if not already defined.
6a9d5c9a 3156 (elfNN_bed): Initialise elf_backend_post_process_headers field.
e6c51ed4
NC
3157
3158 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
3159 to zero.
3160 (_bfd_elf_compute_section_file_positions): Call
6a9d5c9a 3161 elf_backend_post_process_headers if defined.
e6c51ed4 3162
633fd09f
ILT
31631999-05-28 Ian Lance Taylor <ian@zembu.com>
3164
3165 * configure.in: Check whether getuid and getgid exist.
3166 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
3167 HAVE_GETGID are not defined, respectively.
3168 (bfd_write_armap): Don't special case on _WIN32 for getuid and
3169 getgid.
3170 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
3171 * configure, config.in: Rebuild.
3172
b2ef150d
ILT
31731999-05-28 Martin Dorey <mdorey@madge.com>
3174
3175 * elf32-i960.c: New file.
3176 * elf.c (prep_headers): Handle bfd_arch_i960.
3177 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
3178 * config.bfd (i960-*-elf*): New target.
3179 * configure.in (bfd_elf32_i960_vec): New target vector.
3180 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
3181 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
3182 * Makefile.in, aclocal.m4, configure: Rebuild.
3183
5f97aa0c
NC
31841999-05-27 Nick Clifton <nickc@cygnus.com>
3185
3186 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
6a9d5c9a 3187 R_ARM_PLT32.
5f97aa0c
NC
3188 (find_howto): New function: Find entries in the
3189 elf32_arm_howto_table.
3190 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
3191 computed simply.
3192 (elf32_arm_reloc_type_lookup): Add lookup for
6a9d5c9a 3193 BFD_RELOC_ARM_PLT32.
5f97aa0c 3194
780a67af
NC
31951999-05-25 Philip Blundell <pb@nexus.co.uk>
3196
3197 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
3198 (elf32_arm_link_hash_table_create): Use above function as the
3199 constructor for hash table entries.
3200 (elf32_arm_relocate_section): Avoid crash when there is no output
6a9d5c9a 3201 section.
780a67af
NC
3202 (elf32_arm_final_link_relocate): New parameter h.
3203 (elf32_arm_relocate_section): Pass symbol hash entry to above
3204 routine.
3205 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
3206 comments.
6a9d5c9a 3207
fa0e42e4 32081999-05-25 Catherine Moore <clm@cygnus.com>
6a9d5c9a 3209
27ac83bf
RH
3210 * coff-arm.c (coff_arm_relocate_section): Don't emit
3211 base file entries for pc-relative values.
6a9d5c9a 3212
93dfcdf0
DD
32131999-05-25 DJ Delorie <dj@cygnus.com>
3214
3215 * peicode.h (coff_swap_sym_in): When we create the actual section
3216 to reflect the not-there section C_SECTION symbols refer to,
3217 change the symbol class to C_STAT as the section is now really
3218 there.
3219
db65e864
NC
32201999-05-24 Philip Blundell <pb@nexus.co.uk>
3221
3222 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
3223 1999-03-25.
3224
948221a8 3225Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
f6886bc4 3226
948221a8
NC
3227 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
3228 F_PIC_INT to F_PIC.
3229 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
3230 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
6a9d5c9a 3231
1349dd65
NC
32321999-05-16 Nick Clifton <nickc@cygnus.com>
3233
3234 * coff-mcore.c (in_reloc_p): Reinstate.
3235
36797d47
NC
32361999-05-15 Nick Clifton <nickc@cygnus.com>
3237
3238 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
3239 * bfd-in2.h: Regenerate.
3240 * coff-mcore.c (in_reloc_p): Remove defintion.
3241 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
3242 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
3243 IMAGE_REL_MCORE_RVA.
3244 (coff_mcore_rtype_to_howto): Add special processing for
3245 IMAGE_REL_MCORE_RVA.
3246 (coff_mcore_relocate_section): Add support for
6a9d5c9a 3247 IMAGE_REL_MCORE_RVA.
36797d47
NC
3248 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
3249 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
3250 R_MCORE_RELATIVE.
6a9d5c9a
UD
3251 (mcore_elf_relocate_section): Delete redundant case labels.
3252
97eaf9de
AS
3253Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3254
3255 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
3256 precedence between bit-and and comparison.
3257
2e9a84c8
RH
3258Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
3259
3260 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
3261 list of target formats (targ_selvecs).
3262 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
3263 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
3264
ec0ef80e
DD
32651999-05-10 DJ Delorie <dj@cygnus.com>
3266
3267 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
3268 reasonable mode until "ar x" is smart enough to skip it (fixes
3269 gcc/libgcc.a builds on mips-ecoff targets
3270
3271 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
3272 to work. Hack to support MS import libraries, which use different
3273 COMDAT types than GNU.
3274 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
3275 to implied zero-length sections (see peicode below)
3276 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
3277 filename symbols, which use one *or more* auxents.
3278 * coffswap.h (coff_swap_aux_in): ditto
3279 * peicode.h (coff_swap_sym_in): Build the implied zero-length
3280 sections
6a9d5c9a 3281
5c746d90
JL
3282Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
3283
3284 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
3285 for all relocations.
3286
ba1b9317
CM
32871999-05-10 Catherine Moore <clm@cygnus.com>
3288
27ac83bf
RH
3289 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
3290 if COFF_IMAGE_WITH_PE.
3291 (bfd_arm_process_before_allocation): Likewise.
3292 (bfd_arm_get_bfd_for_interworking): Likewise.
3293 * coff-arm.c: Likewise.
3294 * bfd-in2.h: Regenerate.
3295 * configure.in (armpe_little_vec): Remove coff-arm.lo.
3296 (armpe_big_vec): Likewise.
3297 * configure: Rebuild.
ba1b9317 3298
c1f6bc03
NC
32991999-05-10 Nick Clifton <nickc@cygnus.com>
3300
3301 * elf.c (elf_fake_sections): Check for .rel. as start of rel
3302 section, not just .rel. Same for .rela.
3303
b23f908b
NC
33041999-05-07 Nick Clifton <nickc@cygnus.com>
3305
3306 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
3307 endianism with an error message.
3308
7fafc0fd
RH
3309Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
3310
3311 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
3312 assignment from "unsigned char *" to "char *".
3313 (decode_line_info): Likewise for dwarf_line_buffer assignment.
3314
b44267fd
CM
33151999-05-05 Catherine Moore <clm@cygnus.com>
3316
27ac83bf
RH
3317 * coff-arm.c (coff_arm_relocate_section): Add one to
3318 address of ARM_RVA32 thumb functions.
6a9d5c9a 3319
b44267fd 33201999-05-05 Catherine Moore <clm@cygnus.com>
6a9d5c9a 3321
27ac83bf
RH
3322 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
3323 (elf32_m68k_copy_private_bfd_data): New.
3324 (elf32_m68k_merge_private_bfd_data): New.
3325 (elf32_m68k_print_private_bfd_data): New.
3326 (CPU32_FLAG): Define.
3327 (PLT_CPU32_ENTRY_SIZE): Define.
3328 (elf_cpu32_plt0_entry): Declare.
3329 (elf_cpu32_plt_entry): Declare.
3330 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
3331 (elf_m68k_finish_dynamic_symbol): Likewise.
3332 (elf_m68k_finish_dynamic_sections): Likewise.
3333 (elf_backend_plt_header_size): Remove definition.
3334 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3335 (bfd_elf32_bfd_merge_private_bfd_data): Define.
3336 (bfd_elf32_bfd_set_private_flags): Define.
3337 (bfd_elf32_bfd_print_private_bfd_data): Define.
6a9d5c9a 3338
ac79f2f3
JL
3339Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
3340
3341 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
3342 and R_LONG_PCREL_MODE.
3343
252b5132
RH
33441999-04-29 Nick Clifton <nickc@cygnus.com>
3345
3346 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
3347
3348Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
3349
3350 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
3351 in relocation calculation.
3352
33531999-04-26 Tom Tromey <tromey@cygnus.com>
3354
3355 * aclocal.m4, configure: Updated for new version of libtool.
3356
33571999-04-21 Nick Clifton <nickc@cygnus.com>
3358
3359 * coff-mcore.c: Add support for mcore relocs.
3360
33611999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
3362
3363 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
3364 incorrect use EF_MIPS_xxBITPTRS.
3365
33661999-04-18 Ian Lance Taylor <ian@zembu.com>
3367
3368 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
3369 variable insn.
3370
3371 * bfd-in2.h: Rebuild.
3372 * libbfd.h: Rebuild.
3373
3374Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
6a9d5c9a 3375
252b5132
RH
3376 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
3377 (coff_arm_relocate_section): Add ARM26D transform. Only
3378 change to ARM26D for relocateable links.
3379
33801999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
3381
3382 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
3383 (bfd_elf32_bfd_print_private_bfd_data): New.
3384
33851999-04-15 Doug Evans <devans@casey.cygnus.com>
3386
3387 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
3388 refetch addend if USE_REL, add many comments regarding current state.
3389 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
3390 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
3391 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
3392 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
3393
3394Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
3395
3396 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
3397 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
3398
33991999-04-13 David Mosberger <davidm@hpl.hp.com>
3400
3401 * dwarf2.c (decode_line_info): Don't truncate address to least
3402 significant 32 bits (breaks 64 bit targets).
3403 (lookup_address_in_function_table): Ditto.
3404 (comp_unit_contains_address): Ditto.
3405
3406Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
3407
3408 * coff-arm.c (arm_emit_base_file_entry): New routine.
3409 (A2T3_OFFSET): Define.
3410 (T2A3_OFFSET): Define.
3411 (coff_arm_relocate_section): Emit base file entries for interworking
3412 stubs.
3413
34141999-04-13 Philip Blundell <philb@gnu.org>
3415
3416 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
3417 relocs 17 through 19.
3418
3419Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
3420
3421 * elfcode.h: Remove fnmatch.h.
3422 * elflink.h (elf_link_assign_sym_version): Call back to ld
3423 instead of calling fnmatch.
3424
3425 * config.bfd (i?86-*-beoself): Include pe vecs.
3426
3427Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
3428
3429 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
3430 to go missing.
3431
34321999-04-10 Richard Henderson <rth@cygnus.com>
3433
3434 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
3435 when trying to resolve dynamic symbol references.
3436 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3437 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3438 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3439 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3440 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3441 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3442 * elflink.h (elf_link_output_extsym): Likewise.
3443
3444Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
3445
3446 * section.c (_bfd_strip_section_from_output): New function moved from
3447 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
3448 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
3449 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3450 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
3451 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3452 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3453 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3454 * bfd-in2.h: Update.
3455
34561999-04-09 Ian Lance Taylor <ian@zembu.com>
3457
3458 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
3459
34601999-04-08 Nick Clifton <nickc@cygnus.com>
3461
3462 * coff-mcore.c: New File: Support for mcore-pe targets.
3463 * cpu-mcore.c: New File: Support for mcore targets.
3464 * elf32-mcore.c: New File: Support for mcore-elf target.
3465 * pe-mcore.c: New File: Definitions for mcore-pe target.
3466 * pei-mcore.c: New File: Definitions for mcore-pei target.
3467 * Makefile.am: Add support for MCore targets.
3468 * Makefile.in: Regenerate.
3469 * config.bfd: Add support for MCore targets.
3470 * configure.in: Add support for MCore targets.
3471 * configure: Regenerate.
3472 * archures.c: Add support for MCore architecture.
6a9d5c9a 3473 * bfd-in2.h: Regenerate.
252b5132
RH
3474 * coffcode.h: Add support for mcore-pe targets.
3475 * elf.c: Add support for mcore-elf target.
3476 * reloc.c: Add support for MCore relocs.
3477 * targets.c: Add support for MCore targets.
3478
34791999-04-07 Nick Clifton <nickc@cygnus.com>
3480
3481 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
3482 R_ARM_XPC25 and R_ARM_THM_XPC22.
3483 (elf32_arm_reloc_map): Remove redundant entries.
3484
34851999-04-06 Ian Lance Taylor <ian@zembu.com>
3486
3487 * sysdep.h (LC_MESSAGES): Never define.
3488
34891999-04-06 Chris Torek <torek@bsdi.com>
3490
3491 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
3492 all callers. Rewrite completely.
3493 (_bfd_relocate_contents): Rewrite overflow checking.
3494 * bfd-in2.h: Rebuild.
3495
34961999-04-05 Ian Lance Taylor <ian@zembu.com>
3497
3498 From Gabriel Paubert <paubert@iram.es>:
3499 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
3500 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
3501 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
3502 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
3503 * ppcboot.c (ppcboot_vec): Use little endian routines for
3504 headers.
3505
3506 * elf.c (elfcore_strndup): Only define if it will be used.
3507 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
3508 and irelend.
3509 (ppc_elf_check_relocs): Remove unused local i.
3510 (ppc_elf_gc_mark_hook): Add default case to switch.
3511
3512 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
3513 * srec.c (srec_scan): Accept \r in symbol definitions.
3514 (srec_object_p): Set HAS_SYMS if we saw any symbols.
3515 (symbolsrec_object_p): Likewise.
3516
35171999-04-04 Don Bowman <don@pixsci.com>
3518
3519 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
3520
35211999-04-04 Ian Lance Taylor <ian@zembu.com>
3522
3523 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
3524 last_line.
3525 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
3526 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
3527 switch.
3528 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
3529 local i.
3530 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
3531 local val.
3532
35331999-03-31 Nick Clifton <nickc@cygnus.com>
3534
3535 * config.bfd: Add support for arm-epoc-pe target.
3536 * configure.in: Add support for arm-epoc-pe target.
3537 * configure: Regenerate.
3538 * targets.c: Add support for arm-epoc-pe target.
3539 * coff-arm.c: Allow header files to override definition of
3540 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
3541 * pe-arm.h: Allow previous header files to override definition of
3542 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6a9d5c9a 3543 * pei-arm.h: Allow previous header files to override definition of
252b5132
RH
3544 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
3545 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
3546 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
6a9d5c9a 3547
252b5132
RH
35481999-03-30 Nick Clifton <nickc@cygnus.com>
3549
3550 * elf.c (elf_map_symbols): Handle the case where section
3551 symbols are generated for content-less sections which are
3552 not mapped to the output file.
3553
3554 * linker.c: Replace direct references to fields in BFD structure
3555 with accessor macros.
3556
3557 * elflink.h: Replace direct references to fields in BFD structure
3558 with accessor macros.
3559
35601999-03-25 Philip Blundell <pb@nexus.co.uk>
3561
3562 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
6a9d5c9a
UD
3563
3564 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
252b5132
RH
3565 account when adjusting section symbols during a partial link.
3566
35671999-03-24 Nick Clifton <nickc@cygnus.com>
3568
3569 * coff-sparc.c (struct coff_reloc_map): Change type of field
3570 'bfd_reloc_val' to bfd_reloc_code_real_type.
3571 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
3572 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
3573 * elf32-arc.c (struct arc_reloc_map): Ditto.
3574 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
3575 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
3576 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
3577 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
3578 * elf32-sh.c (struct elf_reloc_map): Ditto.
3579 * elf32-sparc.c (struct elf_reloc_map): Ditto.
3580 * elf32-v850.c (struct v850_reloc_map): Ditto.
3581 * elf64-sparc.c (struct elf_reloc_map): Ditto.
3582 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
3583 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
3584
35851999-03-17 Martin Hunt <hunt@cygnus.com>
3586
3587 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
3588 function so source-level assembly works. If multiple N_SOs
3589 are seen without and N_FUNs, create an indextable entry with
3590 a NULL function name.
3591
35921999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
3593
3594 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
3595 of certian similar cpus.
3596
35971999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
3598
3599 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
3600 Add the 5000. Change the architecture for the 5400 to mips4.
3601 (elf_mips_mach): Add r5000.
3602
36031999-03-11 Doug Evans <devans@casey.cygnus.com>
3604
3605 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
3606
36071999-03-11 Nick Clifton <nickc@cygnus.com>
3608
3609 * binary.c (binary_set_section_contents): Generate warning about
3610 huge file offsets for any section that will occupy file space, not
3611 just those that are loadable.
3612
36131999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
3614
3615 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
3616
36171999-02-22 Jim Lemke <jlemke@cygnus.com>
3618
3619 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
3620
3621Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
3622
3623 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
3624 * elflink.h: Revert all changes since Feb 16. Instead:
3625 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
3626 appropriate. Copy it to version symbols.
3627 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
3628 symbols if appropriate.
3629 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
3630 symbol if appropriate.
3631 (elf_link_output_extsym): If symbol is marked as undefined, and
3632 has no nonweak references, mark it as weak undefined.
3633
3634Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
3635
3636 * elflink.h (elf_merge_symbol): When overriding a dynamic
3637 definition with a weak undefined symbol, set NEEDS_PLT if it is a
3638 function.
3639 (elf_link_add_object_symbols): Don't copy the other field if we
3640 are overridding.
3641
3642Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
3643
3644 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
3645 shared object with a weak undefined symbol.
3646
36471999-02-18 Nick Clifton <nickc@cygnus.com>
3648
3649 * elfarm-nabi.c: Set partial_inplace back to false.
3650
36511999-02-17 Nick Clifton <nickc@cygnus.com>
3652
3653 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
3654 (USER_LABEL_PREFIX): Set to "_".
3655
3656 The following patches are from: Scott Bambrough
3657 <scottb@corelcomputer.com>
6a9d5c9a 3658
252b5132
RH
3659 * libaout.h (M_ARM6_NETBSD): Set to 143.
3660
3661 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
3662 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
3663 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
3664 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
3665 * bfd-in2.h: Regenerate.
3666
3667 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
3668 'true' as REL relocs are now being used. Add new PIC relocs:
3669 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
3670 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
3671
3672 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
3673 of targets.
3674 (elf32_arm_final_link_relocate): Change parameters so that entire
3675 reloc is passed. Add support for PIC relocs.
3676 (elf32_arm_relocate_section): Pass entire reloc to
6a9d5c9a 3677 elf32_arm_final_link_relocate.
252b5132
RH
3678 (elf32_arm_check_relocs): Handle new PIC relocs.
3679 (elf32_arm_adjust_dynamic_symbol): New function.
3680 (elf32_arm_size_dynamic_sections): New function.
3681 (elf32_arm_discard_copies): New function.
3682 (elf32_arm_finish_dynamic_symbol): New function.
3683 (elf32_arm_finish_dynamic_sections): New function.
3684 (ELF_MAXPAGE_SIZE): Define.
3685 (bfd_elf32_bfd_reloc_type_lookup): Define.
3686 (elf_backend_relocate_section): Define.
3687 (elf_backend_adjust_dynamic_symbol): Define.
3688 (elf_backend_create_dynamic_sections): Define.
3689 (elf_backend_finish_dynamic_symbol): Define.
3690 (elf_backend_finish_dynamic_sections): Define.
3691 (elf_backend_size_dynamic_sections): Define.
3692 (elf_backend_plt_readonly): Define.
3693 (elf_backend_want_got_plt): Define.
3694 (elf_backend_want_plt_sym): Define.
6a9d5c9a 3695
252b5132
RH
3696Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
3697
3698 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
3699 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
3700 (_bfd_mips_elf_fake_sections): Likewise.
3701
3702Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6a9d5c9a 3703
27ac83bf
RH
3704 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
3705 bfd_elf32_arm_get_bfd_for_interworking,
3706 bfd_elf32_arm_process_before_allocation): Define to avoid clash
3707 with elfarm-nabi.c.
6a9d5c9a 3708
27ac83bf
RH
3709 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
3710 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
3711 elf32_arm_find_nearest_line): Make them static.
252b5132
RH
3712
3713Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
3714
3715 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
3716 callers. Do not merge a definition from a shared object with a
3717 weak undefined symbol.
3718 (elf_link_add_object_symbols): Do not change the symbol type or
3719 size if the old symbol overrides the new one.
3720
37211999-02-08 Nick Clifton <nickc@cygnus.com>
3722
3723 * config.bfd: Add support for strongarm target.
3724
3725Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3726
3727 * elf32-m68k.c (reloc_map): Use the correct types for the struct
3728 fields instead of unsigned char.
3729
3730Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
3731
3732 * Makefile.am: Rebuild dependencies.
3733 * Makefile.in: Rebuild.
3734
3735Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
3736
3737 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
3738 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
3739 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
3740 * acinclude.m4: Add comments to uses of AC_DEFINE.
3741 * acconfig.h: Remove.
3742 * configure: Rebuild with current autoconf/automake.
3743 * aclocal.m4: Likewise.
3744 * config.in: Likewise.
3745 * Makefile.in: Likewise.
3746
37471999-02-04 DJ Delorie <dj@cygnus.com>
3748
3749 * libbfd.c (real_read): don't call fread for zero bytes. This
3750 covers up a bug (or misuse of bfd) that's exposed by Solaris.
3751
3752Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
3753
3754 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
3755 of a jump is in the current 256 MB region.
3756
3757Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
3758
3759 * format.c (bfd_check_format_matches): Change last patch to only
3760 take effect for the binary target.
3761
3762Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
3763
3764 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
3765
3766Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
3767
3768 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
3769
3770Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
3771
3772 * format.c (bfd_check_format_matches): If the target was
3773 previously specified, don't check other targets when checking for
3774 an archive file.
3775
3776Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
3777
27ac83bf
RH
3778 * elf32-arm.h (elf32_arm_reloc_map): Removed.
3779 (elf32_arm_reloc_type_lookup): Removed
3780 * elfarm-nabi.c (elf32_arm_reloc_map): New.
3781 (elf32_arm_reloc_type_lookup): New.
3782 * elfarm-oabi.c (elf32_arm_reloc_map): New.
3783 (elf32_arm_reloc_type_lookup): New.
252b5132
RH
3784
3785Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
3786
27ac83bf
RH
3787 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
3788 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
3789 * Makefile.am: Use new files.
3790 * Makefile.in: Regenerate.
3791 * configure.in: Use new files.
3792 * configure: Regenerate.
252b5132
RH
3793
37941999-02-01 Nick Clifton <nickc@cygnus.com>
3795
3796 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
3797 (fr30_elf_gc_sweep_hook): New function.
3798 (elf_backend_can_gc_sections): Define.
3799
3800Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
3801
27ac83bf
RH
3802 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
3803 and bfd_elf32_bigarm_oabi_vec.
252b5132
RH
3804
3805Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
3806
27ac83bf
RH
3807 * Makefile.am (elf32-arm-oldabi.lo): New.
3808 (elf32-arm-newabi.lo): New.
3809 * Makefile.in: Regenerate.
3810 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
3811 (arm-*-elf): Likewise.
3812 (arm-*-oabi): New.
3813 (thumb-*-oabi): New.
3814 * configure: Regenerate.
3815 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
3816 (bfd_elf32_bigarm_oabi_vec): New.
3817 * elf32-arm-newabi.c: New.
3818 * elf32-arm-oldabi.c: New.
3819 * elf32-arm.c: Removed.
3820 * elf32-arm.h: New.
252b5132
RH
3821
3822Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
3823
3824 * binary.c (binary_set_section_contents): Omit warnings for
3825 unloadable sections.
3826
38271999-01-31 Michael Meissner <meissner@cygnus.com>
3828
3829 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
3830 powerpc{,le}-*-eabi.
3831
38321999-01-29 Nick Clifton <nickc@cygnus.com>
3833
3834 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
3835 * dwarf2.c (read_signed_leb128): Remove unused variables.
3836
3837Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
3838
3839 * elf.c (assign_file_positions_for_segments): Only adjust
3840 p_align when needed.
3841
3842Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
3843
3844 * binary.c (binary_set_section_contents): Don't return early for a
3845 non-loadable section, in case the first section is non-loadable.
3846 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
3847 W. Rozycki <macro@ds2.pg.gda.pl>.
3848
38491999-01-28 Nick Clifton <nickc@cygnus.com>
3850
3851 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
3852 R_FR30_GNU_VTENTRY relocs.
3853
3854Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
3855
3856 * elflink.h (elf_link_output_sym): Zero syms which are
3857 part of sections which have been excluded.
3858
3859Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
3860
3861 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
3862 to F_PIC_INT.
3863 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
3864 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6a9d5c9a 3865
252b5132
RH
38661999-01-27 Nick Clifton <nickc@cygnus.com>
3867
3868 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6a9d5c9a 3869 relocation.
252b5132 3870 (fr30_final_link_relocate): Use computed value as result of
6a9d5c9a 3871 relocation.
252b5132
RH
3872
38731999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3874
3875 * binary.c (binary_set_section_contents): Emit warning for
3876 huge file offsets due to widely-dispersed section LMAs.
3877
3878Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
3879
3880 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
3881 align first section to largest section alignment, not first
3882 section alignment.
3883
38841999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3885
3886 * configure.in: Require autoconf 2.12.1 or higher.
3887
3888Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
3889
27ac83bf
RH
3890 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
3891 * bfd-in2.h: Likewise.
3892 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
252b5132
RH
3893
38941998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
3895
3896 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
3897 * cpu-mips.c: Add support for and independent 4111.
3898 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6a9d5c9a 3899 (_bfd_mips_elf_final_write_processing):
252b5132
RH
3900 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
3901
39021998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
3903
3904 * elf32-mips.c (elf_mips_abi_name): New.
3905 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
3906
39071998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
3908
6a9d5c9a 3909 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
252b5132
RH
3910 Handle bfd_mach_mips4300.
3911
39121998-12-11 Ulrich Drepper <drepper@cygnus.com>
3913
3914 * elf32-i386.c: Remove leaked development code from patch
3915 1998-12-10 by Richard Henderson.
3916
39171998-12-10 Richard Henderson <rth@cygnus.com>
3918
3919 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
3920 in debug sections for symbol defined externally.
3921
3922Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3923
3924 * targets.c (bfd_target_vector): Remove duplicate entry for
3925 tekhex_vec.
3926
39271998-12-09 Nick Clifton <nickc@cygnus.com>
3928
3929 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
3930 since we are using RELAs.
3931
3932Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
3933
3934 SCO Open Server Release 5 core file support, from Jouke Numan
3935 <jnuman@hiscom.nl>:
3936 * sco5-core.c: New file.
3937 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
3938 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
3939 * Makefile.am: Rebuild dependencies.
3940 (OPTIONAL_BACKENDS): Add sco5-core.lo.
3941 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
3942 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
3943 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
3944 * bfd-in2.h, configure, Makefile.in: Rebuild.
3945
3946Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
3947
3948 * config.bfd (hppa*-*-mpeix*): New target.
3949 * configure.in: Add AC_HEADER_DIRENT.
3950 (hppa*-*-mpeix*): New target.
3951 * configure.host (hppa*-*-mpeix*): New host.
3952 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
3953 friends rather than just including <sys/dir.h>.
3954 * som.h (struct som_symbol): Add hppa_priv_level and apto
3955 tc_data. Change all users.
3956 (struct somdata): Add comp_unit field.
3957 (obj_som_compilation_unit): Define.
3958 (bfd_som_attach_compilation_unix): Declare.
3959 * som.c: Check HOST_HPPAMPEIX.
3960 (struct som_misc_symbol_info): Add new field priv_level.
3961 (som_object_setup): Add current_offset parameter. Change all
3962 callers.
3963 (setup_sections): Likewise.
3964 (som_object_p): For EXECLIBMAGIC, read the lst header.
3965 (som_write_symbol_strings): Add compilation_unit parameter.
3966 Change all callers.
3967 (som_finish_writing): Write out compilation_unit.
3968 (som_bfd_derive_misc_symbol_info): Set priv_level.
3969 (som_build_and_write_symbol_table): Set xleast field to 3.
3970 (som_slurp_symbol_table): Set symbol priv_level.
3971 (bfd_som_attach_compilation_unit): New function.
3972 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
3973 priv_level into symbol_value.
3974 * configure, config.in: Rebuild.
3975
3976Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
3977
3978 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
3979 warning function to call _bfd_error_handler instead.
3980
3981 * libbfd.c (COERCE32): Cast through unsigned long and long to
3982 avoid bug in old version of gcc.
3983
3984 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
3985 (elf_backend_additional_program_headers): Don't define.
3986
39871998-12-08 Nick Clifton <nickc@cygnus.com>
3988
3989 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
3990 relocations to include offset of 2 included in the insns, and the
3991 offset of the relocs within the section.
3992
3993Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
3994
3995 The following changes were made by David Taylor
3996 <taylor@texas.cygnus.com>, Edith Epstein
3997 <eepstein@sophia.cygnus.com>, Jim Blandy
3998 <jimb@zwingli.cygnus.com>, and Elena Zannoni
3999 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
4000 changes originally made by HP; HP did not create ChangeLog
4001 entries.
4002
4003 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
4004 automake macro library.
4005
4006 * hpux-core.c (hpux_core_core_file_p): this function now
4007 understands HPUX 10.30 thread info. Yes, the thread stacks can be
4008 found in the corefile! Also, in hpux_core_core_file_p, if we
4009 encounter a section with an unknown type, don't punt. Instead,
4010 just skip it. Also, count the number of sections of known type
4011 that we encounter. If we encounter at least one good one, then
4012 we'll declare that the file is a core file. If we encounter any
4013 unknown ones but some known ones, then we'll issue a warning (but
4014 still declare it to be a core file). Also, correctly decide when a
4015 file is not a core.
4016 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
4017 (CORE_ANON_SHMEM): define if not defined.
4018 (hpux_core_struct): add members lwpid and user_tid.
4019 (core_kernel_thread_id, core_user_thread_id): new macros.
4020 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
4021 the name before storing it in the bfd.
4022 (hpux_core_core_file_p): handle threads.
4023
4024 * libhppa.h (GET_FIELD): protect against redefinition.
4025 (HPPA_WIDE): define.
4026 (GET_FIELD): define.
4027 (GET_BIT): define.
4028 (MASK): define.
4029 (CATENATE): define.
4030 (ELEVEN): define.
4031 (sign_extend): redefine.
4032 (assemble_6): define.
4033 (assemble_12): rewrite.
4034 (assemble_16): define.
4035 (assemble_16a): define.
4036 (assemble_17): rewrite.
4037 (assemble_22): define.
4038
40391998-12-07 Nick Clifton <nickc@cygnus.com>
4040
4041 * elf32-fr30.c (fr30_final_link_relocate): Using signed
4042 relocations for signed values.
4043
4044Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
4045
4046 * mipsbsd.c (MY(set_arch_mach)): Make static.
4047 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
4048 bfd_mach_mips* macros rather than simple numbers.
4049
4050 COFF weak symbol support, based on patches from Mark Elbrecht
4051 <snowball3@usa.net>:
4052 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
4053 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
4054 (coff_write_alien_symbol): Likewise.
4055 * cofflink.c (coff_link_check_ar_symbols): Likewise.
4056 (coff_link_add_symbols): Likewise.
4057 (_bfd_coff_link_input_bfd): Likewise.
4058 (_bfd_coff_write_global_sym): Likewise.
4059
4060 * elf.c (copy_private_bfd_data): Always initialize the
4061 includes_phdrs field.
4062
4063 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
4064 file defines a symbol first mentioned in an ELF file.
4065
4066 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
4067 possible, rather than only if BFD64.
4068 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
4069 not __GNUC__.
4070 * bfd-in2.h: Rebuild.
4071
4072 * srec.c (srec_set_section_contents): Correct test to avoid
4073 switching to 4 byte addresses after seeing a second section which
4074 requires 3 byte addresses. From Joel Schantz
4075 <joel.schantz@argosys.boeing.com>.
4076
4077 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
4078 <aymeric.vincent@emi.u-bordeaux.fr>.
4079
40801998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
4081
4082 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
4083 decide whether the output file is -mrelocatable-lib,
4084 -mrelocatable, or neither. (gdb.base/nodebug.exp)
4085
40861998-12-03 Nick Clifton <nickc@cygnus.com>
4087
4088 * elf32-fr30.c: Add support for R_FR30_48 reloc.
4089 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
4090 * bfd-in2.h: Regenerate.
4091 * libbfd.h: Regenerate
4092
4093Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
4094
4095 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
4096 link against a dynamic symbol with no type or size.
4097
40981998-12-01 Ulrich Drepper <drepper@cygnus.com>
4099
4100 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
4101 relocation for section which does not get loaded.
4102 (elf_i386_relocate_section) [R_386_32]: Likewise.
4103
4104Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
4105
4106 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
4107 reloc_count and i long instead of unsigned long. Handle error
4108 return from bfd_canonicalize_reloc.
4109
41101998-12-01 Nick Clifton <nickc@cygnus.com>
4111
4112 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
4113 a hash table.
4114
4115Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4116
4117 * elf32-sh.c (elf/sh.h): Include.
4118 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
4119 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
4120 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
4121 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4122 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
4123
4124Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
4125
4126 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
4127 causes division by zero later on.
4128
4129Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
4130
4131 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
4132 needed.
4133
41341998-11-25 DJ Delorie <dj@cygnus.com>
4135
4136 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
4137 hook now.
4138
4139Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
4140
4141 * elf32-fr30.c (fr30_elf_relocate_section): Call
4142 fr30_final_link_relocate.
4143 (fr30_final_link_relocate): New function: Handle I20 and I32
4144 relocs.
4145 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
4146 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
4147 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
4148
4149 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
4150 chain to empty.
4151
4152 The following changes are based on a patch submitted by Gianluca
4153 Moro <glctr@abc.it>:
4154
4155 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
4156 not already been updated.
4157 (find_remembered_hi16s_reloc): New parameter 'already_found'
4158 returns state of remembered hi16s reloc.
4159 (remember_hi16s_reloc): Set 'found' field to false.
4160 (hi16s_location): Add 'found' field.
4161
41621998-11-23 DJ Delorie <dj@cygnus.com>
4163
4164 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
4165 to see .DLL files as unrecognized.
4166 (i3coff_object_p): Sorry, had to hack it to not recognize these
4167 files (pei-i386) on request.
4168
41691998-11-23 DJ Delorie <dj@cygnus.com>
4170
4171 * opncls.c (bfd_make_readable): need more cleanup for symbols and
4172 relents. Call bfd_check_format to reinitialize.
4173
4174Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
4175
4176 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
4177 warnings.
4178
4179Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
4180
4181 * aclocal.m4: regenerate
4182 * configure: regenerate
4183
4184Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
4185
4186 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
4187 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
4188 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
4189 respect it as an upper bound on what memory to reference.
4190 (elf_gc_smash_unused_vtentry_relocs): Likewise.
4191 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
4192 update vtable_entries_size appropriately.
4193
4194Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
4195
4196 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
4197 reloc number.
4198
4199Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
4200
4201 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
4202 bfds; they have no "file" so we fake it.
4203 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
4204 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
4205 resizing the memory buffer.
4206 * opncls.c (bfd_make_writable): New function; lets you write a
4207 bfd_create'd bfd to an in-memory buffer.
4208 (bfd_make_readable): New function; lets you read back that buffer
4209 as if it were from bfd_openr. Used to build generated archive
4210 members (winsup's ld's dlltool)
4211
4212Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
4213
4214 * po/bfd.pot: Regenerated.
4215
4216Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
4217
4218 * elf32-v850.c (hi16s_location): Replaced fixed size array with
4219 linked list.
4220
4221Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
4222
4223 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
4224 element of the gotentry list for local symbols too.
4225 (elf64_alpha_relocate_section): Unify local and global handling.
4226 Assert that gotent->use_count > 0.
4227
4228Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
4229
4230 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
4231 update for file name changes of July 2, 1998.
4232 (vms_vax_vec): New.
4233 * configure: Rebuild.
4234
4235Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
4236
4237 * po/bfd.pot: Regenerated.
4238
4239Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
4240
4241 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
4242 * aclocal.m4, configure: regenerate
4243
4244Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
4245
4246 * elf.c (prep_headers): Add support for bfd_arch_fr30.
4247
4248Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
4249
4250 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
4251 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
4252 was cached.
4253 * aclocal.m4, configure: regenerated.
4254
4255Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
4256
27ac83bf
RH
4257 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
4258 R_D10V_GNU_VTENTRY relocs.
4259 (elf_d10v_howto_table): Likewise.
4260 (d10v_reloc_map d10v_reloc_map): Likewise.
4261 (elf32_d10v_gc_mark_hook): New.
4262 (elf32_d10v_gc_sweep_hook): New.
4263 (elf32_d10v_check_relocs): New.
4264 (elf32_d10v_relocate_section): New.
4265 (elf_backend_relocate_section): Define.
4266 (elf_backend_can_gc_sections): Define.
252b5132
RH
4267
4268Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
4269
4270 * Makefile.am (BFD32_BACKENDS): Move vms files here...
4271 (BFD64_BACKENDS): ...from here.
4272 (BFD32_BACKENDS_CFILES): Move vms files here...
4273 (BFD64_BACKENDS_CFILES): ...from here.
4274 * Makefile.in: Rebuild.
4275
4276Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
4277
4278 * Makefile.am: Add FR30 target.
4279 * Makefile.in: Add FR30 target.
4280 * archures.c: Add support for FR30.
4281 * config.bfd: Add support for FR30.
4282 * configure.in: Add support for FR30.
4283 * reloc.c: Add support for FR30 relocations.
4284 * targets.c: Add support for FR30 relocations.
4285 * bfd-in2.h: Regenerate.
4286 * configure: Regenerate.
4287 * libbfd.h: Regenerate.
4288 * cpu-fr30.c: New file.
4289 * elf32-fr30.c: New file.
4290
4291Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
4292
4293 * configure.in: detect cygwin* instead of cygwin32*
4294 * configure: regenerate
4295
4296Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
4297
4298 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
4299 use bfd_malloc and free instead and check return value from bfd_malloc.
4300
4301Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
4302
4303 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
4304 * libbfd.h: Rebuild.
4305
4306 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
4307 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
4308 (MIPS_TEXT_DYNSYM_SECN): Likewise.
4309 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
4310 section.
4311 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
4312 field.
4313 (mips_elf_link_hash_table_create): Don't initialize
4314 dynsym_sec_strindex.
4315 (mips_elf_gc_mark_hook): Add default case to avoid warning.
4316 (mips_elf_size_dynamic_sections): Generate a section symbol for
4317 every output section.
4318 (mips_elf_finish_dynamic_sections): Count all sections for
4319 DT_MIPS_UNREFEXTNO.
4320 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
4321 output sections.
4322
4323Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
4324
4325 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
4326 for later PLT entries in large PLTs.
4327 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
4328
4329Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
4330
4331 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
4332
43331998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
4334
4335 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
4336 * elflink.h (elf_collect_hash_codes): New function. This function is
4337 called for each exported symbol and we compute the ELF hash value for
4338 it.
4339 (compute_bucket_value): New function. It is called from
4340 size_dynamic_sections to determine the hash table size. When we are
4341 optimizing a better, but slower, algorithm is used.
4342 (size_dynamic_sections): Call compute_bucket_value.
4343
4344 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
4345
4346Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
4347
27ac83bf
RH
4348 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
4349 R_SH_GNU_VTENTRY.
4350 (sh_elf_gc_mark_hook): New.
4351 (sh_elf_gc_sweep_hook): New.
4352 (sh_elf_check_relocs): New.
4353 (elf_backend_can_gc_sections): Define.
252b5132
RH
4354
4355Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
4356
4357 * acinclude.m4: undo previous gettext change
4358 * aclocal.m4: rebuild with right version of aclocal.
4359
4360Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
4361
4362 * acinclude.m4, aclocal.m4: move gettext-related fragments from
4363 aclocal.m4 to acinclude.m4, so they don't get lost.
4364
4365 * elfcore.h: rewrite for better corefile support.
4366 * elf.c (elfcore_*): new functions.
4367 * elf-bfd.h (elf_obj_tdata): new structure members.
4368 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
4369 flavor of procfs.
4370 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
4371
4372Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
4373
27ac83bf
RH
4374 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
4375 and R_M32R_GNU_VTENTRY.
4376 (elf_backend_can_gc_sections): Define.
4377 (m32r_elf_check_relocs): New.
4378 (m32r_elf_gc_mark_hook): New.
4379 (m32r_elf_gc_sweep_hook): New.
4380 (m32r_elf_relocate_section): Handle VT relocs.
252b5132
RH
4381
4382Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
4383
4384 * coff-arm.c (arm_relocate_section): Remove redundant test.
4385
4386 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
4387 cleat that the 'bitsize' field is the size of the bitfield AFTER
4388 relocation not before.
4389
4390 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
4391
4392 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
4393 relocs.
4394
4395Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
4396
27ac83bf
RH
4397 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
4398 R_SPARC_GNU_VTENTRY.
4399 (elf32_sparc_check_relocs): Handle them.
4400 (elf32_sparc_reloc_type_lookup): Likewise.
4401 (elf32_sparc_relocate_section): Likewise.
4402 (elf32_sparc_gc_mark_hook): New.
4403 (elf32_sparc_gc_sweep_hook): New.
252b5132
RH
4404
4405Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
4406
4407 * som.c (som_finish_writing): Perform some sanity checks when
4408 writing an executable or shared library.
4409
4410Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
4411
4412 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
4413 * configure.in (elf): Add dwarf1.lo.
4414 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
4415 * elf.c (_bfd_elf_find_nearest_line): Add call to
4416 _bfd_dwarf1_find_nearest_line.
4417 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
4418 Add call to _bfd_dwarf1_find_nearest_line.
4419 * configure: Rebuilt.
4420
4421Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
4422
27ac83bf
RH
4423 * elflink.h (elf_gc_sections): Do not allow garbage
4424 collection if dynamic sections have been created.
252b5132
RH
4425
4426Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
4427
27ac83bf
RH
4428 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
4429 R_V850_GNU_VTENTRY.
4430 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
4431 (v850_elf_perform_relocation): Likewise.
4432 (v850_elf_final_link_relocate): Likewise.
4433 (v850_elf_relocate_section): Likewise.
4434 (v850_elf_gc_sweep_hook): New routine.
4435 (v850_elf_gc_mark_hook): New routine.
4436 (elf_backend_can_gc_sections): Define.
252b5132
RH
4437
4438Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
4439
27ac83bf
RH
4440 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
4441 that dynobj exists.
252b5132
RH
4442
4443Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
4444
4445 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
4446 Declare size as bfd_size_type.
4447 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
4448
4449Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
4450
4451 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
4452 structure.
4453 * som.c (CPU_PA_RISC2_0): Define.
4454 (_PA_RISC2_0_ID): Likewise.
4455 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
4456
4457Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
4458
4459 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
4460 has a base which is already defined, only add the referenced
4461 symbol to the dynamic symbol table if it is defined or referenced
4462 by a regular file.
4463
4464 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
4465 correctly.
4466
44671998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4468
27ac83bf 4469 * elflink.h (elf_link_add_object_symbols): Undo last change.
252b5132
RH
4470
4471Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
4472
27ac83bf
RH
4473 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
4474 symbol for the indirect alias to a versioned symbol.
252b5132
RH
4475
4476Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
4477
27ac83bf
RH
4478 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
4479 (elf32_i386_vtentry_howto): New.
4480 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
4481 or elf32_i386_vtinherit_howto on lookup.
252b5132
RH
4482
4483Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4484
4485 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
4486 reloc_type. Rename R_68K__max to R_68K_max.
4487 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
4488 reloc.
4489
4490Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
4491
4492 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
4493 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
4494
4495 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
4496 after.
4497
4498Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
4499
4500 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
4501 message has a null byte terminator.
4502
4503Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
4504
4505 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
4506 word subject to R_V850_32 relocation.
4507
4508Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
4509
4510 * dwarf2.c: Add comment describing problem computing line numbers
4511 for undefined symbols at link time.
4512
4513Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
4514
27ac83bf
RH
4515 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
4516 transform a defweak into a plt entry.
4517 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
4518 plt entry references to receive a RELATIVE reloc.
4519 (elf64_alpha_finish_dynamic_symbol): Fill them in.
4520 (elf64_alpha_relocate_section): Assert we don't overrun
4521 the allocated relocation space.
252b5132
RH
4522
4523Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
4524
4525 * elf.c (swap_out_syms): Always treat section symbols as
4526 special, even if they are attached to a common section.
4527
4528Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
4529
4530 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
4531 sections with v850 common section attributes into named v850
4532 common sections.
4533 (v850_elf_add_symbol_hook): Move symbols in sections with v850
4534 common section attributes into named v850 common sections.
4535
4536Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
4537
27ac83bf
RH
4538 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
4539 statement.
252b5132
RH
4540
45411998-09-15 Geoff Keating <geoffk@ozemail.com.au>
4542
4543 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
4544 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
4545 reloc to the wrong section a warning, not an error. .dynsbss
4546 is not an output section, so there is no need to check for it.
4547
4548Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
4549
4550 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
4551
4552Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
4553
4554 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
4555 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
4556 R_ARM_GNU_VTENTRY.
4557 (elf32_arm_gc_mark_hook): New.
4558 (elf32_arm_gc_sweep_hook): New.
4559 (elf32_arm_check_relocs): New.
4560 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
4561 relocations.
4562 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
4563 relocations.
4564
45651998-09-10 Geoff Keating <geoffk@ozemail.com.au>
4566
27ac83bf
RH
4567 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
4568 assume there is no PLT or GOT.
252b5132
RH
4569
4570Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
4571
4572 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
4573 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
4574 also accepted as a function symbol type.
4575
4576Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4577
4578 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
4579
4580Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
4581
4582 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
4583 match definition of _bfd_gc_sections field.
4584 * libbfd.h: Rebuild.
4585
4586Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
4587
4588 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
4589 the addend of a dynamic relocation referencing a section.
4590 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4591 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
4592
4593Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
4594
4595 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
4596 bed has a size_dynamic_sections routine before trying to use it.
4597
4598Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
4599
4600 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
4601 _bfd_elf_rel_vtable_reloc_fn.
4602
4603Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
4604
27ac83bf
RH
4605 * Makefile.am: Add elf32-arm.c.
4606 * Makefile.in: Rebuild.
4607 * elf-bfd.h: Add elf_backend_get_symbol_type.
4608 * elf.c (swap_out_syms): If defined, call
4609 elf_backend_get_symbol_type.
4610 * elf32-arm.c: Define elf_backend_get_symbol_type.
4611 (elf32_arm_get_symbol-type): New routine.
4612 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
4613 (bfd_elf32_arm_process_before_allocation): Change to
4614 check for STT_ARM_TFUNC.
4615 (elf32_arm_final_link_relocate): Likewise.
4616 * elfxx-target.h: Add elf_backend_get_symbol_type.
252b5132
RH
4617
4618Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
4619
4620 * archures.c (bfd_mach_alpha_ev[456]): New.
4621 * cpu-alpha.c: Rework to match these types.
4622 * bfd-in2.h: Rebuild.
4623
4624Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
4625
4626 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
4627 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
4628
4629 * elf32-i386.c (elf_howto_table): Add vtable relocs.
4630 (elf_i386_reloc_type_lookup): Recognize them.
4631 (elf_i386_check_relocs): Pass them off to generic code.
4632 (elf_i386_relocate_section): Ignore them.
4633 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
4634 (elf_backend_can_gc_sections): True.
4635
4636Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
4637
4638 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
4639 before looking at owner field.
4640 (elf32_arm_to_thumb_stub): Ditto.
4641 (elf32_arm_relocate_section): Compute name before calling
4642 elf32_arm_final_link_relocate().
4643
4644Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4645
4646 * elf.c: comment and formatting cleanups.
4647 * elfcore.h: ditto.
4648
4649Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4650
4651 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
4652 (core files are treated differently than object files).
4653 * elf-bfd.h (_bfd_elf_write_corefile_contents,
4654 bfd_elf_mkcorefile): declare.
4655 * elfxx-target.h (_bfd_elf_write_corefile_contents,
4656 bfd_elf_mkcorefile): add to bfd_target vector.
4657 * elfcore.h (elf_core_file_p): save the program header table,
4658 and set the bfd architecture from the elf file header.
4659 * elf.c (bfd_elf_mkcorefile): new function.
4660 (_bfd_elf_write_corefile_contents): new function.
4661 (assign_file_positions_for_segments): add cases for handling
4662 PT_NOTE segments. (assign_file_positions_except_relocs):
4663 core files should be handled the same as exec files.
4664 (prep_headers): identify core files as type ET_CORE.
4665 (copy_private_bfd_data): identify the sections belonging to
4666 the PT_NOTE segment.
4667
4668 * elf32-sparc.c (elf32_sparc_final_write_processing):
4669 add break statement to default case.
4670
46711998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
4672
4673 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
4674 section (not input) will be in sections ".sbss", ".sbss2",
4675 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
4676 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
4677 output_offset for correct evaluation of addend.
4678
4679Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
4680
27ac83bf
RH
4681 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
4682 elf32_arm_allocate_interworking_sections and
4683 elf32_arm_process_before_allocation.
252b5132
RH
4684
4685Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
4686
27ac83bf
RH
4687 * bfd-in.h: Ammend prototype for
4688 elf32_arm_process_before_allocation to remove surplus third
4689 argument.
252b5132 4690
27ac83bf 4691 * bfd-in2.h: Regenerate.
252b5132
RH
4692
4693Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
4694
4695 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
4696
4697Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
4698
4699 * aoutx.h (aout_link_input_section_ext): Use the relocation already
4700 calculated for RELOC_SPARC_REV32 case.
4701
4702Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
4703
4704 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
4705 elf32_arm_allocate_interworking_sections and
4706 elf32_arm_process_before_allocation.
4707 * bfd-in2.h: Regenerated.
4708 * elf32-arm.c Define elf32_arm_link_hash_table.
4709 (insert_thumb_branch): New routine.
4710 (find_thumb_glue): New routine.
4711 (find_arm_glue): New routine.
4712 (record_arm_to_thumb_glue): New routine.
4713 (record_thumb_to_arm_glue): New routine.
4714 (elf32_arm_link_hash_table_create): New routine.
4715 (elf32_arm_get_bfd_for_interworking): New routine.
4716 (elf32_arm_allocate_interworking_sections) New routine.
4717 (elf32_arm_process_before_allocation) New routine.
4718 (elf32_thumb_to_arm_stub): New routine.
4719 (elf32_arm_to_thumb_stub): New routine.
4720 (elf32_print_private_bfd_data): Fix typo.
4721 (elf32_arm_final_link_relocate): Add argument sym_sec.
4722 Check for branches to thumb symbols in case R_ARM_PC24.
4723 Check for branches to arm symbols in case R_ARM_THM_PC22.
4724 (elf32_arm_relocate_section): Pass symbol section to
4725 elf32_arm_final_link_relocate.
4726
4727Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
4728
4729 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
4730 entries unless the symbol is defined in the executable; in
4731 particular, undefined weak symbols get a PLT entry.
4732
4733Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
4734
4735 * libaout.h: Remove nested comment to avoid warning.
4736
4737Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
4738
4739 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
4740 R_ARM_PC24 relocation.
4741
4742Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
4743
4744 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
4745 argument is_local. Add argument sym_flags. Check sym_flags
4746 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
4747 (elf32_arm_relocate_section): Don't pass local sym and pass
4748 sym_flags to elf32_arm_final_link_relocate.
4749
4750Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
4751
4752 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
4753 to not count too few relocs for dynamicly linked executables.
4754
4755Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
4756
4757 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
4758 symbols without a dynamic index dynamic. Consider all weak
4759 symbols dynamic.
4760 (elf64_alpha_strip_section_from_output): Don't assume 1-1
4761 correspondance between input and output sections.
4762
4763Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4764
4765 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
4766 that use a .got.plt section start the got offset at zero.
4767
4768Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
4769
4770 * ieee.c (ieee_write_processor): Correct the processor ID written
4771 out for bfd_arch_m68k, accommodating change of March 25.
4772
4773Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
4774
27ac83bf
RH
4775 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
4776 R_ARM_THM_RPC22 relocations.
252b5132
RH
4777
4778Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
4779
4780 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
4781 are always dynamic.
4782 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
4783 .got relocs in -Bsymbolic shared objects.
4784
4785Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
4786
4787 * elf32-arm.c: Add private flags to ELF header.
4788 (elf32_arm_print_private_bfd_data): New Function.
4789 (elf32_arm_set_private_flags): New Function.
4790 (elf32_arm_copy_private_flags): New Function.
4791 (elf32_arm_merge_private_bfd_data): New Function.
4792
4793Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
4794
4795 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
4796 a local symbol.
4797 (elf32_sparc_relocate_section): Likewise.
4798
4799Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
4800
4801 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
4802 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
4803 (ppc_elf_relocate_section): Pull sgot and splt search to the start
4804 of the function. Recognize no .plt as static linking.
4805
48061998-08-01 Ulrich Drepper <drepper@cygnus.com>
4807
4808 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
4809 ".liblist" string through gettext.
4810
4811Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
4812
27ac83bf
RH
4813 * Makefile.am: Add support for elf32-arm.lo.
4814 * Makefile.in: Rebuild.
4815 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
4816 (thumb-*-elf): Define targ_defvec and targ_selvecs.
4817 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
4818 * configure: Regenerate.
4819 * elf.c: (prep_headers): Support arch_type of EM_ARM.
4820 * targets.c: Support new targets bfd_elf32_bigarm_vec and
4821 bfd_target bfd_elf32_littlearm_vec.
4822 * elf32-arm.c: New file.
252b5132
RH
4823
4824Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
4825
4826 * libaout.h (M_SPARCLITE_LE): New machine.
4827 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
4828 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
4829 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
4830 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
4831 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
4832 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
4833 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
4834 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
4835 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
4836 be BFD_RELOC_SPARC_REV32.
4837 * reloc.c: Ditto.
4838 * config.bfd (sparc86x-*-aout): New
4839
4840Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
4841
4842 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
4843 actually mapping the output sections.
4844
4845Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
4846
4847
4848 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
4849 (mn10300_elf_reloc_map): Similarly.
4850 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
4851
4852Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
4853
4854 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
4855 Irix 6.
4856 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
4857 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
4858 elf_mips_reloc_type defined in elf/mips.h.
4859
48601998-07-24 Ulrich Drepper <drepper@cygnus.com>
4861
4862 * elf64-mips.c: Remove reloc_type definition completely. It's now
4863 in elf/mips.h.
4864
4865Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
4866
4867 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
4868 as they are defined in elf/mips.h now.
4869
4870Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
4871
4872
4873 * Re-add lost change:
27ac83bf
RH
4874 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
4875 "movm_stack_size".
4876 (mn10300_elf_relax_section): Include stack space for register saves
4877 in the imm8 field of a "call" instruction.
4878 (compute_function_info): Determine how much stack is allocated by
4879 the movm instruction. Fix typo.
4880 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
252b5132
RH
4881
4882Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
4883
4884 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
4885 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
4886
48871998-07-22 Ulrich Drepper <drepper@cygnus.com>
4888
4889 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
4890
4891Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
4892
4893 * elf32-hppa.h: Let ELF header define the enum containing the
4894 external reloc numbers.
4895 * elf32-i386.h: Likewise.
4896
48971998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
4898
4899 * elf-m10300.c: Let ELF header now define the macros to get the enum.
4900 * elf32-mips.c: Likewise.
4901 * elf32-ppc.c: Likewise.
4902
4903Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
4904
4905 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
4906 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
4907 prblems.
4908 * bfd-in.h: Regenerate.
4909 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
4910 parameter to 'unsigned int' to avoid K&R compatability problems.
4911
4912Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
4913
4914 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
4915 functionname_ptr to be const. Change line_ptr to be unsigned.
4916
4917 * coffcode.h (coff_link_output_has_begun): Simplify handling when
4918 macro is not defined. Change second parameter from bfd_link_info
4919 to coff_final_link_info. Add prototype.
4920 (coff_final_link_postscript): Simplify handling when macro is not
4921 defined. Add prototype.
4922
49231998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
4924
4925 * elf-mn10300.c: Before include system specific ELF header define
4926 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
4927 * elf32-mips.c: Likewise.
4928 * elf32-ppc.c: Likewise.
4929
4930Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
4931
4932 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
4933 temporary patch over to elf64-mips.c as well.
4934
49351998-07-21 Ulrich Drepper <drepper@cygnus.com>
4936
4937 * elf32-mips.c (reloc_type): Temporarily disable definition of
4938 standard relocation since they are now defined in elf/mips.h.
4939
4940Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
4941
27ac83bf
RH
4942 * elf-m10200.c (mn10200_elf_final_link_relocate):
4943 Modify range test for case R_MN10200_8.
252b5132 4944
27ac83bf
RH
4945 * elf-m10300.c (mn10300_elf_final_link_relocate):
4946 Modify range test for case R_MN10300_8.
252b5132
RH
4947
4948Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
4949
4950 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
4951 * elf32-i386.c (elf_backend_got_header_size): Define.
4952 (elf_backend_plt_header_size): Define.
4953 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
4954 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
4955 * elfxx-target.h: Provide a default of zero.
4956 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
4957 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
4958
4959 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
4960 entry from an executable, even if the plt refcount goes to 0.
4961
4962Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4963
4964 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
4965 directory name at the line number.
4966
4967 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
4968 with an unspecified type.
4969
4970Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
4971
4972 * sunos.c: Add undef of valid to avoid problem on SunOS.
4973
4974Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
4975
4976 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
4977
4978Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4979
4980 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
4981 R_68K_PCxx and R_68K_xx relocations. Make sure that
4982 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
4983 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
4984 R_68K_xx relocations.
4985 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
4986 that has no plt entry.
4987 (elf_m68k_relocate_section): Ignore the plt offset in a static
4988 link.
4989 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
4990 an ignored symbol.
4991 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
4992 a static link.
4993
4994 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
4995 types.
4996 (howto_table, reloc_map): Add entries for them.
4997 (elf_m68k_check_relocs): Handle them. Implement reference
4998 counting for got and plt entries.
4999 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
5000 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
5001 symbols.
5002 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
5003 (elf_m68k_relocate_section): Handle the new reloc types.
5004 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
5005 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
5006 * elflink.h (elf_link_add_object_symbols): When creating an
5007 indirect reference for symbol versioning also copy the plt
5008 offset.
5009 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
5010 flag also reset the plt offset.
5011 (elf_link_assign_sym_version): Likewise.
5012 (elf_gc_common_finalize_got_offsets): Increment the got offset by
5013 the size of the entry in bytes.
5014 (elf_gc_allocate_got_offsets): Likewise.
5015
5016Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
5017
5018 * elflink.h (elf_gc_sections): Return true rather than falling off
5019 the bottom.
5020
5021 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
5022 xmalloc.
5023
5024Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
5025
5026 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
5027 comment describing when it should be enabled.
5028 Changed definition of USER_LABEL_PREFIX to "", to fall into line
5029 with GCC sources.
5030
5031Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
5032
5033 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
5034 information ATN records.
5035
5036Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
5037
5038 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
5039 section for an absolute symbol in a fully linked file. Based on
5040 patch from Christian Holland <CHolland@de.lucent.com>.
5041
5042Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
5043
5044 * coff-m88k.c (m88k_special_reloc): Don't lose the information
5045 that a symbol is undefined.
5046
5047Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
5048
5049 * som.c (som_bfd_gc_sections): Define.
5050
5051Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
5052
5053 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
5054 overflows in ARM_26D patches, since they have already been
5055 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
5056
5057Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
5058
5059 * coffcode.h (coff_write_object_contents): If we have any long
5060 section names, call coff_write_symbols even if there are no
5061 symbols.
5062
5063Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
5064
5065 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
5066 PT_LOAD segment, rather than only setting it once for the entire
5067 file.
5068
5069 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
5070 rather than ignoring every phdr with a p_paddr of 0, ignore all
5071 the phdrs if they all have a p_paddr of 0.
5072
5073 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
5074 section was discarded from the link.
5075
5076Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5077
5078 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
5079
5080Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5081
5082 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
5083 floating point operations.
5084
5085Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
5086
5087 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
5088 function symbols.
5089
5090Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
5091
5092 Merge of vax/vms (read-only) support
5093 * configure.com: Support Vax target.
5094 * makefile.vms: Support Vax target.
27ac83bf 5095 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
252b5132
RH
5096 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
5097 support.
5098 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
5099 support.
5100 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
5101 support.
5102 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
5103 support.
5104 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
5105 support.
5106 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
5107 * targets.c (bfd_target_ovax_flavour): New flavour.
5108 (vms_alpha_vec): Renamed from evax_alpha_vec.
5109 (vms_vax_vec): New.
5110 (target_vector): Update accordingly.
5111 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
5112 evax_alpha_vec.
5113 (vax*-*-*vms*): New target.
5114 * Makefile.am: Update for renamed files. Rebuild dependencies.
5115 * bfd-in2.h: Rebuild.
5116 * configure.in, Makefile.in, aclocal.m4: Rebuild.
5117
5118Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
5119
5120 Based on patch from Matt Semersky <matts@scd.hp.com>:
5121 * linker.c (_bfd_generic_final_link): Force a trailing NULL
5122 pointer on abfd->outsymbols.
5123 (generic_add_output_symbol): Handle NULL sym parameter.
5124
5125Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
5126
5127 * elf.c (copy_private_bfd_data): Add support for changing VMA or
5128 LMA of sections.
5129
5130Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
5131
5132 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
5133 when handling 32 bit immediate relocs.
5134 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
5135
5136Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
5137
5138 * section.c (STD_SECTION): Account for recently added gc_mark
5139 field in struct asection.
5140
5141 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
5142 (bfd_elf32_bfd_merge_private_bfd_data): Define.
5143
5144Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
5145
5146 ELF Section-level Garbage Collection:
5147 * bfd.c (bfd_gc_sections): New.
5148 * aout-adobe.c: Hook to default implementation.
5149 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
5150 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
5151 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
5152 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
5153 * tekhex.c, versados.c: Likewise.
5154 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
5155 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
5156
5157 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
5158 (bfd_generic_gc_sections): New.
5159 * section.c (SEC_KEEP): New.
5160 (asection): Add gc_mark member.
5161
5162 * elfcode.h (elf_gc*): New name remappings.
5163 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
5164 sections to be excluded.
5165 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
5166 (elf_gc_propogate_vtable_entries_used): New.
5167 (elf_gc_smash_unused_vtentry_relocs): New.
5168 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
5169 (elf_gc_common_finalize_got_offsets): New.
5170 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
5171 * elfxx-target.h: Add and default gc hooks.
5172
5173 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
5174 for unions.
5175 (struct elf_obj_tdata): Likewise for local_got_offsets.
5176 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
5177 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
5178 * elf64-sparc.c, elflink.h: Likewise.
5179
5180 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
5181 (ELF_LINK_HASH_MARK): Define.
5182 (struct elf_backend_data): Add GC hooks.
5183 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
5184
5185 * elf-m10300.c (mn10300_elf_check_relocs): New.
5186 (mn10300_elf_gc_mark_hook): New.
5187 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
5188 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
5189 (mn10300_elf_final_link_relocate): Likewise.
5190 (mn10300_elf_relocate_section): Likewise.
5191 (elf_backend_can_gc_sections): Define.
5192 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
5193 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
5194 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
5195 (mips_info_to_howto_rel): Likewise.
5196 (mips_elf_relocate_section): Likewise.
5197 (mips_elf_check_relocs): Likewise.
5198 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
5199 (elf_backend_can_gc_sections): Define.
5200 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
5201 (ppc_elf_howto_raw): Handle them.
5202 (ppc_elf_reloc_type_lookup): Likewise.
5203 (ppc_elf_relocate_section): Likewise.
5204 (ppc_elf_check_relocs): Reference count .got and .plt entires.
5205 Handle new vtable relocs.
5206 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
5207 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
5208 (elf_backend_can_gc_sections): Define.
5209
5210Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
5211
5212 * archures.c (bfd_mach_mn10300): Define.
5213 * elf-m10300.c: Include elf/mn10300.h
5214 (elf_mn10300_mach): New function.
5215 (_bfd_mn10300_elf_final_write_processing): Likewise.
5216 (_bfd_mn10300_elf_object_p): Likewise.
5217 (elf_backendfinal_write_processing): Define.
5218 (elf_backend_object_p): Likewise.
5219
5220Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
5221
5222 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
5223 relocation.
5224
5225Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
5226
5227 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
5228 link_next field, not the next field.
5229
5230Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
5231
5232 * elf.c (map_sections_to_segments): Check the section address
5233 against the phdr size both with and without a modulo of
5234 maxpagesize.
5235
5236Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
5237
5238 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
5239 linker created empty input section if the output section has the
5240 same name.
5241
5242 * elflink.h (elf_link_output_extsym): Print an error message if
5243 _bfd_elf_section_from_bfd_section fails.
5244
5245 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
5246 failure.
5247
5248Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
5249
5250 * elf.c (copy_private_bfd_data): Improve handling of Solaris
5251 native linker output. Avoid putting an empty section in more than
5252 one segment.
5253
5254Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
5255
5256 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
5257 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
5258
5259Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
5260
5261 * elf.c (swap_out_syms): New arg relocatable_p.
5262 Don't add section VMA to symbols for relocatable output.
5263 (_bfd_elf_compute_section_file_positions): Update call to
5264 swap_out_syms.
5265
5266Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
5267
5268 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
5269 against 'addend' be signed rather than unsigned.
5270
5271Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
5272
5273 * elf32-m32r.c: Add prototyps for static functions.
5274
5275 * coff-arm.c: Add prototypes for static functions.
5276
5277Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
5278
5279 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
5280 LMA is used to order sections in a segment.
5281
5282 * elf32-v850.c: Add prototypes for static functions.
5283 Change type of addend parameter to bfd_vma in various functions.
5284
5285Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
5286
5287 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
5288 complain_overflow_signed instead of complain_overflow_bitfield.
5289
5290Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5291
5292 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
5293 when comparing against 0.
5294
5295Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
5296
5297 * Makefile.am (config.status): New target.
5298 * Makefile.in: Rebuild.
5299
5300Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
5301
5302 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
5303 error if previous object endianness doesn't match current object.
5304
5305Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
5306
5307 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
5308 _bfd_elf_print_private)bfd_data ().
5309
5310Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
5311
5312 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
5313 and size_change_ok.
5314 (elf_link_add_object_symbols): Set type_change_ok and
5315 size_change_ok before calling elf_merge_symbol.
5316
5317 * elf32-mips.c (mips_elf_relocate_section): If we issue an
5318 undefined symbol error, don't also issue an overflow error.
5319
5320Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
5321
5322 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
5323 R_PPC_LOCAL24PC relocation should be local; if not, print an error
5324 message instead of crashing.
5325
5326Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
5327
5328 * archures.c (bfd_mach_cpu32): Define.
5329 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
5330 bfd_mach_cpu32.
5331 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
5332 * ieee.c: Include <ctype.h>.
5333 (ieee_object_p): Parse out process ID string to make it more
5334 likely to be acceptable for bfd_scan_arch.
5335 * bfd-in2.h: Rebuild.
5336
5337Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
5338
5339 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
5340 _bfd_elf_print_private_bfd_data() so that the program header will
5341 be displayed.
5342
5343Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
5344
5345 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
5346 0x68. Reindent. Add some comments.
5347
5348Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
5349
5350 * elf.c (copy_private_bfd_data): Adjust physical address of
5351 segment in output BFD to contain LMAs of its sections.
5352
5353Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
5354
5355 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
5356 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
5357 endian data 32 bit relocations.
5358 (elf32_sparc_merge_private_bfd_data): Check if linking little
5359 endian objects with big endian objects.
5360 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
5361 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
5362 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
5363 * reloc.c: Same.
5364 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
5365 * archures.c (bfd_mach_sparc_sparclite_le): New.
5366 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
5367
5368Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
5369
5370 * peicode.h (add_data_entry): Fix precedence of operators in if ()
5371 statement.
5372
5373Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
5374
5375 * bfd-in.h: Move over patch to bfd-in2.h.
5376
5377 * reloc.c (bfd_check_overflow): Add casts before shifts which may
5378 not fit in 32 bits.
5379 (_bfd_relocate_contents): Likewise.
5380
5381Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
5382
5383 * peicode.h (add_data_entry): If the section has no private data
5384 then do not create a Data Dictionary entry for it.
5385
5386Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
5387
5388 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
5389 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
5390 elf64_alpha_size_got_sections): Rewrite, handling multiple got
5391 subsections during relaxation more correctly.
5392
5393Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
5394
5395 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
5396 Add extra argument to bfd_arm_process_before_allocation ().
5397 * bfd-in.h: Reflect changes made in bfd-in2.h.
5398 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
5399 coff class of a BFD symbol.
5400 * coff-arm.c: Add support for interworking between Thumb code and
5401 non-interworking aware ARM code.
5402
5403Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
5404
5405 * po/Make-in (install-info): New target.
5406
5407Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
5408
5409 * filemode.c: Remove; not used.
5410
5411 If sysdep.h includes a header file, don't include it again:
5412 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
5413 <errno.h>.
5414 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
5415 <sysdep.h>.
5416 * archive.c: Don't include <string.h> or <errno.h>.
5417 * evax-alpha.c; Don't include <stdio.h>.
5418 * evax-egsd.c: Likewise.
5419 * evax-etir.c: Likewise.
5420 * evax-misc.c: Likewise.
5421 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
5422 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
5423 <errno.h>.
5424 * hpux-core.c: Likewise.
5425 * netbsd-core.c: Likewise.
5426 * som.c: Likewise.
5427 * libbfd.c: Don't include <sys/types.h>.
5428 * nlmcode.h: Don't include <string.h>.
5429 * osf-core.c: Don't include <string.h> or <stdio.h>.
5430 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
5431 <errno.h>, or <unistd.h>.
5432 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
5433
5434Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
5435
5436 * configure.com: If the version number can not be found in
5437 configure.in, set it to "unknown" rather than "2.8.1".
5438
5439Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
5440
5441 * elf32-mips.c (elf_mips_mach): New.
5442 (_bfd_mips_elf_object_p): Use elf_mips_mach.
5443 (_bfd_mips_elf_final_write_processing): Use the names
5444 of machines, rather than the numbers. Set both the ARCH
5445 and MACH in e_flags. Handle a few more specific machines.
5446 (_bfd_mips_elf_merge_private_bfd_data): Merge both
5447 EF_MIPS_ARCH and EF_MIPS_MACH.
5448
5449Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
5450
5451 * syms.c (bfd_is_local_label): Revert last change.
5452 * srec.c (srec_write_symbols): Discard debugging symbols.
5453
5454Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
5455
5456 * som.c: Include <ctype.h>.
5457 * som.h: Don't include sysdep.h.
5458
5459Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
5460
5461 * libbfd.h: Rebuilt.
5462 * libbfd-in.h: Removed gettext includes and defines.
5463 * sysdep.h: Moved gettext-related includes and defines here.
5464
5465Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
5466
5467 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
5468 an ad-hoc test. Kill bogus #if 0 code.
5469 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
5470
5471Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
5472
5473 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
5474 when generating a normal executable for a symbol defined in a
5475 regular file. When copying a reloc into the output file, adjust
5476 the addend for a PC relative reloc against a global symbol.
5477
5478Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
5479
5480 * libbfd.h: Rebuilt.
5481 * libbfd-in.h (_): Define as dgettext.
5482
5483Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
5484
5485 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
5486 not signed.
5487 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
5488 when declaring parameter types.
5489 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
5490
5491Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
5492
5493 * config.bfd: If we include any ELF targets in targ_defvec and/or
5494 targ_selvecs, then add the generic ELF targets to targ_selvecs.
5495 * elf32-gen.c (dummy): New static const variable.
5496 (elf_generic_info_to_howto): New static function.
5497 (elf_generic_info_to_howto_rel): New static function.
5498 (elf_info_to_howto): Define as elf_generic_info_to_howto.
5499 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
5500 * elf64-gen.c: Same changes as elf32-gen.c.
5501 * elfcode.h (elf_object_p): For the generic target, ignore a
5502 failure of bfd_default_set_arch_mach. Fix indentation a bit.
5503
5504Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
5505
5506 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
5507 * configure: Rebuild.
5508
5509Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
5510
5511 * config.bfd: Update OSR5/Unixware patterns.
5512
5513Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
5514
5515 * elf.c (assign_file_positions_for_segments): Allow for holes
5516 between sections added by a link script.
5517
5518Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
5519
5520 * configure.in: Change version number to 2.9.4
5521 * configure: Rebuild.
5522
5523 Based on patch from H.J. Lu <hjl@gnu.org>:
5524 * elf.c (bfd_elf_get_bfd_needed_list): New function.
5525 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
5526 * bfd-in2.h: Rebuild.
5527
5528Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
5529
5530 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
5531 Change all users.
5532
5533Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
5534
5535 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
5536 (elf64_alpha_relax_section): Fill them in.
5537 (elf64_alpha_relax_opt_call): Implement more than a stub.
5538 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
5539 alignment on .scommon.
5540 (elf64_alpha_merge_gots): Merge use counts as well.
5541
5542Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
5543
5544 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
5545 for calculating a local symbol's address.
5546 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
5547 Set the .got's cooked size as well as the raw size.
5548
5549Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
5550
5551 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
5552 internationalisation of printed information.
5553
5554 * coff-arm.c (coff_arm_print_private_bfd_data): Add
5555 internationalisation of printed information.
5556
5557Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
5558
5559 * syms.c (struct indexentry): Change directory_name, file_name,
5560 and function_name fields to char *.
5561 (struct stab_find_info): Change cached_file_name field to char *.
5562
5563Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
5564
5565 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
5566
5567Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
5568
5569 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
5570
5571Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
5572
5573 * Makefile.am (install-data-local): Make $(includedir).
5574 * Makefile.in: Rebuild.
5575
5576Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
5577
5578 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
5579
5580Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
5581
5582 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
5583 * Makefile.in: Rebuild.
5584
5585 * bfd-in2.h: Rebuild for Nick's changes.
5586
5587Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
5588
5589 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
5590 change wrt length == max_namelen.
5591
5592Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
5593
5594 * Many files: Added gettext invocations around user-visible
5595 strings.
5596 * libbfd-in.h: Added gettext includes and defines.
5597 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
5598 HAVE_LC_MESSAGES): Define.
5599 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
5600 po/Makefile.
5601 * Makefile.am (SUBDIRS): Added po.
5602 (POTFILES): New macro.
5603 (po/POTFILES.in): New target.
5604 (SOURCE_HFILES): New macro.
5605 (HFILES): Use it.
5606 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
5607
5608Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5609
5610 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
5611 NT_PRSTATUS note section encountered, it contains the status of
5612 the currently executing thread when the core file was written.
5613
5614Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
5615
5616 * libcoff.h: Add extra parameter to
5617 bfd_coff_link_output_has_begun overrideable function.
5618 * cofflink.c: Pass extra parameter to
5619 bfd_coff_link_output_has_begun function.
5620 * bfd-in.h: Add prototypes for exported ARM interworking
5621 functions.
5622 * peicode.h: ARM specific code reorganised to conform to BFD
5623 coding conventions.
5624 * coffcode.h: ARM specific code reorganised to conform to BFD
5625 coding conventions.
5626 * coff-arm.c: Code reorganised to conform to the BFD coding
5627 conventions. Global variables have been moved into an ARM
5628 specific hash table structure and a new function:
5629 bfd_arm_get_bfd_for_interworking() has been created which is
5630 called from the linker scripts.
5631
5632Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
5633
5634 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
5635
5636 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
5637 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
5638 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
5639 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
5640
5641Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
5642
5643 * config.bfd: Added sparc86x support.
5644
5645Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
5646
5647 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
5648 an out of range pc-relative jump/call to an undefined weak symbol.
5649
5650Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
5651
5652 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
5653 comparisons signed.
5654
5655Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
5656
5657 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
5658 an error other than bfd_error_system_call, set the error to
5659 bfd_error_wrong_format.
5660
5661 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
5662 bfd_elf32_powerpcle_vec.
5663
5664 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
5665 program segments are zero, don't set p_paddr_valid.
5666
5667Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
5668
5669 * elf64-alpha.c: Initial implementation of relaxation --
5670 (struct alpha_elf_link_hash_entry): Add use_count member.
5671 (elf64_alpha_check_relocs): Initialize and increment it.
5672 (elf64_alpha_can_merge_gots): Check it when considering merging.
5673 (elf64_alpha_merge_gots): Drop entries with zero use.
5674 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
5675 (elf64_alpha_always_size_sections): Split out got sizing ...
5676 (elf64_alpha_size_got_sections): ... here. New function.
5677 (elf64_alpha_relax_find_reloc_ofs): New function.
5678 (elf64_alpha_relax_with_lituse): Likewise.
5679 (elf64_alpha_relax_without_lituse): Likewise.
5680 (elf64_alpha_relax_opt_call): Likewise.
5681 (elf64_alpha_relax_section): Likewise.
5682 (elf64_alpha_add_symbol_hook): Likewise.
5683 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
5684 (elf64_alpha_relocate_section): Likewise.
5685 (bfd_elf64_bfd_relax_section): Define.
5686 (elf_backend_add_symbol_hook): Likewise.
5687
5688Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
5689
5690 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
5691 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
5692 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
5693
5694Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
5695
5696 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
5697 * configure: Rebuild.
5698
5699Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
5700
5701 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
5702 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
5703 * configure.in: Define and substitute WIN32LDFLAGS and
5704 WIN32LIBADD.
5705 * aclocal.m4: Rebuild with new libtool.
5706 * configure, Makefile.in: Rebuild.
5707
5708Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
5709
5710 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
5711 before any other symbols in the same section.
5712
5713Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
5714
5715 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
5716 systems.
5717
5718Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
5719
5720 * dwarf2.c (comp_unit): Move it earlier in the source. Add
5721 addr_size.
5722 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
27ac83bf 5723 Use addr_size for address size, rather than sizeof(bfd_vma).
252b5132
RH
5724 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
5725 Fix call to read_address.
5726 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
5727 Scrap other unneeded arguments. Fix call to read_address.
5728 (scan_unit_for_functions): Fix call to read_attribute.
5729 (parse_comp_unit): We now handle more values for addr_size.
5730 Set addr_size in unit. Fix call to read_attribute and
5731 decode_line_info.
5732
5733Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
5734
5735 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
5736
5737Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
5738
5739 * archures.c (bfd_default_scan): Add m68k cases back to default
5740 switch, reverting patch of March 25, since IEEE support depends
5741 upon them.
5742
5743Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
5744
5745 * Makefile.am (diststuff): New target.
5746 * Makefile.in: Rebuild.
5747
5748Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
5749
5750 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
5751 som_offset when we have an extended name table.
5752
5753Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
5754
5755 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
5756 trying to copy it.
5757 * Makefile.in: Rebuild.
5758
5759Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5760
5761 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
5762 symbols when creating a shared library.
5763 (elf_m68k_adjust_dynindx): New function, used by above code.
5764 (elf_m68k_finish_dynamic_sections): Initialize the section
5765 symbols.
5766 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
5767
5768Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
5769
5770 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
5771 value 11.
5772
5773Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5774
5775 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
5776 assertion.
5777
5778Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
5779
5780 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
5781 absolute symbols.
5782
5783Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
5784
5785 * configure.in: Set version to 2.9.1.
5786 * configure: Rebuild.
5787
5788 * Branched binutils 2.9.
5789
5790Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
5791
5792 * syms.c (ENABLE_CACHING): Define.
5793 (struct indexentry): Define.
5794 (struct stab_cache): Remove.
5795 (cmpindexentry): New static function.
5796 (struct stab_find_info): Add new fields: indextable,
5797 indextablesize, cached_indexentry, cached_offset, cached_stab, and
5798 cached_file_name. Remove fields: file_cache, function_cache, and
5799 line_cache.
5800 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
5801 index table and search it.
5802
5803Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
5804
5805 * elf.c (_bfd_elf_copy_private_section_data): Call
5806 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
5807
5808 * cpu-mips.c: Remove trailing comma at end of enumeration list.
5809
5810Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
5811
5812 * coff-arm.c: Define all globally visible variables and functions
5813 only when COFF_WITH_PE is not defined.
5814 * configure.in (armpe_little_vec, armpe_big_vec): Add
5815 coff-arm.lo.
5816 * configure: Rebuild.
5817
5818Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
5819
5820 Fix some gcc -Wall warnings:
5821 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
5822 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
5823 * archures.c (bfd_default_scan): Likewise.
5824 * bfd.c (bfd_scan_vma): Likewise.
5825 * binary.c (mangle_name): Likewise
5826 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
5827 * coff-sh.c (sh_relocate_section): Likewise.
5828 * coff-stgo32.c (create_go32_stub): Likewise.
5829 * coffcode.h (coff_slurp_line_table): Likewise.
5830 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
5831 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
5832 (assign_file_positions_for_segments): Likewise.
5833 * elf32-mips.c (mips_elf_relocate_section): Likewise.
5834 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
5835 * oasys.c (oasys_write_sections): Likewise.
5836 * ppcboot.c (ppcboot_object_p): Likewise.
5837 (mangle_name): Likewise.
5838 * riscix.c (riscix_fix_pcrel_26): Likewise.
5839 * srec.c (srec_scan): Likewise.
5840 * stabs.c (_bfd_write_section_stabs): Likewise.
5841 * sunos.c (sunos_add_dynamic_symbols): Likewise.
5842 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
5843 switch. Declare parameters for function pointers.
5844 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
5845 warning.
5846 * elf.c (elf_sort_sections): Likewise.
5847 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
5848 Add default cases to switches.
5849 (coff_arm_relocate_section): Remove unused local variables.
5850 Always set rstat.
5851 (coff_arm_bfd_set_private_flags): Change flag variable to type
5852 flagword.
5853 * coff-mips.c (mips_relocate_section): Initialize use_lo.
5854 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
5855 (dump_toc): Change cat to const, and initialize it.
5856 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
5857 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
5858 (sh_elf_relocate_section): Initialize r_symndx.
5859 * coffcode.h (coff_compute_section_file_positions): Only declare
5860 old_sofar if ALIGN_SECTIONS_IN_FILE.
5861 (coff_write_object_contents): Initialize csym.
5862 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
5863 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
5864 switch.
5865 * dwarf2.c: Include libiberty.h.
5866 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
5867 (decode_line_info): Remove unused local variables.
5868 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
5869 (m32r_elf_relocate_section): Likewise.
5870 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
5871 (v850_elf_reloc): Likewise.
5872 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
5873 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
5874 * elf.c (assign_file_positions_for_segments): Always set adjust.
5875 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
5876 parenthesize expression.
5877 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
5878 (m32r_elf_object_p): Return a value.
5879 (m32r_elf_print_private_bfd_data): Change fprintf format string.
5880 * elf32-mips.c (mips_elf_final_link): Initialize last.
5881 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
5882 * elf32-v850.c (v850_elf_object_p): Return a value.
5883 (v850_elf_print_private_bfd_data): Change fprintf format string.
5884 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
5885 unsigned long.
5886 * elflink.h (elf_link_add_object_symbols): Change vernum to
5887 unsigned int, and initialize it. Change fprintf format string.
5888 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
5889 when setting or comparing to soname_indx.
5890 (elf_create_pointer_linker_section): Change num_symbols to
5891 unsigned int.
5892 * libcoff-in.h (coff_data_type): Change flags to flagword.
5893 * peicode.h (pe_print_idata): Initialize idx. Change j to
5894 bfd_size_type. Initialize hint_member. Remove useless test to
5895 time_stamp.
5896 (pe_print_edata): Change num_functions and num_names in struct
5897 EDT_type to unsigned long. Remove cast. Change fprintf format
5898 string.
5899 * ppcboot.c (ppcboot_object_p): Change i to size_t.
5900 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
5901 int.
5902 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
5903 int *. Update uses. Change j to long.
5904 * bfd-in2.h, libcoff.h: Rebuild.
5905
5906Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
5907
5908 * elf32-v850.c Remove definition of USE_REL.
5909 (v850_elf_info_to_howto_rela): New function.
5910 (v850_elf_perform_relocation): Renamed from
5911 v850_elf_store_addend_in_insn. Removed replace argument.
5912 (v850_elf_reloc): store the relocation in the addend field instead
5913 of the insn.
5914 (v850_elf_final_link_relocate): Now calls
5915 v850_elf_perform_relocation.
5916 (v850_elf_relocate_section): Remove code to generate REL
5917 relocations.
5918
5919Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
5920
5921 * coffcode.h (coff_new_section_hook): Set the type and storage
5922 class in the native symbol information allocated for a new section
5923 symbol.
5924
5925Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
5926
5927 * peicode.h: Chain together calls to
5928 coff_bfd_copy_private_bfd_data and
5929 coff_bfd_print_private_bfd_data.
5930
5931 * coff-arm.c: Add prototypes for
5932 coff_arm_bfd_print_private_bfd_data and
5933 coff_arm_bfd_copy_private_bfd_data.
5934
5935Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
5936
5937 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
5938 build.
5939
5940 * peicode.h: Call arm-coff private data functions after handling
5941 pe private data.
5942
5943 * coff-arm.c: Turn statics into globals so that they can be shared
5944 both pe and pei backends.
5945
5946Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
5947
5948 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
5949 plain numbers.
5950 (sunos_write_object_contents): Likewise.
5951 * aoutx.h (NAME(aout,machine_type)): Likewise.
5952 * coffcode.h (coff_set_arch_mach_hook): Likewise.
5953
5954Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5955
5956 * archures.c (bfd_mach_m68*): Add definitions for various m68k
5957 variants.
5958 (bfd_default_scan): Remove m68k special cases.
5959 * bfd-in2.h: Rebuild.
5960 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
5961 than plain numbers.
5962 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
5963 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
5964 m68k:68000.
5965 (bfd_m68k_arch): Set mach field to zero to signal no explicit
5966 selection, change printable_name to just "m68k" and make that the
5967 default instead of m68k:68020.
5968
5969 * aout-tic30.c (NAME): Define this to avoid multiple definitions
5970 from aoutx.h.
5971 (MY_get_section_contents): Define as aout_32_get_section_contents
5972 rather than NAME(aout,get_section_contents).
5973
5974 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
5975
5976 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
5977 and call bfd_default_set_arch_mach to do the real work.
5978
5979Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
5980
5981 * bout.c (BALX): Include return register g14 as part of the insn.
5982 (BALX_MASK): New.
5983 (calljx_callback): Use it.
5984
5985Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
5986
5987 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
5988 * libbfd.h: Rebuild.
5989
5990 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
5991 byte_count to unsigned int.
5992 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
5993 unused local variables.
5994
5995 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
5996 variables er and er1.
5997
5998 * cpu-v850.c: Include <ctype.h>.
5999 (scan): Case isdigit argument to unsigned char.
6000
6001 From Yan Meroth <YAN.MEROTH@st.com>:
6002 * ihex.c (ihex_scan): Add extbase variable so that getting an
6003 extended linear address record does not ignore any previous
6004 extended address.
6005 (ihex_write_object_contents): When writing out an extended linear
6006 address record, zero out any previous extended address.
6007
6008Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
6009
6010 * ieee.c (do_one): Check section before dereferencing it.
6011 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
6012 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
6013
6014Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
6015
6016 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
6017
6018Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
6019
6020 * coff-arm.c: Add interworking functions to pe backends.
6021
6022Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
6023
6024 * configure.in: Use AM_DISABLE_SHARED.
6025 * aclocal.m4, configure: Rebuild with libtool 1.2.
6026
6027Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
6028
6029 * coff-arm.c (coff_arm_relocate_section): Better error messages
6030 when interowrking conflucts occur. Courtesy of Jonathan Walton
6031 and Tony Thompson.
6032 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
6033 relocations. Patch courtesy of Jonathan Walton and Tony
6034 Thompson.
6035
6036Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
6037
6038 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
6039 part of Feb 22 change controling when to override the existing
6040 symbol with the .plt entry.
6041
6042Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
6043
6044 * config.bfd (targ_cpu): Add thumb-pe target.
6045
6046 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
6047 functions in PE build.
6048
6049Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
6050
6051 * config.bfd (sparclite-*-elf*): Added.
6052
6053Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
6054
6055 * configure.in: Add elf.lo to elf shell variable.
6056 * Makefile.am (BFD_LIBS): Remove elf.lo.
6057 (BFD_LIBS_CFILES): Remove elf.c.
6058 (BFD32_BACKENDS): Add elf.lo.
6059 (BFD32_BACKENDS_CFILES): Add elf.c.
6060 * configure, Makefile.in: Rebuild.
6061
60621998-02-23 15:53 Richard Henderson <rth@cygnus.com>
6063
6064 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
6065 relocation against a now-local symbol should not have a dynamic
6066 relocation.
6067
6068Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
6069
6070 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
6071 COFF filehdr flags.
6072 (pe_print_private_bfd_data): Print PE flags. From Mikey
6073 <jeffdb@netzone.com>.
6074
6075Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
6076
6077 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
6078 a plt entry when we can determine that we authoritatively define
6079 the symbol.
6080
6081Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
6082
6083 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
6084 don't actually use trad-core, but a SunOS-style core file handled
6085 by gdb directly.
6086 * hosts/sparclinux.h: Remove.
6087
6088Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
6089
6090 * peicode.h (pe_print_idata): If there is no .idata section, look
6091 for the import tables in some other section. Make the initial
6092 label line up better with the data. Print the import address
6093 table even if there is no import name table. If the import
6094 address table holds actual addresses, print them.
6095
6096Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
6097
6098 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
6099 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
6100 bfd_error_system_call.
6101
6102Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
6103
6104 * Makefile.am (AUTOMAKE_OPTIONS): Define.
6105 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
6106
6107 From H.J. Lu <hjl@gnu.org>:
6108 * Makefile.am (libbfd_la_LDFLAGS): Define.
6109 * Makefile.in: Rebuild.
6110
6111Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
6112
6113 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6114 * netbsd.h (MACHTYPE_OK): Define.
6115 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
6116 calling N_SET_MACHTYPE, rather than having a switch.
6117 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
6118 and M_ALPHA_NETBSD.
6119 * i386netbsd.c (MACHTYPE_OK): Don't define.
6120 (DEFAULT_MID): Define.
6121 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
6122 (MACHTYPE_OK): Don't define.
6123 (DEFAULT_MID): Define.
6124 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
6125 (DEFAULT_MID): Define.
6126 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
6127 (DEFAULT_MID): Define.
6128 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
6129 (DEFAULT_MID): Define.
6130
6131 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6132 * vaxnetbsd.c: New file.
6133 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
6134 rather than netbsd_core.
6135 * targets.c (vaxnetbsd_vec): Declare.
6136 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
6137 defined, add netbsd_core_vec.
6138 * configure.in: Set COREFILE for alpha*-*-netbsd* and
6139 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
6140 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
6141 * config.bfd (alpha*-*-netbsd*): New target.
6142 * Makefile.am: Rebuild dependencies.
6143 (BFD32_BACKENDS): Add vaxnetbsd.lo.
6144 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
6145 * configure, Makefile.in: Rebuild.
6146
6147 * configure.host: Remove the old shared library build stuff. We
6148 now use libtool instead.
6149
6150Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
6151
6152 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
6153
6154Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
6155
6156 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
6157 * configure: Rebuild.
6158
6159Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
6160 * elf32-v850.c (remember_hi16s_reloc): New function.
6161 (find_remembered_hi16s_reloc): New function.
6162 (v850_elf_store_addend_in_insn): Use the above new functions to
6163 match up HI6S relocs with LO16 relocs.
6164
6165Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
6166
6167 * configure.in: Change -linux* to -linux-gnu*.
6168 * config.bfd, configure.host: Likewise.
6169 * configure: Rebuild.
6170
6171Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
6172
6173 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
6174 LO16/HI16S bug and improve comments about what is going on.
6175
6176Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
6177
6178 * configure, aclocal.m4: Rebuild with new libtool.
6179
6180Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
6181
6182 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
6183 when merging v850 code into v850e/v850ea code. Do not initialise
6184 output flags if the input is the default architecture.
6a9d5c9a 6185
252b5132
RH
6186Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
6187
6188 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
6189 get the size from bfd_arch_bits_per_address instead of directly
6190 from the isa.
6191
6192Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
6193
6194 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
6195 to wrap, just return all 1's bits instead.
6196 * libbfd.h: Regenerate.
6197
6198Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
6199
6200 * coff-i386.c (coff_pe_i386_relocate_section): New static function
6201 if COFF_WITH_PE.
6202 (coff_relocate_section): If COFF_WITH_PE, define as
6203 coff_pe_i386_relocate_section.
6204 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
6205 skip empty sections, to match coff_write_object_contents.
6206
6207 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
6208 rather than swapping out r_offset twice. From Luke Deller
6209 <luked@cse.unsw.edu.au>.
6210
6211Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
6212
6213 * configure.in: Set libtool_enable_shared rather than
6214 libtool_shared. Remove diversion hack.
6215 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
6216 with new libtool.
6217
6218Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
6219
6220 * syms.c (struct stab_cache): Define.
6221 (struct stab_find_info): Remove cached_offset, cached_stab,
6222 cached_str, and cached_stroff fields. Add file_cache,
6223 function_cache, and line_cache fields.
6224 (_bfd_stab_section_find_nearest_line): Use extensive caching to
6225 speed up searches.
6226
6227Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
6228
6229 * peicode.h (pe_print_idata): Check for import of ordinal rather
6230 than name.
6231 (pe_print_edata): If there is no .edata section, look for the
6232 export data in some other section.
6233
6234Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
6235
6236 * configure.in: Change version to 2.8.4.
6237 * configure: Regenerated.
6238
6239Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
6240
6241 Add tms320c30 support:
6242 * cpu-tic30.c: New file.
6243 * aout-tic30.c: New file.
6244 * coff-tic30.c: New file.
6245 * archures.c (bfd_arch_tic30): Define.
6246 (bfd_tic30_arch): Declare.
6247 (bfd_archures_list): Add bfd_tic30_arch.
6248 * targets.c (bfd_target_vector): Add tic30_aout_vec and
6249 tic30_coff_vec.
6250 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
6251 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
6252 (coff_set_flags): Likewise.
6253 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
6254 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
6255 * Makefile.am: Rebuild dependencies.
6256 (ALL_MACHINES): Add cpu-tic30.lo.
6257 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
6258 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
6259 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
6260 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
6261
6262Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
6263
6264 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
6265 to lag behind LO16 reloc by a couple of instructions.
6266
6267Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
6268
6269 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
6270 make to reexamine the file timestamp.
6271 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
6272
6273 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
6274 0x100000.
6275
6276Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
6277
6278 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
6279 to create .dynsbss and .rela.sbss sections.
6280 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
6281 copied from dynamic objects into .sbss.
6282 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
6283 use it. Correct typo of .rela.sdata2.
6284 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
6285 put the data, which may now be in .sbss.
6286 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
6287 (elf_backend_create_dynamic_sections): Define as
6288 ppc_elf_create_dynamic_sections.
6289
6290 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
6291 against _GLOBAL_OFFSET_TABLE_.
6292 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
6293 shared libraries which refer to local symbols. Make sure that the
6294 test for allocating space for a reloc in a shared object is the
6295 same as the test for emitting a reloc.
6296
6297Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
6298
6299 * config.bfd (i[3456]-*-mingw32*): New target.
6300 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
6301 * aclocal.m4, configure: Rebuild.
6302
6303Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
6304
6305 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
6306 have a bfd_object.
6307
6308Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
6309
6310 Sparc v9 ABI compliant PLT:
6311 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
6312 (plt_templates, sparc64_elf_build_plt_entry): Delete.
6313 (LARGE_PLT_THRESHOLD): New define.
6314 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
6315 (sparc64_elf_build_plt): New function.
6316 (sparc64_elf_plt_entry_offset): Likewise.
6317 (sparc64_elf_plt_ptr_offset): Likewise.
6318 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
6319 contain the index for convenience. Skip the initial entries
6320 in .rela.plt.
6321 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
6322 memory for the benefit of .rela.plt.
6323 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
6324 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
6325 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
6326 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
6327 Call sparc64_elf_build_plt.
6328 (elf_backend_want_got_plt): No.
6329 (elf_backend_plt_readonly): No.
6330 (elf_backend_plt_alignment): 8.
6331
6332 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
6333 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
6334 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
6335 to be called.
6336
6337Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
6338
6339 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
6340 processors.
6341 * cpu-mips.c (arch_info_struct): Add mips variants.
6342 * bfd-in2.h: Rebuilt.
6343
6344Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
6345
6346 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
6347 t2a3_b_insn.
6348
6349Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
6350
6351 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
6352 (i[3456]86sco3.2v5*coff): New target.
6353
6354Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
6355
6356 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
6357
6358Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
6359
6360 * bfd.c (bfd_get_error_handler): Add orthogonal function.
6361 * bfd-in2.h: Regenerate.
6362
6363Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
6364
6365 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
6366
6367Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
6368
6369 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
6370 adjust addend for an output common symbol (from Jimmy Blair
6371 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
6372 defined symbol to counteract adjustment made in generic relocation
6373 code.
6374
6375 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
6376
6377Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
6378
6379 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
6380 (GET_SCNDHR_NLNNO): Likewise.
6381
6382Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
6383
6384 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
6385
6386Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
6387
6388 * elf32-m32r.c: Add macros to handle NOP insertion.
6389
6390Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
6391
6392 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
6393 (xcoff_mark): Likewise.
6394 (xcoff_build_ldsyms): Mark absolute symbols.
6395
6396Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
6397
6398 * bout.c (b_out_write_object_contents): Sort symbols before output
6399 to keep {CALL,BAL}NAME symbols adjacent.
6400 (b_out_symbol_cmp): New function.
6401
6402For older changes see ChangeLog-9697
6403\f
6404Local Variables:
6405mode: change-log
6406left-margin: 8
6407fill-column: 74
6408version-control: never
6409End:
This page took 0.318864 seconds and 4 git commands to generate.