1999-12-15 Doug Evans <dje@transmeta.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
48dfb430
NC
11999-12-14 Nick Clifton <nickc@cygnus.com>
2
3 * elflink.h (is_global_symbol_definition): New Function: Return
4 true iff the symbol is being given a global definition in this
5 bfd.
6 (elf_link_is_defined_archive_symbol): Do not bother processing
7 symbols for an archive element that has already been included
8 in the link.
9 Use is_global_symbol_definition().
10
93be3c4b
AC
111999-12-09 Andrew Cagney <cagney@cygnus.com>
12
13 * config.bfd: Add support for sparc-*-netbsdelf* and
14 sparc-*-netbsdaout*.
15
ceddadb2
NC
161999-12-13 Nick Clifton <nickc@cygnus.com>
17
18 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
19 if the symbol is in the common section.
20
a3a8c91d
NC
211999-12-10 Nick Clifton <nickc@cygnus.com>
22
23 * elflink.h (elf_link_is_defined_archive_symbol): New
24 function: Decide if a symbol, in an archive map is there
25 because it is defined in the archive element, or because it is
26 just another common declaration of it.
27 (elf_link_add_archive_symbols): Use
28 elf_link_is_defined_archive_symbol to decide if an archive
29 element contain a reference to a common symbol should be
30 linked in or not.
31
77fb9c28
NC
321999-12-10 Nick Clifton <nickc@cygnus.com>
33
34 * elflink.h: Revert previous patch.
35 * targets.c: Revert previous patch.
36 * libbfd-in2.h: Revert previous patch.
37 * libbfd.h: Revert previous patch.
38 * elfxx-target.h: Revert previous patch.
39 * archive.c: Revert previous patch.
40 * aout-target.h: Revert previous patch.
41 * aout-tic30.h: Revert previous patch.
42 * bfd.c: Revert previous patch.
43 * coff-alpha.c: Revert previous patch.
44 * coff-rs6000.c: Revert previous patch.
45 * elf64-mips.c: Revert previous patch.
46 * ieee.c: Revert previous patch.
47 * libecoff.h: Revert previous patch.
48 * oasys.c: Revert previous patch.
49 * som.c: Revert previous patch.
50 * vms.c: Revert previous patch.
51
ad247e3c
NC
521999-12-09 Nick Clifton <nickc@cygnus.com>
53
54 * elflink.h (elf_link_add_archive_symbols): Add an archive
55 element even if contains a symbol which is currently only
56 considered to be a common.
57
58 * targets.c (struct bfd_target): Add new field
59 _bfd_allow_commons_in_armap.
60 * bfd-in2.h:Regenerate.
61
62 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
63 Define.
64 (_bfd_archive_bsd_allow_commons_in_armap): Define.
65 * libbfd.h: Regenerate.
66
67 * elfxx-target.h: If using COFF archive map, override
68 definition of allow_commons_in_armap and replace with
69 bfd_false.
70
71 * archive.c (bfd_compute_and_write_armap): Do not place common
72 symbols into the archive map unless _bfd_allow_commons_in_armap
73 returns true.
74
75 * aout-target.h (MY_allow_commons_in_armap): Define.
76 * aout-tic30.h (MY_allow_commons_in_armap): Define.
77 * bfd.c (bfd_allow_commons_in_armap): Define.
78 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
79 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
80 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
81 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
82 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
83 * oasys.c (oasys_allow_commons_in_armap): Define.
84 * som.c (som_allow_commons_in_armap): Define.
85 * vms.c (vms_allow_commons_in_armap): Define.
86
6fe6a461
JB
871999-12-07 Jim Blandy <jimb@cygnus.com>
88
89 Add support for SSE registers in ELF core files.
90 * elf.c (elfcore_make_note_pseudosection): New function.
91 (elfcore_grok_prfpreg): Use it.
92 (elfcore_grok_prxfpreg): New function.
93 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
94
2a6d49ea
ILT
951999-12-03 Ian Lance Taylor <ian@zembu.com>
96
97 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
98 value by 4 before storing it back in the field. From
99 Koundinya. K <kk@ddeorg.soft.net>.
100
31f8dc8f
JL
101Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
102
103 * archures.c (bfd_mach_am33): Define.
104 * bfd-in2.h: Rebuilt.
105 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
106 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
107 (compute_function_info): Handle additional registers saved by
108 movm on the am33.
109 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
110 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
111
98d8431c
JB
1121999-11-29 Jim Blandy <jimb@cygnus.com>
113
114 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
115 functions.
116 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
117 declarations.
118
fe174262
MM
1191999-11-27 Michael Meissner <meissner@cygnus.com>
120
121 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
122 internal use within gas for alpha explicit relocations.
123 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
124 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
125 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
126 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
127 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
128 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
129
130 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
131 BFD_RELOC_ALPHA_USER_*.
132
133 * bfd-in2.h: Regenerate.
134 * libbfd.h: Regenerate.
135
20cfcaae
NC
1361999-11-26 Fred Fish <fnf@cygnus.com>
137
138 * elf.c (elfcore_read_notes): Add prototype for static function.
139 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
140 (bfd_section_from_phdr): Replacement function that calls
141 _bfd_elf_make_section_from_phdr for generic segment types and
142 backend fucntion pointed to by elf_backend_section_from_phdr for
143 backend specific segment types.
144 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
145 now called by _bfd_elf_make_section_from_phdr. Note that this func
146 is now just a stub between the caller and bfd_section_from_phdr.
147
148 * elf-bfd.h (struct elf_backend_data): Add new function pointer
149 elf_backend_section_from_phdr.
150 (elf_backend_section_from_phdr): Add prototype.
151
152 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
153 (elfNN_bed): Add elf_backend_section_from_phdr.
154
811b4bf6
NC
1551999-11-25 Nick Clifton <nickc@cygnus.com>
156
ba3d4249
NC
157 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
158 SEC_CODE and SEC_READONLY flags to glue sections.
159
811b4bf6
NC
160 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
161 SEC_CODE and SEC_READONLY flags to glue sections.
162
01ef19d2
NC
1631999-11-20 Nick Clifton <nickc@cygnus.com>
164
165 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
166 delta.
167
1ca42bad
CM
1681999-11-19 Catherine Moore <clm@cygnus.com>
169
170 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
171 (elf_cpu32_plt_entry): Likewise.
172
078c8694
NC
1731999-11-18 Nick Clifton <nickc@cygnus.com>
174
175 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
176 for RVA relocs.
177 (coff_mcore_relocate_section): Initialise addend to 0.
178 Special case processing of RVA reloc.
179
86dc0f79
RH
1801999-11-17 Richard Henderson <rth@cygnus.com>
181
182 * elf-bfd.h (struct elf_backend_data): Reorder collect and
183 type_change_ok; add sign_extend_vma.
184 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
185 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
186 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
187 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
188 (elfNN_bed): Follow struture changes.
189
0bff3f4b
ILT
1901999-11-09 Ian Lance Taylor <ian@zembu.com>
191
192 * libbfd.c (bfd_read): Check result of read against desired result
193 using !=, not <.
194 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
195 invalid compared to the section size.
196
197 * ieee.c (ieee_slurp_debug): Get the length of the debug
198 information right if there is no data part.
199
832fc202
JL
200Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
201
202 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
203 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
204
71a40b32
ILT
2051999-10-28 Ian Lance Taylor <ian@zembu.com>
206
207 * elflink.h (elf_bfd_final_link): Make last_local signed.
208
8140b664
ILT
2091999-10-27 Ian Lance Taylor <ian@zembu.com>
210
211 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
212 starts with a zero.
213
7af8cca9
MM
214Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
215
216 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
217 bfd_mach_d10v_ts3.
218 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
219 * bfd-in2.h: Regenerate.
220
a67a8777
AH
2211999-10-15 Andrew Haley <aph@cygnus.com>
222
223 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
224
7a7191b7
JL
225Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
226
227 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
228
64df8d0b
ILT
2291999-10-08 Ian Lance Taylor <ian@zembu.com>
230
231 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
232 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
233 too.
234
0af99795
GK
235Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
236
237 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
238 relocs also need the GP value.
239 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
240 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
241 the GP value for R_MIPS_LITERAL relocs too. Handle
242 R_MIPS_64 relocs properly on big-endian MIPS.
243 (mips_elf_sign_extend): Behave properly with 'long long'.
244 (mips_elf_highest): Correct typo.
245
e916b64e
DE
246Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
247
248 * cpu-m32r.c (arch_info_struct): New static global.
249 (bfd_m32r_arch): Refer to it.
250 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
251 (m32r_elf_print_private_bfd_data): Ditto.
252 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
a23ef39f
DE
253 * archures.c (bfd_mach_m32rx): Define it.
254 * bfd-in2.h: Rebuild.
e916b64e 255
f4bda984
RH
2561999-09-28 Fred Fish <fnf@cygnus.com>
257
258 * targets.c (cisco_core_vec): Replaced with two new vecs ...
259 (cisco_core_big_vec): Add new bigendian vec.
260 (cisco_core_little_vec): Add new little endian vec.
261
262 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
263 (crash_info_locs): Add array of possible offsets.
264 (MASK_ADDR): Mask to apply to crash info offset.
265 (crashinfo_external): Add textbase, database, bssbase and
266 turn into a typedef.
267 (cisco_core_file_validate): Renamed from cisco_core_file_p.
268 Many small changes to account for additional hardware versions.
269 Pick a reasonable size for ".reg" section. Add a ".crash"
270 section to allow access to crashinfo_external struct.
271 (cisco_core_file_p): New version of this function that
272 iterates over crash_info_locs, calling cisco_core_file_validate.
273 (cisco_core_vec): Old big endian only vec replaced with ...
274 (cisco_core_big_vec): Add big endian version.
275 (cisco_core_little_vec): Add little endian version.
276
277 * configure.in (cisco_core_vec): Split to two new vectors ...
278 (cisco_core_big_vec): New target vector.
279 (cisco_core_little_vec): New target vector.
280 * configure: Regenerate.
281 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
282 to cisco_core_big_vec in targ_selvecs.
283
d02f29ad
GK
2841999-09-28 Geoffrey Keating <geoffk@cygnus.com>
285
286 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
287 (mips_elf_relocate_got_local): Unused, delete.
288 (mips_elf_relocate_global_got): Unused, delete.
289
27ac83bf
RH
2901999-09-24 Fred Fish <fnf@cygnus.com>
291
292 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
293 to initialize it to something meaningful. Then use it to generate
294 more useful segment names.
295
2667095f
JL
296Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
297
298 * som.c (NO_PCREL_MODES): Define if the system does not define
299 R_SHORT_PCREL_MODE.
300 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
301 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
302 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
303 * libhppa.h (dis_assemble_22): New function.
304 (bfd_hppa_insn2fmt): Handle long branch.
305
27ac83bf
RH
306 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
307 in PA2.0.
2667095f 308
b7be1db6
AM
3091999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
310
311 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
312 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
313 (reloc_howto_type howto_table): Tidy comments and whitespace.
314
57db232e
NC
3151999-09-17 Nick Clifton <nickc@cygnus.com>
316
317 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
318 previous delta. Set sec->gc_mark instead.
319
38f7d33d
CM
320Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
321
322 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
323 (elf_cpu32_plt_entry): Likewise.
324
dfec422f
JL
325Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
326
b2df1460
JL
327 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
328
1209c612
JL
329 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
330 symbol table, then just compute a suitable value (but do not
331 create a __gp symbol).
332
dfec422f
JL
333 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
334 symbols when building shared libraries.
335 (elf_hppa_final_link_relocate): Correct handling of PCREL
336 relocations against undefined symbols.
337
d0f2103d
NC
3381999-09-16 Nick Clifton <nickc@cygnus.com>
339
340 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
341 interworking sections as linker created so that they will not
342 be removed by garbage collection.
343
19ef5465
JL
344Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
345
346 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
347 (elf_hppa_final_link_relocate): Consistently create an absolute
348 address, then subtract out the value of __gp.
349
6d83c84b
MM
3501999-09-14 Michael Meissner <meissner@cygnus.com>
351
352 * configure.in (Canonicalization of target names): Remove adding
353 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
354 generates $ac_config_sub with a ${CONFIG_SHELL} already.
355 * configure: Regenerate.
356
06a5ee55
NC
3571999-09-14 Nick Clifton <nickc@cygnus.com>
358
359 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
360 Mitsubishi).
361
b2e311df
JL
362Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
363
2ec0dd12
JL
364 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
365 (elf_hppa_final_link): Initialize text_segment_base and
366 data_segment_base.
367 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
368
b2e311df
JL
369 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
370 (elf_hppa_final_link_relocate): Likewise.
371 (elf_hppa_relocate_insn): Likewise.
372 (elf_hppa_relocate_section): Initialize HOWTO.
373
79207490
ILT
3741999-09-13 Donn Terry <donn@interix.com>
375
e5db213d
ILT
376 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
377 handling to support both GNU and MS objects.
378
79207490
ILT
379 * coffcode.h (coff_write_object_contents): Don't check reloc_count
380 when determining whether to set F_RELFLG.
381
59f2c4e7
NC
3821999-09-13 Philip Blundell <pb@nexus.co.uk>
383
384 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
385 PC24 relocs if the target is an undefined weak symbol.
386 (arm_add_to_rel): Fix compiler warning.
387 (elf32_arm_plt0_entry): Correct comments.
388
2f66722d
AM
3891999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
390
391 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
392 an absolute symbol in REL relocs.
393
228d307f
JL
394Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
395
396 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
397 Stub SEGREL32. Return an error for any relocation not handled.
398
49147fca
ILT
3991999-09-12 Ian Lance Taylor <ian@zembu.com>
400
401 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
402 constant symbols, and avoid multiple definition errors on them.
403
86b21447
ILT
4041999-09-12 Donn Terry <donn@interix.com>
405
406 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
407 significant bit is set.
408
eeaf533e
ILT
4091999-09-11 Ian Lance Taylor <ian@zembu.com>
410
a50f8417
ILT
411 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
412
eeaf533e
ILT
413 * elfcode.h (write_relocs): Handle an absolute symbol in REL
414 relocs as we do for RELA relocs.
415
703153b5
ILT
4161999-09-11 Donn Terry <donn@interix.com>
417
2fbadf2c
ILT
418 * libpei.h (_bfd_pei_final_link_postscript): Declare.
419 (coff_final_link_postscript): Define.
420 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
421 directory entries here.
422 (_bfd_pei_final_link_postscript): New function.
423
8c42d010
ILT
424 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
425 section flags based on the section name.
426
cb43721d
ILT
427 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
428 get the overflow of the s_nlnno field from the s_nreloc field.
429 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
430 the s_nlnno overflow of the .text section into the s_nreloc
431 field.
432
5933bdc9
ILT
433 * peigen.c (add_data_entry): Declare.
434 (pei_swap_aouthdr_out): Get image size right. Set linker version
435 more intuitively.
436 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
437 (pe_print_idata): Code cleanup, print more info, get rid of (now)
438 extraneous ImageBase.
439 (pe_print_edata): Likewise.
440 (pe_print_pdata): Likewise. Print exception entries.
441 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
442 (tbl): Make const, add "UNKNOWN".
443 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
444 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
445 section data directory.
446 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
447
7d2b58d6
ILT
448 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
449 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
450 * peicode.h (coff_get_symbol_info): Define.
451
0717ebb7
ILT
452 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
453 -DSTRICT_PE_FORMAT.
454 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
455 than __INTERIX.
456 (coff_classify_symbol): Re-revert 1999-08-08 patch if
457 STRICT_PE_FORMAT.
458
277d1b5e
ILT
459 * libpei.h: New file, broken out of peicode.h.
460 * peigen.c: New file, broken out of peicode.h.
461 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
462 * configure.in: Add peigen.lo to list of files required for each
463 PE target.
464 * Makefile.am: Rebuild dependencies.
465 (BFD32_BACKENDS): Add peigen.lo.
466 (BFD32_BACKENDS_CFILES): Add peigen.c.
467 (SOURCE_HFILES): Add libpei.h.
468 * configure, Makefile.in: Rebuild.
469
e166a60f
ILT
470 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
471 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
472 instead. Don't clear the s_paddr field for an uninitialized data
473 section.
474
1135238b
ILT
475 * coffcode.h (coff_mkobject_hook): Set timestamp field in
476 coff_data_type to f_timdat.
477 * peicode.h (pe_mkobject_hook): Likewise.
478
05bf877a
ILT
479 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
480 number if COFF_IMAGE_WITH_PE.
481
4cfec37b
ILT
482 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
483 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
484 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
485 there is no SEC_DEBUGGING section.
486 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
487 IMAGE_FILE_DEBUG_STRIPPED.
488
33d7d197
ILT
489 * pe-i386.c (COFF_LONG_FILENAMES): Define.
490 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
491 * pei-i386.c (COFF_LONG_FILENAMES): Define.
492 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
493
402ef9d4
ILT
494 * coffswap.h (IMAGE_BASE): Don't define.
495 * pei-arm.c (IMAGE_BASE): Don't define.
496 * pei-i386.c (IMAGE_BASE): Don't define.
497 * pei-mcore.c (IMAGE_BASE): Don't define.
498 * pei-ppc.c (IMAGE_BASE): Don't define.
499
8add8e30
ILT
500 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
501 symbol, switch on the class when determining whether to modify the
502 value. For PE, don't modify the value of a C_FCN symbol not named
503 .bf.
504
c0bed66d
ILT
505 * libbfd-in.h (_bfd_abort): Declare.
506 (abort): Define.
507 * bfd.c (_bfd_abort): New function.
508 * libbfd.h: Rebuild.
509
a50f8417
ILT
510 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
511 special handling.
512
b545f675
ILT
513 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
514 don't write out the associated line numbers.
515
2c546cd8
ILT
516 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
517 aux entries.
518
5d3aaa74
ILT
519 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
520 changes when the base type is unknown.
521
312191a6
ILT
522 * coffgen.c (coff_print_symbol): Fix printing of aux record for
523 function symbols.
524
703153b5 525 * syms.c (BSF_DEBUGGING_RELOC): Define.
d510f9a6
ILT
526 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
527 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
528 symbols named .bf.
703153b5
ILT
529 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
530 BSF_DEBUGGING_RELOC set.
531 * bfd-in2.h: Rebuild.
532
7b50b349
ILT
5331999-09-10 Ian Lance Taylor <ian@zembu.com>
534
535 * ecoff.c (bfd_debug_section): Update initialization for new
536 comdat_info field.
537 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
538 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
539
5401999-09-10 H.J. Lu <hjl@gnu.org>
541
542 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
543 _bfd_filnmlen field.
544 * coff-mips.c (mips_ecoff_backend_data): Likewise.
545
af7dc644
JL
546Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
547
e48c661e
JL
548 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
549 for FPTR relocs involving local symbols.
550
6a0b9871
JL
551 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
552 value for the stub address in a call through a stub.
553 Install the value for a local symbol directly into the DLT
554 instead of generating a reloc. Correctly handle FPTR64 relocs.
555
af7dc644
JL
556 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
557 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
558 (elf_hppa_final_link): Call them.
559
fc4cc5bb
ILT
5601999-09-10 Ian Lance Taylor <ian@zembu.com>
561
562 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
563 (elf_adjust_dynamic_symbol): ...from here.
564
be7582f3
JL
565Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
566
b7263961
JL
567 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
568 relocation, remove them. SECREL64->LTOFF16WF.
569 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
570 DIR* relocations.
571 (elf_hppa_relocate_insn): Similarly.
572
8267b155
JL
573 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
574 (elf_hppa_relocate_insn): Similarly.
575
6849fb4d
JL
576 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
577 GPREL* relocations.
578 (elf_hppa_relocate_insn): Similarly.
579
b233eaab
JL
580 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
581 Handle LTOFF_TP* relocs.
582 (elf_hppa_relocate_insn): Similarly.
583
571047ad
JL
584 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
585 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
586 (elf_hppa_relocate_insn): Handle PCREL* relocs.
587
e5bb3efc
JL
588 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
589 DIR32, DIR64 and FPTR64 relocations.
590 (elf_hppa_relocate_insn): Similarly.
591
be7582f3
JL
592 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
593 address of the .PARISC.global section.
594 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
595 table entry elf_hppa_final_link_relocate. Do not give a warning
596 for a reloc against an external symbol if it has a PA64 hash
597 table entry.
598 (elf_hppa_final_link_relocate): Significantly rework. Handle
599 DLTIND relocations. Compute the final value of the relocation
600 before passing the value of elf_hppa_relocate_insn.
601 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
602 relocation support. Handle DLTIND relocation requests just like
603 DLTREL relocation requests. Simplify branch handling.
604
6051999-09-08 Ulrich Drepper <drepper@cygnus.com>
606
607 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
608 non-allocated section as done in i386 version.
609 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
610 statement since this is no know relocation.
611
c8933571
JL
612Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
613
084d930b
JL
614 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
615 relocs.
616 (elf_hppa_relocate_insn): Similarly.
617
11c19a4e
JL
618 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
619 DLTREL14WD relocs.
620 (elf_hppa_relocate_insn): Similarly.
621
c8933571
JL
622 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
623 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
624 Pass the relocate type rather than the insn format to
625 elf_hppa_relocate_insn.
626 (elf_hppa_relocate_insn): Make switch dependent on relocation type
627 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
628
692b7d62
ILT
6291999-09-07 Ian Lance Taylor <ian@zembu.com>
630
631 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
632 (bfd_coff_filnmlen): Define.
633 (bfd_coff_std_swap_table): Initialize new field.
634 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
635 than FILNMLEN.
636 (coff_write_symbols): Likewise.
637 (coff_get_normalized_symtab): Likewise.
638 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
639 * libcoff.h: Rebuild.
640
022a5af4
ILT
6411999-09-06 Donn Terry <donn@interix.com>
642
75cc7189
ILT
643 * coffcode.h (sort_by_secaddr): New static function if
644 COFF_IMAGE_WITH_PE.
645 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
646 sections by VMA when assigning target_index values. Always set
647 virt_size.
648
8d3ad4e1 649 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
fdfd89ab
ILT
650 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
651 pe_flags field.
8d3ad4e1
ILT
652 * libcoff.h: Rebuild.
653
8a1ad8e7
ILT
654 * coffcode.h (coff_set_custom_section_alignment): Add const to
655 declaration to match definition.
656 (coff_write_object_contents): Don't set F_AR32W(R)? if
657 COFF_WITH_PE.
658
659 * coff-i386.c (in_reloc_p): Add declaration.
660 (i386coff_vec): Simplify initialization of
661 application_section_flags.
662
41733515
ILT
663 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
664 version. Move COFF_WITH_PE specific code to new version.
665 (stype_to_sec_flags): Likewise. Add section parameter.
666 * coffgen.c (make_a_section_from_file): Set target_index before
667 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
668 * libcoff.h: Rebuild.
669
92962560
ILT
670 * syms.c (stt): Add some PE/PEI section names.
671 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
672 symbol.
673 (bfd_symbol_info): Check for 'w'.
674
022a5af4
ILT
675 * section.c (struct bfd_comdat_info): Define.
676 (asection): Add comdat field.
677 (STD_SECTION): Initialize comdat field.
678 (bfd_make_section_anyway): Likewise.
679 * bfd-in2.h: Rebuild.
680
0d271c1a
AS
6811999-09-06 Andreas Schwab <schwab@suse.de>
682
683 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
684 to version symbols.
685
fed79cc6
NC
6861999-09-06 Nick Clifton <nickc@cygnus.com>
687
688 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
689 bfd_realloc instead of calloc and realloc.
690
0bcb993b
ILT
6911999-09-04 Steve Chamberlain <sac@pobox.com>
692
693 * cpu-pj.c: New file.
694 * elf32-pj.c: New file.
695 * config.bfd (pj*): New cpu.
696 (pj-*-*, pjl-*-*): New targets.
697 * configure.in (bfd_elf32_pj_vec): New target vector.
698 (bfd_elf32_pjl_vec): New target vector.
699 * archures.c (bfd_arch_pj): Define.
700 * elf.c (prep_headers): Handle bfd_arch_pj.
701 * reloc.c: Define BFD_RELOC_PJ_* relocations.
702 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
703 to target vector list.
704 * Makefile.am: Rebuild dependencies.
705 (ALL_MACHINES): Add cpu-pj.lo.
706 (ALL_MACHINES_CFILES): Add cpu-pj.c.
707 (BFD32_BACKENDS): Add elf32-pj.lo.
708 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
709 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
710
7843f00e
ILT
7111999-09-04 Ian Lance Taylor <ian@zembu.com>
712
713 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
714 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
715 and NON_GOT_REF from weak defined symbol to real symbol.
716 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
717 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
718 create a COPY reloc.
719 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
720 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
721 don't create a COPY reloc.
722
814fe68a
ILT
7231999-09-03 Ian Lance Taylor <ian@zembu.com>
724
725 * elflink.h (elf_bfd_final_link): When counting relocations, don't
726 count those in sections we are not including in the link.
727
20e29382
JL
728Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
729
730 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
731 field in hpux11 shared libraries.
732
4b56dbbd
NC
7331999-09-02 Nick Clifton <nickc@cygnus.com>
734
735 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
736
2eb429af
JL
737Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
738
739 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
740 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
741 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
742
994819d2
NC
7431999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
744
745 * elflink.h (record_link_assignment): When possible, keep the
746 original type of the symbol.
747
0d571602
JL
748Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
749
750 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
751 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
752 tools were configured.
753 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
754
9458945f
MM
7551999-08-26 Mark Mitchell <mark@codesourcery.com>
756
757 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
758 GOT entries for GOT16 relocations; they're not required.
759
021e3cc0
NC
7601999-08-24 Nick Clifton <nickc@cygnus.com>
761
762 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
763
764 * config.bfd (arm-*-netbsd*): New target.
765 * configure.in (armnetbsd_vec): New target vector.
766 * configure: Regenerate
767 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
768
769 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
770 (ALL_MACHINES_CFILES): Add armnetbsd.c.
771 (armnetbsd.lo): New rule with deps.
772 * Makefile.in: Regenerate.
773
774 * armnetbsd.c: New file: Definitions specific to arm-netbsd
775 target.
776
7da1b175
JL
777Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
778
779 * som.c (som_slurp_symbol_table): Fix typo in comment.
780
1ca74062
JL
781Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
782
783 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
784 here instead of using elf_section_data...
785
69e70d30
NC
7861999-08-19 Nick Clifton <nickc@cygnus.com>
787
788 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
789 relocations into the base file.
790 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
791 we are building a base file.
792
98c1d4aa
NC
7931999-08-19 Nick Clifton <nickc@cygnus.com>
794
795 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
796 a REL style reloc.
797 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
798 REL relocs when performing a partial relocation.
799
00692651
ILT
8001999-08-18 Donn Terry <donn@interix.com>
801
b2d638c7
ILT
802 * cofflink.c: Move definitions of N_TMASK, et. al., out of
803 _bfd_coff_link_input_bfd into top level.
804
00692651
ILT
805 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
806 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
807 (coff_i386_rtype_to_howto): Likewise.
808 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
809 Completely ignore symbols which are all zero.
810 (dummy_reloc16_estimate): Add return 0.
811 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
812 variable copy to name_copy to avoid shadowing outer scope
813 variable.
814 * libcoff-in.h (coff_data_type): Change raw_syment_count field
815 from unsigned int to unsigned long. Add timestamp field.
816 * libcoff.h: Rebuild.
817
1396cd2d
ILT
8181999-08-17 H.J. Lu <hjl@gnu.org>
819
820 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
821 macro definition.
822
0035bd7b
ILT
8231999-08-17 Ian Lance Taylor <ian@zembu.com>
824
825 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
826 for special section symbols.
827 * elflink.h (elf_merge_symbol): If we have no old BFD, check
828 BSF_DYNAMIC on the section symbol to see whether the old BFD is
829 dynamic.
830
8535d39c
MM
8311999-08-15 Mark Mitchell <mark@codesourcery.com>
832
833 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
834 coincidence of variable names between old and new code.
835
bcbdc74c
NC
8361999-08-12 Nick Clifton <nickc@cygnus.com>
837
838 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
839 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
840 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
841 and 'addend' parameter a 'bfd_signed_vma'.
842 (elf32_arm_final_link_relocate): Do not involve stubs in
843 R_ARM_THM_PC22 relocs relative to section symbols, they are long
844 jumps, not function calls.
845
23080146
NC
8461999-08-11 Robin Farine <advanc@dial.eunet.ch>
847
848 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
849 in R_ARM_PC24 relocs.
850
fc91f658
JL
851Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
852
052e120f
JL
853 * elf-hppa.h (elf_hppa_fake_sections): New function.
854 * elf32-hppa.c (elf_backend_fake_sections): Define.
855
27ac83bf
RH
856 * elf-hppa.h (elf_hppa_final_write_processing): Update for
857 recent changes to the arch_info structure.
3a9acac8 858
fc91f658
JL
859 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
860 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
861 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
862 list.
863
5499724a 864Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
27ac83bf 865 Ralf Baechle <ralf@uni-koblenz.de>
5499724a
MM
866
867 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
868 output DT_MIPS_GOTSYM.
869 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
870 DT_MIPS_SYMTABNO if there are no global GOT symbols.
871
ce006217
MM
872Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
873
7b1f1231
MM
874 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
875 prototype. Handle local symbols. Add commentary.
876 (mips_elf_calculate_relocation): Adjust accordingly.
877 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
878 relocations.
879
ce006217
MM
880 * elflink.h (elf_bfd_final_link): Tweak last change.
881
b037af20
MM
8821999-08-09 Mark Mitchell <mark@codesourcery.com>
883
884 * elflink.h (elf_link_size_reloc_section): Use the counts in the
885 elf-section data to allocate just the right amount of relocation
886 space. Don't allocate the hash space twice.
887 (elf_bfd_final_link): Calculate the amount of space to allocate in
888 each relocation section.
889
432bdd91
JL
890Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
891
892 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
893 64bit mode, generate a section relative relocation for a 32bit
894 wide relocation.
895 (elf_hppa_is_local_label_name): New function.
896 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
897 shared between 32bit and 64bit port.
898
b944b044
MM
8991999-08-09 Mark Mitchell <mark@codesourcery.com>
900
901 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
902 R_MIPS_GOT16 and R_MIPS_CALL16.
903 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
b037af20 904 to use when looking for a preexisting GOT entry.
b944b044 905
840a9995
ILT
9061999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
907
908 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
909 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
910 not binutils.
911 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
912
91d3970e
ILT
9131999-08-09 Geoff Keating <geoffk@cygnus.com>
914
915 * elflink.h (elf_link_output_extsym): Don't output a weak
916 reference to an undefined symbol just because it was defined weak
917 in a shared object.
918
798c1fb8
ILT
9191999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
920
921 * coffgen.c (coff_find_nearest_line): When looking for file, use
922 last best match rather than first. If address is beyond last line
923 number record, don't return the last line as the correct value.
924
851edbaf
ILT
9251999-08-08 Ian Lance Taylor <ian@zembu.com>
926
927 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
928 * bfd-in2.h: Rebuild.
929
5dccc1dd
ILT
9301999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
931
932 * libcoff-in.h (struct coff_section_alignment_entry): Define.
933 * coffcode.h (coff_set_custom_section_alignment): New static
934 function.
935 (coff_section_alignment_table): New static array.
936 (coff_new_section_hook): Use coff_set_customer_section_alignment.
937 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
938 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
939 * libcoff.h: Rebuild.
940
74eeebea
ILT
9411999-08-08 Ian Lance Taylor <ian@zembu.com>
942
943 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
944 MKDEP.
945 * Makefile.in: Rebuild.
946
bd826630
ILT
9471999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
948
949 * section.c (SEC_SHARED): Define.
950 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
951 (styp_to_sec_flags): Likewise.
952 * peicode.h (coff_swap_scnhdr_out): Likewise.
953 * bfd-in2.h: Rebuild.
954
855b0be7
ILT
9551999-08-08 Ian Lance Taylor <ian@zembu.com>
956
bd826630
ILT
957 * coffcode.h (coff_classify_symbol): Comment out part of
958 1999-08-05 change which breaks cygwin DLLs.
959
855b0be7
ILT
960 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
961 * aclocal.m4, configure: Rebuild.
962
22bc497d
ILT
9631999-08-06 Ian Lance Taylor <ian@zembu.com>
964
965 * section.c (global_syms): Only initialize union field if
966 __STDC__.
967
4f2860ca
MM
9681999-08-04 Mark Mitchell <mark@codesourcery.com>
969
970 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
971 the size of a GOT entry here.
972 (mips_elf_calculate_relocation): Don't create a local GOT entry
973 for the symbol in a GOT16 relocation; just for it's high-order bit
974 (_bfd_mips_elf_relocate_section): Fix thinko.
975
5d54c628
ILT
9761999-08-05 Ian Lance Taylor <ian@zembu.com>
977
978 Based on patches from Donn Terry <donn@interix.com>:
979 * coffcode.h (enum coff_symbol_classification): Define.
980 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
981 _bfd_coff_classify_symbol. Change return type.
982 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
983 (coff_slurp_symbol_table): Use coff_classify_symbol.
984 (coff_classify_symbol): New static function.
985 (coff_sym_is_global): Never define.
986 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
987 * cofflink.c (coff_link_check_ar_symbols): Use
988 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
989 (coff_link_add_symbols): Likewise.
990 (_bfd_coff_link_input_bfd): Likewise.
991 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
992 coff_classify_symbol.
993 * libcoff.h: Rebuild.
994
36860900
JL
995Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
996
1560fbe4
JL
997 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
998 (e_ltpsel, e_rtpsel): Similarly.
999
36860900
JL
1000 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
1001 and 14bit ertpsel. Handle 64bit psel.
1002
e7c44218
MM
10031999-08-04 Mark Mitchell <mark@codesourcery.com>
1004
1005 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
1006 handling for REL relocations. And only left-shift R_MIPS26
1007 relocation addends where necessary.
1008
3811169e
MM
10091999-08-03 Mark Mitchell <mark@codesourcery.com>
1010
23b255aa
MM
1011 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
1012 (mips_elf_next_lo16_relocation): Don't compute the addend here.
1013 Just return the relocation found.
1014 (mips_elf_relocate_section): Pull the LO16 addend out of the
1015 section itself when using REL relocations.
1016
3811169e
MM
1017 * elf32-mips.c (mips_elf_calculate_relocation): Restore
1018 _DYNAMIC_LINK handling and handling of undefined symbols in shared
1019 libraries.
1020
aab08431
ILT
10211999-08-03 Ian Lance Taylor <ian@zembu.com>
1022
2d146250
ILT
1023 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
1024 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
1025 relocation against a symbol in an input section with no output
1026 section. From Daniel Jacobowitz <drow@false.org>.
1027
cb94091f
ILT
1028 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
1029
aab08431
ILT
1030 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
1031 look for generated file correctly.
1032 * aclocal.m4, configure: Rebuild.
1033
5a44662b
MM
10341999-08-02 Mark Mitchell <mark@codesourcery.com>
1035
1036 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
1037 and R_MIPS16_26 relocations correctly when relocating.
1038 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
1039 and R_MIPS_CALL_LO16 are for global symbols.
1040
1fa0ddb3
RH
10411999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
1042
1043 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
1044 some fields.
1045 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
1046 variables and initialize them.
1047
97287574
MM
10481999-08-01 Mark Mitchell <mark@codesourcery.com>
1049
8b237a89
MM
1050 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
1051 there are no global symbols requiring GOT entries.
1052 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1053 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1054 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
1055
97287574
MM
1056 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
1057 symbols are considered to have the value zero.
1058 (_bfd_mips_elf_relocate_section): Don't try to perform a
1059 relocation for an undefined symbol.
1060 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
1061 GOT16 relocations.
1062
a11c78e7
RH
10631999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
1064
1065 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
1066 wants ba,a,pt %xcc instead of %icc.
1067 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
1068 of large PLT entries.
1069 (sparc64_elf_plt_ptr_offset): Fix calculation.
1070 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
1071 addend should be relative to load address, not .plt section start.
1072 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
1073
587ff49e
RH
10741999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
1075
1076 * elf-bfd.h (struct elf_backend_data): Add
1077 print_symbol_all and output_arch_syms backend methods.
1078 * elfxx-target.h: Likewise.
1079 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
1080 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
1081 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
1082 functions.
1083 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
1084 symbols in .dynsym, add their names into .dynstr. Put those symbols
1085 into dynlocal.
1086 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
1087 pointers to STT_REGISTER symbols in dynsym section.
1088 (sparc64_elf_print_symbol_all): New function.
1089 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
1090 printing using the print_symbol_all hook.
1091
d512aa07
CM
10921999-07-30 Catherine Moore <clm@cygnus.com>
1093
1094 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
1095 R_ARM_GNU_VTENTRY.
1096
441d6d79
RH
10971999-07-29 Richard Henderson <rth@cygnus.com>
1098
1099 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
1100 dynamic_sections_created.
1101
c9b3cbf3
RH
11021999-07-29 Richard Henderson <rth@cygnus.com>
1103
1104 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
1105 (mips_rtype_to_howto): ... new function.
1106 (_bfd_mips_elf_relocate_section): Use it.
1107
b89db8f2
MM
11081999-07-28 Mark Mitchell <mark@codesourcery.com>
1109
1110 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
1111
f8111282
NC
11121999-07-27 Nick Clifton <nickc@cygnus.com>
1113
1114 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
1115
1116 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
1117 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
1118
7d923127
ILT
11191999-07-23 Donn Terry <donn@interix.com>
1120
7fd9c191
ILT
1121 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
1122 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
1123 * cofflink.c (coff_link_add_symbols): If PE, handle section
1124 symbols specially.
1125 * libcoff.h: Rebuild.
1126
7d923127
ILT
1127 * config.bfd (i[3456]86-*-interix*): New target.
1128
242eabea
ILT
11291999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
1130
1131 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
1132 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
1133 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
1134 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
1135 (COFF_SUPPORT_GNU_LINKONCE): Define.
1136 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
1137 (COFF_SUPPORT_GNU_LINKONCE): Define.
1138
9c8ac5a9
ILT
11391999-07-21 Ian Lance Taylor <ian@zembu.com>
1140
1141 From Mark Elbrecht:
1142 * makefile.dos: Remove; obsolete.
980e4bf7 1143 * configure.bat: Remove; obsolete.
9c8ac5a9 1144
957ccf44
ILT
11451999-07-21 H.J. Lu <hjl@gnu.org>
1146
1147 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
1148
75987f83
ILT
11491999-07-21 Philippe De Muyter <phdm@macqel.be>
1150
1151 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
1152 message and fail if a symbol index is out of range.
1153
2841ecd0
ILT
11541999-07-21 Ian Lance Taylor <ian@zembu.com>
1155
1156 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
1157 when looking at a R_MIPS_GOT16 relocation.
1158
8a70eff3
NC
11591999-07-20 Nick Clifton <nickc@cygnus.com>
1160
1161 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
1162
0db63c18
MM
1163Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
1164
1165 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
1166 removed in previous change.
1167 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
1168 in relocateable output.
1169
accc7f69
ILT
11701999-07-19 Ian Lance Taylor <ian@zembu.com>
1171
272dc76f
ILT
1172 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
1173 structure.
1174
accc7f69
ILT
1175 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
1176 if they appear to be specially created by the linker.
1177
c3c89269
NC
11781999-07-19 Nick Clifton <nickc@cygnus.com>
1179
1180 * targets.c (alternative_target): New field in bfd_target
1181 structure.
1182 (bfd_search_for_target): New function: Find a target that
1183 satisifies a search function.
1184 * bfd-in2.h: Regenerate.
1185
1186 * elfxx-target.h: Initialise the alternative_target field of
1187 the bfd_target structures to point to the other target (if
1188 defined).
1189 * nlm-target.h: Initialise the alternative_target field of
1190 the bfd_target structures to point to the other target (if
1191 defined).
1192
1193 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
1194 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
1195
1196 * aix386-core.c: Initialise new field of bfd_target structure.
1197 * aout-adobe.c: Initialise new field of bfd_target structure.
1198 * aout-arm.c: Initialise new field of bfd_target structure.
1199 * aout-target.h: Initialise new field of bfd_target structure.
1200 * aout-tic30.c: Initialise new field of bfd_target structure.
1201 * binary.c: Initialise new field of bfd_target structure.
1202 * bout.c: Initialise new field of bfd_target structure.
1203 * cisco-core.c: Initialise new field of bfd_target structure.
1204 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
1205 * coff-alpha.c: Initialise new field of bfd_target structure.
1206 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
1207 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
1208 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
1209 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
1210 * coff-i386.c: Initialise new field of bfd_target structure.
1211 * coff-i860.c: Initialise new field of bfd_target structure.
1212 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
1213 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
1214 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
1215 * coff-mips.c: Initialise new field of bfd_target structure.
1216 * coff-ppc.c: Initialise new field of bfd_target structure.
1217 * coff-rs6000.c: Initialise new field of bfd_target structure.
1218 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
1219 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
1220 * coff-tic30.c: Initialise new field of bfd_target structure.
1221 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
1222 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
1223 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
1224 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
1225 * hppabsd-core.c: Initialise new field of bfd_target structure.
1226 * hpux-core.c: Initialise new field of bfd_target structure.
1227 * i386msdos.c: Initialise new field of bfd_target structure.
1228 * i386os9k.c: Initialise new field of bfd_target structure.
1229 * ieee.c: Initialise new field of bfd_target structure.
1230 * ihex.c: Initialise new field of bfd_target structure.
1231 * irix-core.c: Initialise new field of bfd_target structure.
1232 * mipsbsd.c: Initialise new field of bfd_target structure.
1233 * netbsd-core.c: Initialise new field of bfd_target structure.
1234 * oasys.c: Initialise new field of bfd_target structure.
1235 * osf-core.c: Initialise new field of bfd_target structure.
1236 * ppcboot.c: Initialise new field of bfd_target structure.
1237 * ptrace-core.c: Initialise new field of bfd_target structure.
1238 * sco5-core.c: Initialise new field of bfd_target structure.
1239 * som.c: Initialise new field of bfd_target structure.
1240 * srec.c: Initialise new field of bfd_target structure.
1241 * tekhex.c: Initialise new field of bfd_target structure.
1242 * trad-core.c: Initialise new field of bfd_target structure.
1243 * versados.c: Initialise new field of bfd_target structure.
1244 * vms.c: Initialise new field of bfd_target structure.
1245
a9602746
AS
12461999-07-19 Andreas Schwab <schwab@suse.de>
1247
1248 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
1249 and rel_hdr.
1250
31367b81
MM
1251Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
1252
1253 * elflink.h (elf_link_adjust_relocs): New function.
1254 (elf_bfd_final_link): Use it.
1255 (elf_link_input_bfd): Deal with the fact that there can be
1256 two relocation sections for a single section.
1257 (elf_reloc_link_order): Likewise.
1258
1259 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
1260 a relocateable object.
1261 (_bfd_mips_elf_relocate_section): Handle relocateable links.
1262
f65054f7
RH
12631999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1264
1265 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
1266 (sparc64_elf_get_reloc_upper_bound,
1267 sparc64_elf_get_dynamic_reloc_upper_bound,
1268 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
1269 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
1270 New functions.
1271 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
1272 ELF64_R_TYPE_ID/DATA where appropriate.
1273
d6bcbdc1
RH
12741999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
1275
1276 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
1277 DT_SPARC_PLTFMT.
1278
6387d602
ILT
12791999-07-16 Ian Lance Taylor <ian@zembu.com>
1280
1281 * elf32-mips.c (mips_elf_local_relocation_p): New static
1282 function.
1283 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
1284 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
1285 Always set *require_jalxp.
1286 (mips_elf_stub_section_p): Mark abfd parameter as unused.
1287 (_bfd_mips_elf_relocate_section): Only look for LO16 following
1288 GOT16 if the GOT16 is against a local symbol. Don't return false
1289 for an undefined symbol. If there is an overflow, assert that we
1290 have a name.
1291
318da145
AS
12921999-07-16 Andreas Schwab <schwab@suse.de>
1293
1294 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
1295 variables `link' and `elfsec'.
1296 (elf_bfd_final_link): Remove unused variable `os'.
1297
435394bf
MM
1298Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
1299
1300 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
1301 a PT_PHDR program headers.
1302 (_bfd_mips_elf_final_link): Don't assume there are going to be
1303 section symbols when we're not building a shared object.
1304 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
1305 we need one.
1306
ac352105
ILT
13071999-07-15 J.T. Conklin <jtc@redback.com>
1308
1309 * config.bfd (i[3456]86-*-vxworks*): New target.
1310
197b9ca0
MM
13111999-07-15 Mark Mitchell <mark@codesourcery.com>
1312
1313 * elf32-mips.c (mips_elf_stub_section_p): New function.
1314 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
1315 (mips_elf_relocate_section): Adjust calling sequence for
1316 mips_elf_calculate_relocation and mips_elf_perform_relocation.
1317 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
1318 required.
1319
3a6ae616
ILT
13201999-07-15 Ian Lance Taylor <ian@zembu.com>
1321
1322 * configure.in: Bump version number to 2.9.5.
1323 * configure: Rebuild.
1324
1b83fcb3
JL
1325Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
1326
1327 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
1328 64bit format.
1329 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
1330 to derive final type instead of hardwiring a selection.
1331
6296902e
MM
13321999-07-14 Mark Mitchell <mark@codesourcery.com>
1333
1334 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
1335 things relocated by R_MIPS16_GPREL.
1336 (mips_elf_perform_relocation): Likewise.
1337
2ac8ce5f
RH
1338Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
1339
1340 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
1341
b3be9b46
RH
13421999-07-14 Richard Henderson <rth@cygnus.com>
1343
1344 * elf32-mips.c (struct mips_got_info): Add global_gotno.
1345 (_bfd_mips_elf_size_dynamic_sections): Set it.
1346 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
1347 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
1348 new argument max_local.
1349
b7233c24
MM
13501999-07-14 Mark Mitchell <mark@codesourcery.com>
1351
1e52e2ee
MM
1352 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
1353 subwords when handling an R_MIPS16_26 relocation.
1354 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
1355 semantics.
1356
b7233c24
MM
1357 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
1358 dst_mask to match reality.
1359 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
1360 (mips_elf_obtain_contents): Use bfd_get.
1361 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
1362 (mips_elf_relocate_section): Likewise.
1363
e53bd91b
MM
13641999-07-13 Mark Mitchell <mark@codesourcery.com>
1365
1366 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
1367 (mips_elf_relocate_section): Adjust calling sequence for
1368 mips_elf_perform_relocation.
1369 (mips_elf_perform_relocation): Take additional argument. Handle
1370 R_MIPS16_26. Use bfd_put for convenience.
1371
28a7f3e7
RH
13721999-07-13 Richard Henderson <rth@cygnus.com>
1373
1374 * elf.c (assign_file_positions_for_segments): Thinko last change.
1375 Always overwrite p_flags.
1376
3018b441
RH
13771999-07-13 Richard Henderson <rth@cygnus.com>
1378
1379 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
1380 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
1381 .dynbss and .rel[a].bss if want_dynbss.
1382 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
1383
30b30c21
RH
13841999-07-13 Richard Henderson <rth@cygnus.com>
1385
1386 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
1387
3018b441
RH
13881999-07-13 Richard Henderson <rth@cygnus.com>
1389
30b30c21
RH
1390 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
1391 (struct elf_link_hash_table): Add dynlocal.
1392 (_bfd_elf_link_lookup_local_dynindx): Prototype.
1393 (_bfd_elf_link_adjust_dynindx): Delete.
1394 (_bfd_elf_link_renumber_dynsyms): Prototype.
1395 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
1396 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
1397 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
1398 (_bfd_elf_link_lookup_local_dynindx): New function.
1399 (elf_link_renumber_hash_table_dynsyms): New function.
1400 (_bfd_elf_link_renumber_dynsyms): New function.
1401 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
1402 (struct elf_assign_sym_version_info): Delete removed_dynamic.
1403 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
1404 instead of elf_link_remove_section_and_adjust_dynindices.
1405 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
1406 (elf_link_assign_sym_version): Remove removed_dynamic code.
1407 (elf_link_renumber_dynsyms): Delete.
1408 (elf_bfd_final_link): Install section and local symbols into .dynsym.
1409
1410 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
1411 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
1412 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
1413 * elf32-mips.c: Similarly.
1414 * elf32-ppc.c: Similarly.
1415 * elf32-sparc.c: Similarly.
1416 * elf64-alpha.c: Similarly.
1417 * elf64-sparc.c: Similarly.
1418
97a4bb05
MM
14191999-07-13 Mark Mitchell <mark@codesourcery.com>
1420
1421 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
1422 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
1423 when the relocation is against _gp_disp.
1424
a3c7651d
MM
14251999-07-12 Mark Mitchell <mark@codesourcery.com>
1426
1427 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
1428 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
1429 to possibly_dynamic_relocs. Adjust usage throughout code.
1430 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
1431 (elf_mips_ctor64_howto): Likewise.
1432 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
1433 Adjust indentation.
1434 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
1435 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
1436 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
1437 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
1438
5f771d47
ILT
14391999-07-12 Ian Lance Taylor <ian@zembu.com>
1440
67e5d3d6
ILT
1441 * Makefile.am: Rebuild dependencies.
1442 * Makefile.in: Rebuild.
1443
1444 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
1445 * bfd-in2.h: Rebuild.
1446
5f771d47
ILT
1447 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1448 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
1449 structure initializations. Add casts.
1450 * reloc.c (EMPTY_HOWTO): Define.
1451 * bfd-in2.h: Rebuild.
1452 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
1453 comparisons against 0.
1454 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
1455 previous_ibfd_e_flags to unsigned long.
1456 * vms.h (struct vms_private_data_struct): Change section_count to
1457 unsigned.
1458 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
1459 (_bfd_vms_write_gsd): Change symnum to unsigned.
1460 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
1461 * vms-tir.c (etir_sta): Change psect to unsigned.
1462 (alloc_section): Change idx to unsigned.
1463 (tir_sta, tir_ctl): Change psect to unsigned.
1464 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
1465 * vms.c (priv_section_count): Change to unsigned.
1466
121089cb
AS
14671999-07-12 Andreas Schwab <schwab@suse.de>
1468
1469 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
1470 * m68klinux.c: Likewise.
1471
e049a0de
ILT
14721999-07-12 Ian Lance Taylor <ian@zembu.com>
1473
1474 * Many files: Changes to avoid gcc warnings: Remove unused local
1475 variables. Add default case to enum switches.
1476 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
1477 compile if not COFF_IMAGE_WITH_PE.
1478 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
1479 (bfd_arm_get_bfd_for_interworking): Likewise.
1480 (bfd_arm_process_before_allocation): Likewise.
1481 * epoc-pei-arm.c: Don't rename bfd_arm functions.
1482 * pei-arm.c: Likewise.
1483 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
1484 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
1485 (mips_elf_got16_entry): Put parens around & in body of ==.
1486 (mips_elf_calculate_relocation): Correct test for empty string.
1487 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
1488 stderr.
1489 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
1490 format.
1491
3a99b017
ILT
14921999-07-11 Ian Lance Taylor <ian@zembu.com>
1493
7442e600
ILT
1494 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
1495 as appropriate. Fill in structure initializations. Add variable
1496 initializations. Add casts.
1497 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
1498 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
1499
3a99b017
ILT
1500 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
1501 char *.
1502 * elf-bfd.h (bfd_elf_hash): Update declaration.
1503 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
1504 when calling bfd_elf_hash.
1505
65388f2d
MM
15061999-07-11 Mark Mitchell <mark@codesourcery.com>
1507
9ebbd33e
MM
1508 * libbfd.c (bfd_put_8): Make it of type `void'.
1509 * bfd-in2.h: Regenerated.
1510 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
1511 for 32-bit hosts.
1512 (_bfd_mips_elf_final_link): Likewise.
1513
65388f2d
MM
1514 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
1515
5b4e2818
JL
1516Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
1517
1518 * config.bfd (hppa*-*-linux-gnu*): New target
1519
c7ac6ff8
MM
15201999-07-07 Mark Mitchell <mark@codesourcery.com>
1521
103186c6
MM
1522 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
1523 (_bfd_mips_elf_create_dynamic_sections): New function.
1524 (_bfd_mips_elf_add_symbol_hook): Likewise.
1525 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
1526 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1527 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
1528 (_bfd_mips_elf_gc_mark_hook): Likewise.
1529 (_bfd_mips_elf_gc_sweep_hook): Likewise.
1530 (_bfd_mips_elf_always_size_sections): Likewise.
1531 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1532 (_bfd_mips_elf_check_relocs): Likewise.
1533 (_bfd_mips_elf_link_hash_table_create): Likewise.
1534 (_bfd_mips_elf_print_private_data): Likewise.
1535 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
1536 (_bfd_mips_elf_final_link): Likewise.
1537 (_bfd_mips_elf_additional_program_headers): Likewise.
1538 (_bfd_mips_elf_modify_segment_map): Likewise.
1539 (_bfd_mips_elf_relocate_section): Likewise.
1540 * elf32-mips.c (mips_elf32_object_p): Move contents into
1541 _bfd_mips_elf_object_p.
1542 (mips_elf_additional_program_headers): Rename to
1543 _bfd_mips_elf_additional_program_headers.
1544 (mips_elf_modify_segment_map): Rename to
1545 _bfd_mips_elf_modify_segment_map.
1546 (elf_mips_abi_name): Change prototype.
1547 (mips_elf32_section_from_shdr): Merge into
1548 _bfd_mips_elf_section_from_shdr.
1549 (mips_elf32_section_processing): Merge into
1550 _bfd_mips_elf_section_processing.
1551 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
1552 the right back-end ELF linker.
1553 (mips_elf_relocate_section): Rename to
1554 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
1555 (mips_elf_link_output_symbol_hook): Rename to
1556 _bfd_mips_elf_link_output_symbol_hook.
1557 (mips_elf_create_dynamic_section): Rename to
1558 _bfd_mips_elf_create_dynamic_section.
1559 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
1560 Adjust for 64-bit code. Use mips_elf_got_section.
1561 (mips_elf_adjust_dynamic_symbol): Rename to
1562 _bfd_mips_elf_adjust_dynamic_symbol. Use
1563 mips_elf_allocate_dynamic_relocations.
1564 (mips_elf_finish_dynamic_symbol): Rename to
1565 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
1566 Adjust for 64-bit code.
1567 (mips_elf_finish_dynamic_sections): Rename to
1568 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
1569 (mips_elf_always_size_sections): Rename to
1570 _bfd_mips_elf_always_size_sections.
1571 (mips_elf_add_symbol_hook): Rename to
1572 _bfd_mips_elf_add_symbol_hook.
1573 (mips_elf_next_lo16_addend): Constify.
1574 (mips_elf_calculate_relocation): Likewise.
1575 (mips_elf_obtain_contents): Likewise.
1576 (mips_elf_perform_relocation): Likewise.
1577 (mips_elf_create_dynamic_relocation): Likewise.
1578 (mips_elf_allocate_dynamic_relocations): New function.
1579 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
1580 (MIPS_ELF_REL_SIZE): Likewise.
1581 (MIPS_ELF_DYN_SIZE): Likewise.
1582 (MIPS_ELF_GOT_SIZE): Likewise.
1583 (MIPS_ELF_SYM_SIZE): Likewise.
1584 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
1585 (MIPS_ELF_GET_WORD): Likewise.
1586 (MIPS_ELF_PUT_WORD): Likewise.
1587 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
1588 (STUB_LW): Conditionalize for 64-bit value.
1589 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
1590 entries.
1591 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
1592 Check it for inconsistency.
1593 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
1594 ABI.
1595 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
1596 .msym.
1597 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
1598 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
1599 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
1600 (mips_elf_local_got_index): Likewise.
1601 (mips_elf_got_page): Likewise.
1602 (mips_elf_got_info): Likewise.
1603 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
1604 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
1605 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
1606 instead of constant `2'.
1607 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
1608 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
1609 (mips_elf_size_dynamic_sections): Use
1610 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
1611 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
1612 Adjust all releveant entries in elf backend table.
1613 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
1614 (mips_elf64_section_processing): Likewise.
1615 Adjust elf backend entries to use _bfd_mips_elf variants now
1616 publicly available.
1617
c7ac6ff8
MM
1618 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
1619 hash-entry sizes.
1620 (size_dynamic_sections): Likewise.
1621 (elf_link_output_extsym): Likewise.
1622 * elf.c: (elf_fake_sections): Likewise.
1623 * libbfd.c (bfd_get): New macro.
1624 (bfd_put): Likewise.
1625 * bfd-in2.h: Regenerated.
1626
16271999-07-07 Mark Mitchell <mark@codesourcery.com>
1628
1629 * elf-bfd.h (elf_size_info): Add hash_entry_size,
1630 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
1631 wap_reloca_in, and swap_reloca_out.
1632 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
1633 multiple internal relocations per external relocation.
1634 (link_read_relocs): Likewise.
1635 (elf_bfd_final_link): Likewise.
1636 (elf_link_input_bfd): Likewise.
1637 (elf_gc_mark): Likewise.
1638 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1639 * elfcode.h (elf_swap_dyn_out): Adjust type to match
1640 elf_swap_dyn_in.
1641 (size_info): Add entries for new fields.
1642 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
1643 (mips_elf64_be_swap_reloc_in): New function.
1644 (mips_elf64_be_swap_reloc_out): Likewise.
1645 (mips_elf64_be_swap_reloca_in): Likewise.
1646 (mips_elf64_be_swap_reloca_out): Likewise.
1647 (mips_elf64_size_info): Add entries for new fields.
1648
0525d26e
ILT
16491999-07-07 Ian Lance Taylor <ian@zembu.com>
1650
1651 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
1652 field equals the new rel_count field.
1653 (elf_link_input_bfd): When doing a relocateable link, use the new
1654 rel_count field rather than the reloc_count field.
1655 (elf_reloc_link_order): Likewise.
1656 (elf_finish_pointer_linker_section): Likewise.
1657
1658 Based on patch from H.J. Lu <hjl@gnu.org>:
1659 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
1660 shared library to override a weak definition in a regular object.
1661
9db37001
JL
1662Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
1663
27ac83bf 1664 * libhppa.h: Revert July 2, 1999 patch.
37afc161 1665
9db37001
JL
1666 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
1667 need to generate DLTIND relocations, not DLTREL relocations.
1668
752149a0
NC
16691999-07-05 Nick Clifton <nickc@cygnus.com>
1670
478d07d6
NC
1671 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
1672 architectures.
1673 (coff_set_flags): Recognise arm 5 architectures.
1674
1675 * cpu-arm.c: Add support for strongarm and arm9 cpus.
1676 Add support for armv5 architecture.
1677
1678 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
1679
752149a0
NC
1680 * reloc.c: Add new, assembler only, ARM reloc:
1681 BFD_RELOC_ARM_ADRL_IMMEDIATE.
1682
1683 * bfd-in2.h: Regenerate.
1684
5e38c3b8
MM
16851999-07-02 Mark Mitchell <mark@codesourcery.com>
1686
1687 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
1688 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
1689 * elf.c (_bfd_elf_find_nearest_line): Pass it.
1690 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
1691 * elf32-mips.c (ABI_64_P): New macro.
1692 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
1693 (_bfd_mips_elf_find_nearest_line): Adjust call to
1694 _bfd_dwarf2_find_nearest_line.
1695 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
1696 * libbfd.h: Regenerated.
1697
4766cbee
ILT
16981999-07-02 Ian Lance Taylor <ian@zembu.com>
1699
1700 * config.bfd: Add * at the end of i[3456]86-*-unixware.
1701
2a6d0fe7
JL
1702Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
1703
1704 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
1705 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
1706
23bc299b
MM
17071999-07-01 Mark Mitchell <mark@codesourcery.com>
1708
1709 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
1710 fields.
1711 (_bfd_elf_init_reloc_shdr): New function.
1712 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
1713 bfd_alloc followed by memset.
1714 (_bfd_elf_init_reloc_shdr): New function, split out from ...
1715 (elf_fake_sections): Here.
1716 (assign_section_numbers): Assign section numbers for the second
1717 relocation section, if required.
1718 * elflink.h (elf_link_output_relocs): New function.
1719 (elf_link_size_reloc_section): Likewise.
1720 (elf_bfd_final_link): Use elf_link_size_reloc_section.
1721 (elf_link_input_bfd): Use elf_link_output_relocs.
1722
1723 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
1724 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
1725
17bb48e0
JL
1726Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
1727
1728 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
1729 with 22bit format.
1730
7403cb63
MM
17311999-06-28 Mark Mitchell <mark@codesourcery.com>
1732
1733 * elf32-mips.c (mips_elf_got_info): Move declaration before
1734 prototypes. Change global_gotsym to be a pointer to a hash entry,
1735 rather than a number index.
1736 (mips_elf_link_hash_entry): Move declaration before prototypes.
1737 (mips_elf_irix6_finish_dynamic_symbol): New function.
1738 (mips_elf_sign_extend): Likewise.
1739 (mips_elf_high): Likewise.
1740 (mips_elf_higher): Likewise.
1741 (mips_elf_highest): Likewise.
1742 (mips_elf_global_got_index): Likewise.
1743 (mips_elf_local_got_index): Likewise.
1744 (mips_elf_got_offset_from_index): Likeiwse.
1745 (mips_elf_record_global_got_symbol): Likewise.
1746 (mips_elf_got_page): Likewise.
1747 (mips_elf_next_lo16_addend): Likewise.
1748 (mips_elf_calculate_relocation): Likewise.
1749 (mips_elf_obtain_contents): Likewise.
1750 (mips_elf_perform_relocation): Likewise.
1751 (mips_elf_assign_gp): Likewise.
1752 (mips_elf_sort_hash_table_f): Likewise.
1753 (mips_elf_sort_hash_table): Likewise.
1754 (mips_elf_got_section): Likewise.
1755 (mips_elf_got_info): Likewise.
1756 (mips_elf_create_local_got_entry): Likewise.
1757 (mips_elf_got16_entry): Likewise.
1758 (mips_elf_create_dynamic_relocation): Likewise.
1759 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
1760 (mips_elf_final_gp): Use mips_elf_assign_gp.
1761 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
1762 into SHN_SCOMMON automatically on IRIX6.
1763 (mips_elf_add_symbol_hook): Likewise.
1764 (mips_elf_relocate_section): Rewrite, using
1765 mips_elf_calculate_relocation and mips_elf_perform_relocation.
1766 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
1767 Don't deal with .rld_map on IRIX6.
1768 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
1769 section flags appropriately for .got.
1770 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
1771 the got. Call mips_elf_record_global_got_symbol and allocate
1772 local got space appropriately.
1773 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
1774 char *. Rework calculation of GOT size. Sort dynamic symbol
1775 table entries so entries that do not require GOT entries appear at
1776 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
1777 code dealing with DT_INIT and DT_FINI. Remove fiddling with
1778 global_gotsym.
1779 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
1780 entries.
1781 (mips_elf_finish_dynamic_symbol): Use
1782 mips_elf_irix6_finish_dynamic_symbol.
1783 (mips_elf_finish_dynamic_sections): Correct off-by-one error
1784 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
1785 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
1786
0dda5f7a
ILT
17871999-06-30 Ian Lance Taylor <ian@zembu.com>
1788
1789 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
1790 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
1791
04f7c78d
NC
17921999-06-04 Philip Blundell <philb@gnu.org>
1793
1794 * elf32-arm.h (elf_backend_got_header_size): Define.
1795 (elf_backend_plt_header_size): Likewise.
1796
a72747a3
NC
17971999-06-28 Jim Pick <jim@jimpick.com>
1798
1799 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
1800
caf3d37c
JL
1801Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
1802
1803 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
1804 relocation function.
1805 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
1806
9886bd43
MM
18071999-06-27 Mark Mitchell <mark@codesourcery.com>
1808
303f629d
MM
1809 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
1810 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
1811 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
1812 (_bfd_mips_elf_section_from_shdr): Use them.
1813 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
1814 of GP-relative sections.
1815 (_bfd_mips_elf_set_section_contents): Use them.
1816 (_bfd_mips_elf_section_processing): Share code between .sdata and
1817 .lit4/.lit8 sections. Set appropriate flags for .srdata.
1818 (mips_elf_additional_program_headers): Add handling for
1819 PT_MIPS_OPTIONS segment on IRIX6.
1820 (mips_elf_modify_segment_map): Likeiwse.
1821 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
1822 Include the options sections on IRIX6. Don't look for GP-relative
1823 sections by name; use SHF_MIPS_GPREL instead.
1824 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
1825 the N32 ABI.
1826 (mips_elf_create_dynamic_sections): Don't muck about with section
1827 alignments and such on IRIX6.
1828 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
1829 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
1830 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
1831 bfd_zalloc rather than bfd_alloc and memset.
1832 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
1833 Don't assert the existence of .rld_map on IRIX6.
1834 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
1835
9886bd43
MM
1836 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
1837 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
1838 instead.
1839
a94a7c1c
MM
18401999-06-26 Mark Mitchell <mark@codesourcery.com>
1841
c6142e5d
MM
1842 * elf32-mips.c (mips_elf_swap_msym_in): New function.
1843 (mips_elf_swap_msym_out): New function.
1844 (mips_elf_create_msym_section): Likewise.
1845 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
1846 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
1847 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
1848 section not named .msym.
1849 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
1850 .msym directly. Set appropriate attributes for the .msym
1851 section.
1852 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
1853 (mips_elf_link_hash_newfunc): Clear it.
1854 (mips_elf_create_dynamic_sections): Create the .msym section
1855 on IRIX6.
1856 (mips_elf_size_dynamic_sections): Allocate space for the
1857 .msym section. Add a DT_MIPS_MSYM entry.
1858 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
1859 the symbol.
1860 (mips_elf_finish_dynamic_sections): Assign a value for
1861 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
1862
a94a7c1c
MM
1863 * elf32-mips.c (irix_compat_t): New enumeration.
1864 (ABI_N32_P): New macro.
1865 (IRIX_COMPAT): Likewise.
1866 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
1867 (mips_elf_relocate_section): Fix typo.
1868
254f5c45
ILT
18691999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
1870
1871 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
1872 as writable PE sections.
1873
f623be2b
RH
18741999-06-26 David Mosberger <davidm@hpl.hp.com>
1875
1876 * dwarf2.c (struct arange): New type.
1877 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
1878 (arange_add): New function.
1879 (decode_line_info): Keep track of address ranges that a compilation
1880 unit covers.
1881 (comp_unit_contains_address): Return true if address is contained
1882 in _any_ of the address ranges associated with a compilation unit.
1883 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
1884 on the first comp_unit that contains the address.
1885
69dd2e2d
RH
18861999-06-26 David Mosberger <davidm@hpl.hp.com>
1887
1888 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
1889 (decode_line_info): Add variable STASH and initialize it to point
1890 to the per-bfd dwarf2_debug info. Remove static variable
1891 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
1892
0429ebd0
ILT
18931999-06-26 Ian Lance Taylor <ian@zembu.com>
1894
1d7b28df
ILT
1895 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
1896 shared library to have an undefined symbol.
1897
0429ebd0
ILT
1898 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
1899 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
1900
4517897e
JL
1901Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
1902
1903 * elf-hppa.c (elf_hppa_final_write_processing): New function.
1904 * elf32-hppa.c: Remove everything related to symbol extension
1905 sections & records. Use the common elf_hppa_final_write_processing.
1906
f0c2e336
MM
19071999-06-22 Mark Mitchell <mark@codesourcery.com>
1908
1909 * elflink.h (size_dynamic_sections): Use user-specified init/fini
1910 functions instead of _init/_fini if requested.
1911
03ae5f59
ILT
19121999-06-23 Ian Lance Taylor <ian@zembu.com>
1913
1914 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
1915 field.
1916
464e1740
ILT
19171999-06-22 Ian Lance Taylor <ian@zembu.com>
1918
1919 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
1920 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
1921 field to 0, not -1.
1922 (ppc_elf_finish_dynamic_sections): Check for positive section
1923 dynindx field, rather than comparing against -1.
1924 (ppc_elf_relocate_section): Only return false if undefined_symbol
1925 or reloc_overflow fail, not always upon encountering an error.
1926
2f5116e2
MM
19271999-06-22 Mark Mitchell <mark@codesourcery.com>
1928
1929 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
1930 bfd_byte * before performing pointer arithmetic.
1931
9e103c9c
JL
1932Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
1933
1934 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
1935 support.
1936 * elf32-hppa.c: Include elf-hppa.h.
1937 (ARCH_SIZE): Define.
1938 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
1939 now.
1940 (elf32_hppa_info_to_howto): Similarly.
1941 (elf_hppa_howto_table): Similarly.
1942 (elf_hppa_reloc_type_lookup): Similarly.
1943 (hppa_elf_gen_reloc_type): Similarly.
1944 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
1945
232fb1a3
NC
19461999-06-22 Nick Clifton <nickc@cygnus.com>
1947
1948 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
1949 handling R_V850_22_PCREL relocation.
1950
271025eb
ILT
19511999-06-21 Ian Lance Taylor <ian@zembu.com>
1952
1953 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
1954 type.
1955
0bde07d4
RH
1956Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
1957
1958 * section.c (_bfd_strip_section_from_output): Ignore sections
1959 DISCARDed by the link script.
1960
f800e11d
ILT
19611999-06-19 Ian Lance Taylor <ian@zembu.com>
1962
1963 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
1964 Remove unused local variable spp.
1965
1966 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
1967 the entry symbol is not set.
1968
72b60c23
RH
1969Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
1970
1971 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
1972 GPDISP or LITUSE in a relocatable link.
1973
aec89efb
JR
1974Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
1975
1976 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
1977 * (alloc_dwarf1_func): Likewise.
1978
5ba624b0
JL
1979Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
1980
1981 * libhppa.h: Fix various formatting errors.
1982 (assemble_3); Rewrite using CATENATE.
1983 (assemble_17): Fix various bugs.
1984
59d23ada
NC
19851999-06-16 Nick Clifton <nickc@cygnus.com>
1986
1987 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
1988
0c3ff40b
RH
19891999-06-15 Richard Henderson <rth@cygnus.com>
1990
1991 * section.c (SEC_SHORT): Define.
1992 * bfd-in2.h: Rebuild.
1993
42751cf3
MM
19941999-06-13 Mark Mitchell <mark@codesourcery.com>
1995
78de0b43
MM
1996 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
1997 Remove abfd parameter. Use _bfd_strip_section_from_output.
1998 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
1999
42751cf3
MM
2000 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
2001 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
2002 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
2003 function.
2004 (bfd_elf_size_dynamic_sections): Use it.
2005
3e269912
ILT
20061999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
2007
2008 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
2009 complain_overflow_bitfield to complain_overflow_signed.
2010
6b5bd373
MM
20111999-06-13 Mark Mitchell <mark@codesourcery.com>
2012
2013 * elflink.h (elf_link_read_relocs_from_section): New function,
2014 split out from ...
2015 (elf_link_read_relocs): Here. Use it for both relocation
2016 sections.
2017
57e21bef
MM
20181999-06-12 Mark Mitchell <mark@codesourcery.com>
2019
2020 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
2021 asect->reloc_count is valid.
2022
cc3bfcee
ILT
20231999-06-12 Ian Lance Taylor <ian@zembu.com>
2024
2025 * elf32-mips.c (mips_elf32_section_processing): Permit a
2026 SHT_MIPS_REGINFO section to have a size of 0.
2027
7a50d4ac
ILT
20281999-06-12 David O'Brien <obrien@freebsd.org>
2029
2030 * config.bfd (alpha*-*-freebsd*): New target.
2031 (i[3456]86-*-freebsd*): Now defaults to ELF.
2032
f5f9cc4f
ILT
20331999-06-11 Ian Lance Taylor <ian@zembu.com>
2034
44257b8b
ILT
2035 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
2036 wrap if the relocation covers the high bit of an address.
2037
f5f9cc4f
ILT
2038 * dwarf2.c (decode_line_info): Remove unused variable first_time.
2039
60dac299
RH
20401999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
2041
2042 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
2043 instead of R_SPARC_max.
2044 (sparc64_elf_info_to_howto): Likewise.
2045 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
2046 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
2047
9d7428a9
RH
20481999-06-07 Richard Henderson <rth@cygnus.com>
2049
2050 * section.c (_bfd_strip_section_from_output): Remove output
2051 sections with no initial link_order.
2052
3c82f80f
NC
20531999-06-07 Nick Clifton <nickc@cygnus.com>
2054
2055 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
2056
eb519dff
AS
2057Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2058
2059 * Makefile.am (SOURCE_HFILES): Add missing headers.
2060 * Makefile.in: Regenerated.
2061
7f7e7b68
MM
20621999-06-06 Mark Mitchell <mark@codesourcery.com>
2063
2064 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
2065 the N32 ABI.
2066
dc1bc0c9
RH
20671999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2068
2069 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
2070 range undefweak symbols.
2071 * hash.c: Add missing comma after @xref{}
2072 * linker.c: Likewise.
2073
79e5982f
NC
20741999-06-04 Nick Clifton <nickc@cygnus.com>
2075
2076 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
2077 if not defined.
2078 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
2079 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
2080 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
2081 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
2082
4a54b465
ILT
20831999-06-04 Ian Lance Taylor <ian@zembu.com>
2084
2085 * Makefile.am: Rebuild dependencies.
2086 (BFD32_BACKENDS): Add dwarf1.lo.
2087 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
2088 * Makefile.in: Rebuild.
2089
7714a18c
NC
20901999-06-04 Nick Clifton <nickc@cygnus.com>
2091
2092 * Makefile.am: Add epoc-arm-pe target.
2093 * Makefile.in: Regenerate.
2094 * pe-arm.c: Only redefine interworking function names if they have
2095 not already been redefined.
2096 * pei-arm.c: Only redefine interworking function names if they have
2097 not already been redefined.
2098 * epoc-pe-arm.c: Redefine interworking function names to avoid a
2099 name space clash.
2100 * epoc-pei-arm.c: Redefine interworking function names to avoid a
2101 name space clash.
2102
dece4658
NC
21031999-06-03 Nick Clifton <nickc@cygnus.com>
2104
2105 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
2106
a9d024b8
AS
2107Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2108
2109 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
2110
06e1ba78
JR
2111Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2112
2113 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
2114 start / stop for recalculating of r_addend of R_SH_SWITCH*.
2115
084aa3aa
JR
2116Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2117
2118 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
2119 in other text sections.
2120
875f7f69
JR
2121Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
2122
2123 * libbfd.c (_bfd_generic_verify_endian_match): New function.
2124 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
2125 * libbfd.h: Regenerate.
2126 * coff-sh.c (sh_merge_private_data): Delete.
2127 (coff_bfd_merge_private_bfd_data): Change to
2128 _bfd_generic_verify_endian_match.
2129 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
2130
6a9d5c9a
UD
21311999-06-03 Ulrich Drepper <drepper@cygnus.com>
2132
2133 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
2134
a3e38ad3
ILT
21351999-06-03 Ian Lance Taylor <ian@zembu.com>
2136
2137 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
2138 prototype.
2139 (bfd_elf32_arm_process_before_allocation): Likewise.
2140 * bfd-in2.h: Rebuild.
2141
159002ff
RH
21421999-06-03 David Mosberger <davidm@hpl.hp.com>
2143
2144 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
2145 track of end_sequence markers.
2146 (add_line_info): Add END_SEQUENCE arg.
2147 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
2148 debug-line info---it doesn't work right if a compilation unit
2149 consists of multiple discontiguous code-sequences. It would be
2150 worthwhile to optimize for the common case where a compilation
2151 unit results in a contiguous set of code sequences, but this is
2152 quite tricky to get right for arbitrary DWARF2 files.
2153 (lookup_address_in_line_info_table): Don't use the last line entry
2154 for a compilation unit for anything with an address higher than
2155 this line entry. Also, check for end_sequence markers to
2156 correctly handle discontinuities.
2157 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
2158 compilation units, check all compilation units with each->high==0
2159 just like when reading compilation units.
2160
2161 * dwarf2.c (decode_line_info): Initialize table->files and
2162 table->last_line to NULL to avoid segfaults due to random
2163 values in these members.
2164 (concat_filename): Check for out-of-range file number before
2165 indexing filename table. Segfaults suck.
2166
2167 * dwarf2.c (decode_line_info): Don't truncate address to least
2168 significant 32 bits (breaks 64 bit targets).
2169 (lookup_address_in_function_table): Ditto.
2170 (comp_unit_contains_address): Ditto.
2171
42fdc509
MM
21721999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
2173
2174 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
2175 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
2176 (mips_elf64_howto_table_rela): Likewise.
2177
2178 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
2179 split out from ...
2180 (elf_slurp_reloc_table): Here. Use it to handle the case where a
2181 single section has two associated relocation sections.
6a9d5c9a 2182
9d8cefa9
RH
21831999-06-02 Mark Salter <msalter@cygnus.com>
2184
2185 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
2186 COFF_WITH_PE defined.
2187
c9fca91d
NC
21881999-06-02 Nick Clifton <nickc@cygnus.com>
2189
2190 * pe-arm.c: Rename global arm interworking functions to avoid name
2191 collision when all targets BFD is built.
2192 * pei-arm.c: Ditto.
2193
bf572ba0
MM
21941999-05-31 Mark Mitchell <mark@codesourcery.com>
2195
2196 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
2197 may_use_rel_p, may_use_rela_p, default_use_rela_p.
2198 (bfd_elf_section_data): Add use_rela_p.
2199 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
2200 (_bfd_elf_new_section_hook): Likewise.
2201 (elf_fake_sections): Use may_use_rela_p, etc., instead of
2202 use_rela_p.
2203 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
2204 * elfcode.h (write_relocs): Determine whether or not use rela
2205 relocs based on the relocation section header.
2206 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
2207 instead of use_rela_p.
2208 * elfxx-target.h (elf_backend_may_use_relp): New macro.
2209 (elf_backend_may_use_rela_p): Likewise.
2210 (elf_backend_default_use_rela_p): Likewise.
2211 (elfNN_bed): Use them.
6a9d5c9a 2212
3fe702fd
RH
2213Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
2214
2215 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
2216
3f830999
MM
2217Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
2218
2219 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
2220 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
2221 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
2222 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
2223 * bfd-in2.h: Regenerated.
2224 * libbfd.h: Likewise.
2225 * elf32-mips.c (mips_info_to_howto_rela): New function.
2226 (USE_REL): Adjust for new conventions.
2227 (MINUS_ONE): New macro.
2228 (elf_mips_howto_table): Add R_MIPS_SUB.
6a9d5c9a 2229 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3f830999
MM
2230 and MIPS_GOT_DISP.
2231 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
2232 .MIPS.content section.
2233 (_bfd_mips_elf_fake_sections): Treat all sections that begin
2234 with .MIPS.content as .MIPS.content sections. Set
2235 SHF_MNIPS_NOSTRIP for such section.
2236 (elf_info_to_howto): Define to mips_info_to_howto_rela.
2237 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
2238 MIPS_GOT_OFST, and MIPS_GOT_DISP.
2239
70f06c4a
AS
2240Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2241
015985c9
AS
2242 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
2243 variable.
2244
70f06c4a 2245 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
6a9d5c9a 2246 `else'.
70f06c4a 2247
2ef994e0
NC
22481999-05-30 Philip Blundell <philb@gnu.org>
2249
2250 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
2251 1993-03-25 (!!). Take into account the bitmasks for the reloc so
2252 the addend does not overflow into the rest of the word.
2253
ba96a88f
NC
22541999-05-29 Nick Clifton <nickc@cygnus.com>
2255
2256 * bfd-in.h: Amend prototype for
2257 bfd_elf32_arm_process_before_allocation .
2258 * bfd-in.h: Regenerate.
6a9d5c9a 2259
ba96a88f
NC
2260 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
2261 elements in a fixed sized array.
2262 (ARM_ELF_ABI_VERSION): Define.
2263 (ARM_ELF_OS_ABI_VERSION): Define.
2264 (R_ARM_THM_ABS5): Fix rightshift and size.
2265 (R_ARM_THM_PC22): Fix size.
2266 (R_ARM_PLT32): Define Howto.
2267 (find_howto): New function: Locate a howto based on a reloc
2268 number.
2269 (elf32_arm_info_to_howto): Use find_howto if necessary.
2270 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
2271 bfd_reloc_code_real_type.
2272 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
2273 and BFD_RELOC_VTABLE_ENTRY.
2274 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
2275
2276 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
2277 elements in a fixed sized array.
2278 (ARM_ELF_ABI_VERSION): Define.
2279 (ARM_ELF_OS_ABI_VERSION): Define.
2280 (R_ARM_THM_ABS5): Fix rightshift and size.
2281 (R_ARM_THM_PC22): Fix size.
2282 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
2283 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
2284 bfd_reloc_code_real_type.
2285
2286 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
2287 no_pipeline_knowledge.
2288 (elf32_arm_link_hash_create): Initialise new field to zero.
2289 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
2290 no_pipeline_knowledge. Use this parameter to initialise the field
2291 in the globals data structure.
2292 (elf32_arm_final_link_relocate): Only add in pipeline offset if
2293 no_pipeline_knowledge is false and the binary is from an old
2294 toolchain.
2295 (elf32_arm_merge_private_data): Generate an error if an attempt is
2296 made to linl together big endian and little endian code.
2297 (elf32_arm_post_process_headers): New function: Initialise the
2298 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
6a9d5c9a 2299 header.
ba96a88f
NC
2300 (elf_backend_post_process_headers): Define.
2301
e6c51ed4
NC
23021999-05-28 Nick Clifton <nickc@cygnus.com>
2303
2304 * elf-bfd.h (struct elf_backend_data): Add new field:
2305 elf_backend_post_process_headers.
2306
2307 * elfxx-target.h (elf_backend_post_process_headers): Define to
2308 NULL if not already defined.
6a9d5c9a 2309 (elfNN_bed): Initialise elf_backend_post_process_headers field.
e6c51ed4
NC
2310
2311 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
2312 to zero.
2313 (_bfd_elf_compute_section_file_positions): Call
6a9d5c9a 2314 elf_backend_post_process_headers if defined.
e6c51ed4 2315
633fd09f
ILT
23161999-05-28 Ian Lance Taylor <ian@zembu.com>
2317
2318 * configure.in: Check whether getuid and getgid exist.
2319 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
2320 HAVE_GETGID are not defined, respectively.
2321 (bfd_write_armap): Don't special case on _WIN32 for getuid and
2322 getgid.
2323 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
2324 * configure, config.in: Rebuild.
2325
b2ef150d
ILT
23261999-05-28 Martin Dorey <mdorey@madge.com>
2327
2328 * elf32-i960.c: New file.
2329 * elf.c (prep_headers): Handle bfd_arch_i960.
2330 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
2331 * config.bfd (i960-*-elf*): New target.
2332 * configure.in (bfd_elf32_i960_vec): New target vector.
2333 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
2334 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
2335 * Makefile.in, aclocal.m4, configure: Rebuild.
2336
5f97aa0c
NC
23371999-05-27 Nick Clifton <nickc@cygnus.com>
2338
2339 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
6a9d5c9a 2340 R_ARM_PLT32.
5f97aa0c
NC
2341 (find_howto): New function: Find entries in the
2342 elf32_arm_howto_table.
2343 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
2344 computed simply.
2345 (elf32_arm_reloc_type_lookup): Add lookup for
6a9d5c9a 2346 BFD_RELOC_ARM_PLT32.
5f97aa0c 2347
780a67af
NC
23481999-05-25 Philip Blundell <pb@nexus.co.uk>
2349
2350 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
2351 (elf32_arm_link_hash_table_create): Use above function as the
2352 constructor for hash table entries.
2353 (elf32_arm_relocate_section): Avoid crash when there is no output
6a9d5c9a 2354 section.
780a67af
NC
2355 (elf32_arm_final_link_relocate): New parameter h.
2356 (elf32_arm_relocate_section): Pass symbol hash entry to above
2357 routine.
2358 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
2359 comments.
6a9d5c9a 2360
fa0e42e4 23611999-05-25 Catherine Moore <clm@cygnus.com>
6a9d5c9a 2362
27ac83bf
RH
2363 * coff-arm.c (coff_arm_relocate_section): Don't emit
2364 base file entries for pc-relative values.
6a9d5c9a 2365
93dfcdf0
DD
23661999-05-25 DJ Delorie <dj@cygnus.com>
2367
2368 * peicode.h (coff_swap_sym_in): When we create the actual section
2369 to reflect the not-there section C_SECTION symbols refer to,
2370 change the symbol class to C_STAT as the section is now really
2371 there.
2372
db65e864
NC
23731999-05-24 Philip Blundell <pb@nexus.co.uk>
2374
2375 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
2376 1999-03-25.
2377
948221a8 2378Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
f6886bc4 2379
948221a8
NC
2380 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
2381 F_PIC_INT to F_PIC.
2382 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
2383 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
6a9d5c9a 2384
1349dd65
NC
23851999-05-16 Nick Clifton <nickc@cygnus.com>
2386
2387 * coff-mcore.c (in_reloc_p): Reinstate.
2388
36797d47
NC
23891999-05-15 Nick Clifton <nickc@cygnus.com>
2390
2391 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
2392 * bfd-in2.h: Regenerate.
2393 * coff-mcore.c (in_reloc_p): Remove defintion.
2394 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
2395 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
2396 IMAGE_REL_MCORE_RVA.
2397 (coff_mcore_rtype_to_howto): Add special processing for
2398 IMAGE_REL_MCORE_RVA.
2399 (coff_mcore_relocate_section): Add support for
6a9d5c9a 2400 IMAGE_REL_MCORE_RVA.
36797d47
NC
2401 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
2402 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
2403 R_MCORE_RELATIVE.
6a9d5c9a
UD
2404 (mcore_elf_relocate_section): Delete redundant case labels.
2405
97eaf9de
AS
2406Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2407
2408 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
2409 precedence between bit-and and comparison.
2410
2e9a84c8
RH
2411Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
2412
2413 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
2414 list of target formats (targ_selvecs).
2415 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
2416 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
2417
ec0ef80e
DD
24181999-05-10 DJ Delorie <dj@cygnus.com>
2419
2420 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
2421 reasonable mode until "ar x" is smart enough to skip it (fixes
2422 gcc/libgcc.a builds on mips-ecoff targets
2423
2424 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
2425 to work. Hack to support MS import libraries, which use different
2426 COMDAT types than GNU.
2427 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
2428 to implied zero-length sections (see peicode below)
2429 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
2430 filename symbols, which use one *or more* auxents.
2431 * coffswap.h (coff_swap_aux_in): ditto
2432 * peicode.h (coff_swap_sym_in): Build the implied zero-length
2433 sections
6a9d5c9a 2434
5c746d90
JL
2435Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
2436
2437 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
2438 for all relocations.
2439
ba1b9317
CM
24401999-05-10 Catherine Moore <clm@cygnus.com>
2441
27ac83bf
RH
2442 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
2443 if COFF_IMAGE_WITH_PE.
2444 (bfd_arm_process_before_allocation): Likewise.
2445 (bfd_arm_get_bfd_for_interworking): Likewise.
2446 * coff-arm.c: Likewise.
2447 * bfd-in2.h: Regenerate.
2448 * configure.in (armpe_little_vec): Remove coff-arm.lo.
2449 (armpe_big_vec): Likewise.
2450 * configure: Rebuild.
ba1b9317 2451
c1f6bc03
NC
24521999-05-10 Nick Clifton <nickc@cygnus.com>
2453
2454 * elf.c (elf_fake_sections): Check for .rel. as start of rel
2455 section, not just .rel. Same for .rela.
2456
b23f908b
NC
24571999-05-07 Nick Clifton <nickc@cygnus.com>
2458
2459 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
2460 endianism with an error message.
2461
7fafc0fd
RH
2462Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
2463
2464 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
2465 assignment from "unsigned char *" to "char *".
2466 (decode_line_info): Likewise for dwarf_line_buffer assignment.
2467
b44267fd
CM
24681999-05-05 Catherine Moore <clm@cygnus.com>
2469
27ac83bf
RH
2470 * coff-arm.c (coff_arm_relocate_section): Add one to
2471 address of ARM_RVA32 thumb functions.
6a9d5c9a 2472
b44267fd 24731999-05-05 Catherine Moore <clm@cygnus.com>
6a9d5c9a 2474
27ac83bf
RH
2475 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
2476 (elf32_m68k_copy_private_bfd_data): New.
2477 (elf32_m68k_merge_private_bfd_data): New.
2478 (elf32_m68k_print_private_bfd_data): New.
2479 (CPU32_FLAG): Define.
2480 (PLT_CPU32_ENTRY_SIZE): Define.
2481 (elf_cpu32_plt0_entry): Declare.
2482 (elf_cpu32_plt_entry): Declare.
2483 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
2484 (elf_m68k_finish_dynamic_symbol): Likewise.
2485 (elf_m68k_finish_dynamic_sections): Likewise.
2486 (elf_backend_plt_header_size): Remove definition.
2487 (bfd_elf32_bfd_copy_private_bfd_data): Define.
2488 (bfd_elf32_bfd_merge_private_bfd_data): Define.
2489 (bfd_elf32_bfd_set_private_flags): Define.
2490 (bfd_elf32_bfd_print_private_bfd_data): Define.
6a9d5c9a 2491
ac79f2f3
JL
2492Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
2493
2494 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
2495 and R_LONG_PCREL_MODE.
2496
252b5132
RH
24971999-04-29 Nick Clifton <nickc@cygnus.com>
2498
2499 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
2500
2501Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
2502
2503 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
2504 in relocation calculation.
2505
25061999-04-26 Tom Tromey <tromey@cygnus.com>
2507
2508 * aclocal.m4, configure: Updated for new version of libtool.
2509
25101999-04-21 Nick Clifton <nickc@cygnus.com>
2511
2512 * coff-mcore.c: Add support for mcore relocs.
2513
25141999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
2515
2516 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
2517 incorrect use EF_MIPS_xxBITPTRS.
2518
25191999-04-18 Ian Lance Taylor <ian@zembu.com>
2520
2521 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
2522 variable insn.
2523
2524 * bfd-in2.h: Rebuild.
2525 * libbfd.h: Rebuild.
2526
2527Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
6a9d5c9a 2528
252b5132
RH
2529 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
2530 (coff_arm_relocate_section): Add ARM26D transform. Only
2531 change to ARM26D for relocateable links.
2532
25331999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
2534
2535 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
2536 (bfd_elf32_bfd_print_private_bfd_data): New.
2537
25381999-04-15 Doug Evans <devans@casey.cygnus.com>
2539
2540 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
2541 refetch addend if USE_REL, add many comments regarding current state.
2542 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
2543 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
2544 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
2545 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
2546
2547Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
2548
2549 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
2550 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
2551
25521999-04-13 David Mosberger <davidm@hpl.hp.com>
2553
2554 * dwarf2.c (decode_line_info): Don't truncate address to least
2555 significant 32 bits (breaks 64 bit targets).
2556 (lookup_address_in_function_table): Ditto.
2557 (comp_unit_contains_address): Ditto.
2558
2559Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
2560
2561 * coff-arm.c (arm_emit_base_file_entry): New routine.
2562 (A2T3_OFFSET): Define.
2563 (T2A3_OFFSET): Define.
2564 (coff_arm_relocate_section): Emit base file entries for interworking
2565 stubs.
2566
25671999-04-13 Philip Blundell <philb@gnu.org>
2568
2569 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
2570 relocs 17 through 19.
2571
2572Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
2573
2574 * elfcode.h: Remove fnmatch.h.
2575 * elflink.h (elf_link_assign_sym_version): Call back to ld
2576 instead of calling fnmatch.
2577
2578 * config.bfd (i?86-*-beoself): Include pe vecs.
2579
2580Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
2581
2582 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
2583 to go missing.
2584
25851999-04-10 Richard Henderson <rth@cygnus.com>
2586
2587 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
2588 when trying to resolve dynamic symbol references.
2589 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2590 * elf32-mips.c (mips_elf_relocate_section): Likewise.
2591 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2592 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2593 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
2594 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2595 * elflink.h (elf_link_output_extsym): Likewise.
2596
2597Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
2598
2599 * section.c (_bfd_strip_section_from_output): New function moved from
2600 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
2601 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
2602 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2603 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
2604 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
2605 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2606 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
2607 * bfd-in2.h: Update.
2608
26091999-04-09 Ian Lance Taylor <ian@zembu.com>
2610
2611 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
2612
26131999-04-08 Nick Clifton <nickc@cygnus.com>
2614
2615 * coff-mcore.c: New File: Support for mcore-pe targets.
2616 * cpu-mcore.c: New File: Support for mcore targets.
2617 * elf32-mcore.c: New File: Support for mcore-elf target.
2618 * pe-mcore.c: New File: Definitions for mcore-pe target.
2619 * pei-mcore.c: New File: Definitions for mcore-pei target.
2620 * Makefile.am: Add support for MCore targets.
2621 * Makefile.in: Regenerate.
2622 * config.bfd: Add support for MCore targets.
2623 * configure.in: Add support for MCore targets.
2624 * configure: Regenerate.
2625 * archures.c: Add support for MCore architecture.
6a9d5c9a 2626 * bfd-in2.h: Regenerate.
252b5132
RH
2627 * coffcode.h: Add support for mcore-pe targets.
2628 * elf.c: Add support for mcore-elf target.
2629 * reloc.c: Add support for MCore relocs.
2630 * targets.c: Add support for MCore targets.
2631
26321999-04-07 Nick Clifton <nickc@cygnus.com>
2633
2634 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
2635 R_ARM_XPC25 and R_ARM_THM_XPC22.
2636 (elf32_arm_reloc_map): Remove redundant entries.
2637
26381999-04-06 Ian Lance Taylor <ian@zembu.com>
2639
2640 * sysdep.h (LC_MESSAGES): Never define.
2641
26421999-04-06 Chris Torek <torek@bsdi.com>
2643
2644 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
2645 all callers. Rewrite completely.
2646 (_bfd_relocate_contents): Rewrite overflow checking.
2647 * bfd-in2.h: Rebuild.
2648
26491999-04-05 Ian Lance Taylor <ian@zembu.com>
2650
2651 From Gabriel Paubert <paubert@iram.es>:
2652 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
2653 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
2654 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
2655 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
2656 * ppcboot.c (ppcboot_vec): Use little endian routines for
2657 headers.
2658
2659 * elf.c (elfcore_strndup): Only define if it will be used.
2660 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
2661 and irelend.
2662 (ppc_elf_check_relocs): Remove unused local i.
2663 (ppc_elf_gc_mark_hook): Add default case to switch.
2664
2665 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
2666 * srec.c (srec_scan): Accept \r in symbol definitions.
2667 (srec_object_p): Set HAS_SYMS if we saw any symbols.
2668 (symbolsrec_object_p): Likewise.
2669
26701999-04-04 Don Bowman <don@pixsci.com>
2671
2672 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
2673
26741999-04-04 Ian Lance Taylor <ian@zembu.com>
2675
2676 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
2677 last_line.
2678 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
2679 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
2680 switch.
2681 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
2682 local i.
2683 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
2684 local val.
2685
26861999-03-31 Nick Clifton <nickc@cygnus.com>
2687
2688 * config.bfd: Add support for arm-epoc-pe target.
2689 * configure.in: Add support for arm-epoc-pe target.
2690 * configure: Regenerate.
2691 * targets.c: Add support for arm-epoc-pe target.
2692 * coff-arm.c: Allow header files to override definition of
2693 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
2694 * pe-arm.h: Allow previous header files to override definition of
2695 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6a9d5c9a 2696 * pei-arm.h: Allow previous header files to override definition of
252b5132
RH
2697 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
2698 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
2699 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
6a9d5c9a 2700
252b5132
RH
27011999-03-30 Nick Clifton <nickc@cygnus.com>
2702
2703 * elf.c (elf_map_symbols): Handle the case where section
2704 symbols are generated for content-less sections which are
2705 not mapped to the output file.
2706
2707 * linker.c: Replace direct references to fields in BFD structure
2708 with accessor macros.
2709
2710 * elflink.h: Replace direct references to fields in BFD structure
2711 with accessor macros.
2712
27131999-03-25 Philip Blundell <pb@nexus.co.uk>
2714
2715 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
6a9d5c9a
UD
2716
2717 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
252b5132
RH
2718 account when adjusting section symbols during a partial link.
2719
27201999-03-24 Nick Clifton <nickc@cygnus.com>
2721
2722 * coff-sparc.c (struct coff_reloc_map): Change type of field
2723 'bfd_reloc_val' to bfd_reloc_code_real_type.
2724 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
2725 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
2726 * elf32-arc.c (struct arc_reloc_map): Ditto.
2727 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
2728 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
2729 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
2730 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
2731 * elf32-sh.c (struct elf_reloc_map): Ditto.
2732 * elf32-sparc.c (struct elf_reloc_map): Ditto.
2733 * elf32-v850.c (struct v850_reloc_map): Ditto.
2734 * elf64-sparc.c (struct elf_reloc_map): Ditto.
2735 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
2736 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
2737
27381999-03-17 Martin Hunt <hunt@cygnus.com>
2739
2740 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
2741 function so source-level assembly works. If multiple N_SOs
2742 are seen without and N_FUNs, create an indextable entry with
2743 a NULL function name.
2744
27451999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
2746
2747 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
2748 of certian similar cpus.
2749
27501999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
2751
2752 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
2753 Add the 5000. Change the architecture for the 5400 to mips4.
2754 (elf_mips_mach): Add r5000.
2755
27561999-03-11 Doug Evans <devans@casey.cygnus.com>
2757
2758 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
2759
27601999-03-11 Nick Clifton <nickc@cygnus.com>
2761
2762 * binary.c (binary_set_section_contents): Generate warning about
2763 huge file offsets for any section that will occupy file space, not
2764 just those that are loadable.
2765
27661999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
2767
2768 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
2769
27701999-02-22 Jim Lemke <jlemke@cygnus.com>
2771
2772 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
2773
2774Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
2775
2776 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
2777 * elflink.h: Revert all changes since Feb 16. Instead:
2778 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
2779 appropriate. Copy it to version symbols.
2780 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
2781 symbols if appropriate.
2782 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
2783 symbol if appropriate.
2784 (elf_link_output_extsym): If symbol is marked as undefined, and
2785 has no nonweak references, mark it as weak undefined.
2786
2787Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
2788
2789 * elflink.h (elf_merge_symbol): When overriding a dynamic
2790 definition with a weak undefined symbol, set NEEDS_PLT if it is a
2791 function.
2792 (elf_link_add_object_symbols): Don't copy the other field if we
2793 are overridding.
2794
2795Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
2796
2797 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
2798 shared object with a weak undefined symbol.
2799
28001999-02-18 Nick Clifton <nickc@cygnus.com>
2801
2802 * elfarm-nabi.c: Set partial_inplace back to false.
2803
28041999-02-17 Nick Clifton <nickc@cygnus.com>
2805
2806 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
2807 (USER_LABEL_PREFIX): Set to "_".
2808
2809 The following patches are from: Scott Bambrough
2810 <scottb@corelcomputer.com>
6a9d5c9a 2811
252b5132
RH
2812 * libaout.h (M_ARM6_NETBSD): Set to 143.
2813
2814 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
2815 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
2816 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
2817 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
2818 * bfd-in2.h: Regenerate.
2819
2820 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
2821 'true' as REL relocs are now being used. Add new PIC relocs:
2822 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
2823 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
2824
2825 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
2826 of targets.
2827 (elf32_arm_final_link_relocate): Change parameters so that entire
2828 reloc is passed. Add support for PIC relocs.
2829 (elf32_arm_relocate_section): Pass entire reloc to
6a9d5c9a 2830 elf32_arm_final_link_relocate.
252b5132
RH
2831 (elf32_arm_check_relocs): Handle new PIC relocs.
2832 (elf32_arm_adjust_dynamic_symbol): New function.
2833 (elf32_arm_size_dynamic_sections): New function.
2834 (elf32_arm_discard_copies): New function.
2835 (elf32_arm_finish_dynamic_symbol): New function.
2836 (elf32_arm_finish_dynamic_sections): New function.
2837 (ELF_MAXPAGE_SIZE): Define.
2838 (bfd_elf32_bfd_reloc_type_lookup): Define.
2839 (elf_backend_relocate_section): Define.
2840 (elf_backend_adjust_dynamic_symbol): Define.
2841 (elf_backend_create_dynamic_sections): Define.
2842 (elf_backend_finish_dynamic_symbol): Define.
2843 (elf_backend_finish_dynamic_sections): Define.
2844 (elf_backend_size_dynamic_sections): Define.
2845 (elf_backend_plt_readonly): Define.
2846 (elf_backend_want_got_plt): Define.
2847 (elf_backend_want_plt_sym): Define.
6a9d5c9a 2848
252b5132
RH
2849Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
2850
2851 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
2852 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
2853 (_bfd_mips_elf_fake_sections): Likewise.
2854
2855Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6a9d5c9a 2856
27ac83bf
RH
2857 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
2858 bfd_elf32_arm_get_bfd_for_interworking,
2859 bfd_elf32_arm_process_before_allocation): Define to avoid clash
2860 with elfarm-nabi.c.
6a9d5c9a 2861
27ac83bf
RH
2862 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
2863 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
2864 elf32_arm_find_nearest_line): Make them static.
252b5132
RH
2865
2866Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
2867
2868 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
2869 callers. Do not merge a definition from a shared object with a
2870 weak undefined symbol.
2871 (elf_link_add_object_symbols): Do not change the symbol type or
2872 size if the old symbol overrides the new one.
2873
28741999-02-08 Nick Clifton <nickc@cygnus.com>
2875
2876 * config.bfd: Add support for strongarm target.
2877
2878Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2879
2880 * elf32-m68k.c (reloc_map): Use the correct types for the struct
2881 fields instead of unsigned char.
2882
2883Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
2884
2885 * Makefile.am: Rebuild dependencies.
2886 * Makefile.in: Rebuild.
2887
2888Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
2889
2890 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
2891 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
2892 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
2893 * acinclude.m4: Add comments to uses of AC_DEFINE.
2894 * acconfig.h: Remove.
2895 * configure: Rebuild with current autoconf/automake.
2896 * aclocal.m4: Likewise.
2897 * config.in: Likewise.
2898 * Makefile.in: Likewise.
2899
29001999-02-04 DJ Delorie <dj@cygnus.com>
2901
2902 * libbfd.c (real_read): don't call fread for zero bytes. This
2903 covers up a bug (or misuse of bfd) that's exposed by Solaris.
2904
2905Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
2906
2907 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
2908 of a jump is in the current 256 MB region.
2909
2910Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
2911
2912 * format.c (bfd_check_format_matches): Change last patch to only
2913 take effect for the binary target.
2914
2915Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
2916
2917 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
2918
2919Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
2920
2921 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
2922
2923Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
2924
2925 * format.c (bfd_check_format_matches): If the target was
2926 previously specified, don't check other targets when checking for
2927 an archive file.
2928
2929Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
2930
27ac83bf
RH
2931 * elf32-arm.h (elf32_arm_reloc_map): Removed.
2932 (elf32_arm_reloc_type_lookup): Removed
2933 * elfarm-nabi.c (elf32_arm_reloc_map): New.
2934 (elf32_arm_reloc_type_lookup): New.
2935 * elfarm-oabi.c (elf32_arm_reloc_map): New.
2936 (elf32_arm_reloc_type_lookup): New.
252b5132
RH
2937
2938Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
2939
27ac83bf
RH
2940 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
2941 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
2942 * Makefile.am: Use new files.
2943 * Makefile.in: Regenerate.
2944 * configure.in: Use new files.
2945 * configure: Regenerate.
252b5132
RH
2946
29471999-02-01 Nick Clifton <nickc@cygnus.com>
2948
2949 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
2950 (fr30_elf_gc_sweep_hook): New function.
2951 (elf_backend_can_gc_sections): Define.
2952
2953Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
2954
27ac83bf
RH
2955 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
2956 and bfd_elf32_bigarm_oabi_vec.
252b5132
RH
2957
2958Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
2959
27ac83bf
RH
2960 * Makefile.am (elf32-arm-oldabi.lo): New.
2961 (elf32-arm-newabi.lo): New.
2962 * Makefile.in: Regenerate.
2963 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
2964 (arm-*-elf): Likewise.
2965 (arm-*-oabi): New.
2966 (thumb-*-oabi): New.
2967 * configure: Regenerate.
2968 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
2969 (bfd_elf32_bigarm_oabi_vec): New.
2970 * elf32-arm-newabi.c: New.
2971 * elf32-arm-oldabi.c: New.
2972 * elf32-arm.c: Removed.
2973 * elf32-arm.h: New.
252b5132
RH
2974
2975Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
2976
2977 * binary.c (binary_set_section_contents): Omit warnings for
2978 unloadable sections.
2979
29801999-01-31 Michael Meissner <meissner@cygnus.com>
2981
2982 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
2983 powerpc{,le}-*-eabi.
2984
29851999-01-29 Nick Clifton <nickc@cygnus.com>
2986
2987 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
2988 * dwarf2.c (read_signed_leb128): Remove unused variables.
2989
2990Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
2991
2992 * elf.c (assign_file_positions_for_segments): Only adjust
2993 p_align when needed.
2994
2995Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
2996
2997 * binary.c (binary_set_section_contents): Don't return early for a
2998 non-loadable section, in case the first section is non-loadable.
2999 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
3000 W. Rozycki <macro@ds2.pg.gda.pl>.
3001
30021999-01-28 Nick Clifton <nickc@cygnus.com>
3003
3004 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
3005 R_FR30_GNU_VTENTRY relocs.
3006
3007Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
3008
3009 * elflink.h (elf_link_output_sym): Zero syms which are
3010 part of sections which have been excluded.
3011
3012Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
3013
3014 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
3015 to F_PIC_INT.
3016 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
3017 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6a9d5c9a 3018
252b5132
RH
30191999-01-27 Nick Clifton <nickc@cygnus.com>
3020
3021 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6a9d5c9a 3022 relocation.
252b5132 3023 (fr30_final_link_relocate): Use computed value as result of
6a9d5c9a 3024 relocation.
252b5132
RH
3025
30261999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3027
3028 * binary.c (binary_set_section_contents): Emit warning for
3029 huge file offsets due to widely-dispersed section LMAs.
3030
3031Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
3032
3033 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
3034 align first section to largest section alignment, not first
3035 section alignment.
3036
30371999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3038
3039 * configure.in: Require autoconf 2.12.1 or higher.
3040
3041Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
3042
27ac83bf
RH
3043 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
3044 * bfd-in2.h: Likewise.
3045 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
252b5132
RH
3046
30471998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
3048
3049 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
3050 * cpu-mips.c: Add support for and independent 4111.
3051 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6a9d5c9a 3052 (_bfd_mips_elf_final_write_processing):
252b5132
RH
3053 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
3054
30551998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
3056
3057 * elf32-mips.c (elf_mips_abi_name): New.
3058 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
3059
30601998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
3061
6a9d5c9a 3062 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
252b5132
RH
3063 Handle bfd_mach_mips4300.
3064
30651998-12-11 Ulrich Drepper <drepper@cygnus.com>
3066
3067 * elf32-i386.c: Remove leaked development code from patch
3068 1998-12-10 by Richard Henderson.
3069
30701998-12-10 Richard Henderson <rth@cygnus.com>
3071
3072 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
3073 in debug sections for symbol defined externally.
3074
3075Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3076
3077 * targets.c (bfd_target_vector): Remove duplicate entry for
3078 tekhex_vec.
3079
30801998-12-09 Nick Clifton <nickc@cygnus.com>
3081
3082 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
3083 since we are using RELAs.
3084
3085Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
3086
3087 SCO Open Server Release 5 core file support, from Jouke Numan
3088 <jnuman@hiscom.nl>:
3089 * sco5-core.c: New file.
3090 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
3091 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
3092 * Makefile.am: Rebuild dependencies.
3093 (OPTIONAL_BACKENDS): Add sco5-core.lo.
3094 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
3095 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
3096 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
3097 * bfd-in2.h, configure, Makefile.in: Rebuild.
3098
3099Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
3100
3101 * config.bfd (hppa*-*-mpeix*): New target.
3102 * configure.in: Add AC_HEADER_DIRENT.
3103 (hppa*-*-mpeix*): New target.
3104 * configure.host (hppa*-*-mpeix*): New host.
3105 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
3106 friends rather than just including <sys/dir.h>.
3107 * som.h (struct som_symbol): Add hppa_priv_level and apto
3108 tc_data. Change all users.
3109 (struct somdata): Add comp_unit field.
3110 (obj_som_compilation_unit): Define.
3111 (bfd_som_attach_compilation_unix): Declare.
3112 * som.c: Check HOST_HPPAMPEIX.
3113 (struct som_misc_symbol_info): Add new field priv_level.
3114 (som_object_setup): Add current_offset parameter. Change all
3115 callers.
3116 (setup_sections): Likewise.
3117 (som_object_p): For EXECLIBMAGIC, read the lst header.
3118 (som_write_symbol_strings): Add compilation_unit parameter.
3119 Change all callers.
3120 (som_finish_writing): Write out compilation_unit.
3121 (som_bfd_derive_misc_symbol_info): Set priv_level.
3122 (som_build_and_write_symbol_table): Set xleast field to 3.
3123 (som_slurp_symbol_table): Set symbol priv_level.
3124 (bfd_som_attach_compilation_unit): New function.
3125 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
3126 priv_level into symbol_value.
3127 * configure, config.in: Rebuild.
3128
3129Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
3130
3131 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
3132 warning function to call _bfd_error_handler instead.
3133
3134 * libbfd.c (COERCE32): Cast through unsigned long and long to
3135 avoid bug in old version of gcc.
3136
3137 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
3138 (elf_backend_additional_program_headers): Don't define.
3139
31401998-12-08 Nick Clifton <nickc@cygnus.com>
3141
3142 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
3143 relocations to include offset of 2 included in the insns, and the
3144 offset of the relocs within the section.
3145
3146Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
3147
3148 The following changes were made by David Taylor
3149 <taylor@texas.cygnus.com>, Edith Epstein
3150 <eepstein@sophia.cygnus.com>, Jim Blandy
3151 <jimb@zwingli.cygnus.com>, and Elena Zannoni
3152 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
3153 changes originally made by HP; HP did not create ChangeLog
3154 entries.
3155
3156 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
3157 automake macro library.
3158
3159 * hpux-core.c (hpux_core_core_file_p): this function now
3160 understands HPUX 10.30 thread info. Yes, the thread stacks can be
3161 found in the corefile! Also, in hpux_core_core_file_p, if we
3162 encounter a section with an unknown type, don't punt. Instead,
3163 just skip it. Also, count the number of sections of known type
3164 that we encounter. If we encounter at least one good one, then
3165 we'll declare that the file is a core file. If we encounter any
3166 unknown ones but some known ones, then we'll issue a warning (but
3167 still declare it to be a core file). Also, correctly decide when a
3168 file is not a core.
3169 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
3170 (CORE_ANON_SHMEM): define if not defined.
3171 (hpux_core_struct): add members lwpid and user_tid.
3172 (core_kernel_thread_id, core_user_thread_id): new macros.
3173 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
3174 the name before storing it in the bfd.
3175 (hpux_core_core_file_p): handle threads.
3176
3177 * libhppa.h (GET_FIELD): protect against redefinition.
3178 (HPPA_WIDE): define.
3179 (GET_FIELD): define.
3180 (GET_BIT): define.
3181 (MASK): define.
3182 (CATENATE): define.
3183 (ELEVEN): define.
3184 (sign_extend): redefine.
3185 (assemble_6): define.
3186 (assemble_12): rewrite.
3187 (assemble_16): define.
3188 (assemble_16a): define.
3189 (assemble_17): rewrite.
3190 (assemble_22): define.
3191
31921998-12-07 Nick Clifton <nickc@cygnus.com>
3193
3194 * elf32-fr30.c (fr30_final_link_relocate): Using signed
3195 relocations for signed values.
3196
3197Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
3198
3199 * mipsbsd.c (MY(set_arch_mach)): Make static.
3200 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
3201 bfd_mach_mips* macros rather than simple numbers.
3202
3203 COFF weak symbol support, based on patches from Mark Elbrecht
3204 <snowball3@usa.net>:
3205 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
3206 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
3207 (coff_write_alien_symbol): Likewise.
3208 * cofflink.c (coff_link_check_ar_symbols): Likewise.
3209 (coff_link_add_symbols): Likewise.
3210 (_bfd_coff_link_input_bfd): Likewise.
3211 (_bfd_coff_write_global_sym): Likewise.
3212
3213 * elf.c (copy_private_bfd_data): Always initialize the
3214 includes_phdrs field.
3215
3216 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
3217 file defines a symbol first mentioned in an ELF file.
3218
3219 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
3220 possible, rather than only if BFD64.
3221 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
3222 not __GNUC__.
3223 * bfd-in2.h: Rebuild.
3224
3225 * srec.c (srec_set_section_contents): Correct test to avoid
3226 switching to 4 byte addresses after seeing a second section which
3227 requires 3 byte addresses. From Joel Schantz
3228 <joel.schantz@argosys.boeing.com>.
3229
3230 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
3231 <aymeric.vincent@emi.u-bordeaux.fr>.
3232
32331998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
3234
3235 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
3236 decide whether the output file is -mrelocatable-lib,
3237 -mrelocatable, or neither. (gdb.base/nodebug.exp)
3238
32391998-12-03 Nick Clifton <nickc@cygnus.com>
3240
3241 * elf32-fr30.c: Add support for R_FR30_48 reloc.
3242 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
3243 * bfd-in2.h: Regenerate.
3244 * libbfd.h: Regenerate
3245
3246Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
3247
3248 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
3249 link against a dynamic symbol with no type or size.
3250
32511998-12-01 Ulrich Drepper <drepper@cygnus.com>
3252
3253 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
3254 relocation for section which does not get loaded.
3255 (elf_i386_relocate_section) [R_386_32]: Likewise.
3256
3257Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
3258
3259 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
3260 reloc_count and i long instead of unsigned long. Handle error
3261 return from bfd_canonicalize_reloc.
3262
32631998-12-01 Nick Clifton <nickc@cygnus.com>
3264
3265 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
3266 a hash table.
3267
3268Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
3269
3270 * elf32-sh.c (elf/sh.h): Include.
3271 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
3272 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
3273 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
3274 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
3275 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
3276
3277Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
3278
3279 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
3280 causes division by zero later on.
3281
3282Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
3283
3284 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
3285 needed.
3286
32871998-11-25 DJ Delorie <dj@cygnus.com>
3288
3289 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
3290 hook now.
3291
3292Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
3293
3294 * elf32-fr30.c (fr30_elf_relocate_section): Call
3295 fr30_final_link_relocate.
3296 (fr30_final_link_relocate): New function: Handle I20 and I32
3297 relocs.
3298 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
3299 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
3300 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
3301
3302 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
3303 chain to empty.
3304
3305 The following changes are based on a patch submitted by Gianluca
3306 Moro <glctr@abc.it>:
3307
3308 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
3309 not already been updated.
3310 (find_remembered_hi16s_reloc): New parameter 'already_found'
3311 returns state of remembered hi16s reloc.
3312 (remember_hi16s_reloc): Set 'found' field to false.
3313 (hi16s_location): Add 'found' field.
3314
33151998-11-23 DJ Delorie <dj@cygnus.com>
3316
3317 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
3318 to see .DLL files as unrecognized.
3319 (i3coff_object_p): Sorry, had to hack it to not recognize these
3320 files (pei-i386) on request.
3321
33221998-11-23 DJ Delorie <dj@cygnus.com>
3323
3324 * opncls.c (bfd_make_readable): need more cleanup for symbols and
3325 relents. Call bfd_check_format to reinitialize.
3326
3327Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
3328
3329 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
3330 warnings.
3331
3332Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
3333
3334 * aclocal.m4: regenerate
3335 * configure: regenerate
3336
3337Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
3338
3339 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
3340 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
3341 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
3342 respect it as an upper bound on what memory to reference.
3343 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3344 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
3345 update vtable_entries_size appropriately.
3346
3347Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
3348
3349 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
3350 reloc number.
3351
3352Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
3353
3354 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
3355 bfds; they have no "file" so we fake it.
3356 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
3357 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
3358 resizing the memory buffer.
3359 * opncls.c (bfd_make_writable): New function; lets you write a
3360 bfd_create'd bfd to an in-memory buffer.
3361 (bfd_make_readable): New function; lets you read back that buffer
3362 as if it were from bfd_openr. Used to build generated archive
3363 members (winsup's ld's dlltool)
3364
3365Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
3366
3367 * po/bfd.pot: Regenerated.
3368
3369Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
3370
3371 * elf32-v850.c (hi16s_location): Replaced fixed size array with
3372 linked list.
3373
3374Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
3375
3376 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
3377 element of the gotentry list for local symbols too.
3378 (elf64_alpha_relocate_section): Unify local and global handling.
3379 Assert that gotent->use_count > 0.
3380
3381Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
3382
3383 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
3384 update for file name changes of July 2, 1998.
3385 (vms_vax_vec): New.
3386 * configure: Rebuild.
3387
3388Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
3389
3390 * po/bfd.pot: Regenerated.
3391
3392Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
3393
3394 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
3395 * aclocal.m4, configure: regenerate
3396
3397Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
3398
3399 * elf.c (prep_headers): Add support for bfd_arch_fr30.
3400
3401Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
3402
3403 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
3404 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
3405 was cached.
3406 * aclocal.m4, configure: regenerated.
3407
3408Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
3409
27ac83bf
RH
3410 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
3411 R_D10V_GNU_VTENTRY relocs.
3412 (elf_d10v_howto_table): Likewise.
3413 (d10v_reloc_map d10v_reloc_map): Likewise.
3414 (elf32_d10v_gc_mark_hook): New.
3415 (elf32_d10v_gc_sweep_hook): New.
3416 (elf32_d10v_check_relocs): New.
3417 (elf32_d10v_relocate_section): New.
3418 (elf_backend_relocate_section): Define.
3419 (elf_backend_can_gc_sections): Define.
252b5132
RH
3420
3421Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
3422
3423 * Makefile.am (BFD32_BACKENDS): Move vms files here...
3424 (BFD64_BACKENDS): ...from here.
3425 (BFD32_BACKENDS_CFILES): Move vms files here...
3426 (BFD64_BACKENDS_CFILES): ...from here.
3427 * Makefile.in: Rebuild.
3428
3429Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
3430
3431 * Makefile.am: Add FR30 target.
3432 * Makefile.in: Add FR30 target.
3433 * archures.c: Add support for FR30.
3434 * config.bfd: Add support for FR30.
3435 * configure.in: Add support for FR30.
3436 * reloc.c: Add support for FR30 relocations.
3437 * targets.c: Add support for FR30 relocations.
3438 * bfd-in2.h: Regenerate.
3439 * configure: Regenerate.
3440 * libbfd.h: Regenerate.
3441 * cpu-fr30.c: New file.
3442 * elf32-fr30.c: New file.
3443
3444Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
3445
3446 * configure.in: detect cygwin* instead of cygwin32*
3447 * configure: regenerate
3448
3449Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
3450
3451 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
3452 use bfd_malloc and free instead and check return value from bfd_malloc.
3453
3454Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
3455
3456 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
3457 * libbfd.h: Rebuild.
3458
3459 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
3460 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
3461 (MIPS_TEXT_DYNSYM_SECN): Likewise.
3462 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
3463 section.
3464 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
3465 field.
3466 (mips_elf_link_hash_table_create): Don't initialize
3467 dynsym_sec_strindex.
3468 (mips_elf_gc_mark_hook): Add default case to avoid warning.
3469 (mips_elf_size_dynamic_sections): Generate a section symbol for
3470 every output section.
3471 (mips_elf_finish_dynamic_sections): Count all sections for
3472 DT_MIPS_UNREFEXTNO.
3473 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
3474 output sections.
3475
3476Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
3477
3478 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
3479 for later PLT entries in large PLTs.
3480 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
3481
3482Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
3483
3484 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
3485
34861998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
3487
3488 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
3489 * elflink.h (elf_collect_hash_codes): New function. This function is
3490 called for each exported symbol and we compute the ELF hash value for
3491 it.
3492 (compute_bucket_value): New function. It is called from
3493 size_dynamic_sections to determine the hash table size. When we are
3494 optimizing a better, but slower, algorithm is used.
3495 (size_dynamic_sections): Call compute_bucket_value.
3496
3497 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
3498
3499Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
3500
27ac83bf
RH
3501 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
3502 R_SH_GNU_VTENTRY.
3503 (sh_elf_gc_mark_hook): New.
3504 (sh_elf_gc_sweep_hook): New.
3505 (sh_elf_check_relocs): New.
3506 (elf_backend_can_gc_sections): Define.
252b5132
RH
3507
3508Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
3509
3510 * acinclude.m4: undo previous gettext change
3511 * aclocal.m4: rebuild with right version of aclocal.
3512
3513Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
3514
3515 * acinclude.m4, aclocal.m4: move gettext-related fragments from
3516 aclocal.m4 to acinclude.m4, so they don't get lost.
3517
3518 * elfcore.h: rewrite for better corefile support.
3519 * elf.c (elfcore_*): new functions.
3520 * elf-bfd.h (elf_obj_tdata): new structure members.
3521 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
3522 flavor of procfs.
3523 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
3524
3525Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
3526
27ac83bf
RH
3527 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
3528 and R_M32R_GNU_VTENTRY.
3529 (elf_backend_can_gc_sections): Define.
3530 (m32r_elf_check_relocs): New.
3531 (m32r_elf_gc_mark_hook): New.
3532 (m32r_elf_gc_sweep_hook): New.
3533 (m32r_elf_relocate_section): Handle VT relocs.
252b5132
RH
3534
3535Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
3536
3537 * coff-arm.c (arm_relocate_section): Remove redundant test.
3538
3539 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
3540 cleat that the 'bitsize' field is the size of the bitfield AFTER
3541 relocation not before.
3542
3543 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
3544
3545 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
3546 relocs.
3547
3548Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
3549
27ac83bf
RH
3550 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
3551 R_SPARC_GNU_VTENTRY.
3552 (elf32_sparc_check_relocs): Handle them.
3553 (elf32_sparc_reloc_type_lookup): Likewise.
3554 (elf32_sparc_relocate_section): Likewise.
3555 (elf32_sparc_gc_mark_hook): New.
3556 (elf32_sparc_gc_sweep_hook): New.
252b5132
RH
3557
3558Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
3559
3560 * som.c (som_finish_writing): Perform some sanity checks when
3561 writing an executable or shared library.
3562
3563Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
3564
3565 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
3566 * configure.in (elf): Add dwarf1.lo.
3567 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
3568 * elf.c (_bfd_elf_find_nearest_line): Add call to
3569 _bfd_dwarf1_find_nearest_line.
3570 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
3571 Add call to _bfd_dwarf1_find_nearest_line.
3572 * configure: Rebuilt.
3573
3574Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
3575
27ac83bf
RH
3576 * elflink.h (elf_gc_sections): Do not allow garbage
3577 collection if dynamic sections have been created.
252b5132
RH
3578
3579Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
3580
27ac83bf
RH
3581 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
3582 R_V850_GNU_VTENTRY.
3583 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
3584 (v850_elf_perform_relocation): Likewise.
3585 (v850_elf_final_link_relocate): Likewise.
3586 (v850_elf_relocate_section): Likewise.
3587 (v850_elf_gc_sweep_hook): New routine.
3588 (v850_elf_gc_mark_hook): New routine.
3589 (elf_backend_can_gc_sections): Define.
252b5132
RH
3590
3591Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
3592
27ac83bf
RH
3593 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
3594 that dynobj exists.
252b5132
RH
3595
3596Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
3597
3598 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
3599 Declare size as bfd_size_type.
3600 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
3601
3602Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
3603
3604 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
3605 structure.
3606 * som.c (CPU_PA_RISC2_0): Define.
3607 (_PA_RISC2_0_ID): Likewise.
3608 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
3609
3610Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
3611
3612 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
3613 has a base which is already defined, only add the referenced
3614 symbol to the dynamic symbol table if it is defined or referenced
3615 by a regular file.
3616
3617 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
3618 correctly.
3619
36201998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3621
27ac83bf 3622 * elflink.h (elf_link_add_object_symbols): Undo last change.
252b5132
RH
3623
3624Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
3625
27ac83bf
RH
3626 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
3627 symbol for the indirect alias to a versioned symbol.
252b5132
RH
3628
3629Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
3630
27ac83bf
RH
3631 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
3632 (elf32_i386_vtentry_howto): New.
3633 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
3634 or elf32_i386_vtinherit_howto on lookup.
252b5132
RH
3635
3636Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3637
3638 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
3639 reloc_type. Rename R_68K__max to R_68K_max.
3640 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
3641 reloc.
3642
3643Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
3644
3645 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
3646 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
3647
3648 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
3649 after.
3650
3651Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
3652
3653 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
3654 message has a null byte terminator.
3655
3656Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
3657
3658 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
3659 word subject to R_V850_32 relocation.
3660
3661Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
3662
3663 * dwarf2.c: Add comment describing problem computing line numbers
3664 for undefined symbols at link time.
3665
3666Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
3667
27ac83bf
RH
3668 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
3669 transform a defweak into a plt entry.
3670 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
3671 plt entry references to receive a RELATIVE reloc.
3672 (elf64_alpha_finish_dynamic_symbol): Fill them in.
3673 (elf64_alpha_relocate_section): Assert we don't overrun
3674 the allocated relocation space.
252b5132
RH
3675
3676Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
3677
3678 * elf.c (swap_out_syms): Always treat section symbols as
3679 special, even if they are attached to a common section.
3680
3681Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
3682
3683 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
3684 sections with v850 common section attributes into named v850
3685 common sections.
3686 (v850_elf_add_symbol_hook): Move symbols in sections with v850
3687 common section attributes into named v850 common sections.
3688
3689Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
3690
27ac83bf
RH
3691 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
3692 statement.
252b5132
RH
3693
36941998-09-15 Geoff Keating <geoffk@ozemail.com.au>
3695
3696 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
3697 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
3698 reloc to the wrong section a warning, not an error. .dynsbss
3699 is not an output section, so there is no need to check for it.
3700
3701Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
3702
3703 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
3704
3705Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
3706
3707 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
3708 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
3709 R_ARM_GNU_VTENTRY.
3710 (elf32_arm_gc_mark_hook): New.
3711 (elf32_arm_gc_sweep_hook): New.
3712 (elf32_arm_check_relocs): New.
3713 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
3714 relocations.
3715 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
3716 relocations.
3717
37181998-09-10 Geoff Keating <geoffk@ozemail.com.au>
3719
27ac83bf
RH
3720 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
3721 assume there is no PLT or GOT.
252b5132
RH
3722
3723Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
3724
3725 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
3726 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
3727 also accepted as a function symbol type.
3728
3729Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3730
3731 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
3732
3733Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
3734
3735 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
3736 match definition of _bfd_gc_sections field.
3737 * libbfd.h: Rebuild.
3738
3739Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
3740
3741 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
3742 the addend of a dynamic relocation referencing a section.
3743 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3744 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
3745
3746Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
3747
3748 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
3749 bed has a size_dynamic_sections routine before trying to use it.
3750
3751Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
3752
3753 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
3754 _bfd_elf_rel_vtable_reloc_fn.
3755
3756Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
3757
27ac83bf
RH
3758 * Makefile.am: Add elf32-arm.c.
3759 * Makefile.in: Rebuild.
3760 * elf-bfd.h: Add elf_backend_get_symbol_type.
3761 * elf.c (swap_out_syms): If defined, call
3762 elf_backend_get_symbol_type.
3763 * elf32-arm.c: Define elf_backend_get_symbol_type.
3764 (elf32_arm_get_symbol-type): New routine.
3765 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
3766 (bfd_elf32_arm_process_before_allocation): Change to
3767 check for STT_ARM_TFUNC.
3768 (elf32_arm_final_link_relocate): Likewise.
3769 * elfxx-target.h: Add elf_backend_get_symbol_type.
252b5132
RH
3770
3771Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
3772
3773 * archures.c (bfd_mach_alpha_ev[456]): New.
3774 * cpu-alpha.c: Rework to match these types.
3775 * bfd-in2.h: Rebuild.
3776
3777Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
3778
3779 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
3780 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
3781
3782 * elf32-i386.c (elf_howto_table): Add vtable relocs.
3783 (elf_i386_reloc_type_lookup): Recognize them.
3784 (elf_i386_check_relocs): Pass them off to generic code.
3785 (elf_i386_relocate_section): Ignore them.
3786 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
3787 (elf_backend_can_gc_sections): True.
3788
3789Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
3790
3791 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
3792 before looking at owner field.
3793 (elf32_arm_to_thumb_stub): Ditto.
3794 (elf32_arm_relocate_section): Compute name before calling
3795 elf32_arm_final_link_relocate().
3796
3797Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
3798
3799 * elf.c: comment and formatting cleanups.
3800 * elfcore.h: ditto.
3801
3802Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
3803
3804 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
3805 (core files are treated differently than object files).
3806 * elf-bfd.h (_bfd_elf_write_corefile_contents,
3807 bfd_elf_mkcorefile): declare.
3808 * elfxx-target.h (_bfd_elf_write_corefile_contents,
3809 bfd_elf_mkcorefile): add to bfd_target vector.
3810 * elfcore.h (elf_core_file_p): save the program header table,
3811 and set the bfd architecture from the elf file header.
3812 * elf.c (bfd_elf_mkcorefile): new function.
3813 (_bfd_elf_write_corefile_contents): new function.
3814 (assign_file_positions_for_segments): add cases for handling
3815 PT_NOTE segments. (assign_file_positions_except_relocs):
3816 core files should be handled the same as exec files.
3817 (prep_headers): identify core files as type ET_CORE.
3818 (copy_private_bfd_data): identify the sections belonging to
3819 the PT_NOTE segment.
3820
3821 * elf32-sparc.c (elf32_sparc_final_write_processing):
3822 add break statement to default case.
3823
38241998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
3825
3826 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
3827 section (not input) will be in sections ".sbss", ".sbss2",
3828 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
3829 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
3830 output_offset for correct evaluation of addend.
3831
3832Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
3833
27ac83bf
RH
3834 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
3835 elf32_arm_allocate_interworking_sections and
3836 elf32_arm_process_before_allocation.
252b5132
RH
3837
3838Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
3839
27ac83bf
RH
3840 * bfd-in.h: Ammend prototype for
3841 elf32_arm_process_before_allocation to remove surplus third
3842 argument.
252b5132 3843
27ac83bf 3844 * bfd-in2.h: Regenerate.
252b5132
RH
3845
3846Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
3847
3848 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
3849
3850Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
3851
3852 * aoutx.h (aout_link_input_section_ext): Use the relocation already
3853 calculated for RELOC_SPARC_REV32 case.
3854
3855Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
3856
3857 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
3858 elf32_arm_allocate_interworking_sections and
3859 elf32_arm_process_before_allocation.
3860 * bfd-in2.h: Regenerated.
3861 * elf32-arm.c Define elf32_arm_link_hash_table.
3862 (insert_thumb_branch): New routine.
3863 (find_thumb_glue): New routine.
3864 (find_arm_glue): New routine.
3865 (record_arm_to_thumb_glue): New routine.
3866 (record_thumb_to_arm_glue): New routine.
3867 (elf32_arm_link_hash_table_create): New routine.
3868 (elf32_arm_get_bfd_for_interworking): New routine.
3869 (elf32_arm_allocate_interworking_sections) New routine.
3870 (elf32_arm_process_before_allocation) New routine.
3871 (elf32_thumb_to_arm_stub): New routine.
3872 (elf32_arm_to_thumb_stub): New routine.
3873 (elf32_print_private_bfd_data): Fix typo.
3874 (elf32_arm_final_link_relocate): Add argument sym_sec.
3875 Check for branches to thumb symbols in case R_ARM_PC24.
3876 Check for branches to arm symbols in case R_ARM_THM_PC22.
3877 (elf32_arm_relocate_section): Pass symbol section to
3878 elf32_arm_final_link_relocate.
3879
3880Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
3881
3882 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
3883 entries unless the symbol is defined in the executable; in
3884 particular, undefined weak symbols get a PLT entry.
3885
3886Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
3887
3888 * libaout.h: Remove nested comment to avoid warning.
3889
3890Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
3891
3892 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
3893 R_ARM_PC24 relocation.
3894
3895Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
3896
3897 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
3898 argument is_local. Add argument sym_flags. Check sym_flags
3899 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
3900 (elf32_arm_relocate_section): Don't pass local sym and pass
3901 sym_flags to elf32_arm_final_link_relocate.
3902
3903Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
3904
3905 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
3906 to not count too few relocs for dynamicly linked executables.
3907
3908Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
3909
3910 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
3911 symbols without a dynamic index dynamic. Consider all weak
3912 symbols dynamic.
3913 (elf64_alpha_strip_section_from_output): Don't assume 1-1
3914 correspondance between input and output sections.
3915
3916Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3917
3918 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
3919 that use a .got.plt section start the got offset at zero.
3920
3921Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
3922
3923 * ieee.c (ieee_write_processor): Correct the processor ID written
3924 out for bfd_arch_m68k, accommodating change of March 25.
3925
3926Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
3927
27ac83bf
RH
3928 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
3929 R_ARM_THM_RPC22 relocations.
252b5132
RH
3930
3931Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
3932
3933 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
3934 are always dynamic.
3935 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
3936 .got relocs in -Bsymbolic shared objects.
3937
3938Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
3939
3940 * elf32-arm.c: Add private flags to ELF header.
3941 (elf32_arm_print_private_bfd_data): New Function.
3942 (elf32_arm_set_private_flags): New Function.
3943 (elf32_arm_copy_private_flags): New Function.
3944 (elf32_arm_merge_private_bfd_data): New Function.
3945
3946Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
3947
3948 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
3949 a local symbol.
3950 (elf32_sparc_relocate_section): Likewise.
3951
3952Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
3953
3954 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
3955 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
3956 (ppc_elf_relocate_section): Pull sgot and splt search to the start
3957 of the function. Recognize no .plt as static linking.
3958
39591998-08-01 Ulrich Drepper <drepper@cygnus.com>
3960
3961 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
3962 ".liblist" string through gettext.
3963
3964Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
3965
27ac83bf
RH
3966 * Makefile.am: Add support for elf32-arm.lo.
3967 * Makefile.in: Rebuild.
3968 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
3969 (thumb-*-elf): Define targ_defvec and targ_selvecs.
3970 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
3971 * configure: Regenerate.
3972 * elf.c: (prep_headers): Support arch_type of EM_ARM.
3973 * targets.c: Support new targets bfd_elf32_bigarm_vec and
3974 bfd_target bfd_elf32_littlearm_vec.
3975 * elf32-arm.c: New file.
252b5132
RH
3976
3977Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
3978
3979 * libaout.h (M_SPARCLITE_LE): New machine.
3980 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
3981 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
3982 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
3983 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
3984 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
3985 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
3986 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
3987 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
3988 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
3989 be BFD_RELOC_SPARC_REV32.
3990 * reloc.c: Ditto.
3991 * config.bfd (sparc86x-*-aout): New
3992
3993Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
3994
3995 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
3996 actually mapping the output sections.
3997
3998Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
3999
4000
4001 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
4002 (mn10300_elf_reloc_map): Similarly.
4003 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
4004
4005Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
4006
4007 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
4008 Irix 6.
4009 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
4010 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
4011 elf_mips_reloc_type defined in elf/mips.h.
4012
40131998-07-24 Ulrich Drepper <drepper@cygnus.com>
4014
4015 * elf64-mips.c: Remove reloc_type definition completely. It's now
4016 in elf/mips.h.
4017
4018Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
4019
4020 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
4021 as they are defined in elf/mips.h now.
4022
4023Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
4024
4025
4026 * Re-add lost change:
27ac83bf
RH
4027 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
4028 "movm_stack_size".
4029 (mn10300_elf_relax_section): Include stack space for register saves
4030 in the imm8 field of a "call" instruction.
4031 (compute_function_info): Determine how much stack is allocated by
4032 the movm instruction. Fix typo.
4033 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
252b5132
RH
4034
4035Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
4036
4037 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
4038 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
4039
40401998-07-22 Ulrich Drepper <drepper@cygnus.com>
4041
4042 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
4043
4044Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
4045
4046 * elf32-hppa.h: Let ELF header define the enum containing the
4047 external reloc numbers.
4048 * elf32-i386.h: Likewise.
4049
40501998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
4051
4052 * elf-m10300.c: Let ELF header now define the macros to get the enum.
4053 * elf32-mips.c: Likewise.
4054 * elf32-ppc.c: Likewise.
4055
4056Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
4057
4058 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
4059 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
4060 prblems.
4061 * bfd-in.h: Regenerate.
4062 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
4063 parameter to 'unsigned int' to avoid K&R compatability problems.
4064
4065Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
4066
4067 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
4068 functionname_ptr to be const. Change line_ptr to be unsigned.
4069
4070 * coffcode.h (coff_link_output_has_begun): Simplify handling when
4071 macro is not defined. Change second parameter from bfd_link_info
4072 to coff_final_link_info. Add prototype.
4073 (coff_final_link_postscript): Simplify handling when macro is not
4074 defined. Add prototype.
4075
40761998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
4077
4078 * elf-mn10300.c: Before include system specific ELF header define
4079 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
4080 * elf32-mips.c: Likewise.
4081 * elf32-ppc.c: Likewise.
4082
4083Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
4084
4085 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
4086 temporary patch over to elf64-mips.c as well.
4087
40881998-07-21 Ulrich Drepper <drepper@cygnus.com>
4089
4090 * elf32-mips.c (reloc_type): Temporarily disable definition of
4091 standard relocation since they are now defined in elf/mips.h.
4092
4093Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
4094
27ac83bf
RH
4095 * elf-m10200.c (mn10200_elf_final_link_relocate):
4096 Modify range test for case R_MN10200_8.
252b5132 4097
27ac83bf
RH
4098 * elf-m10300.c (mn10300_elf_final_link_relocate):
4099 Modify range test for case R_MN10300_8.
252b5132
RH
4100
4101Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
4102
4103 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
4104 * elf32-i386.c (elf_backend_got_header_size): Define.
4105 (elf_backend_plt_header_size): Define.
4106 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
4107 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
4108 * elfxx-target.h: Provide a default of zero.
4109 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
4110 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
4111
4112 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
4113 entry from an executable, even if the plt refcount goes to 0.
4114
4115Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4116
4117 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
4118 directory name at the line number.
4119
4120 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
4121 with an unspecified type.
4122
4123Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
4124
4125 * sunos.c: Add undef of valid to avoid problem on SunOS.
4126
4127Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
4128
4129 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
4130
4131Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4132
4133 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
4134 R_68K_PCxx and R_68K_xx relocations. Make sure that
4135 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
4136 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
4137 R_68K_xx relocations.
4138 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
4139 that has no plt entry.
4140 (elf_m68k_relocate_section): Ignore the plt offset in a static
4141 link.
4142 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
4143 an ignored symbol.
4144 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
4145 a static link.
4146
4147 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
4148 types.
4149 (howto_table, reloc_map): Add entries for them.
4150 (elf_m68k_check_relocs): Handle them. Implement reference
4151 counting for got and plt entries.
4152 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
4153 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
4154 symbols.
4155 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
4156 (elf_m68k_relocate_section): Handle the new reloc types.
4157 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
4158 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
4159 * elflink.h (elf_link_add_object_symbols): When creating an
4160 indirect reference for symbol versioning also copy the plt
4161 offset.
4162 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
4163 flag also reset the plt offset.
4164 (elf_link_assign_sym_version): Likewise.
4165 (elf_gc_common_finalize_got_offsets): Increment the got offset by
4166 the size of the entry in bytes.
4167 (elf_gc_allocate_got_offsets): Likewise.
4168
4169Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
4170
4171 * elflink.h (elf_gc_sections): Return true rather than falling off
4172 the bottom.
4173
4174 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
4175 xmalloc.
4176
4177Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
4178
4179 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
4180 comment describing when it should be enabled.
4181 Changed definition of USER_LABEL_PREFIX to "", to fall into line
4182 with GCC sources.
4183
4184Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
4185
4186 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
4187 information ATN records.
4188
4189Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
4190
4191 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
4192 section for an absolute symbol in a fully linked file. Based on
4193 patch from Christian Holland <CHolland@de.lucent.com>.
4194
4195Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
4196
4197 * coff-m88k.c (m88k_special_reloc): Don't lose the information
4198 that a symbol is undefined.
4199
4200Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
4201
4202 * som.c (som_bfd_gc_sections): Define.
4203
4204Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
4205
4206 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
4207 overflows in ARM_26D patches, since they have already been
4208 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
4209
4210Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
4211
4212 * coffcode.h (coff_write_object_contents): If we have any long
4213 section names, call coff_write_symbols even if there are no
4214 symbols.
4215
4216Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
4217
4218 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
4219 PT_LOAD segment, rather than only setting it once for the entire
4220 file.
4221
4222 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
4223 rather than ignoring every phdr with a p_paddr of 0, ignore all
4224 the phdrs if they all have a p_paddr of 0.
4225
4226 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
4227 section was discarded from the link.
4228
4229Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4230
4231 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
4232
4233Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4234
4235 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
4236 floating point operations.
4237
4238Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
4239
4240 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
4241 function symbols.
4242
4243Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
4244
4245 Merge of vax/vms (read-only) support
4246 * configure.com: Support Vax target.
4247 * makefile.vms: Support Vax target.
27ac83bf 4248 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
252b5132
RH
4249 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
4250 support.
4251 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
4252 support.
4253 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
4254 support.
4255 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
4256 support.
4257 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
4258 support.
4259 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
4260 * targets.c (bfd_target_ovax_flavour): New flavour.
4261 (vms_alpha_vec): Renamed from evax_alpha_vec.
4262 (vms_vax_vec): New.
4263 (target_vector): Update accordingly.
4264 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
4265 evax_alpha_vec.
4266 (vax*-*-*vms*): New target.
4267 * Makefile.am: Update for renamed files. Rebuild dependencies.
4268 * bfd-in2.h: Rebuild.
4269 * configure.in, Makefile.in, aclocal.m4: Rebuild.
4270
4271Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
4272
4273 Based on patch from Matt Semersky <matts@scd.hp.com>:
4274 * linker.c (_bfd_generic_final_link): Force a trailing NULL
4275 pointer on abfd->outsymbols.
4276 (generic_add_output_symbol): Handle NULL sym parameter.
4277
4278Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
4279
4280 * elf.c (copy_private_bfd_data): Add support for changing VMA or
4281 LMA of sections.
4282
4283Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
4284
4285 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
4286 when handling 32 bit immediate relocs.
4287 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
4288
4289Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
4290
4291 * section.c (STD_SECTION): Account for recently added gc_mark
4292 field in struct asection.
4293
4294 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
4295 (bfd_elf32_bfd_merge_private_bfd_data): Define.
4296
4297Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
4298
4299 ELF Section-level Garbage Collection:
4300 * bfd.c (bfd_gc_sections): New.
4301 * aout-adobe.c: Hook to default implementation.
4302 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
4303 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
4304 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
4305 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
4306 * tekhex.c, versados.c: Likewise.
4307 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
4308 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
4309
4310 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
4311 (bfd_generic_gc_sections): New.
4312 * section.c (SEC_KEEP): New.
4313 (asection): Add gc_mark member.
4314
4315 * elfcode.h (elf_gc*): New name remappings.
4316 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
4317 sections to be excluded.
4318 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
4319 (elf_gc_propogate_vtable_entries_used): New.
4320 (elf_gc_smash_unused_vtentry_relocs): New.
4321 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
4322 (elf_gc_common_finalize_got_offsets): New.
4323 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
4324 * elfxx-target.h: Add and default gc hooks.
4325
4326 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
4327 for unions.
4328 (struct elf_obj_tdata): Likewise for local_got_offsets.
4329 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
4330 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
4331 * elf64-sparc.c, elflink.h: Likewise.
4332
4333 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
4334 (ELF_LINK_HASH_MARK): Define.
4335 (struct elf_backend_data): Add GC hooks.
4336 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
4337
4338 * elf-m10300.c (mn10300_elf_check_relocs): New.
4339 (mn10300_elf_gc_mark_hook): New.
4340 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
4341 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
4342 (mn10300_elf_final_link_relocate): Likewise.
4343 (mn10300_elf_relocate_section): Likewise.
4344 (elf_backend_can_gc_sections): Define.
4345 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
4346 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
4347 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
4348 (mips_info_to_howto_rel): Likewise.
4349 (mips_elf_relocate_section): Likewise.
4350 (mips_elf_check_relocs): Likewise.
4351 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
4352 (elf_backend_can_gc_sections): Define.
4353 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
4354 (ppc_elf_howto_raw): Handle them.
4355 (ppc_elf_reloc_type_lookup): Likewise.
4356 (ppc_elf_relocate_section): Likewise.
4357 (ppc_elf_check_relocs): Reference count .got and .plt entires.
4358 Handle new vtable relocs.
4359 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
4360 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
4361 (elf_backend_can_gc_sections): Define.
4362
4363Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
4364
4365 * archures.c (bfd_mach_mn10300): Define.
4366 * elf-m10300.c: Include elf/mn10300.h
4367 (elf_mn10300_mach): New function.
4368 (_bfd_mn10300_elf_final_write_processing): Likewise.
4369 (_bfd_mn10300_elf_object_p): Likewise.
4370 (elf_backendfinal_write_processing): Define.
4371 (elf_backend_object_p): Likewise.
4372
4373Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
4374
4375 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
4376 relocation.
4377
4378Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
4379
4380 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
4381 link_next field, not the next field.
4382
4383Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
4384
4385 * elf.c (map_sections_to_segments): Check the section address
4386 against the phdr size both with and without a modulo of
4387 maxpagesize.
4388
4389Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
4390
4391 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
4392 linker created empty input section if the output section has the
4393 same name.
4394
4395 * elflink.h (elf_link_output_extsym): Print an error message if
4396 _bfd_elf_section_from_bfd_section fails.
4397
4398 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
4399 failure.
4400
4401Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
4402
4403 * elf.c (copy_private_bfd_data): Improve handling of Solaris
4404 native linker output. Avoid putting an empty section in more than
4405 one segment.
4406
4407Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
4408
4409 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
4410 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
4411
4412Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
4413
4414 * elf.c (swap_out_syms): New arg relocatable_p.
4415 Don't add section VMA to symbols for relocatable output.
4416 (_bfd_elf_compute_section_file_positions): Update call to
4417 swap_out_syms.
4418
4419Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
4420
4421 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
4422 against 'addend' be signed rather than unsigned.
4423
4424Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
4425
4426 * elf32-m32r.c: Add prototyps for static functions.
4427
4428 * coff-arm.c: Add prototypes for static functions.
4429
4430Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
4431
4432 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
4433 LMA is used to order sections in a segment.
4434
4435 * elf32-v850.c: Add prototypes for static functions.
4436 Change type of addend parameter to bfd_vma in various functions.
4437
4438Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
4439
4440 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
4441 complain_overflow_signed instead of complain_overflow_bitfield.
4442
4443Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4444
4445 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
4446 when comparing against 0.
4447
4448Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
4449
4450 * Makefile.am (config.status): New target.
4451 * Makefile.in: Rebuild.
4452
4453Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
4454
4455 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
4456 error if previous object endianness doesn't match current object.
4457
4458Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
4459
4460 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
4461 _bfd_elf_print_private)bfd_data ().
4462
4463Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
4464
4465 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
4466 and size_change_ok.
4467 (elf_link_add_object_symbols): Set type_change_ok and
4468 size_change_ok before calling elf_merge_symbol.
4469
4470 * elf32-mips.c (mips_elf_relocate_section): If we issue an
4471 undefined symbol error, don't also issue an overflow error.
4472
4473Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
4474
4475 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
4476 R_PPC_LOCAL24PC relocation should be local; if not, print an error
4477 message instead of crashing.
4478
4479Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
4480
4481 * archures.c (bfd_mach_cpu32): Define.
4482 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
4483 bfd_mach_cpu32.
4484 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
4485 * ieee.c: Include <ctype.h>.
4486 (ieee_object_p): Parse out process ID string to make it more
4487 likely to be acceptable for bfd_scan_arch.
4488 * bfd-in2.h: Rebuild.
4489
4490Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
4491
4492 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
4493 _bfd_elf_print_private_bfd_data() so that the program header will
4494 be displayed.
4495
4496Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
4497
4498 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
4499 0x68. Reindent. Add some comments.
4500
4501Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
4502
4503 * elf.c (copy_private_bfd_data): Adjust physical address of
4504 segment in output BFD to contain LMAs of its sections.
4505
4506Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
4507
4508 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
4509 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
4510 endian data 32 bit relocations.
4511 (elf32_sparc_merge_private_bfd_data): Check if linking little
4512 endian objects with big endian objects.
4513 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
4514 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
4515 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
4516 * reloc.c: Same.
4517 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
4518 * archures.c (bfd_mach_sparc_sparclite_le): New.
4519 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
4520
4521Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
4522
4523 * peicode.h (add_data_entry): Fix precedence of operators in if ()
4524 statement.
4525
4526Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
4527
4528 * bfd-in.h: Move over patch to bfd-in2.h.
4529
4530 * reloc.c (bfd_check_overflow): Add casts before shifts which may
4531 not fit in 32 bits.
4532 (_bfd_relocate_contents): Likewise.
4533
4534Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
4535
4536 * peicode.h (add_data_entry): If the section has no private data
4537 then do not create a Data Dictionary entry for it.
4538
4539Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
4540
4541 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
4542 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
4543 elf64_alpha_size_got_sections): Rewrite, handling multiple got
4544 subsections during relaxation more correctly.
4545
4546Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
4547
4548 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
4549 Add extra argument to bfd_arm_process_before_allocation ().
4550 * bfd-in.h: Reflect changes made in bfd-in2.h.
4551 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
4552 coff class of a BFD symbol.
4553 * coff-arm.c: Add support for interworking between Thumb code and
4554 non-interworking aware ARM code.
4555
4556Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
4557
4558 * po/Make-in (install-info): New target.
4559
4560Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
4561
4562 * filemode.c: Remove; not used.
4563
4564 If sysdep.h includes a header file, don't include it again:
4565 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
4566 <errno.h>.
4567 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
4568 <sysdep.h>.
4569 * archive.c: Don't include <string.h> or <errno.h>.
4570 * evax-alpha.c; Don't include <stdio.h>.
4571 * evax-egsd.c: Likewise.
4572 * evax-etir.c: Likewise.
4573 * evax-misc.c: Likewise.
4574 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
4575 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
4576 <errno.h>.
4577 * hpux-core.c: Likewise.
4578 * netbsd-core.c: Likewise.
4579 * som.c: Likewise.
4580 * libbfd.c: Don't include <sys/types.h>.
4581 * nlmcode.h: Don't include <string.h>.
4582 * osf-core.c: Don't include <string.h> or <stdio.h>.
4583 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
4584 <errno.h>, or <unistd.h>.
4585 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
4586
4587Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
4588
4589 * configure.com: If the version number can not be found in
4590 configure.in, set it to "unknown" rather than "2.8.1".
4591
4592Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
4593
4594 * elf32-mips.c (elf_mips_mach): New.
4595 (_bfd_mips_elf_object_p): Use elf_mips_mach.
4596 (_bfd_mips_elf_final_write_processing): Use the names
4597 of machines, rather than the numbers. Set both the ARCH
4598 and MACH in e_flags. Handle a few more specific machines.
4599 (_bfd_mips_elf_merge_private_bfd_data): Merge both
4600 EF_MIPS_ARCH and EF_MIPS_MACH.
4601
4602Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
4603
4604 * syms.c (bfd_is_local_label): Revert last change.
4605 * srec.c (srec_write_symbols): Discard debugging symbols.
4606
4607Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
4608
4609 * som.c: Include <ctype.h>.
4610 * som.h: Don't include sysdep.h.
4611
4612Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
4613
4614 * libbfd.h: Rebuilt.
4615 * libbfd-in.h: Removed gettext includes and defines.
4616 * sysdep.h: Moved gettext-related includes and defines here.
4617
4618Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
4619
4620 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
4621 an ad-hoc test. Kill bogus #if 0 code.
4622 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
4623
4624Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
4625
4626 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
4627 when generating a normal executable for a symbol defined in a
4628 regular file. When copying a reloc into the output file, adjust
4629 the addend for a PC relative reloc against a global symbol.
4630
4631Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
4632
4633 * libbfd.h: Rebuilt.
4634 * libbfd-in.h (_): Define as dgettext.
4635
4636Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
4637
4638 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
4639 not signed.
4640 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
4641 when declaring parameter types.
4642 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
4643
4644Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
4645
4646 * config.bfd: If we include any ELF targets in targ_defvec and/or
4647 targ_selvecs, then add the generic ELF targets to targ_selvecs.
4648 * elf32-gen.c (dummy): New static const variable.
4649 (elf_generic_info_to_howto): New static function.
4650 (elf_generic_info_to_howto_rel): New static function.
4651 (elf_info_to_howto): Define as elf_generic_info_to_howto.
4652 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
4653 * elf64-gen.c: Same changes as elf32-gen.c.
4654 * elfcode.h (elf_object_p): For the generic target, ignore a
4655 failure of bfd_default_set_arch_mach. Fix indentation a bit.
4656
4657Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
4658
4659 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
4660 * configure: Rebuild.
4661
4662Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
4663
4664 * config.bfd: Update OSR5/Unixware patterns.
4665
4666Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
4667
4668 * elf.c (assign_file_positions_for_segments): Allow for holes
4669 between sections added by a link script.
4670
4671Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
4672
4673 * configure.in: Change version number to 2.9.4
4674 * configure: Rebuild.
4675
4676 Based on patch from H.J. Lu <hjl@gnu.org>:
4677 * elf.c (bfd_elf_get_bfd_needed_list): New function.
4678 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
4679 * bfd-in2.h: Rebuild.
4680
4681Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
4682
4683 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
4684 Change all users.
4685
4686Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
4687
4688 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
4689 (elf64_alpha_relax_section): Fill them in.
4690 (elf64_alpha_relax_opt_call): Implement more than a stub.
4691 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
4692 alignment on .scommon.
4693 (elf64_alpha_merge_gots): Merge use counts as well.
4694
4695Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
4696
4697 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
4698 for calculating a local symbol's address.
4699 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
4700 Set the .got's cooked size as well as the raw size.
4701
4702Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
4703
4704 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
4705 internationalisation of printed information.
4706
4707 * coff-arm.c (coff_arm_print_private_bfd_data): Add
4708 internationalisation of printed information.
4709
4710Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
4711
4712 * syms.c (struct indexentry): Change directory_name, file_name,
4713 and function_name fields to char *.
4714 (struct stab_find_info): Change cached_file_name field to char *.
4715
4716Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
4717
4718 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
4719
4720Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
4721
4722 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
4723
4724Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
4725
4726 * Makefile.am (install-data-local): Make $(includedir).
4727 * Makefile.in: Rebuild.
4728
4729Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
4730
4731 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
4732
4733Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
4734
4735 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
4736 * Makefile.in: Rebuild.
4737
4738 * bfd-in2.h: Rebuild for Nick's changes.
4739
4740Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
4741
4742 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
4743 change wrt length == max_namelen.
4744
4745Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
4746
4747 * Many files: Added gettext invocations around user-visible
4748 strings.
4749 * libbfd-in.h: Added gettext includes and defines.
4750 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
4751 HAVE_LC_MESSAGES): Define.
4752 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
4753 po/Makefile.
4754 * Makefile.am (SUBDIRS): Added po.
4755 (POTFILES): New macro.
4756 (po/POTFILES.in): New target.
4757 (SOURCE_HFILES): New macro.
4758 (HFILES): Use it.
4759 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
4760
4761Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4762
4763 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
4764 NT_PRSTATUS note section encountered, it contains the status of
4765 the currently executing thread when the core file was written.
4766
4767Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
4768
4769 * libcoff.h: Add extra parameter to
4770 bfd_coff_link_output_has_begun overrideable function.
4771 * cofflink.c: Pass extra parameter to
4772 bfd_coff_link_output_has_begun function.
4773 * bfd-in.h: Add prototypes for exported ARM interworking
4774 functions.
4775 * peicode.h: ARM specific code reorganised to conform to BFD
4776 coding conventions.
4777 * coffcode.h: ARM specific code reorganised to conform to BFD
4778 coding conventions.
4779 * coff-arm.c: Code reorganised to conform to the BFD coding
4780 conventions. Global variables have been moved into an ARM
4781 specific hash table structure and a new function:
4782 bfd_arm_get_bfd_for_interworking() has been created which is
4783 called from the linker scripts.
4784
4785Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
4786
4787 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
4788
4789 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
4790 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
4791 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
4792 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
4793
4794Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
4795
4796 * config.bfd: Added sparc86x support.
4797
4798Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
4799
4800 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
4801 an out of range pc-relative jump/call to an undefined weak symbol.
4802
4803Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
4804
4805 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
4806 comparisons signed.
4807
4808Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
4809
4810 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
4811 an error other than bfd_error_system_call, set the error to
4812 bfd_error_wrong_format.
4813
4814 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
4815 bfd_elf32_powerpcle_vec.
4816
4817 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
4818 program segments are zero, don't set p_paddr_valid.
4819
4820Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
4821
4822 * elf64-alpha.c: Initial implementation of relaxation --
4823 (struct alpha_elf_link_hash_entry): Add use_count member.
4824 (elf64_alpha_check_relocs): Initialize and increment it.
4825 (elf64_alpha_can_merge_gots): Check it when considering merging.
4826 (elf64_alpha_merge_gots): Drop entries with zero use.
4827 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
4828 (elf64_alpha_always_size_sections): Split out got sizing ...
4829 (elf64_alpha_size_got_sections): ... here. New function.
4830 (elf64_alpha_relax_find_reloc_ofs): New function.
4831 (elf64_alpha_relax_with_lituse): Likewise.
4832 (elf64_alpha_relax_without_lituse): Likewise.
4833 (elf64_alpha_relax_opt_call): Likewise.
4834 (elf64_alpha_relax_section): Likewise.
4835 (elf64_alpha_add_symbol_hook): Likewise.
4836 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
4837 (elf64_alpha_relocate_section): Likewise.
4838 (bfd_elf64_bfd_relax_section): Define.
4839 (elf_backend_add_symbol_hook): Likewise.
4840
4841Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
4842
4843 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
4844 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
4845 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
4846
4847Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
4848
4849 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
4850 * configure: Rebuild.
4851
4852Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
4853
4854 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
4855 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
4856 * configure.in: Define and substitute WIN32LDFLAGS and
4857 WIN32LIBADD.
4858 * aclocal.m4: Rebuild with new libtool.
4859 * configure, Makefile.in: Rebuild.
4860
4861Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
4862
4863 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
4864 before any other symbols in the same section.
4865
4866Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
4867
4868 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
4869 systems.
4870
4871Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
4872
4873 * dwarf2.c (comp_unit): Move it earlier in the source. Add
4874 addr_size.
4875 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
27ac83bf 4876 Use addr_size for address size, rather than sizeof(bfd_vma).
252b5132
RH
4877 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
4878 Fix call to read_address.
4879 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
4880 Scrap other unneeded arguments. Fix call to read_address.
4881 (scan_unit_for_functions): Fix call to read_attribute.
4882 (parse_comp_unit): We now handle more values for addr_size.
4883 Set addr_size in unit. Fix call to read_attribute and
4884 decode_line_info.
4885
4886Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
4887
4888 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
4889
4890Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
4891
4892 * archures.c (bfd_default_scan): Add m68k cases back to default
4893 switch, reverting patch of March 25, since IEEE support depends
4894 upon them.
4895
4896Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
4897
4898 * Makefile.am (diststuff): New target.
4899 * Makefile.in: Rebuild.
4900
4901Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
4902
4903 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
4904 som_offset when we have an extended name table.
4905
4906Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
4907
4908 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
4909 trying to copy it.
4910 * Makefile.in: Rebuild.
4911
4912Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4913
4914 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
4915 symbols when creating a shared library.
4916 (elf_m68k_adjust_dynindx): New function, used by above code.
4917 (elf_m68k_finish_dynamic_sections): Initialize the section
4918 symbols.
4919 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
4920
4921Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
4922
4923 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
4924 value 11.
4925
4926Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4927
4928 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
4929 assertion.
4930
4931Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
4932
4933 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
4934 absolute symbols.
4935
4936Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
4937
4938 * configure.in: Set version to 2.9.1.
4939 * configure: Rebuild.
4940
4941 * Branched binutils 2.9.
4942
4943Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
4944
4945 * syms.c (ENABLE_CACHING): Define.
4946 (struct indexentry): Define.
4947 (struct stab_cache): Remove.
4948 (cmpindexentry): New static function.
4949 (struct stab_find_info): Add new fields: indextable,
4950 indextablesize, cached_indexentry, cached_offset, cached_stab, and
4951 cached_file_name. Remove fields: file_cache, function_cache, and
4952 line_cache.
4953 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
4954 index table and search it.
4955
4956Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
4957
4958 * elf.c (_bfd_elf_copy_private_section_data): Call
4959 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
4960
4961 * cpu-mips.c: Remove trailing comma at end of enumeration list.
4962
4963Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
4964
4965 * coff-arm.c: Define all globally visible variables and functions
4966 only when COFF_WITH_PE is not defined.
4967 * configure.in (armpe_little_vec, armpe_big_vec): Add
4968 coff-arm.lo.
4969 * configure: Rebuild.
4970
4971Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
4972
4973 Fix some gcc -Wall warnings:
4974 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
4975 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
4976 * archures.c (bfd_default_scan): Likewise.
4977 * bfd.c (bfd_scan_vma): Likewise.
4978 * binary.c (mangle_name): Likewise
4979 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
4980 * coff-sh.c (sh_relocate_section): Likewise.
4981 * coff-stgo32.c (create_go32_stub): Likewise.
4982 * coffcode.h (coff_slurp_line_table): Likewise.
4983 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
4984 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
4985 (assign_file_positions_for_segments): Likewise.
4986 * elf32-mips.c (mips_elf_relocate_section): Likewise.
4987 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
4988 * oasys.c (oasys_write_sections): Likewise.
4989 * ppcboot.c (ppcboot_object_p): Likewise.
4990 (mangle_name): Likewise.
4991 * riscix.c (riscix_fix_pcrel_26): Likewise.
4992 * srec.c (srec_scan): Likewise.
4993 * stabs.c (_bfd_write_section_stabs): Likewise.
4994 * sunos.c (sunos_add_dynamic_symbols): Likewise.
4995 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
4996 switch. Declare parameters for function pointers.
4997 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
4998 warning.
4999 * elf.c (elf_sort_sections): Likewise.
5000 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
5001 Add default cases to switches.
5002 (coff_arm_relocate_section): Remove unused local variables.
5003 Always set rstat.
5004 (coff_arm_bfd_set_private_flags): Change flag variable to type
5005 flagword.
5006 * coff-mips.c (mips_relocate_section): Initialize use_lo.
5007 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
5008 (dump_toc): Change cat to const, and initialize it.
5009 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
5010 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
5011 (sh_elf_relocate_section): Initialize r_symndx.
5012 * coffcode.h (coff_compute_section_file_positions): Only declare
5013 old_sofar if ALIGN_SECTIONS_IN_FILE.
5014 (coff_write_object_contents): Initialize csym.
5015 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
5016 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
5017 switch.
5018 * dwarf2.c: Include libiberty.h.
5019 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
5020 (decode_line_info): Remove unused local variables.
5021 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
5022 (m32r_elf_relocate_section): Likewise.
5023 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
5024 (v850_elf_reloc): Likewise.
5025 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
5026 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
5027 * elf.c (assign_file_positions_for_segments): Always set adjust.
5028 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
5029 parenthesize expression.
5030 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
5031 (m32r_elf_object_p): Return a value.
5032 (m32r_elf_print_private_bfd_data): Change fprintf format string.
5033 * elf32-mips.c (mips_elf_final_link): Initialize last.
5034 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
5035 * elf32-v850.c (v850_elf_object_p): Return a value.
5036 (v850_elf_print_private_bfd_data): Change fprintf format string.
5037 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
5038 unsigned long.
5039 * elflink.h (elf_link_add_object_symbols): Change vernum to
5040 unsigned int, and initialize it. Change fprintf format string.
5041 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
5042 when setting or comparing to soname_indx.
5043 (elf_create_pointer_linker_section): Change num_symbols to
5044 unsigned int.
5045 * libcoff-in.h (coff_data_type): Change flags to flagword.
5046 * peicode.h (pe_print_idata): Initialize idx. Change j to
5047 bfd_size_type. Initialize hint_member. Remove useless test to
5048 time_stamp.
5049 (pe_print_edata): Change num_functions and num_names in struct
5050 EDT_type to unsigned long. Remove cast. Change fprintf format
5051 string.
5052 * ppcboot.c (ppcboot_object_p): Change i to size_t.
5053 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
5054 int.
5055 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
5056 int *. Update uses. Change j to long.
5057 * bfd-in2.h, libcoff.h: Rebuild.
5058
5059Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
5060
5061 * elf32-v850.c Remove definition of USE_REL.
5062 (v850_elf_info_to_howto_rela): New function.
5063 (v850_elf_perform_relocation): Renamed from
5064 v850_elf_store_addend_in_insn. Removed replace argument.
5065 (v850_elf_reloc): store the relocation in the addend field instead
5066 of the insn.
5067 (v850_elf_final_link_relocate): Now calls
5068 v850_elf_perform_relocation.
5069 (v850_elf_relocate_section): Remove code to generate REL
5070 relocations.
5071
5072Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
5073
5074 * coffcode.h (coff_new_section_hook): Set the type and storage
5075 class in the native symbol information allocated for a new section
5076 symbol.
5077
5078Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
5079
5080 * peicode.h: Chain together calls to
5081 coff_bfd_copy_private_bfd_data and
5082 coff_bfd_print_private_bfd_data.
5083
5084 * coff-arm.c: Add prototypes for
5085 coff_arm_bfd_print_private_bfd_data and
5086 coff_arm_bfd_copy_private_bfd_data.
5087
5088Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
5089
5090 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
5091 build.
5092
5093 * peicode.h: Call arm-coff private data functions after handling
5094 pe private data.
5095
5096 * coff-arm.c: Turn statics into globals so that they can be shared
5097 both pe and pei backends.
5098
5099Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
5100
5101 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
5102 plain numbers.
5103 (sunos_write_object_contents): Likewise.
5104 * aoutx.h (NAME(aout,machine_type)): Likewise.
5105 * coffcode.h (coff_set_arch_mach_hook): Likewise.
5106
5107Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5108
5109 * archures.c (bfd_mach_m68*): Add definitions for various m68k
5110 variants.
5111 (bfd_default_scan): Remove m68k special cases.
5112 * bfd-in2.h: Rebuild.
5113 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
5114 than plain numbers.
5115 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
5116 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
5117 m68k:68000.
5118 (bfd_m68k_arch): Set mach field to zero to signal no explicit
5119 selection, change printable_name to just "m68k" and make that the
5120 default instead of m68k:68020.
5121
5122 * aout-tic30.c (NAME): Define this to avoid multiple definitions
5123 from aoutx.h.
5124 (MY_get_section_contents): Define as aout_32_get_section_contents
5125 rather than NAME(aout,get_section_contents).
5126
5127 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
5128
5129 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
5130 and call bfd_default_set_arch_mach to do the real work.
5131
5132Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
5133
5134 * bout.c (BALX): Include return register g14 as part of the insn.
5135 (BALX_MASK): New.
5136 (calljx_callback): Use it.
5137
5138Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
5139
5140 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
5141 * libbfd.h: Rebuild.
5142
5143 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
5144 byte_count to unsigned int.
5145 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
5146 unused local variables.
5147
5148 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
5149 variables er and er1.
5150
5151 * cpu-v850.c: Include <ctype.h>.
5152 (scan): Case isdigit argument to unsigned char.
5153
5154 From Yan Meroth <YAN.MEROTH@st.com>:
5155 * ihex.c (ihex_scan): Add extbase variable so that getting an
5156 extended linear address record does not ignore any previous
5157 extended address.
5158 (ihex_write_object_contents): When writing out an extended linear
5159 address record, zero out any previous extended address.
5160
5161Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
5162
5163 * ieee.c (do_one): Check section before dereferencing it.
5164 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
5165 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
5166
5167Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
5168
5169 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
5170
5171Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
5172
5173 * coff-arm.c: Add interworking functions to pe backends.
5174
5175Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
5176
5177 * configure.in: Use AM_DISABLE_SHARED.
5178 * aclocal.m4, configure: Rebuild with libtool 1.2.
5179
5180Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
5181
5182 * coff-arm.c (coff_arm_relocate_section): Better error messages
5183 when interowrking conflucts occur. Courtesy of Jonathan Walton
5184 and Tony Thompson.
5185 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
5186 relocations. Patch courtesy of Jonathan Walton and Tony
5187 Thompson.
5188
5189Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
5190
5191 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
5192 part of Feb 22 change controling when to override the existing
5193 symbol with the .plt entry.
5194
5195Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
5196
5197 * config.bfd (targ_cpu): Add thumb-pe target.
5198
5199 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
5200 functions in PE build.
5201
5202Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
5203
5204 * config.bfd (sparclite-*-elf*): Added.
5205
5206Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
5207
5208 * configure.in: Add elf.lo to elf shell variable.
5209 * Makefile.am (BFD_LIBS): Remove elf.lo.
5210 (BFD_LIBS_CFILES): Remove elf.c.
5211 (BFD32_BACKENDS): Add elf.lo.
5212 (BFD32_BACKENDS_CFILES): Add elf.c.
5213 * configure, Makefile.in: Rebuild.
5214
52151998-02-23 15:53 Richard Henderson <rth@cygnus.com>
5216
5217 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
5218 relocation against a now-local symbol should not have a dynamic
5219 relocation.
5220
5221Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
5222
5223 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
5224 COFF filehdr flags.
5225 (pe_print_private_bfd_data): Print PE flags. From Mikey
5226 <jeffdb@netzone.com>.
5227
5228Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
5229
5230 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
5231 a plt entry when we can determine that we authoritatively define
5232 the symbol.
5233
5234Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
5235
5236 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
5237 don't actually use trad-core, but a SunOS-style core file handled
5238 by gdb directly.
5239 * hosts/sparclinux.h: Remove.
5240
5241Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
5242
5243 * peicode.h (pe_print_idata): If there is no .idata section, look
5244 for the import tables in some other section. Make the initial
5245 label line up better with the data. Print the import address
5246 table even if there is no import name table. If the import
5247 address table holds actual addresses, print them.
5248
5249Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
5250
5251 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
5252 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
5253 bfd_error_system_call.
5254
5255Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
5256
5257 * Makefile.am (AUTOMAKE_OPTIONS): Define.
5258 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
5259
5260 From H.J. Lu <hjl@gnu.org>:
5261 * Makefile.am (libbfd_la_LDFLAGS): Define.
5262 * Makefile.in: Rebuild.
5263
5264Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
5265
5266 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
5267 * netbsd.h (MACHTYPE_OK): Define.
5268 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
5269 calling N_SET_MACHTYPE, rather than having a switch.
5270 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
5271 and M_ALPHA_NETBSD.
5272 * i386netbsd.c (MACHTYPE_OK): Don't define.
5273 (DEFAULT_MID): Define.
5274 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
5275 (MACHTYPE_OK): Don't define.
5276 (DEFAULT_MID): Define.
5277 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
5278 (DEFAULT_MID): Define.
5279 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
5280 (DEFAULT_MID): Define.
5281 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
5282 (DEFAULT_MID): Define.
5283
5284 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
5285 * vaxnetbsd.c: New file.
5286 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
5287 rather than netbsd_core.
5288 * targets.c (vaxnetbsd_vec): Declare.
5289 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
5290 defined, add netbsd_core_vec.
5291 * configure.in: Set COREFILE for alpha*-*-netbsd* and
5292 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
5293 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
5294 * config.bfd (alpha*-*-netbsd*): New target.
5295 * Makefile.am: Rebuild dependencies.
5296 (BFD32_BACKENDS): Add vaxnetbsd.lo.
5297 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
5298 * configure, Makefile.in: Rebuild.
5299
5300 * configure.host: Remove the old shared library build stuff. We
5301 now use libtool instead.
5302
5303Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
5304
5305 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
5306
5307Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
5308
5309 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
5310 * configure: Rebuild.
5311
5312Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
5313 * elf32-v850.c (remember_hi16s_reloc): New function.
5314 (find_remembered_hi16s_reloc): New function.
5315 (v850_elf_store_addend_in_insn): Use the above new functions to
5316 match up HI6S relocs with LO16 relocs.
5317
5318Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
5319
5320 * configure.in: Change -linux* to -linux-gnu*.
5321 * config.bfd, configure.host: Likewise.
5322 * configure: Rebuild.
5323
5324Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
5325
5326 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
5327 LO16/HI16S bug and improve comments about what is going on.
5328
5329Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
5330
5331 * configure, aclocal.m4: Rebuild with new libtool.
5332
5333Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
5334
5335 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
5336 when merging v850 code into v850e/v850ea code. Do not initialise
5337 output flags if the input is the default architecture.
6a9d5c9a 5338
252b5132
RH
5339Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
5340
5341 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
5342 get the size from bfd_arch_bits_per_address instead of directly
5343 from the isa.
5344
5345Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
5346
5347 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
5348 to wrap, just return all 1's bits instead.
5349 * libbfd.h: Regenerate.
5350
5351Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
5352
5353 * coff-i386.c (coff_pe_i386_relocate_section): New static function
5354 if COFF_WITH_PE.
5355 (coff_relocate_section): If COFF_WITH_PE, define as
5356 coff_pe_i386_relocate_section.
5357 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
5358 skip empty sections, to match coff_write_object_contents.
5359
5360 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
5361 rather than swapping out r_offset twice. From Luke Deller
5362 <luked@cse.unsw.edu.au>.
5363
5364Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
5365
5366 * configure.in: Set libtool_enable_shared rather than
5367 libtool_shared. Remove diversion hack.
5368 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
5369 with new libtool.
5370
5371Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
5372
5373 * syms.c (struct stab_cache): Define.
5374 (struct stab_find_info): Remove cached_offset, cached_stab,
5375 cached_str, and cached_stroff fields. Add file_cache,
5376 function_cache, and line_cache fields.
5377 (_bfd_stab_section_find_nearest_line): Use extensive caching to
5378 speed up searches.
5379
5380Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
5381
5382 * peicode.h (pe_print_idata): Check for import of ordinal rather
5383 than name.
5384 (pe_print_edata): If there is no .edata section, look for the
5385 export data in some other section.
5386
5387Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
5388
5389 * configure.in: Change version to 2.8.4.
5390 * configure: Regenerated.
5391
5392Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
5393
5394 Add tms320c30 support:
5395 * cpu-tic30.c: New file.
5396 * aout-tic30.c: New file.
5397 * coff-tic30.c: New file.
5398 * archures.c (bfd_arch_tic30): Define.
5399 (bfd_tic30_arch): Declare.
5400 (bfd_archures_list): Add bfd_tic30_arch.
5401 * targets.c (bfd_target_vector): Add tic30_aout_vec and
5402 tic30_coff_vec.
5403 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
5404 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
5405 (coff_set_flags): Likewise.
5406 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
5407 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
5408 * Makefile.am: Rebuild dependencies.
5409 (ALL_MACHINES): Add cpu-tic30.lo.
5410 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
5411 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
5412 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
5413 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
5414
5415Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
5416
5417 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
5418 to lag behind LO16 reloc by a couple of instructions.
5419
5420Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
5421
5422 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
5423 make to reexamine the file timestamp.
5424 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
5425
5426 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
5427 0x100000.
5428
5429Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
5430
5431 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
5432 to create .dynsbss and .rela.sbss sections.
5433 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
5434 copied from dynamic objects into .sbss.
5435 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
5436 use it. Correct typo of .rela.sdata2.
5437 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
5438 put the data, which may now be in .sbss.
5439 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
5440 (elf_backend_create_dynamic_sections): Define as
5441 ppc_elf_create_dynamic_sections.
5442
5443 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
5444 against _GLOBAL_OFFSET_TABLE_.
5445 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
5446 shared libraries which refer to local symbols. Make sure that the
5447 test for allocating space for a reloc in a shared object is the
5448 same as the test for emitting a reloc.
5449
5450Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
5451
5452 * config.bfd (i[3456]-*-mingw32*): New target.
5453 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
5454 * aclocal.m4, configure: Rebuild.
5455
5456Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
5457
5458 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
5459 have a bfd_object.
5460
5461Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
5462
5463 Sparc v9 ABI compliant PLT:
5464 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
5465 (plt_templates, sparc64_elf_build_plt_entry): Delete.
5466 (LARGE_PLT_THRESHOLD): New define.
5467 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
5468 (sparc64_elf_build_plt): New function.
5469 (sparc64_elf_plt_entry_offset): Likewise.
5470 (sparc64_elf_plt_ptr_offset): Likewise.
5471 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
5472 contain the index for convenience. Skip the initial entries
5473 in .rela.plt.
5474 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
5475 memory for the benefit of .rela.plt.
5476 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
5477 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
5478 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
5479 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
5480 Call sparc64_elf_build_plt.
5481 (elf_backend_want_got_plt): No.
5482 (elf_backend_plt_readonly): No.
5483 (elf_backend_plt_alignment): 8.
5484
5485 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
5486 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
5487 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
5488 to be called.
5489
5490Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
5491
5492 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
5493 processors.
5494 * cpu-mips.c (arch_info_struct): Add mips variants.
5495 * bfd-in2.h: Rebuilt.
5496
5497Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
5498
5499 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
5500 t2a3_b_insn.
5501
5502Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
5503
5504 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
5505 (i[3456]86sco3.2v5*coff): New target.
5506
5507Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
5508
5509 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
5510
5511Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
5512
5513 * bfd.c (bfd_get_error_handler): Add orthogonal function.
5514 * bfd-in2.h: Regenerate.
5515
5516Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
5517
5518 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
5519
5520Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
5521
5522 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
5523 adjust addend for an output common symbol (from Jimmy Blair
5524 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
5525 defined symbol to counteract adjustment made in generic relocation
5526 code.
5527
5528 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
5529
5530Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
5531
5532 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
5533 (GET_SCNDHR_NLNNO): Likewise.
5534
5535Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
5536
5537 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
5538
5539Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
5540
5541 * elf32-m32r.c: Add macros to handle NOP insertion.
5542
5543Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
5544
5545 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
5546 (xcoff_mark): Likewise.
5547 (xcoff_build_ldsyms): Mark absolute symbols.
5548
5549Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
5550
5551 * bout.c (b_out_write_object_contents): Sort symbols before output
5552 to keep {CALL,BAL}NAME symbols adjacent.
5553 (b_out_symbol_cmp): New function.
5554
5555For older changes see ChangeLog-9697
5556\f
5557Local Variables:
5558mode: change-log
5559left-margin: 8
5560fill-column: 74
5561version-control: never
5562End:
This page took 0.325696 seconds and 4 git commands to generate.