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