* elf32-mips.c (mips_elf_swap_msym_in): New function.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a94a7c1c
MM
11999-06-26 Mark Mitchell <mark@codesourcery.com>
2
c6142e5d
MM
3 * elf32-mips.c (mips_elf_swap_msym_in): New function.
4 (mips_elf_swap_msym_out): New function.
5 (mips_elf_create_msym_section): Likewise.
6 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
7 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
8 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
9 section not named .msym.
10 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
11 .msym directly. Set appropriate attributes for the .msym
12 section.
13 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
14 (mips_elf_link_hash_newfunc): Clear it.
15 (mips_elf_create_dynamic_sections): Create the .msym section
16 on IRIX6.
17 (mips_elf_size_dynamic_sections): Allocate space for the
18 .msym section. Add a DT_MIPS_MSYM entry.
19 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
20 the symbol.
21 (mips_elf_finish_dynamic_sections): Assign a value for
22 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
23
a94a7c1c
MM
24 * elf32-mips.c (irix_compat_t): New enumeration.
25 (ABI_N32_P): New macro.
26 (IRIX_COMPAT): Likewise.
27 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
28 (mips_elf_relocate_section): Fix typo.
29
254f5c45
ILT
301999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
31
32 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
33 as writable PE sections.
34
f623be2b
RH
351999-06-26 David Mosberger <davidm@hpl.hp.com>
36
37 * dwarf2.c (struct arange): New type.
38 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
39 (arange_add): New function.
40 (decode_line_info): Keep track of address ranges that a compilation
41 unit covers.
42 (comp_unit_contains_address): Return true if address is contained
43 in _any_ of the address ranges associated with a compilation unit.
44 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
45 on the first comp_unit that contains the address.
46
69dd2e2d
RH
471999-06-26 David Mosberger <davidm@hpl.hp.com>
48
49 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
50 (decode_line_info): Add variable STASH and initialize it to point
51 to the per-bfd dwarf2_debug info. Remove static variable
52 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
53
0429ebd0
ILT
541999-06-26 Ian Lance Taylor <ian@zembu.com>
55
1d7b28df
ILT
56 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
57 shared library to have an undefined symbol.
58
0429ebd0
ILT
59 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
60 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
61
4517897e
JL
62Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
63
64 * elf-hppa.c (elf_hppa_final_write_processing): New function.
65 * elf32-hppa.c: Remove everything related to symbol extension
66 sections & records. Use the common elf_hppa_final_write_processing.
67
f0c2e336
MM
681999-06-22 Mark Mitchell <mark@codesourcery.com>
69
70 * elflink.h (size_dynamic_sections): Use user-specified init/fini
71 functions instead of _init/_fini if requested.
72
03ae5f59
ILT
731999-06-23 Ian Lance Taylor <ian@zembu.com>
74
75 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
76 field.
77
464e1740
ILT
781999-06-22 Ian Lance Taylor <ian@zembu.com>
79
80 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
81 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
82 field to 0, not -1.
83 (ppc_elf_finish_dynamic_sections): Check for positive section
84 dynindx field, rather than comparing against -1.
85 (ppc_elf_relocate_section): Only return false if undefined_symbol
86 or reloc_overflow fail, not always upon encountering an error.
87
2f5116e2
MM
881999-06-22 Mark Mitchell <mark@codesourcery.com>
89
90 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
91 bfd_byte * before performing pointer arithmetic.
92
9e103c9c
JL
93Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
94
95 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
96 support.
97 * elf32-hppa.c: Include elf-hppa.h.
98 (ARCH_SIZE): Define.
99 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
100 now.
101 (elf32_hppa_info_to_howto): Similarly.
102 (elf_hppa_howto_table): Similarly.
103 (elf_hppa_reloc_type_lookup): Similarly.
104 (hppa_elf_gen_reloc_type): Similarly.
105 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
106
232fb1a3
NC
1071999-06-22 Nick Clifton <nickc@cygnus.com>
108
109 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
110 handling R_V850_22_PCREL relocation.
111
271025eb
ILT
1121999-06-21 Ian Lance Taylor <ian@zembu.com>
113
114 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
115 type.
116
0bde07d4
RH
117Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
118
119 * section.c (_bfd_strip_section_from_output): Ignore sections
120 DISCARDed by the link script.
121
f800e11d
ILT
1221999-06-19 Ian Lance Taylor <ian@zembu.com>
123
124 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
125 Remove unused local variable spp.
126
127 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
128 the entry symbol is not set.
129
72b60c23
RH
130Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
131
132 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
133 GPDISP or LITUSE in a relocatable link.
134
aec89efb
JR
135Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
136
137 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
138 * (alloc_dwarf1_func): Likewise.
139
5ba624b0
JL
140Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
141
142 * libhppa.h: Fix various formatting errors.
143 (assemble_3); Rewrite using CATENATE.
144 (assemble_17): Fix various bugs.
145
59d23ada
NC
1461999-06-16 Nick Clifton <nickc@cygnus.com>
147
148 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
149
0c3ff40b
RH
1501999-06-15 Richard Henderson <rth@cygnus.com>
151
152 * section.c (SEC_SHORT): Define.
153 * bfd-in2.h: Rebuild.
154
42751cf3
MM
1551999-06-13 Mark Mitchell <mark@codesourcery.com>
156
78de0b43
MM
157 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
158 Remove abfd parameter. Use _bfd_strip_section_from_output.
159 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
160
42751cf3
MM
161 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
162 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
163 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
164 function.
165 (bfd_elf_size_dynamic_sections): Use it.
166
3e269912
ILT
1671999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
168
169 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
170 complain_overflow_bitfield to complain_overflow_signed.
171
6b5bd373
MM
1721999-06-13 Mark Mitchell <mark@codesourcery.com>
173
174 * elflink.h (elf_link_read_relocs_from_section): New function,
175 split out from ...
176 (elf_link_read_relocs): Here. Use it for both relocation
177 sections.
178
57e21bef
MM
1791999-06-12 Mark Mitchell <mark@codesourcery.com>
180
181 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
182 asect->reloc_count is valid.
183
cc3bfcee
ILT
1841999-06-12 Ian Lance Taylor <ian@zembu.com>
185
186 * elf32-mips.c (mips_elf32_section_processing): Permit a
187 SHT_MIPS_REGINFO section to have a size of 0.
188
7a50d4ac
ILT
1891999-06-12 David O'Brien <obrien@freebsd.org>
190
191 * config.bfd (alpha*-*-freebsd*): New target.
192 (i[3456]86-*-freebsd*): Now defaults to ELF.
193
f5f9cc4f
ILT
1941999-06-11 Ian Lance Taylor <ian@zembu.com>
195
44257b8b
ILT
196 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
197 wrap if the relocation covers the high bit of an address.
198
f5f9cc4f
ILT
199 * dwarf2.c (decode_line_info): Remove unused variable first_time.
200
60dac299
RH
2011999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
202
203 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
204 instead of R_SPARC_max.
205 (sparc64_elf_info_to_howto): Likewise.
206 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
207 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
208
9d7428a9
RH
2091999-06-07 Richard Henderson <rth@cygnus.com>
210
211 * section.c (_bfd_strip_section_from_output): Remove output
212 sections with no initial link_order.
213
3c82f80f
NC
2141999-06-07 Nick Clifton <nickc@cygnus.com>
215
216 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
217
eb519dff
AS
218Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
219
220 * Makefile.am (SOURCE_HFILES): Add missing headers.
221 * Makefile.in: Regenerated.
222
7f7e7b68
MM
2231999-06-06 Mark Mitchell <mark@codesourcery.com>
224
225 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
226 the N32 ABI.
227
dc1bc0c9
RH
2281999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
229
230 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
231 range undefweak symbols.
232 * hash.c: Add missing comma after @xref{}
233 * linker.c: Likewise.
234
79e5982f
NC
2351999-06-04 Nick Clifton <nickc@cygnus.com>
236
237 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
238 if not defined.
239 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
240 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
241 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
242 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
243
4a54b465
ILT
2441999-06-04 Ian Lance Taylor <ian@zembu.com>
245
246 * Makefile.am: Rebuild dependencies.
247 (BFD32_BACKENDS): Add dwarf1.lo.
248 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
249 * Makefile.in: Rebuild.
250
7714a18c
NC
2511999-06-04 Nick Clifton <nickc@cygnus.com>
252
253 * Makefile.am: Add epoc-arm-pe target.
254 * Makefile.in: Regenerate.
255 * pe-arm.c: Only redefine interworking function names if they have
256 not already been redefined.
257 * pei-arm.c: Only redefine interworking function names if they have
258 not already been redefined.
259 * epoc-pe-arm.c: Redefine interworking function names to avoid a
260 name space clash.
261 * epoc-pei-arm.c: Redefine interworking function names to avoid a
262 name space clash.
263
dece4658
NC
2641999-06-03 Nick Clifton <nickc@cygnus.com>
265
266 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
267
a9d024b8
AS
268Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
269
270 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
271
06e1ba78
JR
272Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
273
274 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
275 start / stop for recalculating of r_addend of R_SH_SWITCH*.
276
084aa3aa
JR
277Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
278
279 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
280 in other text sections.
281
875f7f69
JR
282Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
283
284 * libbfd.c (_bfd_generic_verify_endian_match): New function.
285 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
286 * libbfd.h: Regenerate.
287 * coff-sh.c (sh_merge_private_data): Delete.
288 (coff_bfd_merge_private_bfd_data): Change to
289 _bfd_generic_verify_endian_match.
290 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
291
6a9d5c9a
UD
2921999-06-03 Ulrich Drepper <drepper@cygnus.com>
293
294 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
295
a3e38ad3
ILT
2961999-06-03 Ian Lance Taylor <ian@zembu.com>
297
298 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
299 prototype.
300 (bfd_elf32_arm_process_before_allocation): Likewise.
301 * bfd-in2.h: Rebuild.
302
159002ff
RH
3031999-06-03 David Mosberger <davidm@hpl.hp.com>
304
305 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
306 track of end_sequence markers.
307 (add_line_info): Add END_SEQUENCE arg.
308 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
309 debug-line info---it doesn't work right if a compilation unit
310 consists of multiple discontiguous code-sequences. It would be
311 worthwhile to optimize for the common case where a compilation
312 unit results in a contiguous set of code sequences, but this is
313 quite tricky to get right for arbitrary DWARF2 files.
314 (lookup_address_in_line_info_table): Don't use the last line entry
315 for a compilation unit for anything with an address higher than
316 this line entry. Also, check for end_sequence markers to
317 correctly handle discontinuities.
318 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
319 compilation units, check all compilation units with each->high==0
320 just like when reading compilation units.
321
322 * dwarf2.c (decode_line_info): Initialize table->files and
323 table->last_line to NULL to avoid segfaults due to random
324 values in these members.
325 (concat_filename): Check for out-of-range file number before
326 indexing filename table. Segfaults suck.
327
328 * dwarf2.c (decode_line_info): Don't truncate address to least
329 significant 32 bits (breaks 64 bit targets).
330 (lookup_address_in_function_table): Ditto.
331 (comp_unit_contains_address): Ditto.
332
42fdc509
MM
3331999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
334
335 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
336 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
337 (mips_elf64_howto_table_rela): Likewise.
338
339 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
340 split out from ...
341 (elf_slurp_reloc_table): Here. Use it to handle the case where a
342 single section has two associated relocation sections.
6a9d5c9a 343
9d8cefa9
RH
3441999-06-02 Mark Salter <msalter@cygnus.com>
345
346 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
347 COFF_WITH_PE defined.
348
c9fca91d
NC
3491999-06-02 Nick Clifton <nickc@cygnus.com>
350
351 * pe-arm.c: Rename global arm interworking functions to avoid name
352 collision when all targets BFD is built.
353 * pei-arm.c: Ditto.
354
bf572ba0
MM
3551999-05-31 Mark Mitchell <mark@codesourcery.com>
356
357 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
358 may_use_rel_p, may_use_rela_p, default_use_rela_p.
359 (bfd_elf_section_data): Add use_rela_p.
360 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
361 (_bfd_elf_new_section_hook): Likewise.
362 (elf_fake_sections): Use may_use_rela_p, etc., instead of
363 use_rela_p.
364 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
365 * elfcode.h (write_relocs): Determine whether or not use rela
366 relocs based on the relocation section header.
367 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
368 instead of use_rela_p.
369 * elfxx-target.h (elf_backend_may_use_relp): New macro.
370 (elf_backend_may_use_rela_p): Likewise.
371 (elf_backend_default_use_rela_p): Likewise.
372 (elfNN_bed): Use them.
6a9d5c9a 373
3fe702fd
RH
374Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
375
376 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
377
3f830999
MM
378Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
379
380 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
381 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
382 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
383 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
384 * bfd-in2.h: Regenerated.
385 * libbfd.h: Likewise.
386 * elf32-mips.c (mips_info_to_howto_rela): New function.
387 (USE_REL): Adjust for new conventions.
388 (MINUS_ONE): New macro.
389 (elf_mips_howto_table): Add R_MIPS_SUB.
6a9d5c9a 390 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3f830999
MM
391 and MIPS_GOT_DISP.
392 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
393 .MIPS.content section.
394 (_bfd_mips_elf_fake_sections): Treat all sections that begin
395 with .MIPS.content as .MIPS.content sections. Set
396 SHF_MNIPS_NOSTRIP for such section.
397 (elf_info_to_howto): Define to mips_info_to_howto_rela.
398 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
399 MIPS_GOT_OFST, and MIPS_GOT_DISP.
400
70f06c4a
AS
401Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
402
015985c9
AS
403 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
404 variable.
405
70f06c4a 406 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
6a9d5c9a 407 `else'.
70f06c4a 408
2ef994e0
NC
4091999-05-30 Philip Blundell <philb@gnu.org>
410
411 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
412 1993-03-25 (!!). Take into account the bitmasks for the reloc so
413 the addend does not overflow into the rest of the word.
414
ba96a88f
NC
4151999-05-29 Nick Clifton <nickc@cygnus.com>
416
417 * bfd-in.h: Amend prototype for
418 bfd_elf32_arm_process_before_allocation .
419 * bfd-in.h: Regenerate.
6a9d5c9a 420
ba96a88f
NC
421 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
422 elements in a fixed sized array.
423 (ARM_ELF_ABI_VERSION): Define.
424 (ARM_ELF_OS_ABI_VERSION): Define.
425 (R_ARM_THM_ABS5): Fix rightshift and size.
426 (R_ARM_THM_PC22): Fix size.
427 (R_ARM_PLT32): Define Howto.
428 (find_howto): New function: Locate a howto based on a reloc
429 number.
430 (elf32_arm_info_to_howto): Use find_howto if necessary.
431 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
432 bfd_reloc_code_real_type.
433 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
434 and BFD_RELOC_VTABLE_ENTRY.
435 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
436
437 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
438 elements in a fixed sized array.
439 (ARM_ELF_ABI_VERSION): Define.
440 (ARM_ELF_OS_ABI_VERSION): Define.
441 (R_ARM_THM_ABS5): Fix rightshift and size.
442 (R_ARM_THM_PC22): Fix size.
443 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
444 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
445 bfd_reloc_code_real_type.
446
447 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
448 no_pipeline_knowledge.
449 (elf32_arm_link_hash_create): Initialise new field to zero.
450 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
451 no_pipeline_knowledge. Use this parameter to initialise the field
452 in the globals data structure.
453 (elf32_arm_final_link_relocate): Only add in pipeline offset if
454 no_pipeline_knowledge is false and the binary is from an old
455 toolchain.
456 (elf32_arm_merge_private_data): Generate an error if an attempt is
457 made to linl together big endian and little endian code.
458 (elf32_arm_post_process_headers): New function: Initialise the
459 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
6a9d5c9a 460 header.
ba96a88f
NC
461 (elf_backend_post_process_headers): Define.
462
e6c51ed4
NC
4631999-05-28 Nick Clifton <nickc@cygnus.com>
464
465 * elf-bfd.h (struct elf_backend_data): Add new field:
466 elf_backend_post_process_headers.
467
468 * elfxx-target.h (elf_backend_post_process_headers): Define to
469 NULL if not already defined.
6a9d5c9a 470 (elfNN_bed): Initialise elf_backend_post_process_headers field.
e6c51ed4
NC
471
472 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
473 to zero.
474 (_bfd_elf_compute_section_file_positions): Call
6a9d5c9a 475 elf_backend_post_process_headers if defined.
e6c51ed4 476
633fd09f
ILT
4771999-05-28 Ian Lance Taylor <ian@zembu.com>
478
479 * configure.in: Check whether getuid and getgid exist.
480 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
481 HAVE_GETGID are not defined, respectively.
482 (bfd_write_armap): Don't special case on _WIN32 for getuid and
483 getgid.
484 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
485 * configure, config.in: Rebuild.
486
b2ef150d
ILT
4871999-05-28 Martin Dorey <mdorey@madge.com>
488
489 * elf32-i960.c: New file.
490 * elf.c (prep_headers): Handle bfd_arch_i960.
491 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
492 * config.bfd (i960-*-elf*): New target.
493 * configure.in (bfd_elf32_i960_vec): New target vector.
494 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
495 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
496 * Makefile.in, aclocal.m4, configure: Rebuild.
497
5f97aa0c
NC
4981999-05-27 Nick Clifton <nickc@cygnus.com>
499
500 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
6a9d5c9a 501 R_ARM_PLT32.
5f97aa0c
NC
502 (find_howto): New function: Find entries in the
503 elf32_arm_howto_table.
504 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
505 computed simply.
506 (elf32_arm_reloc_type_lookup): Add lookup for
6a9d5c9a 507 BFD_RELOC_ARM_PLT32.
5f97aa0c 508
780a67af
NC
5091999-05-25 Philip Blundell <pb@nexus.co.uk>
510
511 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
512 (elf32_arm_link_hash_table_create): Use above function as the
513 constructor for hash table entries.
514 (elf32_arm_relocate_section): Avoid crash when there is no output
6a9d5c9a 515 section.
780a67af
NC
516 (elf32_arm_final_link_relocate): New parameter h.
517 (elf32_arm_relocate_section): Pass symbol hash entry to above
518 routine.
519 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
520 comments.
6a9d5c9a 521
fa0e42e4 5221999-05-25 Catherine Moore <clm@cygnus.com>
6a9d5c9a 523
fa0e42e4
CM
524 * coff-arm.c (coff_arm_relocate_section): Don't emit
525 base file entries for pc-relative values.
6a9d5c9a 526
93dfcdf0
DD
5271999-05-25 DJ Delorie <dj@cygnus.com>
528
529 * peicode.h (coff_swap_sym_in): When we create the actual section
530 to reflect the not-there section C_SECTION symbols refer to,
531 change the symbol class to C_STAT as the section is now really
532 there.
533
db65e864
NC
5341999-05-24 Philip Blundell <pb@nexus.co.uk>
535
536 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
537 1999-03-25.
538
948221a8 539Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
f6886bc4 540
948221a8
NC
541 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
542 F_PIC_INT to F_PIC.
543 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
544 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
6a9d5c9a 545
1349dd65
NC
5461999-05-16 Nick Clifton <nickc@cygnus.com>
547
548 * coff-mcore.c (in_reloc_p): Reinstate.
549
36797d47
NC
5501999-05-15 Nick Clifton <nickc@cygnus.com>
551
552 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
553 * bfd-in2.h: Regenerate.
554 * coff-mcore.c (in_reloc_p): Remove defintion.
555 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
556 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
557 IMAGE_REL_MCORE_RVA.
558 (coff_mcore_rtype_to_howto): Add special processing for
559 IMAGE_REL_MCORE_RVA.
560 (coff_mcore_relocate_section): Add support for
6a9d5c9a 561 IMAGE_REL_MCORE_RVA.
36797d47
NC
562 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
563 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
564 R_MCORE_RELATIVE.
6a9d5c9a
UD
565 (mcore_elf_relocate_section): Delete redundant case labels.
566
97eaf9de
AS
567Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
568
569 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
570 precedence between bit-and and comparison.
571
2e9a84c8
RH
572Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
573
574 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
575 list of target formats (targ_selvecs).
576 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
577 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
578
ec0ef80e
DD
5791999-05-10 DJ Delorie <dj@cygnus.com>
580
581 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
582 reasonable mode until "ar x" is smart enough to skip it (fixes
583 gcc/libgcc.a builds on mips-ecoff targets
584
585 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
586 to work. Hack to support MS import libraries, which use different
587 COMDAT types than GNU.
588 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
589 to implied zero-length sections (see peicode below)
590 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
591 filename symbols, which use one *or more* auxents.
592 * coffswap.h (coff_swap_aux_in): ditto
593 * peicode.h (coff_swap_sym_in): Build the implied zero-length
594 sections
6a9d5c9a 595
5c746d90
JL
596Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
597
598 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
599 for all relocations.
600
ba1b9317
CM
6011999-05-10 Catherine Moore <clm@cygnus.com>
602
603 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
604 if COFF_IMAGE_WITH_PE.
605 (bfd_arm_process_before_allocation): Likewise.
606 (bfd_arm_get_bfd_for_interworking): Likewise.
607 * coff-arm.c: Likewise.
608 * bfd-in2.h: Regenerate.
609 * configure.in (armpe_little_vec): Remove coff-arm.lo.
610 (armpe_big_vec): Likewise.
611 * configure: Rebuild.
612
c1f6bc03
NC
6131999-05-10 Nick Clifton <nickc@cygnus.com>
614
615 * elf.c (elf_fake_sections): Check for .rel. as start of rel
616 section, not just .rel. Same for .rela.
617
b23f908b
NC
6181999-05-07 Nick Clifton <nickc@cygnus.com>
619
620 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
621 endianism with an error message.
622
7fafc0fd
RH
623Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
624
625 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
626 assignment from "unsigned char *" to "char *".
627 (decode_line_info): Likewise for dwarf_line_buffer assignment.
628
b44267fd
CM
6291999-05-05 Catherine Moore <clm@cygnus.com>
630
631 * coff-arm.c (coff_arm_relocate_section): Add one to
632 address of ARM_RVA32 thumb functions.
6a9d5c9a 633
b44267fd 6341999-05-05 Catherine Moore <clm@cygnus.com>
6a9d5c9a 635
9e1281c7
CM
636 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
637 (elf32_m68k_copy_private_bfd_data): New.
638 (elf32_m68k_merge_private_bfd_data): New.
639 (elf32_m68k_print_private_bfd_data): New.
640 (CPU32_FLAG): Define.
641 (PLT_CPU32_ENTRY_SIZE): Define.
642 (elf_cpu32_plt0_entry): Declare.
643 (elf_cpu32_plt_entry): Declare.
644 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
645 (elf_m68k_finish_dynamic_symbol): Likewise.
646 (elf_m68k_finish_dynamic_sections): Likewise.
647 (elf_backend_plt_header_size): Remove definition.
648 (bfd_elf32_bfd_copy_private_bfd_data): Define.
649 (bfd_elf32_bfd_merge_private_bfd_data): Define.
650 (bfd_elf32_bfd_set_private_flags): Define.
651 (bfd_elf32_bfd_print_private_bfd_data): Define.
6a9d5c9a 652
ac79f2f3
JL
653Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
654
655 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
656 and R_LONG_PCREL_MODE.
657
252b5132
RH
6581999-04-29 Nick Clifton <nickc@cygnus.com>
659
660 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
661
662Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
663
664 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
665 in relocation calculation.
666
6671999-04-26 Tom Tromey <tromey@cygnus.com>
668
669 * aclocal.m4, configure: Updated for new version of libtool.
670
6711999-04-21 Nick Clifton <nickc@cygnus.com>
672
673 * coff-mcore.c: Add support for mcore relocs.
674
6751999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
676
677 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
678 incorrect use EF_MIPS_xxBITPTRS.
679
6801999-04-18 Ian Lance Taylor <ian@zembu.com>
681
682 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
683 variable insn.
684
685 * bfd-in2.h: Rebuild.
686 * libbfd.h: Rebuild.
687
688Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
6a9d5c9a 689
252b5132
RH
690 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
691 (coff_arm_relocate_section): Add ARM26D transform. Only
692 change to ARM26D for relocateable links.
693
6941999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
695
696 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
697 (bfd_elf32_bfd_print_private_bfd_data): New.
698
6991999-04-15 Doug Evans <devans@casey.cygnus.com>
700
701 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
702 refetch addend if USE_REL, add many comments regarding current state.
703 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
704 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
705 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
706 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
707
708Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
709
710 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
711 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
712
7131999-04-13 David Mosberger <davidm@hpl.hp.com>
714
715 * dwarf2.c (decode_line_info): Don't truncate address to least
716 significant 32 bits (breaks 64 bit targets).
717 (lookup_address_in_function_table): Ditto.
718 (comp_unit_contains_address): Ditto.
719
720Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
721
722 * coff-arm.c (arm_emit_base_file_entry): New routine.
723 (A2T3_OFFSET): Define.
724 (T2A3_OFFSET): Define.
725 (coff_arm_relocate_section): Emit base file entries for interworking
726 stubs.
727
7281999-04-13 Philip Blundell <philb@gnu.org>
729
730 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
731 relocs 17 through 19.
732
733Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
734
735 * elfcode.h: Remove fnmatch.h.
736 * elflink.h (elf_link_assign_sym_version): Call back to ld
737 instead of calling fnmatch.
738
739 * config.bfd (i?86-*-beoself): Include pe vecs.
740
741Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
742
743 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
744 to go missing.
745
7461999-04-10 Richard Henderson <rth@cygnus.com>
747
748 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
749 when trying to resolve dynamic symbol references.
750 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
751 * elf32-mips.c (mips_elf_relocate_section): Likewise.
752 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
753 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
754 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
755 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
756 * elflink.h (elf_link_output_extsym): Likewise.
757
758Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
759
760 * section.c (_bfd_strip_section_from_output): New function moved from
761 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
762 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
763 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
764 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
765 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
766 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
767 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
768 * bfd-in2.h: Update.
769
7701999-04-09 Ian Lance Taylor <ian@zembu.com>
771
772 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
773
7741999-04-08 Nick Clifton <nickc@cygnus.com>
775
776 * coff-mcore.c: New File: Support for mcore-pe targets.
777 * cpu-mcore.c: New File: Support for mcore targets.
778 * elf32-mcore.c: New File: Support for mcore-elf target.
779 * pe-mcore.c: New File: Definitions for mcore-pe target.
780 * pei-mcore.c: New File: Definitions for mcore-pei target.
781 * Makefile.am: Add support for MCore targets.
782 * Makefile.in: Regenerate.
783 * config.bfd: Add support for MCore targets.
784 * configure.in: Add support for MCore targets.
785 * configure: Regenerate.
786 * archures.c: Add support for MCore architecture.
6a9d5c9a 787 * bfd-in2.h: Regenerate.
252b5132
RH
788 * coffcode.h: Add support for mcore-pe targets.
789 * elf.c: Add support for mcore-elf target.
790 * reloc.c: Add support for MCore relocs.
791 * targets.c: Add support for MCore targets.
792
7931999-04-07 Nick Clifton <nickc@cygnus.com>
794
795 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
796 R_ARM_XPC25 and R_ARM_THM_XPC22.
797 (elf32_arm_reloc_map): Remove redundant entries.
798
7991999-04-06 Ian Lance Taylor <ian@zembu.com>
800
801 * sysdep.h (LC_MESSAGES): Never define.
802
8031999-04-06 Chris Torek <torek@bsdi.com>
804
805 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
806 all callers. Rewrite completely.
807 (_bfd_relocate_contents): Rewrite overflow checking.
808 * bfd-in2.h: Rebuild.
809
8101999-04-05 Ian Lance Taylor <ian@zembu.com>
811
812 From Gabriel Paubert <paubert@iram.es>:
813 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
814 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
815 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
816 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
817 * ppcboot.c (ppcboot_vec): Use little endian routines for
818 headers.
819
820 * elf.c (elfcore_strndup): Only define if it will be used.
821 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
822 and irelend.
823 (ppc_elf_check_relocs): Remove unused local i.
824 (ppc_elf_gc_mark_hook): Add default case to switch.
825
826 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
827 * srec.c (srec_scan): Accept \r in symbol definitions.
828 (srec_object_p): Set HAS_SYMS if we saw any symbols.
829 (symbolsrec_object_p): Likewise.
830
8311999-04-04 Don Bowman <don@pixsci.com>
832
833 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
834
8351999-04-04 Ian Lance Taylor <ian@zembu.com>
836
837 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
838 last_line.
839 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
840 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
841 switch.
842 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
843 local i.
844 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
845 local val.
846
8471999-03-31 Nick Clifton <nickc@cygnus.com>
848
849 * config.bfd: Add support for arm-epoc-pe target.
850 * configure.in: Add support for arm-epoc-pe target.
851 * configure: Regenerate.
852 * targets.c: Add support for arm-epoc-pe target.
853 * coff-arm.c: Allow header files to override definition of
854 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
855 * pe-arm.h: Allow previous header files to override definition of
856 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
6a9d5c9a 857 * pei-arm.h: Allow previous header files to override definition of
252b5132
RH
858 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
859 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
860 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
6a9d5c9a 861
252b5132
RH
8621999-03-30 Nick Clifton <nickc@cygnus.com>
863
864 * elf.c (elf_map_symbols): Handle the case where section
865 symbols are generated for content-less sections which are
866 not mapped to the output file.
867
868 * linker.c: Replace direct references to fields in BFD structure
869 with accessor macros.
870
871 * elflink.h: Replace direct references to fields in BFD structure
872 with accessor macros.
873
8741999-03-25 Philip Blundell <pb@nexus.co.uk>
875
876 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
6a9d5c9a
UD
877
878 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
252b5132
RH
879 account when adjusting section symbols during a partial link.
880
8811999-03-24 Nick Clifton <nickc@cygnus.com>
882
883 * coff-sparc.c (struct coff_reloc_map): Change type of field
884 'bfd_reloc_val' to bfd_reloc_code_real_type.
885 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
886 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
887 * elf32-arc.c (struct arc_reloc_map): Ditto.
888 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
889 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
890 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
891 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
892 * elf32-sh.c (struct elf_reloc_map): Ditto.
893 * elf32-sparc.c (struct elf_reloc_map): Ditto.
894 * elf32-v850.c (struct v850_reloc_map): Ditto.
895 * elf64-sparc.c (struct elf_reloc_map): Ditto.
896 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
897 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
898
8991999-03-17 Martin Hunt <hunt@cygnus.com>
900
901 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
902 function so source-level assembly works. If multiple N_SOs
903 are seen without and N_FUNs, create an indextable entry with
904 a NULL function name.
905
9061999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
907
908 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
909 of certian similar cpus.
910
9111999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
912
913 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
914 Add the 5000. Change the architecture for the 5400 to mips4.
915 (elf_mips_mach): Add r5000.
916
9171999-03-11 Doug Evans <devans@casey.cygnus.com>
918
919 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
920
9211999-03-11 Nick Clifton <nickc@cygnus.com>
922
923 * binary.c (binary_set_section_contents): Generate warning about
924 huge file offsets for any section that will occupy file space, not
925 just those that are loadable.
926
9271999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
928
929 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
930
9311999-02-22 Jim Lemke <jlemke@cygnus.com>
932
933 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
934
935Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
936
937 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
938 * elflink.h: Revert all changes since Feb 16. Instead:
939 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
940 appropriate. Copy it to version symbols.
941 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
942 symbols if appropriate.
943 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
944 symbol if appropriate.
945 (elf_link_output_extsym): If symbol is marked as undefined, and
946 has no nonweak references, mark it as weak undefined.
947
948Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
949
950 * elflink.h (elf_merge_symbol): When overriding a dynamic
951 definition with a weak undefined symbol, set NEEDS_PLT if it is a
952 function.
953 (elf_link_add_object_symbols): Don't copy the other field if we
954 are overridding.
955
956Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
957
958 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
959 shared object with a weak undefined symbol.
960
9611999-02-18 Nick Clifton <nickc@cygnus.com>
962
963 * elfarm-nabi.c: Set partial_inplace back to false.
964
9651999-02-17 Nick Clifton <nickc@cygnus.com>
966
967 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
968 (USER_LABEL_PREFIX): Set to "_".
969
970 The following patches are from: Scott Bambrough
971 <scottb@corelcomputer.com>
6a9d5c9a 972
252b5132
RH
973 * libaout.h (M_ARM6_NETBSD): Set to 143.
974
975 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
976 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
977 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
978 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
979 * bfd-in2.h: Regenerate.
980
981 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
982 'true' as REL relocs are now being used. Add new PIC relocs:
983 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
984 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
985
986 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
987 of targets.
988 (elf32_arm_final_link_relocate): Change parameters so that entire
989 reloc is passed. Add support for PIC relocs.
990 (elf32_arm_relocate_section): Pass entire reloc to
6a9d5c9a 991 elf32_arm_final_link_relocate.
252b5132
RH
992 (elf32_arm_check_relocs): Handle new PIC relocs.
993 (elf32_arm_adjust_dynamic_symbol): New function.
994 (elf32_arm_size_dynamic_sections): New function.
995 (elf32_arm_discard_copies): New function.
996 (elf32_arm_finish_dynamic_symbol): New function.
997 (elf32_arm_finish_dynamic_sections): New function.
998 (ELF_MAXPAGE_SIZE): Define.
999 (bfd_elf32_bfd_reloc_type_lookup): Define.
1000 (elf_backend_relocate_section): Define.
1001 (elf_backend_adjust_dynamic_symbol): Define.
1002 (elf_backend_create_dynamic_sections): Define.
1003 (elf_backend_finish_dynamic_symbol): Define.
1004 (elf_backend_finish_dynamic_sections): Define.
1005 (elf_backend_size_dynamic_sections): Define.
1006 (elf_backend_plt_readonly): Define.
1007 (elf_backend_want_got_plt): Define.
1008 (elf_backend_want_plt_sym): Define.
6a9d5c9a 1009
252b5132
RH
1010Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
1011
1012 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
1013 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
1014 (_bfd_mips_elf_fake_sections): Likewise.
1015
1016Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6a9d5c9a 1017
252b5132
RH
1018 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
1019 bfd_elf32_arm_get_bfd_for_interworking,
1020 bfd_elf32_arm_process_before_allocation): Define to avoid clash
1021 with elfarm-nabi.c.
6a9d5c9a 1022
252b5132
RH
1023 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
1024 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
1025 elf32_arm_find_nearest_line): Make them static.
1026
1027Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
1028
1029 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
1030 callers. Do not merge a definition from a shared object with a
1031 weak undefined symbol.
1032 (elf_link_add_object_symbols): Do not change the symbol type or
1033 size if the old symbol overrides the new one.
1034
10351999-02-08 Nick Clifton <nickc@cygnus.com>
1036
1037 * config.bfd: Add support for strongarm target.
1038
1039Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1040
1041 * elf32-m68k.c (reloc_map): Use the correct types for the struct
1042 fields instead of unsigned char.
1043
1044Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
1045
1046 * Makefile.am: Rebuild dependencies.
1047 * Makefile.in: Rebuild.
1048
1049Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
1050
1051 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
1052 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
1053 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
1054 * acinclude.m4: Add comments to uses of AC_DEFINE.
1055 * acconfig.h: Remove.
1056 * configure: Rebuild with current autoconf/automake.
1057 * aclocal.m4: Likewise.
1058 * config.in: Likewise.
1059 * Makefile.in: Likewise.
1060
10611999-02-04 DJ Delorie <dj@cygnus.com>
1062
1063 * libbfd.c (real_read): don't call fread for zero bytes. This
1064 covers up a bug (or misuse of bfd) that's exposed by Solaris.
1065
1066Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
1067
1068 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
1069 of a jump is in the current 256 MB region.
1070
1071Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
1072
1073 * format.c (bfd_check_format_matches): Change last patch to only
1074 take effect for the binary target.
1075
1076Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
1077
1078 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
1079
1080Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
1081
1082 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
1083
1084Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
1085
1086 * format.c (bfd_check_format_matches): If the target was
1087 previously specified, don't check other targets when checking for
1088 an archive file.
1089
1090Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
1091
1092 * elf32-arm.h (elf32_arm_reloc_map): Removed.
1093 (elf32_arm_reloc_type_lookup): Removed
1094 * elfarm-nabi.c (elf32_arm_reloc_map): New.
1095 (elf32_arm_reloc_type_lookup): New.
1096 * elfarm-oabi.c (elf32_arm_reloc_map): New.
1097 (elf32_arm_reloc_type_lookup): New.
1098
1099Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
1100
1101 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
1102 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
1103 * Makefile.am: Use new files.
1104 * Makefile.in: Regenerate.
1105 * configure.in: Use new files.
6a9d5c9a 1106 * configure: Regenerate.
252b5132
RH
1107
11081999-02-01 Nick Clifton <nickc@cygnus.com>
1109
1110 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
1111 (fr30_elf_gc_sweep_hook): New function.
1112 (elf_backend_can_gc_sections): Define.
1113
1114Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
1115
1116 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
1117 and bfd_elf32_bigarm_oabi_vec.
1118
1119Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
1120
1121 * Makefile.am (elf32-arm-oldabi.lo): New.
1122 (elf32-arm-newabi.lo): New.
1123 * Makefile.in: Regenerate.
1124 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
1125 (arm-*-elf): Likewise.
1126 (arm-*-oabi): New.
1127 (thumb-*-oabi): New.
1128 * configure: Regenerate.
1129 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
1130 (bfd_elf32_bigarm_oabi_vec): New.
1131 * elf32-arm-newabi.c: New.
1132 * elf32-arm-oldabi.c: New.
1133 * elf32-arm.c: Removed.
1134 * elf32-arm.h: New.
1135
1136Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
1137
1138 * binary.c (binary_set_section_contents): Omit warnings for
1139 unloadable sections.
1140
11411999-01-31 Michael Meissner <meissner@cygnus.com>
1142
1143 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
1144 powerpc{,le}-*-eabi.
1145
11461999-01-29 Nick Clifton <nickc@cygnus.com>
1147
1148 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
1149 * dwarf2.c (read_signed_leb128): Remove unused variables.
1150
1151Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
1152
1153 * elf.c (assign_file_positions_for_segments): Only adjust
1154 p_align when needed.
1155
1156Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
1157
1158 * binary.c (binary_set_section_contents): Don't return early for a
1159 non-loadable section, in case the first section is non-loadable.
1160 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
1161 W. Rozycki <macro@ds2.pg.gda.pl>.
1162
11631999-01-28 Nick Clifton <nickc@cygnus.com>
1164
1165 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
1166 R_FR30_GNU_VTENTRY relocs.
1167
1168Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
1169
1170 * elflink.h (elf_link_output_sym): Zero syms which are
1171 part of sections which have been excluded.
1172
1173Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
1174
1175 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
1176 to F_PIC_INT.
1177 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
1178 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
6a9d5c9a 1179
252b5132
RH
11801999-01-27 Nick Clifton <nickc@cygnus.com>
1181
1182 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
6a9d5c9a 1183 relocation.
252b5132 1184 (fr30_final_link_relocate): Use computed value as result of
6a9d5c9a 1185 relocation.
252b5132
RH
1186
11871999-01-26 Frank Ch. Eigler <fche@cygnus.com>
1188
1189 * binary.c (binary_set_section_contents): Emit warning for
1190 huge file offsets due to widely-dispersed section LMAs.
1191
1192Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
1193
1194 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
1195 align first section to largest section alignment, not first
1196 section alignment.
1197
11981999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1199
1200 * configure.in: Require autoconf 2.12.1 or higher.
1201
1202Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
1203
1204 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
1205 * bfd-in2.h: Likewise.
1206 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
1207
12081998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
1209
1210 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
1211 * cpu-mips.c: Add support for and independent 4111.
1212 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
6a9d5c9a 1213 (_bfd_mips_elf_final_write_processing):
252b5132
RH
1214 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
1215
12161998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
1217
1218 * elf32-mips.c (elf_mips_abi_name): New.
1219 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
1220
12211998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
1222
6a9d5c9a 1223 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
252b5132
RH
1224 Handle bfd_mach_mips4300.
1225
12261998-12-11 Ulrich Drepper <drepper@cygnus.com>
1227
1228 * elf32-i386.c: Remove leaked development code from patch
1229 1998-12-10 by Richard Henderson.
1230
12311998-12-10 Richard Henderson <rth@cygnus.com>
1232
1233 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
1234 in debug sections for symbol defined externally.
1235
1236Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1237
1238 * targets.c (bfd_target_vector): Remove duplicate entry for
1239 tekhex_vec.
1240
12411998-12-09 Nick Clifton <nickc@cygnus.com>
1242
1243 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
1244 since we are using RELAs.
1245
1246Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
1247
1248 SCO Open Server Release 5 core file support, from Jouke Numan
1249 <jnuman@hiscom.nl>:
1250 * sco5-core.c: New file.
1251 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
1252 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
1253 * Makefile.am: Rebuild dependencies.
1254 (OPTIONAL_BACKENDS): Add sco5-core.lo.
1255 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
1256 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
1257 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
1258 * bfd-in2.h, configure, Makefile.in: Rebuild.
1259
1260Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
1261
1262 * config.bfd (hppa*-*-mpeix*): New target.
1263 * configure.in: Add AC_HEADER_DIRENT.
1264 (hppa*-*-mpeix*): New target.
1265 * configure.host (hppa*-*-mpeix*): New host.
1266 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
1267 friends rather than just including <sys/dir.h>.
1268 * som.h (struct som_symbol): Add hppa_priv_level and apto
1269 tc_data. Change all users.
1270 (struct somdata): Add comp_unit field.
1271 (obj_som_compilation_unit): Define.
1272 (bfd_som_attach_compilation_unix): Declare.
1273 * som.c: Check HOST_HPPAMPEIX.
1274 (struct som_misc_symbol_info): Add new field priv_level.
1275 (som_object_setup): Add current_offset parameter. Change all
1276 callers.
1277 (setup_sections): Likewise.
1278 (som_object_p): For EXECLIBMAGIC, read the lst header.
1279 (som_write_symbol_strings): Add compilation_unit parameter.
1280 Change all callers.
1281 (som_finish_writing): Write out compilation_unit.
1282 (som_bfd_derive_misc_symbol_info): Set priv_level.
1283 (som_build_and_write_symbol_table): Set xleast field to 3.
1284 (som_slurp_symbol_table): Set symbol priv_level.
1285 (bfd_som_attach_compilation_unit): New function.
1286 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
1287 priv_level into symbol_value.
1288 * configure, config.in: Rebuild.
1289
1290Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
1291
1292 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
1293 warning function to call _bfd_error_handler instead.
1294
1295 * libbfd.c (COERCE32): Cast through unsigned long and long to
1296 avoid bug in old version of gcc.
1297
1298 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
1299 (elf_backend_additional_program_headers): Don't define.
1300
13011998-12-08 Nick Clifton <nickc@cygnus.com>
1302
1303 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
1304 relocations to include offset of 2 included in the insns, and the
1305 offset of the relocs within the section.
1306
1307Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
1308
1309 The following changes were made by David Taylor
1310 <taylor@texas.cygnus.com>, Edith Epstein
1311 <eepstein@sophia.cygnus.com>, Jim Blandy
1312 <jimb@zwingli.cygnus.com>, and Elena Zannoni
1313 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
1314 changes originally made by HP; HP did not create ChangeLog
1315 entries.
1316
1317 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
1318 automake macro library.
1319
1320 * hpux-core.c (hpux_core_core_file_p): this function now
1321 understands HPUX 10.30 thread info. Yes, the thread stacks can be
1322 found in the corefile! Also, in hpux_core_core_file_p, if we
1323 encounter a section with an unknown type, don't punt. Instead,
1324 just skip it. Also, count the number of sections of known type
1325 that we encounter. If we encounter at least one good one, then
1326 we'll declare that the file is a core file. If we encounter any
1327 unknown ones but some known ones, then we'll issue a warning (but
1328 still declare it to be a core file). Also, correctly decide when a
1329 file is not a core.
1330 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
1331 (CORE_ANON_SHMEM): define if not defined.
1332 (hpux_core_struct): add members lwpid and user_tid.
1333 (core_kernel_thread_id, core_user_thread_id): new macros.
1334 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
1335 the name before storing it in the bfd.
1336 (hpux_core_core_file_p): handle threads.
1337
1338 * libhppa.h (GET_FIELD): protect against redefinition.
1339 (HPPA_WIDE): define.
1340 (GET_FIELD): define.
1341 (GET_BIT): define.
1342 (MASK): define.
1343 (CATENATE): define.
1344 (ELEVEN): define.
1345 (sign_extend): redefine.
1346 (assemble_6): define.
1347 (assemble_12): rewrite.
1348 (assemble_16): define.
1349 (assemble_16a): define.
1350 (assemble_17): rewrite.
1351 (assemble_22): define.
1352
13531998-12-07 Nick Clifton <nickc@cygnus.com>
1354
1355 * elf32-fr30.c (fr30_final_link_relocate): Using signed
1356 relocations for signed values.
1357
1358Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
1359
1360 * mipsbsd.c (MY(set_arch_mach)): Make static.
1361 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
1362 bfd_mach_mips* macros rather than simple numbers.
1363
1364 COFF weak symbol support, based on patches from Mark Elbrecht
1365 <snowball3@usa.net>:
1366 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
1367 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
1368 (coff_write_alien_symbol): Likewise.
1369 * cofflink.c (coff_link_check_ar_symbols): Likewise.
1370 (coff_link_add_symbols): Likewise.
1371 (_bfd_coff_link_input_bfd): Likewise.
1372 (_bfd_coff_write_global_sym): Likewise.
1373
1374 * elf.c (copy_private_bfd_data): Always initialize the
1375 includes_phdrs field.
1376
1377 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
1378 file defines a symbol first mentioned in an ELF file.
1379
1380 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
1381 possible, rather than only if BFD64.
1382 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
1383 not __GNUC__.
1384 * bfd-in2.h: Rebuild.
1385
1386 * srec.c (srec_set_section_contents): Correct test to avoid
1387 switching to 4 byte addresses after seeing a second section which
1388 requires 3 byte addresses. From Joel Schantz
1389 <joel.schantz@argosys.boeing.com>.
1390
1391 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
1392 <aymeric.vincent@emi.u-bordeaux.fr>.
1393
13941998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
1395
1396 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
1397 decide whether the output file is -mrelocatable-lib,
1398 -mrelocatable, or neither. (gdb.base/nodebug.exp)
1399
14001998-12-03 Nick Clifton <nickc@cygnus.com>
1401
1402 * elf32-fr30.c: Add support for R_FR30_48 reloc.
1403 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
1404 * bfd-in2.h: Regenerate.
1405 * libbfd.h: Regenerate
1406
1407Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
1408
1409 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
1410 link against a dynamic symbol with no type or size.
1411
14121998-12-01 Ulrich Drepper <drepper@cygnus.com>
1413
1414 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
1415 relocation for section which does not get loaded.
1416 (elf_i386_relocate_section) [R_386_32]: Likewise.
1417
1418Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
1419
1420 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
1421 reloc_count and i long instead of unsigned long. Handle error
1422 return from bfd_canonicalize_reloc.
1423
14241998-12-01 Nick Clifton <nickc@cygnus.com>
1425
1426 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
1427 a hash table.
1428
1429Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1430
1431 * elf32-sh.c (elf/sh.h): Include.
1432 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
1433 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
1434 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
1435 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
1436 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
1437
1438Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
1439
1440 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
1441 causes division by zero later on.
1442
1443Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
1444
1445 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
1446 needed.
1447
14481998-11-25 DJ Delorie <dj@cygnus.com>
1449
1450 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
1451 hook now.
1452
1453Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
1454
1455 * elf32-fr30.c (fr30_elf_relocate_section): Call
1456 fr30_final_link_relocate.
1457 (fr30_final_link_relocate): New function: Handle I20 and I32
1458 relocs.
1459 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
1460 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
1461 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
1462
1463 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
1464 chain to empty.
1465
1466 The following changes are based on a patch submitted by Gianluca
1467 Moro <glctr@abc.it>:
1468
1469 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
1470 not already been updated.
1471 (find_remembered_hi16s_reloc): New parameter 'already_found'
1472 returns state of remembered hi16s reloc.
1473 (remember_hi16s_reloc): Set 'found' field to false.
1474 (hi16s_location): Add 'found' field.
1475
14761998-11-23 DJ Delorie <dj@cygnus.com>
1477
1478 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
1479 to see .DLL files as unrecognized.
1480 (i3coff_object_p): Sorry, had to hack it to not recognize these
1481 files (pei-i386) on request.
1482
14831998-11-23 DJ Delorie <dj@cygnus.com>
1484
1485 * opncls.c (bfd_make_readable): need more cleanup for symbols and
1486 relents. Call bfd_check_format to reinitialize.
1487
1488Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
1489
1490 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
1491 warnings.
1492
1493Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
1494
1495 * aclocal.m4: regenerate
1496 * configure: regenerate
1497
1498Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
1499
1500 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
1501 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
1502 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
1503 respect it as an upper bound on what memory to reference.
1504 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1505 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
1506 update vtable_entries_size appropriately.
1507
1508Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
1509
1510 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
1511 reloc number.
1512
1513Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
1514
1515 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
1516 bfds; they have no "file" so we fake it.
1517 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
1518 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
1519 resizing the memory buffer.
1520 * opncls.c (bfd_make_writable): New function; lets you write a
1521 bfd_create'd bfd to an in-memory buffer.
1522 (bfd_make_readable): New function; lets you read back that buffer
1523 as if it were from bfd_openr. Used to build generated archive
1524 members (winsup's ld's dlltool)
1525
1526Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
1527
1528 * po/bfd.pot: Regenerated.
1529
1530Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
1531
1532 * elf32-v850.c (hi16s_location): Replaced fixed size array with
1533 linked list.
1534
1535Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
1536
1537 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
1538 element of the gotentry list for local symbols too.
1539 (elf64_alpha_relocate_section): Unify local and global handling.
1540 Assert that gotent->use_count > 0.
1541
1542Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
1543
1544 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
1545 update for file name changes of July 2, 1998.
1546 (vms_vax_vec): New.
1547 * configure: Rebuild.
1548
1549Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
1550
1551 * po/bfd.pot: Regenerated.
1552
1553Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
1554
1555 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
1556 * aclocal.m4, configure: regenerate
1557
1558Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
1559
1560 * elf.c (prep_headers): Add support for bfd_arch_fr30.
1561
1562Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
1563
1564 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
1565 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
1566 was cached.
1567 * aclocal.m4, configure: regenerated.
1568
1569Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
1570
1571 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
1572 R_D10V_GNU_VTENTRY relocs.
1573 (elf_d10v_howto_table): Likewise.
1574 (d10v_reloc_map d10v_reloc_map): Likewise.
1575 (elf32_d10v_gc_mark_hook): New.
1576 (elf32_d10v_gc_sweep_hook): New.
1577 (elf32_d10v_check_relocs): New.
1578 (elf32_d10v_relocate_section): New.
1579 (elf_backend_relocate_section): Define.
1580 (elf_backend_can_gc_sections): Define.
1581
1582Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
1583
1584 * Makefile.am (BFD32_BACKENDS): Move vms files here...
1585 (BFD64_BACKENDS): ...from here.
1586 (BFD32_BACKENDS_CFILES): Move vms files here...
1587 (BFD64_BACKENDS_CFILES): ...from here.
1588 * Makefile.in: Rebuild.
1589
1590Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
1591
1592 * Makefile.am: Add FR30 target.
1593 * Makefile.in: Add FR30 target.
1594 * archures.c: Add support for FR30.
1595 * config.bfd: Add support for FR30.
1596 * configure.in: Add support for FR30.
1597 * reloc.c: Add support for FR30 relocations.
1598 * targets.c: Add support for FR30 relocations.
1599 * bfd-in2.h: Regenerate.
1600 * configure: Regenerate.
1601 * libbfd.h: Regenerate.
1602 * cpu-fr30.c: New file.
1603 * elf32-fr30.c: New file.
1604
1605Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
1606
1607 * configure.in: detect cygwin* instead of cygwin32*
1608 * configure: regenerate
1609
1610Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
1611
1612 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
1613 use bfd_malloc and free instead and check return value from bfd_malloc.
1614
1615Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
1616
1617 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
1618 * libbfd.h: Rebuild.
1619
1620 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
1621 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
1622 (MIPS_TEXT_DYNSYM_SECN): Likewise.
1623 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
1624 section.
1625 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
1626 field.
1627 (mips_elf_link_hash_table_create): Don't initialize
1628 dynsym_sec_strindex.
1629 (mips_elf_gc_mark_hook): Add default case to avoid warning.
1630 (mips_elf_size_dynamic_sections): Generate a section symbol for
1631 every output section.
1632 (mips_elf_finish_dynamic_sections): Count all sections for
1633 DT_MIPS_UNREFEXTNO.
1634 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
1635 output sections.
1636
1637Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
1638
1639 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
1640 for later PLT entries in large PLTs.
1641 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
1642
1643Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
1644
1645 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
1646
16471998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
1648
1649 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
1650 * elflink.h (elf_collect_hash_codes): New function. This function is
1651 called for each exported symbol and we compute the ELF hash value for
1652 it.
1653 (compute_bucket_value): New function. It is called from
1654 size_dynamic_sections to determine the hash table size. When we are
1655 optimizing a better, but slower, algorithm is used.
1656 (size_dynamic_sections): Call compute_bucket_value.
1657
1658 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
1659
1660Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
1661
1662 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
1663 R_SH_GNU_VTENTRY.
1664 (sh_elf_gc_mark_hook): New.
1665 (sh_elf_gc_sweep_hook): New.
1666 (sh_elf_check_relocs): New.
1667 (elf_backend_can_gc_sections): Define.
1668
1669Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
1670
1671 * acinclude.m4: undo previous gettext change
1672 * aclocal.m4: rebuild with right version of aclocal.
1673
1674Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
1675
1676 * acinclude.m4, aclocal.m4: move gettext-related fragments from
1677 aclocal.m4 to acinclude.m4, so they don't get lost.
1678
1679 * elfcore.h: rewrite for better corefile support.
1680 * elf.c (elfcore_*): new functions.
1681 * elf-bfd.h (elf_obj_tdata): new structure members.
1682 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
1683 flavor of procfs.
1684 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
1685
1686Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
1687
1688 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
1689 and R_M32R_GNU_VTENTRY.
1690 (elf_backend_can_gc_sections): Define.
1691 (m32r_elf_check_relocs): New.
1692 (m32r_elf_gc_mark_hook): New.
1693 (m32r_elf_gc_sweep_hook): New.
1694 (m32r_elf_relocate_section): Handle VT relocs.
1695
1696Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
1697
1698 * coff-arm.c (arm_relocate_section): Remove redundant test.
1699
1700 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
1701 cleat that the 'bitsize' field is the size of the bitfield AFTER
1702 relocation not before.
1703
1704 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
1705
1706 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
1707 relocs.
1708
1709Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
1710
1711 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
1712 R_SPARC_GNU_VTENTRY.
1713 (elf32_sparc_check_relocs): Handle them.
1714 (elf32_sparc_reloc_type_lookup): Likewise.
1715 (elf32_sparc_relocate_section): Likewise.
1716 (elf32_sparc_gc_mark_hook): New.
1717 (elf32_sparc_gc_sweep_hook): New.
1718
1719Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
1720
1721 * som.c (som_finish_writing): Perform some sanity checks when
1722 writing an executable or shared library.
1723
1724Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
1725
1726 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
1727 * configure.in (elf): Add dwarf1.lo.
1728 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
1729 * elf.c (_bfd_elf_find_nearest_line): Add call to
1730 _bfd_dwarf1_find_nearest_line.
1731 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
1732 Add call to _bfd_dwarf1_find_nearest_line.
1733 * configure: Rebuilt.
1734
1735Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
1736
1737 * elflink.h (elf_gc_sections): Do not allow garbage
1738 collection if dynamic sections have been created.
1739
1740Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
1741
1742 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
1743 R_V850_GNU_VTENTRY.
1744 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
1745 (v850_elf_perform_relocation): Likewise.
1746 (v850_elf_final_link_relocate): Likewise.
1747 (v850_elf_relocate_section): Likewise.
1748 (v850_elf_gc_sweep_hook): New routine.
1749 (v850_elf_gc_mark_hook): New routine.
1750 (elf_backend_can_gc_sections): Define.
1751
1752Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
1753
1754 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
1755 that dynobj exists.
1756
1757Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
1758
1759 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
1760 Declare size as bfd_size_type.
1761 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
1762
1763Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
1764
1765 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
1766 structure.
1767 * som.c (CPU_PA_RISC2_0): Define.
1768 (_PA_RISC2_0_ID): Likewise.
1769 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
1770
1771Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
1772
1773 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
1774 has a base which is already defined, only add the referenced
1775 symbol to the dynamic symbol table if it is defined or referenced
1776 by a regular file.
1777
1778 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
1779 correctly.
1780
17811998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1782
1783 * elflink.h (elf_link_add_object_symbols): Undo last change.
1784
1785Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
1786
1787 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
1788 symbol for the indirect alias to a versioned symbol.
1789
1790Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
1791
1792 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
1793 (elf32_i386_vtentry_howto): New.
1794 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
1795 or elf32_i386_vtinherit_howto on lookup.
1796
1797Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1798
1799 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
1800 reloc_type. Rename R_68K__max to R_68K_max.
1801 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
1802 reloc.
1803
1804Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
1805
1806 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
1807 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
1808
1809 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
1810 after.
1811
1812Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
1813
1814 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
1815 message has a null byte terminator.
1816
1817Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
1818
1819 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
1820 word subject to R_V850_32 relocation.
1821
1822Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
1823
1824 * dwarf2.c: Add comment describing problem computing line numbers
1825 for undefined symbols at link time.
1826
1827Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
1828
1829 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
1830 transform a defweak into a plt entry.
1831 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
1832 plt entry references to receive a RELATIVE reloc.
1833 (elf64_alpha_finish_dynamic_symbol): Fill them in.
1834 (elf64_alpha_relocate_section): Assert we don't overrun
1835 the allocated relocation space.
1836
1837Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
1838
1839 * elf.c (swap_out_syms): Always treat section symbols as
1840 special, even if they are attached to a common section.
1841
1842Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
1843
1844 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
1845 sections with v850 common section attributes into named v850
1846 common sections.
1847 (v850_elf_add_symbol_hook): Move symbols in sections with v850
1848 common section attributes into named v850 common sections.
1849
1850Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
1851
1852 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
1853 statement.
1854
18551998-09-15 Geoff Keating <geoffk@ozemail.com.au>
1856
1857 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
1858 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
1859 reloc to the wrong section a warning, not an error. .dynsbss
1860 is not an output section, so there is no need to check for it.
1861
1862Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
1863
1864 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
1865
1866Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
1867
1868 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
1869 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
1870 R_ARM_GNU_VTENTRY.
1871 (elf32_arm_gc_mark_hook): New.
1872 (elf32_arm_gc_sweep_hook): New.
1873 (elf32_arm_check_relocs): New.
1874 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
1875 relocations.
1876 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
1877 relocations.
1878
18791998-09-10 Geoff Keating <geoffk@ozemail.com.au>
1880
1881 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
1882 assume there is no PLT or GOT.
1883
1884Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
1885
1886 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
1887 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
1888 also accepted as a function symbol type.
1889
1890Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1891
1892 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
1893
1894Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
1895
1896 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
1897 match definition of _bfd_gc_sections field.
1898 * libbfd.h: Rebuild.
1899
1900Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
1901
1902 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
1903 the addend of a dynamic relocation referencing a section.
1904 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1905 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
1906
1907Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
1908
1909 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
1910 bed has a size_dynamic_sections routine before trying to use it.
1911
1912Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
1913
1914 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
1915 _bfd_elf_rel_vtable_reloc_fn.
1916
1917Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
1918
1919 * Makefile.am: Add elf32-arm.c.
1920 * Makefile.in: Rebuild.
1921 * elf-bfd.h: Add elf_backend_get_symbol_type.
1922 * elf.c (swap_out_syms): If defined, call
1923 elf_backend_get_symbol_type.
1924 * elf32-arm.c: Define elf_backend_get_symbol_type.
1925 (elf32_arm_get_symbol-type): New routine.
1926 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
1927 (bfd_elf32_arm_process_before_allocation): Change to
1928 check for STT_ARM_TFUNC.
1929 (elf32_arm_final_link_relocate): Likewise.
1930 * elfxx-target.h: Add elf_backend_get_symbol_type.
1931
1932Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
1933
1934 * archures.c (bfd_mach_alpha_ev[456]): New.
1935 * cpu-alpha.c: Rework to match these types.
1936 * bfd-in2.h: Rebuild.
1937
1938Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
1939
1940 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
1941 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
1942
1943 * elf32-i386.c (elf_howto_table): Add vtable relocs.
1944 (elf_i386_reloc_type_lookup): Recognize them.
1945 (elf_i386_check_relocs): Pass them off to generic code.
1946 (elf_i386_relocate_section): Ignore them.
1947 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
1948 (elf_backend_can_gc_sections): True.
1949
1950Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
1951
1952 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
1953 before looking at owner field.
1954 (elf32_arm_to_thumb_stub): Ditto.
1955 (elf32_arm_relocate_section): Compute name before calling
1956 elf32_arm_final_link_relocate().
1957
1958Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
1959
1960 * elf.c: comment and formatting cleanups.
1961 * elfcore.h: ditto.
1962
1963Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
1964
1965 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
1966 (core files are treated differently than object files).
1967 * elf-bfd.h (_bfd_elf_write_corefile_contents,
1968 bfd_elf_mkcorefile): declare.
1969 * elfxx-target.h (_bfd_elf_write_corefile_contents,
1970 bfd_elf_mkcorefile): add to bfd_target vector.
1971 * elfcore.h (elf_core_file_p): save the program header table,
1972 and set the bfd architecture from the elf file header.
1973 * elf.c (bfd_elf_mkcorefile): new function.
1974 (_bfd_elf_write_corefile_contents): new function.
1975 (assign_file_positions_for_segments): add cases for handling
1976 PT_NOTE segments. (assign_file_positions_except_relocs):
1977 core files should be handled the same as exec files.
1978 (prep_headers): identify core files as type ET_CORE.
1979 (copy_private_bfd_data): identify the sections belonging to
1980 the PT_NOTE segment.
1981
1982 * elf32-sparc.c (elf32_sparc_final_write_processing):
1983 add break statement to default case.
1984
19851998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
1986
1987 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
1988 section (not input) will be in sections ".sbss", ".sbss2",
1989 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
1990 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
1991 output_offset for correct evaluation of addend.
1992
1993Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
1994
1995 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
1996 elf32_arm_allocate_interworking_sections and
1997 elf32_arm_process_before_allocation.
1998
1999Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
2000
2001 * bfd-in.h: Ammend prototype for
2002 elf32_arm_process_before_allocation to remove surplus third
2003 argument.
2004
2005 * bfd-in2.h: Regenerate.
2006
2007Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
2008
2009 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
2010
2011Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
2012
2013 * aoutx.h (aout_link_input_section_ext): Use the relocation already
2014 calculated for RELOC_SPARC_REV32 case.
2015
2016Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
2017
2018 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
2019 elf32_arm_allocate_interworking_sections and
2020 elf32_arm_process_before_allocation.
2021 * bfd-in2.h: Regenerated.
2022 * elf32-arm.c Define elf32_arm_link_hash_table.
2023 (insert_thumb_branch): New routine.
2024 (find_thumb_glue): New routine.
2025 (find_arm_glue): New routine.
2026 (record_arm_to_thumb_glue): New routine.
2027 (record_thumb_to_arm_glue): New routine.
2028 (elf32_arm_link_hash_table_create): New routine.
2029 (elf32_arm_get_bfd_for_interworking): New routine.
2030 (elf32_arm_allocate_interworking_sections) New routine.
2031 (elf32_arm_process_before_allocation) New routine.
2032 (elf32_thumb_to_arm_stub): New routine.
2033 (elf32_arm_to_thumb_stub): New routine.
2034 (elf32_print_private_bfd_data): Fix typo.
2035 (elf32_arm_final_link_relocate): Add argument sym_sec.
2036 Check for branches to thumb symbols in case R_ARM_PC24.
2037 Check for branches to arm symbols in case R_ARM_THM_PC22.
2038 (elf32_arm_relocate_section): Pass symbol section to
2039 elf32_arm_final_link_relocate.
2040
2041Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
2042
2043 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
2044 entries unless the symbol is defined in the executable; in
2045 particular, undefined weak symbols get a PLT entry.
2046
2047Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
2048
2049 * libaout.h: Remove nested comment to avoid warning.
2050
2051Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
2052
2053 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
2054 R_ARM_PC24 relocation.
2055
2056Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
2057
2058 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
2059 argument is_local. Add argument sym_flags. Check sym_flags
2060 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
2061 (elf32_arm_relocate_section): Don't pass local sym and pass
2062 sym_flags to elf32_arm_final_link_relocate.
2063
2064Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
2065
2066 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
2067 to not count too few relocs for dynamicly linked executables.
2068
2069Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
2070
2071 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
2072 symbols without a dynamic index dynamic. Consider all weak
2073 symbols dynamic.
2074 (elf64_alpha_strip_section_from_output): Don't assume 1-1
2075 correspondance between input and output sections.
2076
2077Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2078
2079 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
2080 that use a .got.plt section start the got offset at zero.
2081
2082Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
2083
2084 * ieee.c (ieee_write_processor): Correct the processor ID written
2085 out for bfd_arch_m68k, accommodating change of March 25.
2086
2087Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
2088
2089 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
2090 R_ARM_THM_RPC22 relocations.
2091
2092Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
2093
2094 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
2095 are always dynamic.
2096 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
2097 .got relocs in -Bsymbolic shared objects.
2098
2099Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
2100
2101 * elf32-arm.c: Add private flags to ELF header.
2102 (elf32_arm_print_private_bfd_data): New Function.
2103 (elf32_arm_set_private_flags): New Function.
2104 (elf32_arm_copy_private_flags): New Function.
2105 (elf32_arm_merge_private_bfd_data): New Function.
2106
2107Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
2108
2109 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
2110 a local symbol.
2111 (elf32_sparc_relocate_section): Likewise.
2112
2113Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
2114
2115 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
2116 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
2117 (ppc_elf_relocate_section): Pull sgot and splt search to the start
2118 of the function. Recognize no .plt as static linking.
2119
21201998-08-01 Ulrich Drepper <drepper@cygnus.com>
2121
2122 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
2123 ".liblist" string through gettext.
2124
2125Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
2126
2127 * Makefile.am: Add support for elf32-arm.lo.
2128 * Makefile.in: Rebuild.
2129 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
2130 (thumb-*-elf): Define targ_defvec and targ_selvecs.
2131 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
2132 * configure: Regenerate.
2133 * elf.c: (prep_headers): Support arch_type of EM_ARM.
2134 * targets.c: Support new targets bfd_elf32_bigarm_vec and
2135 bfd_target bfd_elf32_littlearm_vec.
2136 * elf32-arm.c: New file.
2137
2138Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
2139
2140 * libaout.h (M_SPARCLITE_LE): New machine.
2141 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
2142 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
2143 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
2144 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
2145 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
2146 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
2147 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2148 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
2149 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
2150 be BFD_RELOC_SPARC_REV32.
2151 * reloc.c: Ditto.
2152 * config.bfd (sparc86x-*-aout): New
2153
2154Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
2155
2156 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
2157 actually mapping the output sections.
2158
2159Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
2160
2161
2162 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
2163 (mn10300_elf_reloc_map): Similarly.
2164 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
2165
2166Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
2167
2168 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
2169 Irix 6.
2170 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
2171 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
2172 elf_mips_reloc_type defined in elf/mips.h.
2173
21741998-07-24 Ulrich Drepper <drepper@cygnus.com>
2175
2176 * elf64-mips.c: Remove reloc_type definition completely. It's now
2177 in elf/mips.h.
2178
2179Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
2180
2181 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
2182 as they are defined in elf/mips.h now.
2183
2184Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
2185
2186
2187 * Re-add lost change:
2188 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
2189 "movm_stack_size".
2190 (mn10300_elf_relax_section): Include stack space for register saves
2191 in the imm8 field of a "call" instruction.
2192 (compute_function_info): Determine how much stack is allocated by
2193 the movm instruction. Fix typo.
2194 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
2195
2196Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
2197
2198 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
2199 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
2200
22011998-07-22 Ulrich Drepper <drepper@cygnus.com>
2202
2203 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
2204
2205Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
2206
2207 * elf32-hppa.h: Let ELF header define the enum containing the
2208 external reloc numbers.
2209 * elf32-i386.h: Likewise.
2210
22111998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
2212
2213 * elf-m10300.c: Let ELF header now define the macros to get the enum.
2214 * elf32-mips.c: Likewise.
2215 * elf32-ppc.c: Likewise.
2216
2217Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
2218
2219 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
2220 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
2221 prblems.
2222 * bfd-in.h: Regenerate.
2223 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
2224 parameter to 'unsigned int' to avoid K&R compatability problems.
2225
2226Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
2227
2228 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
2229 functionname_ptr to be const. Change line_ptr to be unsigned.
2230
2231 * coffcode.h (coff_link_output_has_begun): Simplify handling when
2232 macro is not defined. Change second parameter from bfd_link_info
2233 to coff_final_link_info. Add prototype.
2234 (coff_final_link_postscript): Simplify handling when macro is not
2235 defined. Add prototype.
2236
22371998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
2238
2239 * elf-mn10300.c: Before include system specific ELF header define
2240 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
2241 * elf32-mips.c: Likewise.
2242 * elf32-ppc.c: Likewise.
2243
2244Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
2245
2246 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
2247 temporary patch over to elf64-mips.c as well.
2248
22491998-07-21 Ulrich Drepper <drepper@cygnus.com>
2250
2251 * elf32-mips.c (reloc_type): Temporarily disable definition of
2252 standard relocation since they are now defined in elf/mips.h.
2253
2254Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
2255
2256 * elf-m10200.c (mn10200_elf_final_link_relocate):
2257 Modify range test for case R_MN10200_8.
2258
2259 * elf-m10300.c (mn10300_elf_final_link_relocate):
2260 Modify range test for case R_MN10300_8.
2261
2262Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
2263
2264 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
2265 * elf32-i386.c (elf_backend_got_header_size): Define.
2266 (elf_backend_plt_header_size): Define.
2267 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
2268 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
2269 * elfxx-target.h: Provide a default of zero.
2270 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
2271 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
2272
2273 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
2274 entry from an executable, even if the plt refcount goes to 0.
2275
2276Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2277
2278 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
2279 directory name at the line number.
2280
2281 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
2282 with an unspecified type.
2283
2284Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
2285
2286 * sunos.c: Add undef of valid to avoid problem on SunOS.
2287
2288Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
2289
2290 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
2291
2292Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2293
2294 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
2295 R_68K_PCxx and R_68K_xx relocations. Make sure that
2296 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
2297 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
2298 R_68K_xx relocations.
2299 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
2300 that has no plt entry.
2301 (elf_m68k_relocate_section): Ignore the plt offset in a static
2302 link.
2303 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
2304 an ignored symbol.
2305 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
2306 a static link.
2307
2308 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
2309 types.
2310 (howto_table, reloc_map): Add entries for them.
2311 (elf_m68k_check_relocs): Handle them. Implement reference
2312 counting for got and plt entries.
2313 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
2314 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
2315 symbols.
2316 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
2317 (elf_m68k_relocate_section): Handle the new reloc types.
2318 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
2319 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
2320 * elflink.h (elf_link_add_object_symbols): When creating an
2321 indirect reference for symbol versioning also copy the plt
2322 offset.
2323 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
2324 flag also reset the plt offset.
2325 (elf_link_assign_sym_version): Likewise.
2326 (elf_gc_common_finalize_got_offsets): Increment the got offset by
2327 the size of the entry in bytes.
2328 (elf_gc_allocate_got_offsets): Likewise.
2329
2330Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
2331
2332 * elflink.h (elf_gc_sections): Return true rather than falling off
2333 the bottom.
2334
2335 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
2336 xmalloc.
2337
2338Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
2339
2340 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
2341 comment describing when it should be enabled.
2342 Changed definition of USER_LABEL_PREFIX to "", to fall into line
2343 with GCC sources.
2344
2345Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
2346
2347 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
2348 information ATN records.
2349
2350Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
2351
2352 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
2353 section for an absolute symbol in a fully linked file. Based on
2354 patch from Christian Holland <CHolland@de.lucent.com>.
2355
2356Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
2357
2358 * coff-m88k.c (m88k_special_reloc): Don't lose the information
2359 that a symbol is undefined.
2360
2361Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
2362
2363 * som.c (som_bfd_gc_sections): Define.
2364
2365Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
2366
2367 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
2368 overflows in ARM_26D patches, since they have already been
2369 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
2370
2371Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
2372
2373 * coffcode.h (coff_write_object_contents): If we have any long
2374 section names, call coff_write_symbols even if there are no
2375 symbols.
2376
2377Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
2378
2379 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
2380 PT_LOAD segment, rather than only setting it once for the entire
2381 file.
2382
2383 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
2384 rather than ignoring every phdr with a p_paddr of 0, ignore all
2385 the phdrs if they all have a p_paddr of 0.
2386
2387 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
2388 section was discarded from the link.
2389
2390Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2391
2392 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
2393
2394Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2395
2396 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
2397 floating point operations.
2398
2399Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
2400
2401 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
2402 function symbols.
2403
2404Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
2405
2406 Merge of vax/vms (read-only) support
2407 * configure.com: Support Vax target.
2408 * makefile.vms: Support Vax target.
2409 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
2410 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
2411 support.
2412 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
2413 support.
2414 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
2415 support.
2416 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
2417 support.
2418 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
2419 support.
2420 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
2421 * targets.c (bfd_target_ovax_flavour): New flavour.
2422 (vms_alpha_vec): Renamed from evax_alpha_vec.
2423 (vms_vax_vec): New.
2424 (target_vector): Update accordingly.
2425 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
2426 evax_alpha_vec.
2427 (vax*-*-*vms*): New target.
2428 * Makefile.am: Update for renamed files. Rebuild dependencies.
2429 * bfd-in2.h: Rebuild.
2430 * configure.in, Makefile.in, aclocal.m4: Rebuild.
2431
2432Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
2433
2434 Based on patch from Matt Semersky <matts@scd.hp.com>:
2435 * linker.c (_bfd_generic_final_link): Force a trailing NULL
2436 pointer on abfd->outsymbols.
2437 (generic_add_output_symbol): Handle NULL sym parameter.
2438
2439Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
2440
2441 * elf.c (copy_private_bfd_data): Add support for changing VMA or
2442 LMA of sections.
2443
2444Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
2445
2446 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
2447 when handling 32 bit immediate relocs.
2448 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
2449
2450Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
2451
2452 * section.c (STD_SECTION): Account for recently added gc_mark
2453 field in struct asection.
2454
2455 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
2456 (bfd_elf32_bfd_merge_private_bfd_data): Define.
2457
2458Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
2459
2460 ELF Section-level Garbage Collection:
2461 * bfd.c (bfd_gc_sections): New.
2462 * aout-adobe.c: Hook to default implementation.
2463 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
2464 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
2465 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
2466 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
2467 * tekhex.c, versados.c: Likewise.
2468 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
2469 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
2470
2471 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
2472 (bfd_generic_gc_sections): New.
2473 * section.c (SEC_KEEP): New.
2474 (asection): Add gc_mark member.
2475
2476 * elfcode.h (elf_gc*): New name remappings.
2477 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
2478 sections to be excluded.
2479 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
2480 (elf_gc_propogate_vtable_entries_used): New.
2481 (elf_gc_smash_unused_vtentry_relocs): New.
2482 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
2483 (elf_gc_common_finalize_got_offsets): New.
2484 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
2485 * elfxx-target.h: Add and default gc hooks.
2486
2487 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
2488 for unions.
2489 (struct elf_obj_tdata): Likewise for local_got_offsets.
2490 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
2491 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
2492 * elf64-sparc.c, elflink.h: Likewise.
2493
2494 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
2495 (ELF_LINK_HASH_MARK): Define.
2496 (struct elf_backend_data): Add GC hooks.
2497 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
2498
2499 * elf-m10300.c (mn10300_elf_check_relocs): New.
2500 (mn10300_elf_gc_mark_hook): New.
2501 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
2502 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
2503 (mn10300_elf_final_link_relocate): Likewise.
2504 (mn10300_elf_relocate_section): Likewise.
2505 (elf_backend_can_gc_sections): Define.
2506 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
2507 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
2508 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
2509 (mips_info_to_howto_rel): Likewise.
2510 (mips_elf_relocate_section): Likewise.
2511 (mips_elf_check_relocs): Likewise.
2512 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
2513 (elf_backend_can_gc_sections): Define.
2514 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
2515 (ppc_elf_howto_raw): Handle them.
2516 (ppc_elf_reloc_type_lookup): Likewise.
2517 (ppc_elf_relocate_section): Likewise.
2518 (ppc_elf_check_relocs): Reference count .got and .plt entires.
2519 Handle new vtable relocs.
2520 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
2521 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
2522 (elf_backend_can_gc_sections): Define.
2523
2524Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
2525
2526 * archures.c (bfd_mach_mn10300): Define.
2527 * elf-m10300.c: Include elf/mn10300.h
2528 (elf_mn10300_mach): New function.
2529 (_bfd_mn10300_elf_final_write_processing): Likewise.
2530 (_bfd_mn10300_elf_object_p): Likewise.
2531 (elf_backendfinal_write_processing): Define.
2532 (elf_backend_object_p): Likewise.
2533
2534Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
2535
2536 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
2537 relocation.
2538
2539Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
2540
2541 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
2542 link_next field, not the next field.
2543
2544Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
2545
2546 * elf.c (map_sections_to_segments): Check the section address
2547 against the phdr size both with and without a modulo of
2548 maxpagesize.
2549
2550Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
2551
2552 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
2553 linker created empty input section if the output section has the
2554 same name.
2555
2556 * elflink.h (elf_link_output_extsym): Print an error message if
2557 _bfd_elf_section_from_bfd_section fails.
2558
2559 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
2560 failure.
2561
2562Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
2563
2564 * elf.c (copy_private_bfd_data): Improve handling of Solaris
2565 native linker output. Avoid putting an empty section in more than
2566 one segment.
2567
2568Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
2569
2570 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
2571 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
2572
2573Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
2574
2575 * elf.c (swap_out_syms): New arg relocatable_p.
2576 Don't add section VMA to symbols for relocatable output.
2577 (_bfd_elf_compute_section_file_positions): Update call to
2578 swap_out_syms.
2579
2580Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
2581
2582 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
2583 against 'addend' be signed rather than unsigned.
2584
2585Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
2586
2587 * elf32-m32r.c: Add prototyps for static functions.
2588
2589 * coff-arm.c: Add prototypes for static functions.
2590
2591Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
2592
2593 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
2594 LMA is used to order sections in a segment.
2595
2596 * elf32-v850.c: Add prototypes for static functions.
2597 Change type of addend parameter to bfd_vma in various functions.
2598
2599Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
2600
2601 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
2602 complain_overflow_signed instead of complain_overflow_bitfield.
2603
2604Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2605
2606 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
2607 when comparing against 0.
2608
2609Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
2610
2611 * Makefile.am (config.status): New target.
2612 * Makefile.in: Rebuild.
2613
2614Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
2615
2616 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
2617 error if previous object endianness doesn't match current object.
2618
2619Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
2620
2621 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
2622 _bfd_elf_print_private)bfd_data ().
2623
2624Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
2625
2626 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
2627 and size_change_ok.
2628 (elf_link_add_object_symbols): Set type_change_ok and
2629 size_change_ok before calling elf_merge_symbol.
2630
2631 * elf32-mips.c (mips_elf_relocate_section): If we issue an
2632 undefined symbol error, don't also issue an overflow error.
2633
2634Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
2635
2636 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
2637 R_PPC_LOCAL24PC relocation should be local; if not, print an error
2638 message instead of crashing.
2639
2640Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
2641
2642 * archures.c (bfd_mach_cpu32): Define.
2643 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
2644 bfd_mach_cpu32.
2645 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
2646 * ieee.c: Include <ctype.h>.
2647 (ieee_object_p): Parse out process ID string to make it more
2648 likely to be acceptable for bfd_scan_arch.
2649 * bfd-in2.h: Rebuild.
2650
2651Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
2652
2653 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
2654 _bfd_elf_print_private_bfd_data() so that the program header will
2655 be displayed.
2656
2657Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
2658
2659 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
2660 0x68. Reindent. Add some comments.
2661
2662Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
2663
2664 * elf.c (copy_private_bfd_data): Adjust physical address of
2665 segment in output BFD to contain LMAs of its sections.
2666
2667Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
2668
2669 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
2670 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
2671 endian data 32 bit relocations.
2672 (elf32_sparc_merge_private_bfd_data): Check if linking little
2673 endian objects with big endian objects.
2674 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
2675 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
2676 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
2677 * reloc.c: Same.
2678 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
2679 * archures.c (bfd_mach_sparc_sparclite_le): New.
2680 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
2681
2682Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
2683
2684 * peicode.h (add_data_entry): Fix precedence of operators in if ()
2685 statement.
2686
2687Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
2688
2689 * bfd-in.h: Move over patch to bfd-in2.h.
2690
2691 * reloc.c (bfd_check_overflow): Add casts before shifts which may
2692 not fit in 32 bits.
2693 (_bfd_relocate_contents): Likewise.
2694
2695Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
2696
2697 * peicode.h (add_data_entry): If the section has no private data
2698 then do not create a Data Dictionary entry for it.
2699
2700Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
2701
2702 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
2703 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
2704 elf64_alpha_size_got_sections): Rewrite, handling multiple got
2705 subsections during relaxation more correctly.
2706
2707Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
2708
2709 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
2710 Add extra argument to bfd_arm_process_before_allocation ().
2711 * bfd-in.h: Reflect changes made in bfd-in2.h.
2712 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
2713 coff class of a BFD symbol.
2714 * coff-arm.c: Add support for interworking between Thumb code and
2715 non-interworking aware ARM code.
2716
2717Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
2718
2719 * po/Make-in (install-info): New target.
2720
2721Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
2722
2723 * filemode.c: Remove; not used.
2724
2725 If sysdep.h includes a header file, don't include it again:
2726 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
2727 <errno.h>.
2728 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
2729 <sysdep.h>.
2730 * archive.c: Don't include <string.h> or <errno.h>.
2731 * evax-alpha.c; Don't include <stdio.h>.
2732 * evax-egsd.c: Likewise.
2733 * evax-etir.c: Likewise.
2734 * evax-misc.c: Likewise.
2735 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
2736 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
2737 <errno.h>.
2738 * hpux-core.c: Likewise.
2739 * netbsd-core.c: Likewise.
2740 * som.c: Likewise.
2741 * libbfd.c: Don't include <sys/types.h>.
2742 * nlmcode.h: Don't include <string.h>.
2743 * osf-core.c: Don't include <string.h> or <stdio.h>.
2744 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
2745 <errno.h>, or <unistd.h>.
2746 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
2747
2748Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
2749
2750 * configure.com: If the version number can not be found in
2751 configure.in, set it to "unknown" rather than "2.8.1".
2752
2753Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
2754
2755 * elf32-mips.c (elf_mips_mach): New.
2756 (_bfd_mips_elf_object_p): Use elf_mips_mach.
2757 (_bfd_mips_elf_final_write_processing): Use the names
2758 of machines, rather than the numbers. Set both the ARCH
2759 and MACH in e_flags. Handle a few more specific machines.
2760 (_bfd_mips_elf_merge_private_bfd_data): Merge both
2761 EF_MIPS_ARCH and EF_MIPS_MACH.
2762
2763Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
2764
2765 * syms.c (bfd_is_local_label): Revert last change.
2766 * srec.c (srec_write_symbols): Discard debugging symbols.
2767
2768Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
2769
2770 * som.c: Include <ctype.h>.
2771 * som.h: Don't include sysdep.h.
2772
2773Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
2774
2775 * libbfd.h: Rebuilt.
2776 * libbfd-in.h: Removed gettext includes and defines.
2777 * sysdep.h: Moved gettext-related includes and defines here.
2778
2779Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
2780
2781 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
2782 an ad-hoc test. Kill bogus #if 0 code.
2783 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
2784
2785Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
2786
2787 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
2788 when generating a normal executable for a symbol defined in a
2789 regular file. When copying a reloc into the output file, adjust
2790 the addend for a PC relative reloc against a global symbol.
2791
2792Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
2793
2794 * libbfd.h: Rebuilt.
2795 * libbfd-in.h (_): Define as dgettext.
2796
2797Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
2798
2799 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
2800 not signed.
2801 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
2802 when declaring parameter types.
2803 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
2804
2805Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
2806
2807 * config.bfd: If we include any ELF targets in targ_defvec and/or
2808 targ_selvecs, then add the generic ELF targets to targ_selvecs.
2809 * elf32-gen.c (dummy): New static const variable.
2810 (elf_generic_info_to_howto): New static function.
2811 (elf_generic_info_to_howto_rel): New static function.
2812 (elf_info_to_howto): Define as elf_generic_info_to_howto.
2813 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
2814 * elf64-gen.c: Same changes as elf32-gen.c.
2815 * elfcode.h (elf_object_p): For the generic target, ignore a
2816 failure of bfd_default_set_arch_mach. Fix indentation a bit.
2817
2818Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
2819
2820 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
2821 * configure: Rebuild.
2822
2823Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
2824
2825 * config.bfd: Update OSR5/Unixware patterns.
2826
2827Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
2828
2829 * elf.c (assign_file_positions_for_segments): Allow for holes
2830 between sections added by a link script.
2831
2832Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
2833
2834 * configure.in: Change version number to 2.9.4
2835 * configure: Rebuild.
2836
2837 Based on patch from H.J. Lu <hjl@gnu.org>:
2838 * elf.c (bfd_elf_get_bfd_needed_list): New function.
2839 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
2840 * bfd-in2.h: Rebuild.
2841
2842Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
2843
2844 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
2845 Change all users.
2846
2847Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
2848
2849 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
2850 (elf64_alpha_relax_section): Fill them in.
2851 (elf64_alpha_relax_opt_call): Implement more than a stub.
2852 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
2853 alignment on .scommon.
2854 (elf64_alpha_merge_gots): Merge use counts as well.
2855
2856Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
2857
2858 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
2859 for calculating a local symbol's address.
2860 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
2861 Set the .got's cooked size as well as the raw size.
2862
2863Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
2864
2865 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
2866 internationalisation of printed information.
2867
2868 * coff-arm.c (coff_arm_print_private_bfd_data): Add
2869 internationalisation of printed information.
2870
2871Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
2872
2873 * syms.c (struct indexentry): Change directory_name, file_name,
2874 and function_name fields to char *.
2875 (struct stab_find_info): Change cached_file_name field to char *.
2876
2877Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
2878
2879 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
2880
2881Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
2882
2883 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
2884
2885Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
2886
2887 * Makefile.am (install-data-local): Make $(includedir).
2888 * Makefile.in: Rebuild.
2889
2890Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
2891
2892 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
2893
2894Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
2895
2896 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
2897 * Makefile.in: Rebuild.
2898
2899 * bfd-in2.h: Rebuild for Nick's changes.
2900
2901Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
2902
2903 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
2904 change wrt length == max_namelen.
2905
2906Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
2907
2908 * Many files: Added gettext invocations around user-visible
2909 strings.
2910 * libbfd-in.h: Added gettext includes and defines.
2911 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
2912 HAVE_LC_MESSAGES): Define.
2913 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
2914 po/Makefile.
2915 * Makefile.am (SUBDIRS): Added po.
2916 (POTFILES): New macro.
2917 (po/POTFILES.in): New target.
2918 (SOURCE_HFILES): New macro.
2919 (HFILES): Use it.
2920 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
2921
2922Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2923
2924 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
2925 NT_PRSTATUS note section encountered, it contains the status of
2926 the currently executing thread when the core file was written.
2927
2928Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
2929
2930 * libcoff.h: Add extra parameter to
2931 bfd_coff_link_output_has_begun overrideable function.
2932 * cofflink.c: Pass extra parameter to
2933 bfd_coff_link_output_has_begun function.
2934 * bfd-in.h: Add prototypes for exported ARM interworking
2935 functions.
2936 * peicode.h: ARM specific code reorganised to conform to BFD
2937 coding conventions.
2938 * coffcode.h: ARM specific code reorganised to conform to BFD
2939 coding conventions.
2940 * coff-arm.c: Code reorganised to conform to the BFD coding
2941 conventions. Global variables have been moved into an ARM
2942 specific hash table structure and a new function:
2943 bfd_arm_get_bfd_for_interworking() has been created which is
2944 called from the linker scripts.
2945
2946Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
2947
2948 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
2949
2950 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
2951 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
2952 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
2953 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
2954
2955Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
2956
2957 * config.bfd: Added sparc86x support.
2958
2959Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
2960
2961 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
2962 an out of range pc-relative jump/call to an undefined weak symbol.
2963
2964Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
2965
2966 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
2967 comparisons signed.
2968
2969Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
2970
2971 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
2972 an error other than bfd_error_system_call, set the error to
2973 bfd_error_wrong_format.
2974
2975 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
2976 bfd_elf32_powerpcle_vec.
2977
2978 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
2979 program segments are zero, don't set p_paddr_valid.
2980
2981Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
2982
2983 * elf64-alpha.c: Initial implementation of relaxation --
2984 (struct alpha_elf_link_hash_entry): Add use_count member.
2985 (elf64_alpha_check_relocs): Initialize and increment it.
2986 (elf64_alpha_can_merge_gots): Check it when considering merging.
2987 (elf64_alpha_merge_gots): Drop entries with zero use.
2988 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2989 (elf64_alpha_always_size_sections): Split out got sizing ...
2990 (elf64_alpha_size_got_sections): ... here. New function.
2991 (elf64_alpha_relax_find_reloc_ofs): New function.
2992 (elf64_alpha_relax_with_lituse): Likewise.
2993 (elf64_alpha_relax_without_lituse): Likewise.
2994 (elf64_alpha_relax_opt_call): Likewise.
2995 (elf64_alpha_relax_section): Likewise.
2996 (elf64_alpha_add_symbol_hook): Likewise.
2997 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
2998 (elf64_alpha_relocate_section): Likewise.
2999 (bfd_elf64_bfd_relax_section): Define.
3000 (elf_backend_add_symbol_hook): Likewise.
3001
3002Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
3003
3004 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
3005 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
3006 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
3007
3008Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
3009
3010 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
3011 * configure: Rebuild.
3012
3013Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
3014
3015 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
3016 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
3017 * configure.in: Define and substitute WIN32LDFLAGS and
3018 WIN32LIBADD.
3019 * aclocal.m4: Rebuild with new libtool.
3020 * configure, Makefile.in: Rebuild.
3021
3022Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
3023
3024 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
3025 before any other symbols in the same section.
3026
3027Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
3028
3029 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
3030 systems.
3031
3032Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
3033
3034 * dwarf2.c (comp_unit): Move it earlier in the source. Add
3035 addr_size.
3036 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
3037 Use addr_size for address size, rather than sizeof(bfd_vma).
3038 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
3039 Fix call to read_address.
3040 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
3041 Scrap other unneeded arguments. Fix call to read_address.
3042 (scan_unit_for_functions): Fix call to read_attribute.
3043 (parse_comp_unit): We now handle more values for addr_size.
3044 Set addr_size in unit. Fix call to read_attribute and
3045 decode_line_info.
3046
3047Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
3048
3049 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
3050
3051Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
3052
3053 * archures.c (bfd_default_scan): Add m68k cases back to default
3054 switch, reverting patch of March 25, since IEEE support depends
3055 upon them.
3056
3057Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
3058
3059 * Makefile.am (diststuff): New target.
3060 * Makefile.in: Rebuild.
3061
3062Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
3063
3064 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
3065 som_offset when we have an extended name table.
3066
3067Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
3068
3069 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
3070 trying to copy it.
3071 * Makefile.in: Rebuild.
3072
3073Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3074
3075 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
3076 symbols when creating a shared library.
3077 (elf_m68k_adjust_dynindx): New function, used by above code.
3078 (elf_m68k_finish_dynamic_sections): Initialize the section
3079 symbols.
3080 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
3081
3082Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
3083
3084 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
3085 value 11.
3086
3087Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3088
3089 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
3090 assertion.
3091
3092Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
3093
3094 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
3095 absolute symbols.
3096
3097Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
3098
3099 * configure.in: Set version to 2.9.1.
3100 * configure: Rebuild.
3101
3102 * Branched binutils 2.9.
3103
3104Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
3105
3106 * syms.c (ENABLE_CACHING): Define.
3107 (struct indexentry): Define.
3108 (struct stab_cache): Remove.
3109 (cmpindexentry): New static function.
3110 (struct stab_find_info): Add new fields: indextable,
3111 indextablesize, cached_indexentry, cached_offset, cached_stab, and
3112 cached_file_name. Remove fields: file_cache, function_cache, and
3113 line_cache.
3114 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
3115 index table and search it.
3116
3117Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
3118
3119 * elf.c (_bfd_elf_copy_private_section_data): Call
3120 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
3121
3122 * cpu-mips.c: Remove trailing comma at end of enumeration list.
3123
3124Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
3125
3126 * coff-arm.c: Define all globally visible variables and functions
3127 only when COFF_WITH_PE is not defined.
3128 * configure.in (armpe_little_vec, armpe_big_vec): Add
3129 coff-arm.lo.
3130 * configure: Rebuild.
3131
3132Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
3133
3134 Fix some gcc -Wall warnings:
3135 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
3136 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
3137 * archures.c (bfd_default_scan): Likewise.
3138 * bfd.c (bfd_scan_vma): Likewise.
3139 * binary.c (mangle_name): Likewise
3140 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
3141 * coff-sh.c (sh_relocate_section): Likewise.
3142 * coff-stgo32.c (create_go32_stub): Likewise.
3143 * coffcode.h (coff_slurp_line_table): Likewise.
3144 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
3145 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
3146 (assign_file_positions_for_segments): Likewise.
3147 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3148 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
3149 * oasys.c (oasys_write_sections): Likewise.
3150 * ppcboot.c (ppcboot_object_p): Likewise.
3151 (mangle_name): Likewise.
3152 * riscix.c (riscix_fix_pcrel_26): Likewise.
3153 * srec.c (srec_scan): Likewise.
3154 * stabs.c (_bfd_write_section_stabs): Likewise.
3155 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3156 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
3157 switch. Declare parameters for function pointers.
3158 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
3159 warning.
3160 * elf.c (elf_sort_sections): Likewise.
3161 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
3162 Add default cases to switches.
3163 (coff_arm_relocate_section): Remove unused local variables.
3164 Always set rstat.
3165 (coff_arm_bfd_set_private_flags): Change flag variable to type
3166 flagword.
3167 * coff-mips.c (mips_relocate_section): Initialize use_lo.
3168 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
3169 (dump_toc): Change cat to const, and initialize it.
3170 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
3171 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
3172 (sh_elf_relocate_section): Initialize r_symndx.
3173 * coffcode.h (coff_compute_section_file_positions): Only declare
3174 old_sofar if ALIGN_SECTIONS_IN_FILE.
3175 (coff_write_object_contents): Initialize csym.
3176 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
3177 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
3178 switch.
3179 * dwarf2.c: Include libiberty.h.
3180 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
3181 (decode_line_info): Remove unused local variables.
3182 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
3183 (m32r_elf_relocate_section): Likewise.
3184 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
3185 (v850_elf_reloc): Likewise.
3186 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
3187 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
3188 * elf.c (assign_file_positions_for_segments): Always set adjust.
3189 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
3190 parenthesize expression.
3191 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
3192 (m32r_elf_object_p): Return a value.
3193 (m32r_elf_print_private_bfd_data): Change fprintf format string.
3194 * elf32-mips.c (mips_elf_final_link): Initialize last.
3195 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
3196 * elf32-v850.c (v850_elf_object_p): Return a value.
3197 (v850_elf_print_private_bfd_data): Change fprintf format string.
3198 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
3199 unsigned long.
3200 * elflink.h (elf_link_add_object_symbols): Change vernum to
3201 unsigned int, and initialize it. Change fprintf format string.
3202 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
3203 when setting or comparing to soname_indx.
3204 (elf_create_pointer_linker_section): Change num_symbols to
3205 unsigned int.
3206 * libcoff-in.h (coff_data_type): Change flags to flagword.
3207 * peicode.h (pe_print_idata): Initialize idx. Change j to
3208 bfd_size_type. Initialize hint_member. Remove useless test to
3209 time_stamp.
3210 (pe_print_edata): Change num_functions and num_names in struct
3211 EDT_type to unsigned long. Remove cast. Change fprintf format
3212 string.
3213 * ppcboot.c (ppcboot_object_p): Change i to size_t.
3214 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
3215 int.
3216 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
3217 int *. Update uses. Change j to long.
3218 * bfd-in2.h, libcoff.h: Rebuild.
3219
3220Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
3221
3222 * elf32-v850.c Remove definition of USE_REL.
3223 (v850_elf_info_to_howto_rela): New function.
3224 (v850_elf_perform_relocation): Renamed from
3225 v850_elf_store_addend_in_insn. Removed replace argument.
3226 (v850_elf_reloc): store the relocation in the addend field instead
3227 of the insn.
3228 (v850_elf_final_link_relocate): Now calls
3229 v850_elf_perform_relocation.
3230 (v850_elf_relocate_section): Remove code to generate REL
3231 relocations.
3232
3233Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
3234
3235 * coffcode.h (coff_new_section_hook): Set the type and storage
3236 class in the native symbol information allocated for a new section
3237 symbol.
3238
3239Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
3240
3241 * peicode.h: Chain together calls to
3242 coff_bfd_copy_private_bfd_data and
3243 coff_bfd_print_private_bfd_data.
3244
3245 * coff-arm.c: Add prototypes for
3246 coff_arm_bfd_print_private_bfd_data and
3247 coff_arm_bfd_copy_private_bfd_data.
3248
3249Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
3250
3251 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
3252 build.
3253
3254 * peicode.h: Call arm-coff private data functions after handling
3255 pe private data.
3256
3257 * coff-arm.c: Turn statics into globals so that they can be shared
3258 both pe and pei backends.
3259
3260Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
3261
3262 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
3263 plain numbers.
3264 (sunos_write_object_contents): Likewise.
3265 * aoutx.h (NAME(aout,machine_type)): Likewise.
3266 * coffcode.h (coff_set_arch_mach_hook): Likewise.
3267
3268Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3269
3270 * archures.c (bfd_mach_m68*): Add definitions for various m68k
3271 variants.
3272 (bfd_default_scan): Remove m68k special cases.
3273 * bfd-in2.h: Rebuild.
3274 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
3275 than plain numbers.
3276 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
3277 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
3278 m68k:68000.
3279 (bfd_m68k_arch): Set mach field to zero to signal no explicit
3280 selection, change printable_name to just "m68k" and make that the
3281 default instead of m68k:68020.
3282
3283 * aout-tic30.c (NAME): Define this to avoid multiple definitions
3284 from aoutx.h.
3285 (MY_get_section_contents): Define as aout_32_get_section_contents
3286 rather than NAME(aout,get_section_contents).
3287
3288 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
3289
3290 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
3291 and call bfd_default_set_arch_mach to do the real work.
3292
3293Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
3294
3295 * bout.c (BALX): Include return register g14 as part of the insn.
3296 (BALX_MASK): New.
3297 (calljx_callback): Use it.
3298
3299Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
3300
3301 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
3302 * libbfd.h: Rebuild.
3303
3304 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
3305 byte_count to unsigned int.
3306 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
3307 unused local variables.
3308
3309 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
3310 variables er and er1.
3311
3312 * cpu-v850.c: Include <ctype.h>.
3313 (scan): Case isdigit argument to unsigned char.
3314
3315 From Yan Meroth <YAN.MEROTH@st.com>:
3316 * ihex.c (ihex_scan): Add extbase variable so that getting an
3317 extended linear address record does not ignore any previous
3318 extended address.
3319 (ihex_write_object_contents): When writing out an extended linear
3320 address record, zero out any previous extended address.
3321
3322Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
3323
3324 * ieee.c (do_one): Check section before dereferencing it.
3325 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
3326 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
3327
3328Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
3329
3330 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
3331
3332Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
3333
3334 * coff-arm.c: Add interworking functions to pe backends.
3335
3336Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
3337
3338 * configure.in: Use AM_DISABLE_SHARED.
3339 * aclocal.m4, configure: Rebuild with libtool 1.2.
3340
3341Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
3342
3343 * coff-arm.c (coff_arm_relocate_section): Better error messages
3344 when interowrking conflucts occur. Courtesy of Jonathan Walton
3345 and Tony Thompson.
3346 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
3347 relocations. Patch courtesy of Jonathan Walton and Tony
3348 Thompson.
3349
3350Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
3351
3352 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
3353 part of Feb 22 change controling when to override the existing
3354 symbol with the .plt entry.
3355
3356Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
3357
3358 * config.bfd (targ_cpu): Add thumb-pe target.
3359
3360 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
3361 functions in PE build.
3362
3363Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
3364
3365 * config.bfd (sparclite-*-elf*): Added.
3366
3367Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
3368
3369 * configure.in: Add elf.lo to elf shell variable.
3370 * Makefile.am (BFD_LIBS): Remove elf.lo.
3371 (BFD_LIBS_CFILES): Remove elf.c.
3372 (BFD32_BACKENDS): Add elf.lo.
3373 (BFD32_BACKENDS_CFILES): Add elf.c.
3374 * configure, Makefile.in: Rebuild.
3375
33761998-02-23 15:53 Richard Henderson <rth@cygnus.com>
3377
3378 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
3379 relocation against a now-local symbol should not have a dynamic
3380 relocation.
3381
3382Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
3383
3384 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
3385 COFF filehdr flags.
3386 (pe_print_private_bfd_data): Print PE flags. From Mikey
3387 <jeffdb@netzone.com>.
3388
3389Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
3390
3391 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
3392 a plt entry when we can determine that we authoritatively define
3393 the symbol.
3394
3395Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
3396
3397 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
3398 don't actually use trad-core, but a SunOS-style core file handled
3399 by gdb directly.
3400 * hosts/sparclinux.h: Remove.
3401
3402Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
3403
3404 * peicode.h (pe_print_idata): If there is no .idata section, look
3405 for the import tables in some other section. Make the initial
3406 label line up better with the data. Print the import address
3407 table even if there is no import name table. If the import
3408 address table holds actual addresses, print them.
3409
3410Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
3411
3412 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
3413 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
3414 bfd_error_system_call.
3415
3416Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
3417
3418 * Makefile.am (AUTOMAKE_OPTIONS): Define.
3419 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
3420
3421 From H.J. Lu <hjl@gnu.org>:
3422 * Makefile.am (libbfd_la_LDFLAGS): Define.
3423 * Makefile.in: Rebuild.
3424
3425Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
3426
3427 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3428 * netbsd.h (MACHTYPE_OK): Define.
3429 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
3430 calling N_SET_MACHTYPE, rather than having a switch.
3431 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
3432 and M_ALPHA_NETBSD.
3433 * i386netbsd.c (MACHTYPE_OK): Don't define.
3434 (DEFAULT_MID): Define.
3435 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
3436 (MACHTYPE_OK): Don't define.
3437 (DEFAULT_MID): Define.
3438 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
3439 (DEFAULT_MID): Define.
3440 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
3441 (DEFAULT_MID): Define.
3442 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
3443 (DEFAULT_MID): Define.
3444
3445 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
3446 * vaxnetbsd.c: New file.
3447 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
3448 rather than netbsd_core.
3449 * targets.c (vaxnetbsd_vec): Declare.
3450 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
3451 defined, add netbsd_core_vec.
3452 * configure.in: Set COREFILE for alpha*-*-netbsd* and
3453 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
3454 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
3455 * config.bfd (alpha*-*-netbsd*): New target.
3456 * Makefile.am: Rebuild dependencies.
3457 (BFD32_BACKENDS): Add vaxnetbsd.lo.
3458 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
3459 * configure, Makefile.in: Rebuild.
3460
3461 * configure.host: Remove the old shared library build stuff. We
3462 now use libtool instead.
3463
3464Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
3465
3466 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
3467
3468Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
3469
3470 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
3471 * configure: Rebuild.
3472
3473Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
3474 * elf32-v850.c (remember_hi16s_reloc): New function.
3475 (find_remembered_hi16s_reloc): New function.
3476 (v850_elf_store_addend_in_insn): Use the above new functions to
3477 match up HI6S relocs with LO16 relocs.
3478
3479Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
3480
3481 * configure.in: Change -linux* to -linux-gnu*.
3482 * config.bfd, configure.host: Likewise.
3483 * configure: Rebuild.
3484
3485Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
3486
3487 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
3488 LO16/HI16S bug and improve comments about what is going on.
3489
3490Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
3491
3492 * configure, aclocal.m4: Rebuild with new libtool.
3493
3494Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
3495
3496 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
3497 when merging v850 code into v850e/v850ea code. Do not initialise
3498 output flags if the input is the default architecture.
6a9d5c9a 3499
252b5132
RH
3500Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
3501
3502 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
3503 get the size from bfd_arch_bits_per_address instead of directly
3504 from the isa.
3505
3506Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
3507
3508 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
3509 to wrap, just return all 1's bits instead.
3510 * libbfd.h: Regenerate.
3511
3512Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
3513
3514 * coff-i386.c (coff_pe_i386_relocate_section): New static function
3515 if COFF_WITH_PE.
3516 (coff_relocate_section): If COFF_WITH_PE, define as
3517 coff_pe_i386_relocate_section.
3518 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
3519 skip empty sections, to match coff_write_object_contents.
3520
3521 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
3522 rather than swapping out r_offset twice. From Luke Deller
3523 <luked@cse.unsw.edu.au>.
3524
3525Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
3526
3527 * configure.in: Set libtool_enable_shared rather than
3528 libtool_shared. Remove diversion hack.
3529 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
3530 with new libtool.
3531
3532Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
3533
3534 * syms.c (struct stab_cache): Define.
3535 (struct stab_find_info): Remove cached_offset, cached_stab,
3536 cached_str, and cached_stroff fields. Add file_cache,
3537 function_cache, and line_cache fields.
3538 (_bfd_stab_section_find_nearest_line): Use extensive caching to
3539 speed up searches.
3540
3541Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
3542
3543 * peicode.h (pe_print_idata): Check for import of ordinal rather
3544 than name.
3545 (pe_print_edata): If there is no .edata section, look for the
3546 export data in some other section.
3547
3548Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
3549
3550 * configure.in: Change version to 2.8.4.
3551 * configure: Regenerated.
3552
3553Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
3554
3555 Add tms320c30 support:
3556 * cpu-tic30.c: New file.
3557 * aout-tic30.c: New file.
3558 * coff-tic30.c: New file.
3559 * archures.c (bfd_arch_tic30): Define.
3560 (bfd_tic30_arch): Declare.
3561 (bfd_archures_list): Add bfd_tic30_arch.
3562 * targets.c (bfd_target_vector): Add tic30_aout_vec and
3563 tic30_coff_vec.
3564 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
3565 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
3566 (coff_set_flags): Likewise.
3567 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
3568 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
3569 * Makefile.am: Rebuild dependencies.
3570 (ALL_MACHINES): Add cpu-tic30.lo.
3571 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
3572 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
3573 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
3574 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
3575
3576Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
3577
3578 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
3579 to lag behind LO16 reloc by a couple of instructions.
3580
3581Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
3582
3583 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
3584 make to reexamine the file timestamp.
3585 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
3586
3587 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
3588 0x100000.
3589
3590Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
3591
3592 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
3593 to create .dynsbss and .rela.sbss sections.
3594 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
3595 copied from dynamic objects into .sbss.
3596 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
3597 use it. Correct typo of .rela.sdata2.
3598 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
3599 put the data, which may now be in .sbss.
3600 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
3601 (elf_backend_create_dynamic_sections): Define as
3602 ppc_elf_create_dynamic_sections.
3603
3604 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
3605 against _GLOBAL_OFFSET_TABLE_.
3606 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
3607 shared libraries which refer to local symbols. Make sure that the
3608 test for allocating space for a reloc in a shared object is the
3609 same as the test for emitting a reloc.
3610
3611Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
3612
3613 * config.bfd (i[3456]-*-mingw32*): New target.
3614 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
3615 * aclocal.m4, configure: Rebuild.
3616
3617Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
3618
3619 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
3620 have a bfd_object.
3621
3622Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
3623
3624 Sparc v9 ABI compliant PLT:
3625 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
3626 (plt_templates, sparc64_elf_build_plt_entry): Delete.
3627 (LARGE_PLT_THRESHOLD): New define.
3628 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
3629 (sparc64_elf_build_plt): New function.
3630 (sparc64_elf_plt_entry_offset): Likewise.
3631 (sparc64_elf_plt_ptr_offset): Likewise.
3632 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
3633 contain the index for convenience. Skip the initial entries
3634 in .rela.plt.
3635 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
3636 memory for the benefit of .rela.plt.
3637 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
3638 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
3639 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
3640 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
3641 Call sparc64_elf_build_plt.
3642 (elf_backend_want_got_plt): No.
3643 (elf_backend_plt_readonly): No.
3644 (elf_backend_plt_alignment): 8.
3645
3646 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
3647 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
3648 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
3649 to be called.
3650
3651Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
3652
3653 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
3654 processors.
3655 * cpu-mips.c (arch_info_struct): Add mips variants.
3656 * bfd-in2.h: Rebuilt.
3657
3658Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
3659
3660 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
3661 t2a3_b_insn.
3662
3663Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
3664
3665 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
3666 (i[3456]86sco3.2v5*coff): New target.
3667
3668Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
3669
3670 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
3671
3672Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
3673
3674 * bfd.c (bfd_get_error_handler): Add orthogonal function.
3675 * bfd-in2.h: Regenerate.
3676
3677Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
3678
3679 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
3680
3681Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
3682
3683 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
3684 adjust addend for an output common symbol (from Jimmy Blair
3685 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
3686 defined symbol to counteract adjustment made in generic relocation
3687 code.
3688
3689 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
3690
3691Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
3692
3693 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
3694 (GET_SCNDHR_NLNNO): Likewise.
3695
3696Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
3697
3698 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
3699
3700Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
3701
3702 * elf32-m32r.c: Add macros to handle NOP insertion.
3703
3704Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
3705
3706 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
3707 (xcoff_mark): Likewise.
3708 (xcoff_build_ldsyms): Mark absolute symbols.
3709
3710Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
3711
3712 * bout.c (b_out_write_object_contents): Sort symbols before output
3713 to keep {CALL,BAL}NAME symbols adjacent.
3714 (b_out_symbol_cmp): New function.
3715
3716For older changes see ChangeLog-9697
3717\f
3718Local Variables:
3719mode: change-log
3720left-margin: 8
3721fill-column: 74
3722version-control: never
3723End:
This page took 0.170999 seconds and 4 git commands to generate.