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