Commit | Line | Data |
---|---|---|
d9518e2e ILT |
1 | Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com> |
2 | ||
3 | * coff-i960.c (CALC_ADDEND): Define. | |
4 | (coff_i960_relocate_section): Add the input section VMA to the | |
5 | addend for PC relative relocs. | |
6 | ||
7 | Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com> | |
8 | ||
9 | * peicode.h (pe_print_pdata): Must test the entire entry for zero | |
10 | to correctly terminate. | |
11 | ||
010a405a ILT |
12 | Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com> |
13 | ||
dc092b6b ILT |
14 | * targets.c (enum bfd_endian): Define. |
15 | (bfd_target): Rename byteorder_big_p to byteorder, and change it | |
16 | from boolean to enum bfd_endian. Change header_byteorder_big_p | |
17 | correspondingly. | |
18 | * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros. | |
19 | (bfd_header_big_endian, bfd_header_little_endian): New macros. | |
20 | * bfd-in2.h: Rebuild. | |
21 | * All targets: Change initialization of byteorder and | |
22 | header_byteorder to use enum bfd_endian values rather than | |
23 | booleans. | |
24 | * All files: Change all references to byteorder_big_p and | |
25 | header_byteorder_big_p to use new bfd_*_endian macros. | |
26 | ||
010a405a ILT |
27 | * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not |
28 | s_vaddr. | |
29 | * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not | |
30 | vma. | |
31 | * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. | |
32 | ||
fcb43906 SC |
33 | Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com> |
34 | ||
35 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'. | |
36 | ||
0d709d31 ILT |
37 | Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com> |
38 | ||
14578105 ILT |
39 | * ieee.c: Lots of minor cleanups. Make many functions return |
40 | errors rather than calling abort. Also: | |
41 | (ieee_write_twobyte): Remove; change callers to call existing | |
42 | ieee_write_2bytes function. | |
43 | (ieee_write_expression): Don't output the section twice when | |
44 | outputting a local symbol. Don't emit an extraneous zero if there | |
45 | is only one term. | |
46 | (ieee_slurp_sections): Set the lma as well as the vma. | |
47 | (ieee_archive_p): Use bfd_alloc_grow rather than an obstack. | |
48 | ||
0d709d31 ILT |
49 | * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just |
50 | a recognized one or bfd_arch_unknown. | |
51 | (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy | |
52 | to succeed. | |
53 | (ihex_get_symtab): Likewise. | |
54 | ||
14dc2f77 ILT |
55 | Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com> |
56 | ||
57 | * aoutx.h: Include <ctype.h>. | |
58 | (struct aout_link_includes_table): Define. | |
59 | (struct aout_link_includes_totals): Define. | |
60 | (struct aout_link_includes_entry): Define. | |
61 | (aout_link_includes_lookup): Define macro. | |
62 | (struct aout_final_link_info): Add includes field. | |
63 | (aout_link_includes_newfunc): New static function. | |
64 | (NAME(aout,final_link)): Initialize includes hash table. | |
65 | (aout_link_write_symbols): Eliminate duplicate N_BINCL entries. | |
66 | ||
480ccad5 SS |
67 | Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com> |
68 | ||
69 | * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff. | |
70 | ||
3920d9c9 KK |
71 | Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com> |
72 | ||
73 | * coff-ppc.c (coff_ppc_relocate_section): removed debugging code. | |
74 | ||
207345f2 KK |
75 | Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com> |
76 | ||
77 | * peicode.h (pe_print_reloc): New function to dump the .reloc section. | |
78 | (pe_print_private_bfd_data): call pe_print_reloc. | |
79 | * coffcode.h (coff_set_alignment_hook): .reloc section alignment. | |
80 | * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed | |
81 | up some debugging as well. | |
82 | ||
273c019e ILT |
83 | Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com> |
84 | ||
85 | * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette | |
86 | <rfg@monkeys.com>. | |
87 | ||
010d9f2d ILT |
88 | Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com> |
89 | ||
90 | * elflink.h (elf_link_add_object_symbols): Set section_count to 0 | |
91 | when setting sections to NULL. | |
92 | ||
4a4a66bd ILT |
93 | Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com> |
94 | ||
95 | * xcofflink.c (struct xcoff_loader_info): Add export_defineds | |
96 | field. | |
97 | (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter. | |
98 | (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT | |
99 | for all symbols. | |
100 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
101 | * bfd-in2.h: Rebuild. | |
102 | ||
545bf026 KK |
103 | Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com> |
104 | ||
105 | * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's | |
106 | ||
1f4ae0d6 ILT |
107 | Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com> |
108 | ||
55cac920 ILT |
109 | * ihex.c (ihex_scan): Handle record types 4 and 5. |
110 | (ihex_object_p): Permit types 4 and 5. | |
111 | (ihex_set_section_contents): Remove check for out of range | |
112 | addresses. | |
113 | (ihex_write_object_contents): Generate types 4 and 5. | |
114 | ||
1f4ae0d6 ILT |
115 | * elflink.h (elf_link_output_extsym): Just ignore warning and |
116 | indirect references to symbols which don't really exist. | |
117 | ||
53d45489 KK |
118 | Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com> |
119 | ||
120 | * peicode.h (pe_print_idata): Minor format fixes | |
121 | (pe_print_edata): New function. Under private printing, this formats | |
122 | the edata section of a PE file. | |
123 | (pe_print_private_bfd_data): Added call to pe_print_edata. | |
124 | ||
361e8876 DE |
125 | Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk) |
126 | ||
127 | * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol | |
128 | index, don't call stoi. | |
129 | ||
58142f10 ILT |
130 | Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com> |
131 | ||
ffd15489 ILT |
132 | * srec.c (srec_scan): Set lma as well as vma. |
133 | ||
134 | * ihex.c: New file; support for Intel Hex format. | |
135 | * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour. | |
136 | (ihex_vec): Declare. | |
137 | (bfd_target_vector): Always include ihex_vec. | |
138 | * bfd.c (struct _bfd): Add ihex_data field to tdata union. | |
139 | * Makefile.in: Rebuild dependencies. | |
140 | (BFD_LIBS): Add ihex.o | |
141 | (BFD_LIBS_CFILES): Add ihex.c. | |
142 | * bfd-in2.h: Rebuild. | |
143 | ||
ae0a6bea ILT |
144 | * elf.c (assign_file_positions_for_segments): Sort the sections in |
145 | each segment. | |
146 | (get_program_header_size): Return the right size if segment_map is | |
147 | not NULL. | |
148 | (copy_private_bfd_data): Don't bother to sort the sections. | |
149 | ||
150 | * bfd.c (bfd_record_phdr): New function. | |
151 | * bfd-in.h (bfd_record_phdr): Declare. | |
152 | * bfd_in2.h: Rebuild. | |
153 | ||
ce0ee4bf ILT |
154 | * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus |
155 | BFD_ASSERT. | |
156 | ||
58142f10 ILT |
157 | * libbfd.c (bfd_malloc, bfd_realloc): New functions. |
158 | (bfd_zmalloc): Return PTR, not char *. Take size_t, not | |
159 | bfd_size_type. | |
160 | * libbfd-in.h (bfd_malloc, bfd_realloc): Declare. | |
161 | (bfd_zmalloc): Change declaration. | |
162 | * libbfd.h: Rebuild. | |
163 | * Many files: Use bfd_malloc and bfd_realloc rather than malloc | |
164 | and realloc. Don't set bfd_error_no_memory if they fail. | |
165 | ||
59066248 KK |
166 | Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com> |
167 | ||
168 | * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous | |
169 | uses as well. Added a new howto to deal with TOCREL16 relocs that | |
170 | are TOCDEFN as well. | |
171 | (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs | |
172 | to handle RVA relocs from dlltool. | |
173 | (ppc_coff_rtype2howto): TOCDEFN reloc addition. | |
174 | (coff_ppc_rtype_to_howto): TOCDEFN reloc addition. | |
175 | (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition. | |
176 | ||
177 | * coffcode.h (coff_set_alignment_hook): check idata$X sections | |
178 | to get the right section alignment. | |
179 | ||
6933148a ILT |
180 | Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com> |
181 | ||
182 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on | |
183 | p_paddr if p_paddr is zero. | |
184 | (make_mapping): Set includes_filehdr and includes_phdrs for first | |
185 | PT_LOAD segment. | |
186 | (map_sections_to_segments): Set includes_phdrs for PT_PHDR | |
187 | segment. | |
188 | (assign_file_positions_for_segments): Handle includes_filehdr and | |
189 | includes_phdrs. Remove special handling of PT_PHDR and first | |
190 | PT_LOAD segments. | |
191 | (copy_private_bfd_data): Set includes_filehdr and includes_phdr | |
192 | when appropriate. Remove special handling of PT_PHDR segment. | |
193 | Use a more complex condition for when a section is included in a | |
194 | segment to handle Solaris linker oddities. | |
195 | ||
f62fed1c ILT |
196 | Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> |
197 | ||
198 | * coff-m88k.c (howto_table): Reformatted for easier reading; | |
199 | special_function now points to new function m88k_special_reloc. | |
200 | (howto_hvrt16): Function previously used for handling HVRT16 relocs | |
201 | removed. | |
202 | (rtype2howto): Do not add reloc's r_offset to the addend, this will | |
203 | be done correctly by m88k_special_reloc. | |
204 | (reloc_processing): New function to be used by RELOC_PROCESSING. | |
205 | (RELOC_PROCESSING): Define to call reloc_processing. | |
206 | ||
64ecde46 ILT |
207 | Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com> |
208 | ||
b00c57ec ILT |
209 | * peicode.h (pe_print_idata): Call malloc rather than xmalloc. |
210 | (pe_print_pdata): Likewise. | |
211 | ||
a9713b91 ILT |
212 | * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if |
213 | obstack_alloc fails. | |
214 | (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish | |
215 | fails. | |
216 | * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails. | |
217 | * Many files: don't set bfd_error_no_memory if one of the above | |
218 | routines fails. | |
219 | ||
3dbf33ee ILT |
220 | * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr |
221 | if p_paddr_valid is set. | |
222 | (copy_private_bfd_data): New static function. | |
223 | (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data. | |
224 | ||
44ef8897 ILT |
225 | * elf.c (assign_file_positions_for_segments): Fix case where extra |
226 | program headers were allocated. | |
227 | ||
27fb8f29 ILT |
228 | * elf.c (_bfd_elf_print_private_bfd_data): New function. |
229 | * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare. | |
230 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to | |
231 | _bfd_elf_print_private_bfd_data. | |
232 | ||
64ecde46 ILT |
233 | * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if |
234 | r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc. | |
235 | Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS. | |
236 | (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to | |
237 | RELOC_SECTION_LITA for ALPHA_R_IGNORE. | |
238 | (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change | |
239 | RELOC_SECTION_ABS to RELOC_SECTION_NONE. | |
240 | ||
fd0198f0 ILT |
241 | Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com> |
242 | ||
243 | * elf-bfd.h (struct elf_obj_tdata): Add segment_map field. | |
244 | * elf.c (make_mapping): New static function. | |
245 | (map_sections_to_segments): New static function. | |
246 | (elf_sort_sections): New static function. | |
247 | (assign_file_positions_for_segments): New static function. | |
248 | (map_program_segments): Remove. | |
249 | (get_program_header_size): Remove sorted_hdrs, count, and | |
250 | maxpagesize parameters. Simplify. | |
251 | (assign_file_positions_except_relocs): When generating an | |
252 | executable, use assign_file_positions_for_segments. | |
253 | (elf_sort_hdrs): Remove. | |
254 | (_bfd_elf_sizeof_headers): Remove eliminated parameters from call | |
255 | to get_program_header_size. | |
256 | ||
3b3f7625 ILT |
257 | Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com> |
258 | ||
1ff0461b ILT |
259 | * hp300hpux.c (MY(callback)): Set lma as well as vma. |
260 | ||
80c8485c ILT |
261 | * configure, config.in: Regenerate with autoconf 2.7. |
262 | ||
3b3f7625 ILT |
263 | * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1. |
264 | * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0. | |
265 | ||
fa63d1ef ILT |
266 | Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com> |
267 | ||
a877f591 ILT |
268 | * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section. |
269 | (ecoff_sec_to_styp_flags): Likewise. | |
270 | (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST. | |
271 | (ecoff_set_symbol_info): Handle scRConst. | |
272 | (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST. | |
273 | (ecoff_compute_section_file_positions): Handle .rconst section. | |
274 | (_bfd_ecoff_write_object_contents): Likewise. | |
275 | (ecoff_link_check_archive_element): Handle scRConst. | |
276 | (ecoff_link_add_externals): Likewise. | |
277 | (ecoff_link_write_external): Handle .rconst section. | |
278 | (ecoff_reloc_link_order): Likewise. | |
279 | * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst. | |
280 | * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst | |
281 | section. | |
282 | (alpha_relocate_section): Handle RELOC_SECTION_RCONST. | |
283 | ||
fa63d1ef ILT |
284 | * sunos.c (sunos_scan_dynamic_symbol): Only set written if the |
285 | DEF_DYNAMIC flag is set. | |
286 | ||
25bada65 KR |
287 | Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com> |
288 | ||
289 | * host-aout.c: If TRAD_HEADER is defined, include it. | |
290 | ||
7938b4cb ILT |
291 | Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com> |
292 | ||
85e493f0 ILT |
293 | * aclocal.m4 (AC_PROG_CC): Remove local definition. |
294 | (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM. | |
295 | (BFD_NEED_DECLARATION): New function. | |
296 | * configure.in: Use BFD_NEED_DECLARATION. | |
bd77213b ILT |
297 | * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section. |
298 | * configure, config.in: Rebuild with autoconf 2.6. | |
85e493f0 | 299 | |
83dcdc61 ILT |
300 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear |
301 | special_sections before returning when called with a non XCOFF | |
302 | BFD. | |
303 | ||
7938b4cb ILT |
304 | * coffgen.c (coff_renumber_symbols): Sort common symbols with |
305 | global symbols. | |
306 | ||
307 | * coffcode.h (coff_compute_section_file_positions): Only pad the | |
308 | previous section to force file alignment when creating an | |
309 | executable. | |
310 | ||
b5403ad7 ILT |
311 | Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com> |
312 | ||
a418e05d ILT |
313 | * coffcode.h (coff_compute_section_file_positions): If |
314 | RS6000COFF_C, set up the .debug section. | |
315 | ||
b5403ad7 ILT |
316 | * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value |
317 | if it is not large enough to accomodate the entire TOC area with | |
318 | signed 16 bit offsets. | |
319 | (xcoff_write_global_symbol): Handle negative TOC offsets in global | |
320 | linkage code. | |
321 | (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a | |
322 | TOC anchor to use the TOC value used in the output file. | |
323 | ||
90a7abbc ILT |
324 | Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com> |
325 | ||
326 | * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return. | |
327 | (_bfd_coff_read_string_table): Likewise. | |
328 | ||
177b1932 DE |
329 | Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk) |
330 | ||
331 | * pe-arm.c: Fix typos. | |
332 | * coff-arm.c: Likewise. | |
333 | ||
334 | Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com> | |
335 | ||
336 | * coff-ppc.c (list_ele): Added "cat"egory member. | |
337 | (record_toc): New category parameter (priv or pub). | |
338 | (ppc_record_toc_entry): Check to see if toc bounds exceeded. | |
339 | (ppc_process_before_allocation): Removed embrionic data-in-toc from | |
340 | the mainline. It addes extra toc cells in error. | |
341 | (ppc_coff_swap_sym_in_hook): Added some documentation. | |
342 | (dump_toc): Can now diagnose "virtual toc" chicanery. | |
343 | ||
e34314c4 ILT |
344 | Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be> |
345 | ||
346 | * elf-bfd.h (struct elf_link_hash_table): Change type of | |
347 | dynsymcount and bucketcount fields from size_t to bfd_size_type. | |
348 | ||
73a68447 ILT |
349 | Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com> |
350 | ||
535e9e29 ILT |
351 | * coffcode.h (coff_pointerize_aux_hook): I960 version: don't |
352 | pointerize C_LEAFSTAT or C_LEAFEXT entries. | |
353 | ||
73a68447 ILT |
354 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create |
355 | DT_INIT and DT_FINI entries if the _init or _fini symbol is | |
356 | defined or mentioned in a regular file. | |
357 | ||
cd2b2402 KK |
358 | Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com> |
359 | ||
360 | * coff-ppc.c (ppc_record_data_in_toc_entry): new function | |
361 | (coff_ppc_relocate_section): Handle TOCDEFN attribute | |
362 | (coff_ppc_relocate_section): Correct REL24 handling | |
363 | (ppc_process_before_allocation): Correct TOCDEFN handling | |
364 | ||
365 | * peicode.h (dir_names): Added name descriptions | |
366 | ||
b218076e KR |
367 | Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com> |
368 | ||
369 | * VERSION: Updated to cygnus-2.6. | |
370 | ||
371 | Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com> | |
372 | ||
373 | * targets.c (m68k4knetbsd_vec): Declare. | |
374 | ||
e9f30616 ILT |
375 | Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com> |
376 | ||
377 | * targets.c (bfd_target): Change type of second argument to | |
378 | _bfd_print_private_bfd_data from void * to PTR. | |
379 | * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast | |
380 | using PTR rather than void *. | |
381 | * bfd-in2, libbfd.h: Rebuild. | |
382 | * peicode.h (pe_print_private_bfd_data): Change vfile from void * | |
383 | to PTR. | |
384 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as | |
385 | _bfd_generic_bfd_print_private_bfd_data rather than casting | |
386 | bfd_true. | |
387 | ||
ae75c4a4 KR |
388 | Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com> |
389 | ||
390 | * Makefile.in (.dep1): Fix stupid typo in last change. Remove any | |
391 | "DO NOT DELETE" lines or blank lines that mkdep writes on some | |
392 | systems. | |
393 | (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES, | |
394 | BFD64_BACKENDS_CFILES): New variables. | |
395 | (CFILES): Use them. | |
396 | ||
bebcd3db ILT |
397 | Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com> |
398 | ||
4b71e164 ILT |
399 | * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0, |
400 | not at the file position of the first section. | |
401 | * coffcode.h (coff_compute_section_file_positions): Avoid using | |
402 | unportable #elif. | |
403 | (coff_write_object_contents): When generating a PPC PE executable | |
404 | with no symbols, round up the file size to a COFF_PAGE_SIZE | |
405 | boundary. | |
406 | * cofflink.c (_bfd_coff_final_link): If there are no symbols, | |
407 | don't write out a string table. | |
408 | ||
631b10f4 ILT |
409 | * elf.c (bfd_section_from_shdr): When using a different section |
410 | header, pass the new one to _bfd_elf_make_section_from_shdr. | |
411 | (elf_fake_sections): Don't set sh_info and sh_entsize fields. | |
412 | (elf_map_symbols): Add section VMA to symbol value when comparing | |
413 | against 0. | |
414 | (_bfd_elf_compute_section_file_positions): Only build symbol table | |
415 | if there are some symbols. Set file offset of symtab and strtab | |
416 | sections. | |
417 | (assign_file_positions_except_relocs): Remove dosyms parameter. | |
418 | Change all callers. Never set file offset of symtab and strtab | |
419 | sections. | |
420 | (_bfd_elf_copy_private_section_data): New function. | |
421 | (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define. | |
422 | (_bfd_elf_copy_private_symbol_data): New function. | |
423 | (swap_out_syms): Check for special mapping of st_shndx created by | |
424 | copy_private_symbol_data. | |
425 | * elfxx-target.h: Use new copy routines. | |
426 | * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare. | |
427 | (_bfd_elf_copy_private_section_data): Declare. | |
428 | ||
429 | * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec. | |
430 | ||
431 | * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle | |
432 | C_NT_WEAK. | |
433 | ||
bebcd3db ILT |
434 | * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not |
435 | _bfd_dummy_target, matching the recent change to archive | |
436 | recognition. | |
437 | ||
7ad4ba81 ILT |
438 | Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com> |
439 | ||
afa67334 ILT |
440 | * libbfd.c (bfd_get_file_window): Use casts to avoid doing |
441 | arithmetic on PTR types. | |
442 | ||
f2bd8915 ILT |
443 | * aout-target.h (MY(callback)): Set the lma of the sections. |
444 | ||
7ad4ba81 ILT |
445 | * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined |
446 | symbol into a reloc against the section. | |
447 | ||
93b6a3f8 KK |
448 | Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com> |
449 | ||
450 | * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline | |
451 | glue for the relocs: IMGLUE and IFGLUE. | |
452 | (record_toc): new function - tracks toc contents | |
453 | (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc | |
454 | (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE | |
455 | (ppc_coff_rtype2howto): removed invalid IMGLUE hack | |
456 | (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack | |
125d37c4 | 457 | (ppc_record_toc_entry): Removed a debug define (duh) |
93b6a3f8 KK |
458 | |
459 | * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata" | |
460 | (pe_print_idata): New function - formats the idata section data | |
461 | (pe_print_pdata): New function - formats the pdata section data | |
462 | (pe_print_private_bfd_data): calls to above | |
463 | ||
c769947b SS |
464 | Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com> |
465 | ||
466 | * Makefile.in (bfd_libs_here, etc): Provide empty definitions. | |
467 | * coff-rs6000.c (rs6000coff_vec): Add conditional defines | |
468 | TARGET_SYM and TARGET_NAME for vector and BFD name. | |
469 | * coff-pmac.c (pmac_xcoff_vec): Remove. | |
470 | (TARGET_SYM, TARGET_NAME): Define. | |
471 | * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the | |
472 | machine to 0, not all PowerMacs are 601s. | |
473 | ||
474 | Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com> | |
475 | ||
476 | * elfcode.h (elf_object_p): Read in any program headers. | |
477 | * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma | |
478 | based on the program headers, if any. | |
479 | (elf_fake_sections): Set sh_addr from the vma, not the lma. | |
480 | (map_program_segments): Set p_paddr of program headers based on | |
481 | the lma. | |
482 | ||
ee174815 ILT |
483 | Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com> |
484 | ||
839087b7 ILT |
485 | * archive.c (bfd_generic_archive_p): Preserve tdata in case of |
486 | failure. | |
487 | ||
922530a6 ILT |
488 | * aoutx.h (NAME(aout,final_link)): Report a reasonable error when |
489 | trying to do a relocateable link with a non-a.out object file. | |
490 | ||
491 | * archive.c (bfd_generic_archive_p): Check the first object file | |
492 | in an archive even if target_defaulted is set. If the object file | |
493 | has the wrong xvec, reject it. | |
494 | ||
a1774c51 ILT |
495 | * aoutx.h (NAME(aout,set_section_contents)): If a section can not |
496 | be represented, report the name via _bfd_error_handler. | |
497 | (translate_to_native_sym_flags): Likewise. | |
498 | * elf32-mips.c (mips_elf_final_link): Likewise. | |
499 | * oasys.c (oasys_write_sections): Likewise. | |
500 | ||
4a378b13 ILT |
501 | * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version |
502 | which checks for STYP_OVRFLO sections. | |
503 | (coff_compute_section_file_positions): If RS6000COFF_C, handle | |
504 | reloc and lineno count overflows. | |
505 | (coff_write_object_contents): Call coff_count_linenumbers before | |
506 | coff_compute_section_file_positions. If RS6000COFF_C, handle | |
507 | reloc and lineno count overflows. | |
508 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and | |
509 | relocs before dealing with .pad sections. Count overflow section | |
510 | headers when handling .pad sections. | |
511 | ||
7906bf87 ILT |
512 | * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1 |
513 | if RS6000COFF_C. | |
514 | ||
ee174815 ILT |
515 | * xcofflink.c (XCOFF_DESCRIPTOR): Define. |
516 | (struct xcoff_link_hash_table): Add descriptor_section and | |
517 | special_sections fields. | |
518 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields. | |
519 | (xcoff_link_add_symbols): Set linkage section alignment. Create | |
520 | descriptor section. Check for magic symbol names (_text, etc.), | |
521 | and record them in special_sections if found. Set | |
522 | XCOFF_DESCRIPTOR flag for a function descriptor, and set its | |
523 | descriptor field to point back to the function code symbol. | |
524 | (xcoff_sweep): Always mark the special descriptor_section. | |
525 | (bfd_xcoff_export_symbol): Check whether the symbol might be a | |
526 | function descriptor, and mark it if it is. | |
527 | (bfd_xcoff_size_dynamic_sections): Add new special_sections | |
528 | parameter, and fill it in. Allocate space for the descriptor | |
529 | section. | |
530 | (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining | |
531 | global linkage code. If an undefined function descriptor is | |
532 | exported, arrange to define it. Warn about any other undefined | |
533 | exported symbol. | |
534 | (_bfd_xcoff_bfd_final_link): Write out the descriptor section. | |
535 | (xcoff_write_global_symbol): Create a function descriptor when | |
536 | necessary. | |
537 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
538 | * bfd-in2.h: Rebuild. | |
539 | ||
0e829f18 KK |
540 | Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com> |
541 | ||
542 | * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing | |
543 | (ppc_coff_link_hash_table): new types for hashing | |
544 | (ppc_coff_link_hash_newfunc): hash entry constructor | |
545 | (ppc_coff_link_hash_table_init): hash table initializer | |
546 | (ppc_coff_link_hash_table_create): hash table constructor | |
547 | (ppc_record_toc_entry): changed references to hash table | |
548 | (coff_ppc_relocate_section): changed references to hash table | |
549 | ||
550 | * libcoff-in.h (coff_link_hash_entry): removed toc_offset | |
551 | * libcoff.h: Rebuild | |
552 | ||
553 | * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init | |
554 | (coff_link_add_symbols): removed toc_offset init | |
555 | ||
7ac84736 KR |
556 | Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com> |
557 | ||
b27cc4bc KR |
558 | * Makefile.in (.dep1): Make sure the file mkdep is to write exists |
559 | first. | |
560 | ||
7ac84736 KR |
561 | * configure.in: Added new option --with[out]-mmap. Set USE_MMAP |
562 | if it is given and mmep is available. | |
563 | * acconfig.h: Undef USE_MMAP. | |
564 | * configure, config.in: Regenerated. | |
565 | * aoutx.h: If USE_MMAP is not defined, do all symbol and string | |
566 | table handling the old way. | |
567 | (aout_get_external_symbols): Don't complain if last byte of string | |
568 | table is nonzero. | |
569 | * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h. | |
570 | (bfd_free_window) [! USE_MMAP]: Don't define. | |
571 | (bfd_get_file_window, | |
572 | _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort. | |
573 | ||
1b3b0c03 ILT |
574 | Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu> |
575 | ||
576 | * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than | |
577 | 0xffff0000. | |
578 | ||
092abcdf ILT |
579 | Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com> |
580 | ||
33698029 ILT |
581 | * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be |
582 | compatible with AMD generated COFF files. Try to support both AMD | |
583 | and GNU formats simultaneously. | |
584 | (coff_a29k_relocate_section): Likewise. | |
585 | ||
0bb8ff19 ILT |
586 | * libbfd.c (bfd_get_file_window): Change writable parameter from |
587 | int to boolean; update all callers. Pass MAP_SHARED if not | |
588 | writable--it's required on Solaris. Cast fprintf argument to | |
589 | avoid warning. | |
590 | * bfd-in.h (bfd_get_file_window): Update declaration. | |
591 | * bfd-in2.h: Rebuild. | |
592 | * aoutx.h: Update calls to bfd_get_file_window. | |
593 | ||
0634a431 ILT |
594 | * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC. |
595 | Change all uses. | |
596 | (xcoff_swap_ldhdr_in): New static function. | |
597 | (xcoff_swap_ldsym_in): New static function. | |
7812bf9c | 598 | (xcoff_find_reloc): Handle the case of a single reloc correctly. |
0634a431 ILT |
599 | (xcoff_link_add_symbols): If we just created a descriptor, pass it |
600 | to _bfd_generic_link_add_one_symbol, to save a hash lookup. | |
417acf22 | 601 | Handle XTY_ER/XMC_XO symbols correctly. |
0634a431 ILT |
602 | (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols |
603 | rather than normal symbol table. | |
417acf22 ILT |
604 | (bfd_xcoff_import_symbol): It's not an error if the symbol is |
605 | already defined with the same absolute value. | |
0634a431 ILT |
606 | (xcoff_mark): When considering called symbols, check whether the |
607 | descriptor is from a dynamic object, rather than the symbol | |
608 | itself. | |
609 | (xcoff_build_ldsyms): Likewise. | |
610 | ||
092abcdf ILT |
611 | * libbfd.c (bfd_get_file_window): Change return type to boolean. |
612 | Cast realloc and malloc return values. If malloc or realloc fail, | |
613 | set bfd_error_no_memory. | |
614 | * bfd-in.h (bfd_get_file_window): Change type to boolean. | |
615 | * bfd-in2.h: Rebuild. | |
616 | ||
d6f41a7d KK |
617 | Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com> |
618 | ||
619 | * coff-ppc.c (ppc_record_toc_entry): new function. | |
620 | (in_reloc_p): changed return value. | |
621 | (coff_ppc_relocate_section): much rework. | |
622 | (ppc_allocate_toc_section): new function. | |
623 | (ppc_process_before_allocation): new function. | |
624 | (ppc_coff_swap_sym_in_hook): new function. | |
625 | ||
626 | * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset. | |
627 | (coff_link_add_symbols): initialize toc_offset. | |
628 | ||
629 | * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook | |
630 | (coff_swap_aouthdr_out): Added more sections to the data | |
631 | dictionary for the pe file header. Also changed linker version | |
632 | number on the ppc side. | |
633 | (dir_names): small improvements to the dictionary printing. | |
634 | (pe_mkobject_hook): save the file level flags. | |
635 | ||
636 | * libcoff-in.h (coff_link_hash_entry): added toc_offset field | |
637 | (pe_tdata): added real_flags field | |
638 | (coff_tdata): added local_toc_sym_map and access macro | |
639 | ||
640 | * libcoff.h (coff_link_hash_entry): added toc_offset field | |
641 | (pe_tdata): added real_flags field | |
642 | (coff_tdata): added local_toc_sym_map and access macro | |
643 | ||
644 | * coffcode.h (coff_set_alignment_hook): added hook for PE. | |
645 | (coff_mkobject): init for local_toc_sym_map | |
646 | (coff_write_object_contents): set the internal_a.magic to | |
647 | IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other | |
648 | ppc compilers use. | |
649 | ||
6bc200f2 ILT |
650 | Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com> |
651 | ||
c0971298 ILT |
652 | * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs |
653 | entries until both the line number address and the function name | |
654 | address are too large. | |
655 | ||
6a468850 ILT |
656 | * configure.in: Call AC_CHECK_PROG to find and cache AR. |
657 | * configure: Rebuilt. | |
658 | ||
6bc200f2 ILT |
659 | * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it |
660 | is defined in the environment. | |
661 | ||
c44bf94c JL |
662 | Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com) |
663 | ||
664 | * som.c (som_get_section_contents_in_window): Define to use | |
665 | generic version. | |
666 | ||
cf587de8 ILT |
667 | Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com> |
668 | ||
669 | * coff-i860.c: New file, based on coff-i386.c. | |
670 | * cpu-i860.c: New file, based on cpu-i386.c. | |
671 | * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. | |
672 | * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New | |
673 | targets, using i860coff_vec. | |
674 | * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using | |
675 | trad-core.o and hosts/i860mach3.h. | |
676 | (i860coff_vec): Use coff-i860.o and cofflink.o. | |
677 | * configure: Rebuild. | |
678 | * Makefile.in: Rebuild dependencies. | |
679 | (ALL_MACHINES): Add cpu-i860.o. | |
680 | (BFD32_BACKENDS): Add coff-i860.o. | |
681 | (CFILES): Add cpu-i860.c and coff-i860.c. | |
682 | * targets.c (i860coff_vec): Declare. | |
683 | (bfd_target_vector): Add &i860coff_vec. | |
684 | * archures.c (bfd_i860_arch): Declare. | |
685 | (bfd_archures_list): Add &bfd_i860_arch. | |
686 | * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. | |
687 | (coff_set_flags): Handle bfd_arch_i860. | |
688 | (coff_write_object_contents): Handle I860 a.out magic number. | |
689 | ||
83c23fca ILT |
690 | Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com> |
691 | ||
692 | * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of | |
693 | the created .tc section to 2. | |
694 | (xcoff_mark): Don't keep a .loader reloc for a call to an | |
695 | undefined symbol when creating a shared library. | |
696 | (xcoff_build_ldsyms): When creating a shared library, generate | |
697 | global linkage code for a call to an undefined symbol. | |
698 | ||
5d9eb9c3 KR |
699 | Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com> |
700 | ||
701 | * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES, | |
702 | BFD32_BACKENDS, BFD64_BACKENDS. | |
703 | (.dep1): Put mkdep output in a separate file. | |
704 | Rebuilt dependencies. | |
705 | ||
ffacb892 KR |
706 | * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return |
707 | value. | |
708 | ||
4fe6d901 KR |
709 | Permit use of mmap when available: |
710 | ||
711 | * configure.in: Check for mmap, madvise, mprotect. | |
712 | * config.in, configure: Regenerated. | |
713 | ||
714 | * libbfd.c (struct _bfd_window_internal): Define type. | |
715 | (bfd_init_window, bfd_free_window, bfd_get_file_window): New | |
716 | functions. | |
717 | (ok_to_map): New static variable for debugging. | |
718 | (_bfd_generic_get_section_contents_in_window): New function. | |
719 | * bfd-in.h (bfd_window_internal): Declare type. | |
720 | (bfd_window): Define type. | |
721 | (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare. | |
722 | * libbfd-in.h (_bfd_generic_get_section_contents_in_window): | |
723 | Declare. | |
724 | ||
725 | * libaout.h (struct aoutdata): Add two window fields. | |
726 | (obj_aout_sym_window, obj_aout_string_window): New macros. | |
727 | * aoutx.h (some_aout_object_p): Initialize windows. | |
728 | (aout_get_external_symbols): Get symbol data and strings in | |
729 | windows instead of explicitly allocated buffers. | |
730 | (slurp_symbol_table): Free window instead of memory. | |
731 | (bfd_free_cached_info): Release windows instead of freeing storage | |
732 | directly. | |
733 | (aout_link_free_symbols): Ditto. | |
734 | ||
735 | * targets.c (bfd_target): Add new field for | |
736 | get_section_contents_in_window. | |
737 | (BFD_JUMP_TABLE_GENERIC): Updated. | |
738 | * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c, | |
739 | coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c, | |
740 | libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new | |
741 | macros for get_section_contents_in_window field. | |
742 | ||
d9e771e3 FF |
743 | Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com> |
744 | ||
745 | * core.c: Renamed to corefile.c | |
746 | * makefile.dos (OBJS): Change core.o to corefile.o | |
747 | * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c | |
748 | ||
bf917766 SG |
749 | start-sanitize-gm |
750 | Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com) | |
751 | ||
752 | * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to | |
753 | targ_selvecs to allow debugging under Irix-5 native. | |
754 | ||
755 | end-sanitize-gm | |
583db7a8 ILT |
756 | Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com> |
757 | ||
758 | * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub | |
759 | to o. Clobber and restore the list of new csects around the call | |
760 | to _bfd_generic_link_add_one_symbol, in case it wants to report a | |
761 | linker error and the linker wants to read the symbol table. Reset | |
762 | the line number count of a real section even if it has no relocs. | |
763 | (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag. | |
764 | ||
765 | * coffgen.c (_bfd_coff_read_string_table): Warn if the string size | |
766 | is too small. | |
767 | ||
68aed7db ILT |
768 | Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com> |
769 | ||
18a9609c ILT |
770 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about |
771 | an undefined symbol in a shared link. | |
772 | ||
68aed7db ILT |
773 | * linker.c (_bfd_generic_link_add_one_symbol): Correct type of |
774 | oldtype from bfd_link_order_type to bfd_link_hash_type. From | |
775 | phdm@info.ucl.ac.be (Philippe De Muyter). | |
776 | ||
7f82c7e1 ILT |
777 | Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> |
778 | ||
779 | * coff-m88k.c (rtype2howto): New static function. | |
780 | (RTYPE2HOWTO): Use it rather than a macro definition. | |
781 | ||
782 | * coffcode.h (coff_write_object_contents): set internal_a.magic | |
783 | to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS). | |
784 | ||
4c8b9746 | 785 | * configure.in: m68*-motorola-sysv* does not use ptrace-core.o; |
7f82c7e1 ILT |
786 | define TRAD_HEADER to new file hosts/delta68.h. |
787 | m88*-motorola-sysv*, however, does use ptrace-core.o. | |
788 | * hosts/delta68.h: New file. | |
789 | ||
790 | * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to | |
791 | bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc. | |
792 | ||
619c7730 KR |
793 | Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com> |
794 | ||
795 | * i386linux.c (MY(vec)): Declare before use. | |
796 | ||
73246ff8 ILT |
797 | Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com> |
798 | ||
e8d6d5d0 ILT |
799 | * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): |
800 | Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases. | |
801 | ||
b2193cc5 ILT |
802 | * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the |
803 | BFD is not of the right type. | |
804 | (bfd_elf_get_needed_list): Likewise. | |
805 | * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. | |
806 | * sunos.c (bfd_sunos_get_needed_list): Likewise. | |
807 | * xcofflink.c (XCOFF_XVECP): Define. | |
808 | (bfd_xcoff_link_record_set): Don't do anything if the BFD is not | |
809 | of the right type. | |
810 | (bfd_xcoff_import_symbol): Likewise. | |
811 | (bfd_xcoff_export_symbol): Likewise. | |
812 | (bfd_xcoff_link_count_reloc): Likewise. | |
813 | (bfd_xcoff_record_link_assignment): Likewise. | |
814 | (bfd_xcoff_size_dynamic_sections): Likewise. | |
815 | ||
baabeb74 ILT |
816 | * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol |
817 | table index against the number of symbols for a base relative | |
818 | reloc. | |
819 | ||
73246ff8 ILT |
820 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to |
821 | static function. | |
822 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set | |
823 | full_aouthdr flag here... | |
824 | (_bfd_xcoff_bfd_final_link): ...not here. | |
825 | ||
6ab826bd FF |
826 | Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com> |
827 | ||
828 | * libelf.h: Rename to elf-bfd.h to avoid conflict with | |
829 | systems that have a system <libelf.h>. | |
830 | * Makefile.in: Globally replace libelf.h with elf-bfd.h. | |
831 | * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c, | |
832 | elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c, | |
833 | elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c, | |
834 | elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c, | |
835 | elfxx-target.h: Include elf-bfd.h rather than libelf.h. | |
836 | * elfxx-target.h: Change libelf.h reference to elf-bfd.h. | |
837 | ||
999cc186 ILT |
838 | Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com> |
839 | ||
0652d579 ILT |
840 | * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If |
841 | set, set BSF_WEAK in symbol. Change all callers. | |
842 | (ecoff_get_extr): Set weakext based on BSF_WEAK. | |
843 | (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to | |
844 | _bfd_generic_link_add_one_symbol. | |
845 | (ecoff_indirect_link_order): Check that the section tdata relocs | |
846 | are not NULL before using them. | |
847 | ||
999cc186 ILT |
848 | * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and |
849 | define TRAD_HEADER as hosts/alphalinux.h. | |
850 | * configure: Rebuild. | |
851 | * hosts/alphalinux.h: New file. | |
852 | * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, | |
853 | not int. | |
854 | ||
e6080520 ILT |
855 | Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com> |
856 | ||
2bd0aeb9 ILT |
857 | * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and |
858 | C_ECOMM storage classes. | |
859 | ||
e6080520 ILT |
860 | * xcofflink.c (xcoff_mark_symbol): New static function, broken out |
861 | of xcoff_mark. | |
862 | (xcoff_mark): Call xcoff_mark_symbol. | |
863 | (bfd_xcoff_export_symbol): Call xcoff_mark_symbol. | |
864 | (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than | |
865 | doing it by hand. | |
866 | (xcoff_build_ldsyms): Build a .loader symbol for an export symbol. | |
867 | ||
5fe14a9f ILT |
868 | Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com> |
869 | ||
f630a0a4 ILT |
870 | * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos |
871 | field. | |
872 | (xcoff_find_reloc): New static function. | |
873 | (xcoff_link_add_symbols): Use it. | |
874 | (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos. | |
875 | (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't | |
876 | relocate the value of C_DECL. | |
877 | ||
5fe14a9f ILT |
878 | * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT. |
879 | ||
dff77ed7 SC |
880 | Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com> |
881 | ||
882 | * cofflink.c (_bfd_coff_generic_relocate_section): Make | |
883 | callback decide what goes in .relocs. | |
884 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define. | |
885 | * peicode.h (pe_mkobject_hook): Only copy aouthdr if | |
886 | there is one. | |
887 | ||
697a8fe8 ILT |
888 | Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com> |
889 | ||
890 | * xcofflink.c (xcoff_link_add_symbols): Handle csects in the | |
891 | absolute section. | |
892 | ||
2d7de17d ILT |
893 | Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com> |
894 | ||
895 | * xcofflink.c: More improvements, mostly to fix handling of | |
896 | constructors and a few other special cases. | |
897 | * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to | |
898 | zero, reverting yesterday's change. | |
899 | * bfd-in.h (bfd_xcoff_link_record_set): Declare. | |
900 | (bfd_xcoff_link_count_reloc): Declare. | |
901 | (bfd_xcoff_record_link_assignment): Declare. | |
902 | * bfd-in2.h: Rebuild. | |
903 | ||
f552f751 NH |
904 | Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se> |
905 | ||
906 | * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h, | |
907 | aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c | |
908 | i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c, | |
909 | i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c, | |
910 | ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c: | |
911 | Change PAGE_SIZE to TARGET_PAGE_SIZE. | |
912 | ||
913 | * m68knetbsd.c: Ditto as well as add support for the m68k4k object | |
914 | format. | |
915 | ||
916 | * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text | |
917 | segments includes the a.out header. See to that the magic number | |
918 | *always* is big-endian. | |
919 | ||
920 | * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and | |
921 | m68k4k NetBSD configurations. | |
922 | ||
923 | * configure.in, configure: Separate i386 & mips NetBSD | |
924 | configurations from other BSD ones. Don't assume DEC is the only | |
925 | thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd* | |
926 | configurations. Add support for m68k4k NetBSD object format. | |
927 | ||
928 | * libaout.h: Added M_68K4K_NETBSD magic. | |
6fd1f40d NH |
929 | |
930 | * m68k4knetbsd.c: New file. | |
f552f751 NH |
931 | |
932 | * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P. | |
933 | ||
934 | * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to | |
935 | <machine/endian.h>. | |
936 | ||
6fd1f40d NH |
937 | * hosts/mipsnbsd.h: New file. |
938 | ||
d6d44ef9 SG |
939 | start-sanitize-gm |
940 | Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com) | |
941 | ||
942 | * config.bfd: Add config stuff for mips*-*-magic* to set | |
943 | targ_defvec to ecoff_big_vec. | |
944 | ||
945 | end-sanitize-gm | |
867d923d ILT |
946 | Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com> |
947 | ||
948 | * xcofflink.c: Numerous changes to get closer to a working XCOFF | |
949 | linker. | |
950 | * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr, | |
951 | toc_section, and entry_section fields. | |
952 | (struct xcoff_section_tdata): Remove ldrel_count field. | |
953 | * libcoff.h: Rebuild. | |
954 | * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data | |
955 | fields. | |
956 | (coff_compute_section_file_positions): If RS6000COFF_C, generate | |
957 | full a.out header if full_aouthdr is set in xcoff_data. | |
958 | (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc | |
959 | based on sections stored in xcoff_data. | |
960 | * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data | |
961 | fields. | |
aad2c618 ILT |
962 | (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR. |
963 | (rs6000coff_vec): Set symbol_leading_char to '.'. | |
867d923d ILT |
964 | * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the |
965 | value stored in ret rather than returning a pointer value. | |
966 | ||
6bd9ffdb MM |
967 | Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
968 | ||
969 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC | |
970 | format for now. | |
971 | ||
9d14250f JL |
972 | Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com) |
973 | ||
974 | * som.c (som_slurp_string_table): Allocate the strings with malloc | |
975 | since they're free'd by free_cached_info. | |
976 | (som_slurp_symbol_table): Similarly for the symbol table. | |
977 | ||
a2bd0529 PB |
978 | Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com> |
979 | ||
980 | * Makefile.in (diststuff): Don't make headers. | |
981 | ||
28a0c103 ILT |
982 | Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com> |
983 | ||
356cd465 ILT |
984 | * Makefile.in: Rebuild dependencies. |
985 | ||
1edd3a7b ILT |
986 | * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if |
987 | output_bfd is not SunOS. | |
988 | (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of | |
989 | non-SunOS input files. | |
990 | ||
28a0c103 ILT |
991 | * xcofflink.c: Extensive changes to support linking shared objects |
992 | and generating a .loader section. | |
993 | * libcoff-in.h (struct xcoff_tdata): Add import_file_id field. | |
b73322d9 ILT |
994 | (struct xcoff_section_tdata): Add lineno_count, first_symndx, |
995 | last_symndx, and ldrel_count fields. | |
28a0c103 ILT |
996 | * libcoff.h: Rebuild. |
997 | * coff-rs6000.c (xcoff_howto_table): Correct reloc names. | |
998 | * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD | |
999 | is set. | |
1000 | * bfd-in.h (bfd_xcoff_import_symbol): Declare. | |
1001 | (bfd_xcoff_export_symbol): Declare. | |
1002 | (bfd_xcoff_size_dynamic_sections): Declare. | |
1003 | * bfd-in2.h: Rebuild. | |
1004 | ||
aadf04f7 SS |
1005 | Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com> |
1006 | ||
1007 | * configure.in: Add xcofflink.o to pmac_xcoff_vec. | |
1008 | * configure: Rebuild. | |
1009 | * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos. | |
1010 | * coff-pmac.c: Include coff-rs6000.c instead of duplicating its | |
1011 | contents. | |
1012 | (pmac_xcoff_vec): Update to use new xcoff support. | |
1013 | * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static. | |
1014 | (xcoff_write_armap): Declare buf as unsigned char. | |
1015 | * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR. | |
1016 | ||
1017 | * mpw-make.sed: Generalize subdir_do edit. | |
1018 | ||
ddf4639b JL |
1019 | Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com) |
1020 | ||
1021 | * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos | |
1022 | correctly. Don't initialize asect->vma. | |
1023 | ||
e7bedf65 KR |
1024 | Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com> |
1025 | ||
1026 | * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use | |
1027 | something a little less than the page size. | |
1028 | ||
1029 | Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com> | |
1030 | ||
1031 | * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp. | |
1032 | ||
3a70e298 SC |
1033 | Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com> |
1034 | ||
1035 | * coff-i386.c (coff_i386_reloc_type_lookup): New. | |
1036 | * coffcode.h (coff_write_object_contents): If .bss is before | |
1037 | .data us that as data_start. | |
1038 | * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc | |
1039 | calc correct. | |
1040 | * peicode.h (add_data_entry): Use _cooked_size of data directory. | |
1041 | (coff_swap_outhdr_out): Hardwire in version number. | |
1042 | ||
5a2846e3 KR |
1043 | Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com> |
1044 | ||
3c3a5268 KR |
1045 | * sunos.c (sunos_add_dynamic_symbols): Rename local variables |
1046 | major and minor to *_vno, since the former are also macros in | |
1047 | SunOS header files. Cast result of bfd_alloc to appropriate | |
1048 | type. | |
1049 | ||
5a2846e3 KR |
1050 | * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value |
1051 | before assigning to sec_data. | |
1052 | ||
0f6c885e ILT |
1053 | Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com> |
1054 | ||
1055 | * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is | |
1056 | now relative to the section, not absolute. | |
1057 | * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to | |
1058 | get the file name when there is a N_SO directory name. When | |
1059 | handling stabs, remember that section->vma was added to the | |
1060 | offset. | |
1061 | ||
11fa6636 ILT |
1062 | Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com> |
1063 | ||
1064 | * sunos.c (struct sunos_link_hash_table): Add needed field. | |
1065 | (sunos_link_hash_table_create): Call bfd_release, not free. | |
1066 | (sunos_link_hash_table_create): Initialize needed field. | |
1067 | (sunos_add_dynamic_symbols): Record needed objects. | |
1068 | (bfd_sunos_get_needed_list): New function. | |
1069 | * bfd-in.h (bfd_sunos_get_needed_list): Declare. | |
1070 | * bfd-in2.h: Rebuild. | |
1071 | ||
c974e19e SC |
1072 | Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com> |
1073 | ||
1074 | * libcoff-in.h (pe_data_type.in_reloc_p): New. | |
1075 | ||
22a35f0b ILT |
1076 | Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com> |
1077 | ||
54406786 ILT |
1078 | * bfd-in.h (struct bfd_link_needed_list): Rename from |
1079 | bfd_elf_link_needed_list. | |
1080 | * bfd-in2.h: Rebuild. | |
1081 | * elf.c, elflink.h, libelf.h: Corresponding changes. | |
1082 | ||
dd984644 ILT |
1083 | Add start at AIX linker support; no shared libraries yet. |
1084 | * xcofflink.c: New file. | |
1085 | * configure.in (rs600coff_vec): Use xcofflink.o. | |
1086 | * configure: Rebuild. | |
1087 | * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices | |
1088 | fields. | |
1089 | (struct xcoff_section_tdata): Define. | |
1090 | (xcoff_section_data): Define macro. | |
1091 | (_bfd_xcoff_bfd_link_hash_table_create): Declare. | |
1092 | (_bfd_xcoff_bfd_link_add_symbols): Declare. | |
1093 | (_bfd_xcoff_bfd_final_link): Declare. | |
1094 | (_bfd_ppc_xcoff_relocate_section): Declare. | |
1095 | * libcoff.h: Rebuild. | |
1096 | * coff-rs6000.c: Clean up a bit. | |
1097 | (xcoff_mkobject): Default modtype to 1L, not RE. Initialize | |
1098 | cputype, csects, and debug_indices. | |
1099 | (xcoff_copy_private_bfd_data): Copy cputype. | |
1100 | (xcoff_howto_table): Rename from rs6000coff_howto_table. | |
1101 | (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto. | |
1102 | (xcoff_reloc_type_lookup): Rename from | |
1103 | rs6000coff_reloc_type_lookup. | |
1104 | (coff_relocate_section): Define. | |
1105 | (_bfd_xcoff_sizeof_headers): Define. | |
1106 | (_bfd_xcoff_bfd_get_relocated_section_contents): Define. | |
1107 | (_bfd_xcoff_bfd_relax_section): Define. | |
1108 | (_bfd_xcoff_bfd_link_split_section): Define. | |
1109 | (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not | |
1110 | coff. | |
1111 | * coffcode.h (coff_compute_section_file_positions): If AIX, | |
1112 | increment sofar by SMALL_AOUTSZ if not executable. | |
1113 | (coff_write_object_contents): If AIX, always output an a.out | |
1114 | header; if not executable, header size of SMALL_AOUTSZ. | |
1115 | * hash.c (struct bfd_strtab_hash): Add xcoff field. | |
1116 | (_bfd_stringtab_init): Initialize xcoff field. | |
1117 | (_bfd_xcoff_stringtab_init): New function. | |
1118 | (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length. | |
1119 | (_bfd_stringtab_emit): In XCOFF mode, write out length. | |
1120 | * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare. | |
1121 | * libbfd.h: Rebuild. | |
1122 | * Makefile.in: Rebuild dependencies. | |
1123 | (BFD32_BACKENDS): Add xcofflink.o. | |
1124 | (CFILES): Add xcofflink.c. | |
1125 | ||
22a35f0b ILT |
1126 | * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not |
1127 | SEC_NO_FLAGS, for .acommon section. From Peter Schauer | |
1128 | <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>. | |
1129 | ||
fb417a21 MM |
1130 | Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1131 | ||
1132 | * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c. | |
1133 | ||
1134 | Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com> | |
1135 | ||
1136 | * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment. | |
1137 | * config.in: Regenerated. | |
1138 | ||
1139 | * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048. | |
1140 | (_bfd_chunksize): New variable. | |
1141 | (_bfd_new_bfd): Set it to getpagesize() if negative, and use it | |
1142 | for obstack chunk size. | |
1143 | * configure.in: Check for getpagesize. | |
1144 | * configure: Regenerated. | |
1145 | ||
1146 | Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | |
1147 | ||
1148 | * trad-core.c (rawptr): Make it a local variable of | |
1149 | ptrace_unix_core_file_p. | |
1150 | ||
b1e46369 SC |
1151 | Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com> |
1152 | ||
1153 | * coff-arm.c (in_reloc_p): New. | |
1154 | * coff-i386.c (in_reloc_p): New. | |
1155 | * coffcode.h: Allways include peicode.h if COFF_WITH_PE. | |
1156 | (coff_write_object_contents): Only set has_reloc_section | |
1157 | if PE_IMAGE. | |
1158 | * cofflink.c (_bfd_coff_generic_relocate_section): Call | |
1159 | in_reloc_p to decide if reloc should be emitted. | |
1160 | * libcoff.h (pe_data_type.in_reloc_p): New. | |
1161 | * peicode.h (pe_mkobject): Initialize in_reloc_p. | |
1162 | ||
ee9f09cd ILT |
1163 | Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com> |
1164 | ||
b1e46369 SC |
1165 | * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c. |
1166 | (_bfd_coff_read_internal_relocs): Likewise. | |
1167 | * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c. | |
1168 | (_bfd_coff_read_internal_relocs): Likewise. | |
1169 | ||
ee9f09cd ILT |
1170 | * elflink.h (elf_link_add_object_symbols): Correct conditions |
1171 | under which type and size change warnings are issued. | |
1172 | ||
78b31b6b ILT |
1173 | Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com> |
1174 | ||
1175 | * coffgen.c (coff_count_linenumbers): Don't count line numbers for | |
1176 | a symbol which is not in a real section. | |
1177 | (coff_write_native_symbol): Corresponding change. | |
1178 | ||
1179 | * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from | |
1180 | coff_link_hash_newfunc and make non-static. | |
1181 | (_bfd_coff_link_hash_table_init): New function, broken out of | |
1182 | _bfd_coff_link_hash_table_create. | |
1183 | (_bfd_coff_link_hash_table_create): Use it. | |
1184 | (process_embedded_commands): Make static. | |
1185 | * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare. | |
1186 | (_bfd_coff_link_hash_table_init): Declare. | |
1187 | * libcoff.h: Rebuild. | |
1188 | ||
1189 | * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype | |
1190 | field in XCOFF tdata. | |
1191 | (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef | |
1192 | U802ROMAGIC, for clarity. Try to set arch and machine correctly | |
1193 | based on cputype stored in a.out header, or in n_type of initial | |
1194 | .file symbol. | |
1195 | (coff_write_object_contents): Set cputype correctly in a.out | |
1196 | header. | |
1197 | (coff_slurp_symbol_table): Add casts to file_ptr to avoid | |
1198 | warnings. | |
1199 | * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field. | |
1200 | (coff_swap_aouthdr_out): Swap out cputype field. Don't clear | |
1201 | old resv1 field. | |
1202 | * libcoff-in.h (struct xcoff_tdata): Add cputype field. | |
1203 | * libcoff.h: Rebuild. | |
1204 | ||
1205 | * cpu-rs6000.c (rs6000_compatible): New static function. | |
1206 | (bfd_rs6000_arch): Use it. | |
1207 | * cpu-powerpc.c (powerpc_compatible): New static function. | |
1208 | (arch_info_struct): Define various flavours of PowerPC. | |
1209 | (bfd_powerpc_arch): Use powerpc_compatible. Point at | |
1210 | arch_info_struct. | |
1211 | ||
9dd7e56f FF |
1212 | Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com> |
1213 | ||
78b31b6b | 1214 | * Makefile.in (FLAGS_TO_PASS): Remove BISON. |
9dd7e56f | 1215 | |
8235c112 ILT |
1216 | Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com> |
1217 | ||
1218 | * elflink.h (elf_link_add_object_symbols): Don't warn about | |
1219 | changing the size or type if the old definition was weak. | |
1220 | ||
0322af0d ILT |
1221 | Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com> |
1222 | ||
49488f2b ILT |
1223 | * coffcode.h (combined_entry_type): Add fix_line field. |
1224 | (coff_slurp_line_table): Warn if we try to set the lineno field of | |
1225 | a symbol twice. | |
1226 | (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and | |
1227 | C_EINCL by setting fix_line. Fix C_BSTAT symbol value. | |
1228 | * coffgen.c (coff_mangle_symbols): Handle fix_line. | |
1229 | (coff_write_symbol): Only use N_DEBUG if the symbol is in the | |
1230 | absolute section. | |
1231 | (coff_print_symbol): Print fix_value symbols in a useful fashion. | |
1232 | * libcoff.h: Rebuild. | |
1233 | ||
5f710a3a ILT |
1234 | * libcoff-in.h (struct xcoff_tdata): Define. |
1235 | (xcoff_data): Define. | |
1236 | * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union. | |
1237 | * bfd-in2.h, libcoff.h: Rebuild. | |
1238 | * coff-rs6000.c (xcoff_mkobject): New static function. | |
1239 | (coff_mkobject): Define. | |
1240 | (xcoff_copy_private_bfd_data): New static function. | |
1241 | (coff_bfd_copy_private_bfd_data): Define. | |
1242 | (rs6000coff_howto_table): Change R_TOC complain_on_overflow from | |
1243 | signed to bitfield. | |
1244 | (rs6000coff_vec): Add DYNAMIC to object_flags. | |
1245 | * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and | |
1246 | .loader sections specially. | |
1247 | (coff_new_section_hook): If RS6000COFF_C, get the .text and .data | |
1248 | section alignment from the XCOFF tdata information. | |
1249 | (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on | |
1250 | F_SHROBJ, and copy the extra a.out header information into the | |
1251 | XCOFF tdata structure. | |
1252 | (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ, | |
1253 | F_DYNLOAD and the extra a.out header information. | |
1254 | (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or | |
1255 | C_HIDEXT symbol with attached csect information. | |
1256 | * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap | |
1257 | in the o_maxdata field. | |
1258 | (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields. | |
1259 | * coffgen.c (coff_renumber_symbols): Don't move any symbol to the | |
1260 | end if BSF_NOT_AT_END is set. | |
3f2c5b2d | 1261 | |
0322af0d ILT |
1262 | * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to |
1263 | _bfd_read_ar_hdr_fn. | |
1264 | * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly. | |
1265 | * bfd-in2.h, libbfd.h: Rebuild. | |
1266 | * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr | |
1267 | return value. | |
1268 | (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise. | |
1269 | (bfd_slurp_bsd_armap_f2): Likewise. | |
1270 | (_bfd_slurp_extended_name_table): Likewise. | |
1271 | ||
3266eaff KR |
1272 | Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com> |
1273 | ||
1274 | Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | |
1275 | ||
1276 | * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS | |
1277 | when the symbol table is empty. | |
1278 | ||
1279 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve | |
1280 | space for section symbols, since we don't output them either. | |
1281 | (elf_m68k_adjust_dynindx): Removed. | |
1282 | ||
1283 | * ptrace-core.c (rawptr): Make it a local variable of | |
1284 | ptrace_unix_core_file_p. | |
3266eaff | 1285 | |
249479fa MM |
1286 | Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1287 | ||
45b5d2f0 MM |
1288 | * coff-rs6000.c (xcoff_write_archive_contents): Return false, not |
1289 | NULL. | |
1290 | ||
249479fa MM |
1291 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and |
1292 | Mac object file formats. | |
1293 | ||
c53fac12 ILT |
1294 | Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com> |
1295 | ||
4372f33f ILT |
1296 | * coffgen.c (coff_fix_symbol_name): Don't try to set up file |
1297 | auxent if there isn't one. | |
1298 | (coff_write_symbols): If there is no file auxent, use SYMNMLEN | |
1299 | rather than FILNMLEN as the maximum name length. | |
1300 | ||
0fc9ada9 ILT |
1301 | * coffcode.h (bfd_coff_backend_data): Add new field |
1302 | _bfd_coff_print_aux. | |
1303 | (bfd_coff_print_aux): New static function. | |
1304 | (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the | |
1305 | scnlen field of an XTY_LD csect aux entry. | |
1306 | (coff_print_aux): New static function. | |
1307 | (coff_slurp_symbol_table): Don't pointerize scnlen field; now done | |
1308 | in coff_pointerize_aux_hook. | |
1309 | (bfd_coff_std_swap_table): Initialize new field. | |
1310 | * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux. | |
1311 | * libcoff.h: Rebuild. | |
1312 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
1313 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1314 | ||
7860fe38 ILT |
1315 | * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG |
1316 | if there are symbols, for native AIX ld compatibility. | |
1317 | ||
c80cc833 ILT |
1318 | * coffcode.h (bfd_coff_backend_data): Add new field |
1319 | _bfd_coff_pointerize_aux_hook. | |
1320 | (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C | |
1321 | or I960, and as 0 otherwise. | |
1322 | (bfd_coff_std_swap_table): Initialize new field. | |
1323 | * libcoff.h: Rebuild. | |
1324 | * coffgen.c (coff_pointerize_aux): Change parameters to take | |
1325 | symbol pointer instead of type and class, and to take aux index. | |
1326 | Call _bfd_coff_pointerize_aux_hook if it is defined. | |
1327 | (coff_get_normalized_symtab): Always call coff_pointerize_aux. | |
1328 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields. | |
1329 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1330 | ||
c53fac12 ILT |
1331 | * coff-rs6000.c: Add full support for AIX archives. Rewrite old |
1332 | read-only/host-only support. | |
1333 | ||
1334 | * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be | |
1335 | BSF_LOCAL. | |
d11e6b52 ILT |
1336 | (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if |
1337 | RS6000COFF_C. | |
c53fac12 ILT |
1338 | |
1339 | * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify | |
1340 | BFD_JUMP_TABLE_ARCHIVE accordingly. | |
1341 | * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare. | |
1342 | (_bfd_compute_and_write_armap): Declare. | |
1343 | (_bfd_generic_read_ar_hdr): Declare. | |
1344 | (_bfd_read_ar_hdr): Define. | |
1345 | (_bfd_noarchive_read_ar_hdr): Define. | |
1346 | (_bfd_archive_bsd_read_ar_hdr): Define. | |
1347 | (_bfd_archive_coff_read_ar_hdr): Define. | |
1348 | * archive.c: Change all callers of _bfd_snarf_ar_hdr to call | |
1349 | _bfd_read_ar_hdr instead. | |
1350 | (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr. | |
1351 | (_bfd_compute_and_write_armap): Rename from | |
1352 | compute_and_write_armap. Make non-static. Change all callers. | |
1353 | * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather | |
1354 | than _bfd_snarf_ar_hdr. | |
1355 | * aout-target.h (MY_read_ar_hdr): Define if not defined. | |
1356 | * ieee.c (ieee_read_ar_hdr): Define. | |
1357 | * libecoff.h (_bfd_ecoff_read_ar_hdr): Define. | |
1358 | * oasys.c (oasys_read_ar_hdr): Define. | |
1359 | * som.c (som_read_ar_hdr): Define. | |
1360 | * bfd-in2.h, libbfd.h: Rebuild. | |
1361 | ||
f8e47484 SC |
1362 | Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com> |
1363 | ||
1364 | * peicode.c (coff_swap_filehdr_in): If symptr is | |
1365 | zero, there aren't any symbols, even if nsyms is set. | |
1366 | ||
2b874a2d ILT |
1367 | Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com> |
1368 | ||
aca73687 ILT |
1369 | * libecoff.h (struct ecoff_backend_data): Add adjust_headers |
1370 | field. | |
1371 | * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha | |
1372 | sections, and set styp correctly for them: .got, .hash, .dynamic, | |
1373 | .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment. | |
1374 | (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section | |
1375 | types. | |
1376 | (ecoff_sort_hdrs): New static function. | |
1377 | (ecoff_compute_section_file_positions): Return boolean, not void. | |
1378 | Sort the sections by VMA before looking through them. Put the | |
1379 | first non SEC_ALLOC section on a new page. Put every SEC_ALLOC | |
1380 | section on an appropriate boundary within the page. | |
1381 | (ecoff_compute_reloc_file_positions): Check return value of | |
1382 | ecoff_compute_section_file_positions. | |
1383 | (_bfd_ecoff_set_section_contents): Likewise. | |
1384 | (_bfd_ecoff_write_object_contents): Check for various Alpha | |
1385 | section types when incrementing text_size and data_size. Call | |
1386 | adjust_headers backend function if it exists. | |
1387 | * coff-alpha.c (alpha_adjust_headers): New static function. | |
1388 | (alpha_ecoff_backend_data): Initialize adjust_headers field. | |
1389 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1390 | ||
2b874a2d ILT |
1391 | * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6. |
1392 | ||
c780e5db JL |
1393 | Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com) |
1394 | ||
1395 | * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead | |
1396 | of ALTERNATE_AIX_CORE_FORMAT. | |
1397 | * configure.in (aix4): No longer need CORE_FLAGS. | |
1398 | * configure: Updated. | |
1399 | ||
2a01c351 KR |
1400 | Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com> |
1401 | ||
1402 | NS32k changes from Ian Dall: | |
1403 | * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New | |
1404 | macros. | |
1405 | (aout_link_input_section_std, aout_link_input_section_ext, | |
1406 | aout_link_reloc_link_order): Call them instead of _bfd_* | |
1407 | versions. | |
1408 | * aout-target.h (MY_exec_header_not_counted): New macro, defaults | |
1409 | to zero. | |
1410 | (backend_data): Use it instead of hardcoded zero. | |
1411 | ||
1412 | * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro. | |
1413 | (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi. | |
1414 | ||
1415 | * ns32knetbsd.c: Include bfd.h. | |
1416 | (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros. | |
1417 | (MY_bfd_reloc_type_lookup): Declare function too. | |
1418 | * pc532-mach.c (set_sizes): Don't declare. | |
1419 | (MY_text_includes_header, MY_exec_header_not_counted): Define. | |
1420 | (backend_data, MY_backend_data): Don't define. | |
1421 | ||
1422 | * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and | |
1423 | ns32k-*-lites* like ns32k-*-netbsd*. | |
1424 | ||
1425 | * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to | |
1426 | compile on lites. | |
1427 | ||
5944d75b ILT |
1428 | Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com> |
1429 | ||
1430 | * coffcode.h (coff_write_object_contents): Restore setting | |
1431 | f_timdat to 0, deleted on August 22. | |
1432 | ||
db344f82 SC |
1433 | Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com> |
1434 | ||
1435 | * coffcode.h (coff_bfd_copy_private_symbol_data, | |
1436 | coff_bfd_copy_private_section_data, | |
1437 | coff_bfd_copy_private_bfd_data): ifdef to allow overrides. | |
1438 | * peicode.h (coff_bfd_copy_private_bfd_data): New | |
1439 | (pe_bfd_copy_private_bfd_data): New. | |
1440 | (coff_swap_scnhdr_in): Swap bss size into the right place. | |
1441 | (pe_print_private_bfd_data): Add some newlines. | |
5944d75b | 1442 | |
c780e5db | 1443 | Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com) |
97f1feda JL |
1444 | |
1445 | * som.c (setup_sections): Don't die if a space has no subspaces. | |
1446 | ||
3d7c42c9 ILT |
1447 | Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com> |
1448 | ||
1449 | * elflink.h (elf_link_add_object_symbols): Don't let a weak | |
1450 | dynamic symbol override a common symbol. Don't change the size or | |
1451 | type if they have been set and the new symbol is not a definition. | |
1452 | Warn if the size or type changes. | |
1453 | ||
c780e5db | 1454 | Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com) |
709af562 JL |
1455 | |
1456 | * som.c (som_begin_writing): Don't write the symbol table or | |
1457 | symbol strings. | |
1458 | (som_finish_writing): Write them here. Place them after the | |
1459 | subspace data, but before the relocs. | |
1460 | ||
1461 | Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com> | |
1462 | ||
1463 | * sunos.c (sunos_add_one_symbol): Just pass false, not | |
1464 | info->shared_library, to sunos_create_dynamic_sections. | |
1465 | (sunos_scan_ext_relocs): Don't warn about a reloc in the .text | |
1466 | section. | |
1467 | (sunos_check_dynamic_reloc): Remove .text section assertion. | |
1468 | ||
7009e451 SS |
1469 | Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com> |
1470 | ||
1471 | * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*. | |
1472 | * configure, configure.in: Add pmac_xcoff_vec case. | |
1473 | * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. | |
1474 | * coff-pmac.c: New file, PowerMac XCOFF support. | |
1475 | * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. | |
1476 | * targets.c (pmac_xcoff_vec): Declare. | |
1477 | ||
1478 | * mpw-config.in: Various changes to be compatible with the | |
1479 | autoconf-based configury. | |
1480 | * mpw-make.sed: New file, sed commands to translate Unix | |
1481 | makefile into MPW syntax. | |
1482 | * mpw-make.in: Remove. | |
1483 | * hosts/mpw.h: Remove. | |
1484 | * bfd-in.h, bfd-in2.h: If MPW, include the file that defines | |
1485 | true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED. | |
1486 | ||
b91537be SC |
1487 | Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com> |
1488 | ||
1489 | * binary.c (binary_get_symtab): Return an empty string on error. | |
1490 | * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB. | |
1491 | ||
30360a6f KK |
1492 | Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie> |
1493 | ||
1494 | * coff-ppc.c: Reformatted according to gnu conventions | |
1495 | Removed irrelevant "if 0" code | |
1496 | ||
20d1e233 ILT |
1497 | Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com> |
1498 | ||
69fd4fdd ILT |
1499 | * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak |
1500 | symbols rather than as indirect symbols. | |
1501 | (MY(slurp_symbol_table)): Don't do anything special about | |
1502 | secondary symbols. | |
1503 | ||
46b5a892 ILT |
1504 | * coffcode.h (coff_new_section_hook): Make sure that the alignment |
1505 | of .ctors and .dtors sections is no larger than 2. | |
1506 | ||
9db59230 ILT |
1507 | * sunos.c (sunos_add_one_symbol): Don't change |
1508 | bfd_link_hash_common to bfd_link_hash_new, since it may be on the | |
1509 | undef list. | |
1510 | (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the | |
1511 | dynamic symbols when creating a shared library. | |
1512 | (sunos_scan_ext_relocs): Handle relocs correctly when creating a | |
1513 | shared library. | |
1514 | (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as | |
1515 | written even if it is not defined in a regular object. | |
1516 | (sunos_write_dynamic_symbol): Use plt_offset for the address of | |
1517 | the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT | |
1518 | rather than the constant 22. | |
1519 | (sunos_check_dynamic_reloc): Handle creating a shared library. | |
1520 | (sunos_finish_dynamic_link): Set the first entry in the GOT to | |
1521 | zero when creating a shared library. | |
1522 | * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC, | |
1523 | write it out at the start of the symbol table. | |
1524 | ||
20d1e233 ILT |
1525 | * Makefile.in (BFD32_BACKENDS): Add coff-arm.o. |
1526 | ||
a11e10fe DE |
1527 | Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com> |
1528 | ||
1529 | * config.bfd: Add arm-*-coff. | |
1530 | * configure.in, configure: Add armcoff_{little,big}_vec. | |
1531 | * targets.c (armcoff_{little,big}_vec): Declare. | |
1532 | (bfd_target_vector): Add armcoff_{little,big}_vec. | |
1533 | * coff-arm.c (armcoff_{little,big}_vec): Always define. | |
1534 | ||
99062cfc ILT |
1535 | Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com> |
1536 | ||
1537 | * targets.c (bfd_find_target): Remove debugging code. | |
1538 | ||
deacbe0f KK |
1539 | Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie> |
1540 | ||
1541 | * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE | |
1542 | support on powerpc. | |
1543 | * Makefile.in: added *-ppc files | |
1544 | * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to | |
1545 | allow pe based .o's to be shared with other tools on ppc/NT | |
1546 | * config.bfd: added powerpc[le]-[pe|winnt] config support | |
1547 | * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec | |
1548 | * peicode.h: Added more section flags for PE on ppc | |
1549 | Added coff_swap_filehdr_out to allow peicode.h to be | |
1550 | used for non-image PE files on ppc. | |
1551 | Check for image, or not, before copying pe_opthdr | |
1552 | * targets.c: Added new bfd's | |
30360a6f KK |
1553 | * targets.c: Removed two inactive bfds that shouldn't have made it this |
1554 | far. | |
deacbe0f | 1555 | |
d22b02e0 MM |
1556 | Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1557 | ||
1558 | * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use | |
1559 | explicit values to initialize all relocs. Change all users. | |
1560 | (ppc_elf_brtaken_inner): New function to handle branch predicition | |
1561 | relocs. | |
1562 | (ppc_elf_brtaken_reloc): Ditto. | |
1563 | (ppc_elf_howto_raw): Use new functions. Make sure all unsupported | |
1564 | relocs use ppc_elf_unsupported_reloc. | |
1565 | (ppc_elf_merge_private_bfd_data): Keep track of whether an error | |
1566 | needs to be reported. | |
1567 | (ppc_elf_relocate_section): Support branch prediction relocs. | |
1568 | ||
fcf490c0 ILT |
1569 | Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com> |
1570 | ||
e6cb7b41 ILT |
1571 | * bfd.c (bfd_assert): Remove \n from string passed to |
1572 | _bfd_error_handler. | |
1573 | ||
1af85fbb ILT |
1574 | * coff-i386.c: (TWO_DATA_SECS): Don't define. |
1575 | * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook. | |
1576 | (bfd_coff_make_section_hook): Don't define. | |
1577 | (coff_make_section_hook): Remove. | |
1578 | (sec_to_styp_flags): Remove TWO_DATA_SECS case. | |
1579 | (styp_to_sec_flags): Likewise. | |
1580 | (coff_write_object_contents): Likewise. | |
1581 | (bfd_coff_std_swap_table): Don't initialize make_section_hook | |
1582 | field. | |
1583 | * libcoff.h: Rebuild. | |
1584 | * coffgen.c (make_a_section_from_file): Just call | |
1585 | bfd_make_section_anyway, not bfd_make_section or | |
1586 | bfd_coff_make_section_hook. | |
1587 | * ecoff.c (_bfd_ecoff_make_section_hook): Remove. | |
1588 | * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare. | |
1589 | * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize | |
1590 | make_section_hook field. | |
1591 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
1592 | ||
fcf490c0 ILT |
1593 | * aoutx.h (translate_from_native_sym_flags): Don't try to stuff |
1594 | pointers into value field for warning and indirect symbols; just | |
1595 | leave the value field alone. | |
1596 | * linker.c (generic_link_add_symbol_list): Use next symbol for | |
1597 | warning and indirect symbols, rather than looking in symbol value. | |
1598 | * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr | |
1599 | parameter. Change all callers. Remove support for indirect | |
1600 | symbols; it didn't work anyhow. | |
1601 | (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable. | |
1602 | * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT. | |
1603 | * bfd-in2.h: Rebuild. | |
1604 | ||
cc47d19a MM |
1605 | Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1606 | ||
1607 | * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs, | |
1608 | go back to telling the tools this reloc operates on 32 bits. | |
1609 | ||
81449d47 ILT |
1610 | Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com> |
1611 | ||
7a7fbffb ILT |
1612 | * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler |
1613 | rather than a direct fprintf. | |
1614 | * archive.c (_bfd_write_archive_contents): Likewise. | |
1615 | * coffcode.h (coff_slurp_symbol_table): Likewise. | |
1616 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise. | |
1617 | (ppc_elf_unsupported_reloc): Likewise. | |
1618 | (ppc_elf_relocate_section): Likewise. | |
1619 | * i386linux.c (linux_tally_symbols): Likewise. | |
1620 | (linux_finish_dynamic_link): Likewise. | |
1621 | * osf-core.c (osf_core_core_file_p): Likewise. | |
1622 | * rs6000-core.c (rs6000coff_get_section_contents): Likewise. | |
1623 | * som.c (som_sizeof_headers): Likewise. | |
1624 | * srec.c (srec_bad_byte): Likewise. | |
1625 | * bfd.c (bfd_assert): Likewise. Also change file to be const. | |
1626 | * libbfd-in.h (bfd_assert): Declare first parameter const. | |
1627 | * libbfd.h: Rebuild. | |
1628 | * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning | |
1629 | bfd_reloc_overflow is enough. | |
1630 | * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort. | |
1631 | * coff-h8500.c (rtype2howto): Likewise. | |
1632 | * coff-z8k.c (rtype2howto): Likewise. | |
1633 | * coffcode.h (dummy_reloc16_extra_cases): Likewise. | |
1634 | * elf.c (_bfd_elf_get_lineno): Likewise. | |
1635 | (_bfd_elf_no_info_to_howto): Likewise. | |
1636 | (_bfd_elf_no_info_to_howto_rel): Likewise. | |
1637 | * hp300hpux.c (convert_sym_type): Likewise. | |
1638 | (MY(swap_std_reloc_in)): Likewise. | |
1639 | * elf.c (bfd_section_from_shdr): Remove #if 0 sections. | |
1640 | ||
f1c6dd5d ILT |
1641 | * libaout.h (struct aoutdata): Add line_buf field. |
1642 | * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer | |
1643 | and filename_buffer. Instead, use a malloc buffer stored in the | |
1644 | new line_buf field. Remove length restrictions. | |
1645 | ||
f0500a41 ILT |
1646 | * coffgen.c (string_size): Remove static variable. |
1647 | (debug_string_size, debug_string_section): Likewise. | |
1648 | (coff_fix_symbol_name): Add string_size_p, debug_string_section_p, | |
1649 | and debug_string_size_p parameters. Use them instead of the | |
1650 | global variables. Change all callers. | |
1651 | (coff_write_symbol): Likewise. | |
1652 | (coff_write_alien_symbol, coff_write_native_symbol): Likewise. | |
1653 | (coff_write_symbols): Add local variables to replace removed | |
1654 | global variables. | |
1655 | ||
25b5a53d ILT |
1656 | * libcoff-in.h (struct coff_section_tdata): Add offset, i, |
1657 | function, and line_base fields. | |
1658 | * libcoff.h: Rebuild. | |
1659 | * coffgen.c (coff_find_nearest_line): Use section tdata to cache | |
1660 | information, rather than using static variables. | |
1661 | ||
641ac26a ILT |
1662 | * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC |
1663 | file. From Peter DeWolf <pld@amt.tay1.dec.com>. | |
1664 | ||
81449d47 ILT |
1665 | * init.c (initialized): Remove static variable. |
1666 | (bfd_init): Don't bother setting initialized. | |
1667 | (bfd_check_init): Remove. | |
1668 | * opncls.c (_bfd_new_bfd): Don't call bfd_check_init. | |
1669 | * libbfd.h: Rebuild. | |
1670 | ||
138b9b81 PS |
1671 | Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) |
1672 | ||
1673 | * rs6000-core.c (rs6000coff_core_p): Don't check the core file | |
1674 | size for full core dumps. Copy core file header to private data. | |
1675 | (rs6000coff_core_file_failing_command, | |
1676 | rs6000coff_core_file_failing_signal): New functions to extract | |
1677 | the file name and terminating signal from the core file. | |
1678 | * coff-rs6000.c: Use them. | |
1679 | ||
2ffbb79a ILT |
1680 | Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com> |
1681 | ||
1682 | Change arch info to be const, initialized at compile time. | |
1683 | * archures.c: Reindent many functions. Change CONST to const. | |
1684 | (bfd_arch_info_type): Make arch_name const. Remove disassemble; | |
1685 | nothing set it anyhow. Make next const. | |
1686 | (bfd_arch_info_list): Remove. | |
1687 | (bfd_archures_list): Rename from archures_init_table. Change from | |
1688 | a table of function pointers to a table of bfd_arch_info_type | |
1689 | structure addresses. | |
1690 | (bfd_scan_arch): Rewrite accordingly. Return a const pointer. | |
1691 | (bfd_lookup_arch): Likewise. | |
1692 | (bfd_set_arch_info): Rewrite accordingly. Change argument to be a | |
1693 | const pointer. | |
1694 | (bfd_default_arch_struct): Make const. | |
1695 | (bfd_arch_init, bfd_arch_linkin): Remove. | |
1696 | (bfd_get_arch_info): Return a const pointer. | |
1697 | * init.c (bfd_init): Don't call bfd_arch_init. | |
1698 | * bfd.c (struct _bfd): Make arch_info const. | |
1699 | * bfd-in2.h: Rebuild. | |
1700 | * libbfd.h: Rebuild. | |
1701 | * configure.in: Put & before everything in $selarchs. | |
1702 | * configure: Rebuild. | |
1703 | * cpu-*.c: Change bfd_*_arch from a function which calls | |
1704 | bfd_arch_linkin to a const structure. | |
1705 | * ieee.c (ieee_object_p): Make arch const. | |
1706 | ||
02f85cda MM |
1707 | Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1708 | ||
1709 | * reloc.c (bfd_reloc_code_type): Add relocations to support all of | |
1710 | PowerPC V.4. | |
1711 | * bfd-in2.h: Regenerate. | |
1712 | * libbfd.h: Regenerate. | |
1713 | ||
1714 | * elf32-ppc.c (reloc_type): Update names to match current draft. | |
1715 | (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC | |
1716 | relative. Update names to current V.4 draft. | |
1717 | (ppc_elf_reloc_type_lookup): Add support for more relocations. | |
1718 | (ppc_elf_relocate_section): Rename relocations to match draft. | |
1719 | ||
dd82c578 MM |
1720 | Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com> |
1721 | ||
1722 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules | |
1723 | compiled with -mrelocatable-lib to be linked with either normal | |
1724 | modules or -mrelocatable modules. | |
1725 | ||
f69e888e ILT |
1726 | Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com> |
1727 | ||
e18c4e8f ILT |
1728 | * coffcode.h (coff_write_object_contents): Clear the vstamp field |
1729 | in the a.out header. | |
1730 | ||
f69e888e ILT |
1731 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for |
1732 | a reloc against a local symbol, even if it's not a section. | |
1733 | ||
a5655244 ILT |
1734 | Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com> |
1735 | ||
1736 | * targets.c (bfd_target): Remove unused align_power_min field. | |
1737 | * bfd-in2.h: Rebuild. | |
1738 | * All backends: Remove initialization of align_power_min. | |
1739 | ||
500d7394 SC |
1740 | Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com> |
1741 | ||
1742 | * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right. | |
500d7394 | 1743 | |
049df0a8 ILT |
1744 | Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no> |
1745 | ||
1746 | * config.bfd (mips-dec-netbsd*): New target. | |
1747 | * configure.host (mips-dec-netbsd*): New host. | |
1748 | * configure.in (mips-dec-netbsd*): New native. | |
1749 | * configure: Rebuild. | |
1750 | ||
1862bbd8 ILT |
1751 | Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com> |
1752 | ||
1753 | Make the COFF backend linker merge common types: | |
1754 | * cofflink.c (struct coff_debug_merge_element): Define. | |
1755 | (struct coff_debug_merge_type): Define. | |
1756 | (struct coff_debug_merge_hash_entry): Define. | |
1757 | (struct coff_debug_merge_hash_table): Define. | |
1758 | (coff_debug_merge_hash_table_init): Define. | |
1759 | (coff_debug_merge_hash_table_free): Define. | |
1760 | (coff_debug_merge_hash_lookup): Define. | |
1761 | (struct coff_final_link_info): Add debug_merge field. | |
1762 | (coff_debug_merge_hash_newfunc): New static function. | |
1763 | (_bfd_coff_final_link): Allocate and free debug_merge table. | |
1764 | (coff_link_input_bfd): Merge identical enum, struct and union | |
1765 | types. | |
1766 | ||
a208a70f ILT |
1767 | Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com> |
1768 | ||
1769 | Convert i960 COFF to use COFF backend linker. | |
1770 | * coff-i960.c (coff_i960_relocate): Use a coff_section_data | |
1771 | structure to store the symbol being used. | |
1772 | (coff_i960_start_final_link): New static function. | |
1773 | (coff_i960_relocate_section): New static function. | |
1774 | (coff_i960_adjust_symndx): New static function. | |
1775 | (coff_start_final_link): Define. | |
1776 | (coff_relocate_section): Define. | |
1777 | (coff_adjust_symndx): Define. | |
1778 | * coffcode.h (bfd_coff_backend_data): Add new callback function | |
1779 | _bfd_coff_start_final_link. | |
1780 | (bfd_coff_start_final_link): Define. | |
1781 | (coff_start_final_link): Define if not defined. | |
1782 | (bfd_coff_std_swap_table): Add coff_start_final_link. | |
1783 | * cofflink.c (_bfd_coff_internal_syment_name): Make globally | |
1784 | visible. | |
1785 | (_bfd_coff_final_link): Call bfd_coff_start_final_link if the | |
1786 | function callback is not NULL. | |
1787 | * libcoff-in.h (struct coff_section_tdata): Add tdata field. | |
1788 | (_bfd_coff_internal_syment_name): Declare. | |
1789 | * libcoff.h: Rebuild. | |
1790 | * configure.in (icoff_big_vec): Add cofflink.o. | |
1791 | (icoff_little_vec): Likewise. | |
1792 | * configure: Rebuild. | |
1793 | ||
f0abedbe FF |
1794 | Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com> |
1795 | ||
1796 | * Makefile.in (clean-info): Remove extraneous tab from line | |
1797 | following action. | |
1798 | ||
aa4b3dc5 ILT |
1799 | Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com> |
1800 | ||
1801 | * cofflink.c (coff_link_input_bfd): Fail if a section with no | |
1802 | contents has relocs. | |
1803 | ||
4ca63811 | 1804 | Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com> |
beee31b1 SC |
1805 | |
1806 | * coffcode.h (coff_compute_section_file_positions): Keep the | |
1807 | raw size safe. | |
1808 | (coff_write_object_contents): Remember if it's a relocatable | |
1809 | file. | |
1810 | * libcoff-in.h (pe_data_type): New member 'has_reloc_section' | |
1811 | * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag | |
1812 | if relocatable file. Swap out saved raw size. | |
1813 | ||
ae115e51 ILT |
1814 | Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com> |
1815 | ||
9521bac3 ILT |
1816 | * Makefile.in (do_maintainer_clean): Rename from do_realclean. |
1817 | (maintainer-clean): Rename from realclean, passing | |
1818 | maintainer-clean down to subdirectories, but leave realclean as a | |
1819 | synonym. | |
1820 | ||
4ca63811 ILT |
1821 | * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to |
1822 | warning callback. | |
1823 | ||
5aa4c3ff ILT |
1824 | * dep-in.sed: Remove config.h from generated dependencies. |
1825 | ||
396aaeb2 ILT |
1826 | * sunos.c (sunos_slurp_dynamic_symtab): New static function, |
1827 | broken out of sunos_canonicalize_dynamic_symtab. | |
1828 | (sunos_canonicalize_dynamic_symtab): Call new function | |
1829 | sunos_slurp_dynamic_symtab. | |
1830 | (sunos_add_dynamic_symbols): Add three new parameters. Return the | |
1831 | dynamic symbol table to the caller. | |
1832 | * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols | |
1833 | callback to override the symbols being read. | |
1834 | * libaout.h (struct aout_backend_data): Add three new parameters | |
1835 | to add_dynamic_symbols callback. | |
1836 | ||
ae115e51 ILT |
1837 | Extensive minor changes to avoid various gcc warnings. Also: |
1838 | * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. | |
1839 | * archures.c (bfd_arch_info_type): Change mach field from long to | |
1840 | unsigned long. | |
1841 | (bfd_lookup_arch): Change machine parameter from long to unsigned | |
1842 | long. | |
1843 | ||
b088e4b2 ILT |
1844 | Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com> |
1845 | ||
1846 | * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find | |
1847 | a symbol with a non-zero plt_offset. | |
1848 | ||
1dff7902 ILT |
1849 | Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com> |
1850 | ||
2b71e1e4 ILT |
1851 | * elfcode.h (align_file_position): Remove; not used. |
1852 | ||
1dff7902 ILT |
1853 | * configure.in: Only check for <sys/procfs.h> on a native system, |
1854 | and make sure it defines prstatus_t. | |
1855 | * configure: Rebuild. | |
1856 | ||
870015b1 ILT |
1857 | Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com> |
1858 | ||
535c89f0 ILT |
1859 | * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test. |
1860 | ||
936b870c ILT |
1861 | * config.in: Rename from config.h.in. |
1862 | * configure.in: Call AC_CONFIG_HEADER with config.h:config.in. | |
a7873a6c | 1863 | Check for config.h:config.in when creating stamp-h. |
936b870c | 1864 | * configure: Rebuild. |
a7873a6c ILT |
1865 | * Makefile.in (stamp-h): Depend upon config.in rather than |
1866 | config.h.in. Set CONFIG_HEADERS to config.h:config.in when | |
1867 | calling config.status. | |
936b870c | 1868 | |
870015b1 ILT |
1869 | * Makefile.in (do_distclean): Remove config.h and stamp-h. |
1870 | (Makefile): Just rebuild Makefile. | |
1871 | (config.h, stamp-h): New targets. | |
1872 | * configure.in: Create stamp-h when rebuilding config.h. | |
1873 | * configure: Rebuild. | |
1874 | ||
b7577823 ILT |
1875 | Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com> |
1876 | ||
1877 | * configure.in: Call AC_CONFIG_HEADER. Substitute | |
1878 | HOST_64BIT_LONG. Check that various header files exist. Check | |
1879 | that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc | |
1880 | and/or free need to be declared. Don't make a link to sysdep.h. | |
1881 | Define TRAD_HEADER for various hosts. | |
1882 | * configure: Rebuild. | |
1883 | * configure.host: Don't set my_host. Add definitions taken from | |
1884 | host header files for various entries. Remove entries which now | |
1885 | do nothing. | |
1886 | * acconfig.h: New file. | |
1887 | * config.h.in: New file, built by autoheader. | |
1888 | * sysdep.h: New file. | |
1889 | * Makefile.in (do_distclean): Don't remove sysdep.h. | |
1890 | (RECONFIG): Remove. | |
1891 | (LOCAL_H_DEPS): New variable. | |
1892 | ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and | |
1893 | $(RECONFIG). | |
1894 | ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise. | |
1895 | ($(OPTIONAL_BACKENDS)): Likewise. | |
1896 | (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than | |
1897 | looking through sysdep.h. | |
1898 | * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile. | |
1899 | (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG. | |
1900 | (fprintf_vma, sprintf_vma): Likewise. | |
1901 | (int64_type, uint64_type): Don't define. | |
1902 | * bfd-in2.h: Rebuild. | |
1903 | * archures.c, bfd.c, srec.c: Include <ctype.h>. | |
1904 | * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS. | |
1905 | * lynx-core.c: Include stuff from old hosts/lynx.h. | |
1906 | * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL), | |
1907 | rather than NO_FCNTL. | |
1908 | * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__ | |
1909 | rather than NATIVE_HPPAHPUX_COMPILER. | |
1910 | * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it | |
1911 | is defined. | |
1912 | * hosts/*.h: Remove all header files which merely include, | |
1913 | declare, and define things. Leave header files which define | |
1914 | information needed by trad-core.c. | |
1915 | ||
1916 | * aclocal.m4 (BFD_BINARY_FOPEN): Define. | |
1917 | (BFD_CC_FOR_BUILD): Define. | |
1918 | * configure.in: Use BFD_CC_FOR_BUILD. | |
1919 | * configure: Rebuild. | |
1920 | ||
7a93ebdd ILT |
1921 | Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com> |
1922 | ||
4c2e4d0e ILT |
1923 | * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist. |
1924 | * configure: Rebuild. | |
1925 | ||
7a93ebdd ILT |
1926 | * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of |
1927 | a global symbol. | |
1928 | ||
866bb9e5 JM |
1929 | Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com) |
1930 | ||
1931 | * config.bfd: i386pe_ve -> i386pe_vec. | |
1932 | ||
2b79a104 ILT |
1933 | Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com> |
1934 | ||
f515fb2f ILT |
1935 | * configure.host: Incorporate host Makefile fragments by setting |
1936 | shell variables. | |
1937 | * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and | |
1938 | AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a | |
1939 | value based on whether the code is being compiled by a cross | |
1940 | compiler. Don't substitute host_makefile_frag or frags. | |
1941 | * aclocal.m4: New file to define local AC_PROG_CC. | |
1942 | * configure: Rebuild. | |
1943 | * Makefile.in (INSTALL): Set to @INSTALL@. | |
1944 | (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@. | |
1945 | (INSTALL_DATA): Set to @INSTALL_DATA@. | |
1946 | (AR): Set to @AR@. | |
1947 | (CC): Define as @CC@. | |
1948 | (CFLAGS): Set to @CFLAGS@. | |
1949 | (CC_FOR_BUILD): Set to @CC_FOR_BUILD@. | |
1950 | (@host_makefile_frag@): Remove. | |
1951 | (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS) | |
1952 | after other options. | |
1953 | (config.status): Remove dependency upon @frags@. | |
1954 | * config/*.mh, config/README: Remove. | |
1955 | ||
2b79a104 ILT |
1956 | * config.bfd: Rewrite to incorporate the contents of the Makefile |
1957 | fragments by setting shell variables, rather than merely returning | |
1958 | the name of a Makefile fragment. | |
1959 | * configure.in: Use shell variables set by config.bfd rather than | |
1960 | looking at the target Makefile fragment files. Don't substitute | |
1961 | target_makefile_frag. Do substitute TDEFINES. | |
1962 | * configure: Rebuild. | |
1963 | * Makefile.in (@target_makefile_frag@): Remove. | |
1964 | (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@. | |
1965 | * config/*.mt: Remove. | |
1966 | ||
2cb159a5 KR |
1967 | Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com> |
1968 | ||
1969 | * configure.in: Put changequote lines around "i[345]86" patterns | |
1970 | section of core file support. | |
1971 | ||
ef07871c JL |
1972 | Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu) |
1973 | ||
1974 | * som.c (som_bfd_print_private_bfd_data): Define to use the | |
1975 | generic version. | |
1976 | ||
1613e075 SC |
1977 | Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com> |
1978 | ||
1979 | * peicode.h (coff_swap_aouthdr_in): Add ImageBase to | |
1980 | entry, text_start and data_start. | |
1981 | ||
a52a3ce8 ILT |
1982 | Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com> |
1983 | ||
a21227ef ILT |
1984 | * Makefile.in (OFILES): Remove $(TDEPFILES). |
1985 | * config/apollo.mt (TDEPFILES): Remove. | |
1986 | * config/README: Update. | |
1987 | ||
a52a3ce8 ILT |
1988 | * configure.in: For a native configuration, set COREFILE and |
1989 | COREFLAG based on the canonical host name. | |
1990 | * configure: Rebuild. | |
1991 | * Makefile.in: Rebuild dependencies. | |
1992 | (ALL_CFLAGS): Add @COREFLAG@. | |
1993 | (OFILES): Replace $(HDEPFILES) with @COREFILE@. | |
1994 | * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file | |
1995 | support routines. Check LYNX_CORE rather than HOST_LYNX. | |
1996 | * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX. | |
1997 | * i386lynx.c: Likewise. | |
1998 | * m68klynx.c: Likewise. | |
1999 | * sparclynx.c: Likewise. | |
2000 | * rs6000-core.c: Check AIX_CORE rather than HOST_AIX. | |
2001 | * *-core.c: Comment changes. | |
2002 | * config/decstation.mh (HDEPFILES): Remove. | |
2003 | (HDEFINES): Remove -DTRAD_CORE. | |
2004 | * config/irix3.mh (RANLIB): Remove. | |
2005 | * config/irix4.mh (HDEPFILES, RANLIB): Remove. | |
2006 | (HDEFINES): Remove -DIRIX_CORE. | |
2007 | * config/riscos.mh (RANLIB, HDEPFILES): Remove. | |
2008 | (HDEFINES): Remove -DTRAD_CORE. | |
2009 | * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove. | |
2010 | * config/ultra3.mh (RANLIB): Remove. | |
2011 | * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove. | |
2012 | * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove. | |
2013 | * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove. | |
2014 | * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove. | |
2015 | * config/hppahpux.mh, config/hppaosf.mh: Remove. | |
2016 | * config/i386aix.mh, config/i386bsd.mh: Remove. | |
2017 | * config/i386linux.mh, config/i386mach3.mh: Remove. | |
2018 | * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove. | |
2019 | * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove. | |
2020 | * config/mipsmach3.mh, config/news-mips.mh: Remove. | |
2021 | * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove. | |
2022 | * config/rs600.mh, config/rs6000lynx.mh: Remove. | |
2023 | * config/solaris2.mh, config/stratus.mh: Remove. | |
2024 | * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove. | |
2025 | * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove. | |
2026 | ||
d6f672b8 ILT |
2027 | Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp> |
2028 | ||
2029 | * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or | |
2030 | DT_FINI entry if the appropriate symbol is not in the hash table. | |
2031 | ||
2032 | * libelf.h (struct elf_backend_data): Add create_program_headers | |
2033 | and want_hdr_in_seg fields. | |
2034 | * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not | |
2035 | defined. | |
2036 | (elf_backend_create_program_headers): Likewise. | |
2037 | (elfNN_bed): Initialize create_program_headers and | |
2038 | want_hdr_in_seg. | |
2039 | * elf.c (get_program_header_size): Call create_program_headers | |
2040 | backend routine. | |
2041 | (map_program_segments): Check want_hdr_in_seg backend field. Call | |
2042 | create_program_headers backend routine. | |
2043 | ||
2044 | * elf.c (assign_file_positions_except_relocs): Align non allocated | |
2045 | sections when creating an executable. | |
2046 | ||
2047 | * elfcode.h (elf_swap_phdr_in): Make non static. | |
2048 | (elf_swap_phdr_out): Make non static. | |
2049 | * libelf.h (bfd_elf32_swap_phdr_in): Declare. | |
2050 | (bfd_elf32_swap_phdr_out): Declare. | |
2051 | (bfd_elf64_swap_phdr_in): Declare. | |
2052 | (bfd_elf64_swap_phdr_out): Declare. | |
2053 | ||
2054 | * ecofflink.c (ecoff_collect_shuffle): New static function. | |
2055 | (_bfd_ecoff_get_accumulated_pdr): New function. | |
2056 | (_bfd_ecoff_get_accumulated_sym): New function. | |
2057 | (_bfd_ecoff_get_accumulated_ss): New function. | |
2058 | * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare. | |
2059 | (_bfd_ecoff_get_accumulated_sym): Declare. | |
2060 | (_bfd_ecoff_get_accumulated_ss): Declare. | |
2061 | * libbfd.h: Rebuild. | |
2062 | ||
0cb70568 ILT |
2063 | Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com> |
2064 | ||
d6f672b8 ILT |
2065 | * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo. |
2066 | ||
0cb70568 ILT |
2067 | * elflink.h (elf_link_add_object_symbols): Handle indirect and |
2068 | warning symbols. If any section is named .gnu.warning.XXX, treat | |
2069 | the contents as a warning to be issued if the symbol XXX is | |
2070 | referenced. | |
2071 | (elf_link_output_extsym): For an indirect or warning symbol, just | |
2072 | output the symbol it points to. | |
2073 | ||
2074 | * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error | |
2075 | if bfd_hash_allocate fails, since it will already be set. | |
2076 | (generic_link_hash_newfunc): Likewise. | |
2077 | (archive_hash_newfunc): Likewise. | |
2078 | (hash_entry_bfd): New static function. | |
2079 | (_bfd_generic_link_add_one_symbol): Pass new arguments to warning | |
2080 | callback. Allocate a new warning using the hash table newfunc. | |
2081 | Use bfd_hash_replace to update the entry in the hash table, rather | |
2082 | than assuming we can copy the fields with structure assignment. | |
2083 | ||
2084 | * hash.c (bfd_hash_replace): New function. | |
2085 | * bfd-in.h (bfd_hash_replace): Declare. | |
2086 | * bfd-in2.h: Rebuild. | |
2087 | ||
f14db880 JSC |
2088 | Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com> |
2089 | ||
2090 | * config.bfd: Add mips*vr4300-*-elf* target. | |
2091 | * config/mipsbvr4300.mt: Added. | |
2092 | ||
1613e075 | 2093 | See file ChangeLog.2 |
e6d739eb | 2094 | |
41126f15 JK |
2095 | \f |
2096 | Local Variables: | |
2097 | mode: indented-text | |
2098 | left-margin: 8 | |
6ec3bb6a ILT |
2099 | fill-column: 74 |
2100 | version-control: never | |
2101 | End: |