]>
Commit | Line | Data |
---|---|---|
0e9c4377 MH |
1 | start-sanitize-d30v |
2 | Thu Mar 27 00:45:57 1997 Martin M. Hunt <[email protected]> | |
3 | ||
4 | * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the | |
5 | 21-bit absolute that made it act as a relative. | |
6 | ||
7 | end-sanitize-d30v | |
537327bc ILT |
8 | Wed Mar 26 14:50:20 1997 Ian Lance Taylor <[email protected]> |
9 | ||
0e9c4377 MH |
10 | * elflink.c (_bfd_elf_create_linker_section): Don't set |
11 | bss_section and rel_section from existing sections. | |
12 | ||
537327bc ILT |
13 | * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section |
14 | if it is needed. | |
15 | ||
60d1227a SG |
16 | Tue Mar 25 22:26:56 1997 Stu Grossman ([email protected]) |
17 | ||
18 | * aoutx.h (some_aout_object_p): Change executable test to fix | |
19 | problems with embedded a.out systems. | |
20 | ||
3cd5cf3d ILT |
21 | Tue Mar 25 14:35:37 1997 Ian Lance Taylor <[email protected]> |
22 | ||
6717fb0d ILT |
23 | * stabs.c (_bfd_stab_section_offset): New function. |
24 | * libbfd-in.h (_bfd_stab_section_offset): Declare. | |
25 | * libbfd.h: Rebuild. | |
26 | * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a | |
27 | stab reloc. | |
28 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
29 | * elf32-mips.c (mips_elf_relocate_section): Likewise. | |
30 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
31 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
32 | * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. | |
33 | ||
3cd5cf3d ILT |
34 | * stabs.c (_bfd_link_section_stabs): Copy over the first header |
35 | symbol. Check for memory allocation failure of *psinfo. | |
36 | (_bfd_write_section_stabs): Add psinfo parameter. Change all | |
37 | callers. Set the value of the header symbol. | |
38 | * libbfd-in.h (_bfd_write_section_stabs): Update declaration. | |
39 | * libbfd.h: Rebuild. | |
40 | ||
67e87a1d FF |
41 | start-sanitize-tic80 |
42 | Mon Mar 24 20:07:29 1997 Fred Fish <[email protected]> | |
43 | ||
44 | * coff-tic80.c (tic80_howto_table): Add R_ABS entry. | |
45 | (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled | |
46 | reloc types, rather than silently failing to generate an output file. | |
47 | ||
48 | end-sanitize-tic80 | |
e9148724 ILT |
49 | Mon Mar 24 13:41:00 1997 Ian Lance Taylor <[email protected]> |
50 | ||
e1ea3dd5 ILT |
51 | * targmatch.sed: Use the hold space to put the #ifdef around the |
52 | the string constant. | |
53 | * targets.c (UNSUPPORTED_TARGET): Don't define. | |
54 | (find_target): Don't check for UNSUPPORTED_TARGET. | |
55 | (bfd_set_default_target): Don't try to optimize by checking for | |
56 | default. | |
57 | ||
032dc9ed ILT |
58 | * Makefile.in: Rebuild dependencies. |
59 | (ALL_MACHINES_CFILES): Add cpu-m32r.c. | |
60 | (BFD32_BACKENDS_CFILES): Add elf32-m32r.c. | |
61 | (elf32-m32r.o): Remove explicit target. | |
62 | ||
19d02576 ILT |
63 | * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or |
64 | i[3456]86-*-linux*. | |
65 | ||
e9148724 ILT |
66 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't |
67 | count section symbols for sections that were created by the | |
68 | linker, or are not allocatable or not loadable. | |
69 | (elf32_sparc_finish_dynamic_sections): Output output section | |
70 | symbols for section for which we made space for them. | |
71 | ||
0727fe10 ILT |
72 | Fri Mar 21 13:08:26 1997 Ian Lance Taylor <[email protected]> |
73 | ||
74 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is | |
75 | no .rela.plt section, don't output a DT_PLTGOT dynamic entry. | |
76 | ||
ff22a9db DE |
77 | Fri Mar 21 12:36:46 1997 Doug Evans <[email protected]> |
78 | ||
79 | * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16. | |
80 | (m32r_hi16_list): New static local. | |
81 | (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up. | |
82 | (m32r_elf_do_hi16_reloc): Delete. | |
83 | (m32r_elf_relocate_hi16): New function. | |
84 | (m32r_elf_lo16_reloc): New function. | |
85 | (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding | |
86 | LO16 reloc. | |
87 | ||
88 | Mon Mar 10 16:03:31 1997 Doug Evans <[email protected]> | |
89 | ||
90 | * elf32-m32r.c (m32r_elf_create_linker_section): Delete. | |
91 | (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support. | |
92 | (m32r_elf_final_sda_base): New function. | |
93 | (m32r_elf_relocate_section): Rewrite sdata support. | |
94 | (m32r_elf_finish_dynamic_sections): Delete. | |
95 | ||
34bc6ffc ILT |
96 | Thu Mar 20 12:39:02 1997 Ian Lance Taylor <[email protected]> |
97 | ||
ac388f2a ILT |
98 | Based on patches from Philippe De Muyter <[email protected]>. |
99 | * coff-svm68k.c: New file. Just defines some macros and includes | |
100 | coff-m68k.c. | |
101 | * coff-m68k.c: Add functions to handle common addends, moved in | |
102 | from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro. | |
103 | Control whether relocs are visible using STATIC_RELOCS. | |
104 | * cf-m68klynx.c: Simplify greatly: just define macros to control | |
105 | coff-m68k.c. | |
106 | * coff-aux.c: Likewise. Just leave add_one_symbol routine. | |
107 | * targets. (m68ksysvcoff_vec): Declare. | |
108 | (bfd_target_vector): Add m68ksysvcoff_vec. | |
109 | * config.bfd (m68*-motorola-sysv*): New target. | |
110 | * configure.in (m68ksysvcoff_vec): New vector. | |
111 | * configure: Rebuild. | |
112 | * Makefile.in: Rebuild dependencies. | |
113 | (BFD32_BACKENDS): Add coff-svm68k.o. | |
114 | (BFD32_BACKENDS_CFILES): Add coff-svm68k.c. | |
115 | ||
b9576d75 ILT |
116 | * binary.c (binary_set_section_contents): Don't get misled if the |
117 | first section is not loadable. From Matthew L. Martin | |
118 | <[email protected]>. | |
119 | ||
34bc6ffc ILT |
120 | * elflink.h (elf_bfd_final_link): Set the value of a section |
121 | symbol to the section address unless doing a relocateable link. | |
122 | ||
123 | Tue Mar 18 23:03:17 1997 Richard Henderson <[email protected]> | |
124 | ||
125 | * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create | |
126 | .plt entry if we've taken the function's address. | |
127 | (elf64_alpha_merge_gots): Merge collected flags info as well. | |
128 | ||
303e7257 ILT |
129 | Tue Mar 18 22:40:09 1997 H.J. Lu <[email protected]> |
130 | ||
131 | * Many files: Add function prototypes. | |
132 | * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare. | |
133 | * ecofflink.c: Include "libcoff.h" and "libecoff.h". | |
134 | * elf32-ppc.c (ppc_elf_fake_sections): Make static. | |
135 | * opncls.c (bfd_openstreamr): Change stream parameter to PTR. | |
136 | * peicode.h: Change several void * parameters to PTR. | |
137 | * srec.c (srec_get_symbol_info): Make static. | |
138 | * syms.c (bfd_symbol_is_absolute): Remove. | |
7197adc4 | 139 | * Makefile.in: Rebuild dependencies. |
303e7257 | 140 | |
939b2169 ILT |
141 | Tue Mar 18 12:58:08 1997 Ian Lance Taylor <[email protected]> |
142 | ||
e76386d2 ILT |
143 | * elf32-m32r.c (m32r_elf_is_local_label_name): Remove. |
144 | (bfd_elf32_bfd_is_local_label): Don't define. | |
145 | ||
939b2169 ILT |
146 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather |
147 | than malloc. | |
148 | ||
50ede03d ILT |
149 | Mon Mar 17 11:32:53 1997 Ian Lance Taylor <[email protected]> |
150 | ||
508539ab ILT |
151 | * bfd-in.h: Don't include obstack.h. |
152 | (struct bfd_hash_table): Change memory field to PTR. | |
153 | * bfd.c (struct _bfd): Change memory field to PTR. | |
154 | * bfd-in2.h: Rebuild. | |
155 | * libbfd-in.h (bfd_release): Declare as function, don't define as | |
156 | macro. | |
157 | * libbfd.h: Rebuild. | |
158 | * opncls.c: Include "objalloc.h" rather than "obstack.h". Use | |
159 | objalloc routines rather than obstack routines. | |
160 | (obstack_chunk_alloc, obstack_chunk_free): Don't define. | |
161 | (getpagesize): Don't define. | |
162 | (_bfd_new_bfd): Don't set _bfd_chunksize. | |
163 | (bfd_openr): Free new bfd and objalloc on failure. | |
164 | (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise. | |
165 | (bfd_alloc_size): Remove. | |
166 | (bfd_release): New function. | |
167 | * hash.c: Include "objalloc.h" rather than "obstack.h". Use | |
168 | objalloc routines rather than obstack routines. | |
169 | (obstack_chunk_alloc, obstack_chunk_free): Don't define. | |
170 | * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use | |
171 | objalloc routines rather than obstack routines. | |
172 | (obstack_chunk_alloc, obstack_chunk_free): Don't define. | |
173 | (struct accumulate): Change memory to struct objalloc *. | |
174 | * liboasys.h (oasys_data_type): Remove oasys_obstack field. | |
175 | * dep-in.sed: Don't remove obstack.h from dependency list. | |
176 | * Makefile.in: Rebuild dependencies. | |
177 | (BFD_H_DEPS): Remove obstack.h. | |
178 | (install): Don't install obstack.h. | |
179 | * Many files: Don't include "obstack.h". | |
180 | * VERSION: Bump. | |
181 | ||
062a1b96 ILT |
182 | * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove. |
183 | * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare. | |
184 | * libbfd.h: Rebuild. | |
185 | * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow. | |
186 | * sunos.c (sunos_add_dynamic_symbols): Likewise. | |
0103b447 | 187 | * srec.c (srec_scan): Rewrite to not use obstack_1grow. |
062a1b96 | 188 | |
50ede03d ILT |
189 | * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove |
190 | old version of bfd_alloc. | |
191 | * libbfd-in.h (bfd_alloc_by_size_t): Don't declare. | |
192 | * libbfd.h: Rebuild. | |
193 | * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t. | |
194 | ||
5e67a3c6 ILT |
195 | Sat Mar 15 15:24:18 1997 Ian Lance Taylor <[email protected]> |
196 | ||
197 | * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic | |
198 | ELF local label syntax as well. | |
199 | ||
7305cacd FF |
200 | Sat Mar 15 10:16:42 1997 Fred Fish <[email protected]> |
201 | ||
202 | * config.bfd (powerpc-*-beos*): New target. | |
203 | * configure.in (powerpc-*-beos*): Add case that explicitly | |
204 | does not set COREFILE for now. A future BeOS version is | |
205 | expected to support core files. | |
206 | * configure: Regenerate with autoconf. | |
207 | ||
f56d634e ILT |
208 | Fri Mar 14 16:43:22 1997 Ian Lance Taylor <[email protected]> |
209 | ||
4813bbed ILT |
210 | * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is |
211 | seen with a local symbol, rather than crashing. | |
212 | ||
f56d634e ILT |
213 | * elfcode.h (elf_slurp_symbol_table): Don't try to read the |
214 | version symbols if there aren't any. | |
215 | ||
4507d858 FF |
216 | start-sanitize-tic80 |
217 | Thu Mar 13 16:38:30 1997 Fred Fish <[email protected]> | |
218 | ||
219 | * coff-tic80.c (coff_rtype_to_howto): Define | |
220 | (coff_tic80_rtype_to_howto): Clone generic coff version and | |
221 | add code to handle the funky TI "internal relocations". | |
222 | ||
223 | end-sanitize-tic80 | |
94ba939a ILT |
224 | Thu Mar 13 14:08:53 1997 Ian Lance Taylor <[email protected]> |
225 | ||
37897db0 ILT |
226 | * elflink.h (elf_link_add_object_symbols): Don't warn about type |
227 | or size changes because of a weak symbol. | |
228 | ||
94ba939a ILT |
229 | * cisco-core.c (SIGEMT): Define if not defined. |
230 | ||
e549b1d2 ILT |
231 | Wed Mar 12 21:36:05 1997 Ian Lance Taylor <[email protected]> |
232 | ||
233 | * elflink.h (elf_link_add_object_symbols): Use extsymoff when | |
234 | setting ever. Sanity check the version number. Sort out copying | |
235 | flags and other information when adding an indirect symbol. | |
236 | (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic | |
237 | symbols added by the backend. Clear the entire contents of the | |
238 | versym section. | |
239 | (elf_export_symbol): Ignore indirect symbols. | |
240 | (elf_link_output_extsym): Accept a section without an owner in an | |
241 | assert. | |
242 | * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the | |
243 | version count. Correct the allocation of x_versymp. | |
244 | ||
245 | * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of | |
246 | the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA. | |
247 | Don't return bfd_und_section_ptr when info->shared. | |
248 | (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12. | |
249 | (mips_elf_create_dynamic_sections): Correct type: ^= for &=. | |
250 | (mips_elf_check_relocs): Resolve an indirect symbol in | |
251 | sym_hashes. | |
252 | (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into | |
253 | SHN_MIPS_TEXT or SHN_MIPS_DATA. | |
254 | ||
255 | * elf.c (bfd_elf_print_symbol): Tweak version output slightly. | |
256 | ||
257 | Tue Mar 11 01:38:36 1997 Ian Lance Taylor <[email protected]> | |
258 | ||
259 | From Eric Youngdale <[email protected]>: | |
260 | * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define. | |
261 | * elf.c (bfd_elf_print_symbol): Correct errors in last change. | |
262 | * elflink.h (elf_link_add_object_symbols): Handle cases in which a | |
263 | versioned symbol appears in both a regular and a shared object. | |
264 | (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when | |
265 | appropriate. Improve error message. | |
266 | (struct elf_outext_info): Rename from elf_finfo_failed. Change | |
267 | all uses. Add localsyms field. | |
268 | (elf_bfd_final_link): When generating a shared library, call | |
269 | elf_link_output_extsym to output all local symbols. | |
270 | (elf_link_output_extsym): Handle symbols which were forced to | |
271 | become local. | |
272 | ||
d6bfcdb5 ILT |
273 | Sun Mar 9 23:08:49 1997 Ian Lance Taylor <[email protected]> |
274 | ||
275 | From Eric Youngdale <[email protected]>: | |
276 | * elf-bfd.h (elf_symbol_type): Add version field. | |
277 | * elfcode.h (elf_slurp_symbol_table): Set version field. | |
278 | * elflink.h (elf_link_add_object_symbols): When creating an | |
279 | indirect symbol for a default version symbol, set DEF_DYNAMIC if | |
280 | appropriate. Set up an indirection from the nondefault version of | |
281 | the symbol as well. | |
282 | (NAME(bfd_elf,size_dynamic_sections)): Call | |
283 | elf_link_assign_sym_version before checking whether there are any | |
284 | versions. Always record the version name as a dynamic symbol. | |
285 | Initialize counters. | |
286 | (elf_link_assign_sym_version): After finding a version, see if a | |
287 | symbol should be forced to local scope. Create a new version | |
288 | definition if appropriate. | |
289 | (elf_link_output_extsym): Correct indirect symbol handling. | |
290 | * elf.c (bfd_elf_print_symbol): Print version information. | |
291 | (bfd_section_from_shdr): Turn version sections into BFD sections. | |
292 | (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info | |
293 | if sh_info is not already set. | |
294 | (_bfd_elf_copy_private_section_data): Copy sh_info for version | |
295 | sections. | |
296 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell | |
297 | _bfd_stringtab_add to copy the name into permanent memory if | |
298 | appropriate. | |
299 | ||
7debe20c ILT |
300 | Fri Mar 7 11:55:31 1997 H.J. Lu <[email protected]> |
301 | ||
302 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize. | |
303 | ||
358bb592 ILT |
304 | Fri Mar 7 10:37:30 1997 Ian Lance Taylor <[email protected]> |
305 | ||
ccd0e5e2 ILT |
306 | * coffcode.h (bfd_coff_backend_data): Change |
307 | _bfd_coff_compute_section_file_positions to return a boolean | |
308 | value. Change all callers. | |
309 | (coff_compute_section_file_positions): Change return type to | |
310 | boolean. If the size of the last section changed, then output a | |
311 | zero byte at the end of the file. | |
312 | * libcoff.h: Rebuild. | |
313 | ||
e8c4696e ILT |
314 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space |
315 | for at least 6 output symbols. | |
316 | (xcoff_write_global_symbol): When emitting TOC entry relocs, also | |
317 | emit a TC csect to represent the space they take up. For an XO | |
318 | symbol, just emit a reference, not a csect. | |
319 | ||
4104dff6 ILT |
320 | * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since |
321 | Solaris doesn't like the combined options, and the -f is | |
322 | unnecessary. | |
5bd7c941 | 323 | (stamp-tshlink, install): Likewise. |
4104dff6 | 324 | |
358bb592 ILT |
325 | * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26 |
326 | handling when little endian. | |
327 | ||
77bf22e6 JL |
328 | Thu Mar 6 13:51:51 1997 Jeffrey A Law ([email protected]) |
329 | ||
5847e6dd JL |
330 | * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function. |
331 | (mn10300_elf_relocate_section): Likewise. | |
332 | (elf_backend_relocate_section): Define. | |
333 | ||
77bf22e6 JL |
334 | * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE |
335 | relocs. Replace them with generic PCREL_{8,16,32} relocs. | |
336 | (elf32_mn10300_howto_table): Likewise. | |
337 | (elf32_mn10300_reloc_map): Likewise. | |
338 | (bfd_elf32_mn10300_reloc): Delete unused function. | |
339 | ||
13b58694 FF |
340 | Thu Mar 6 12:19:59 1997 Fred Fish <[email protected]> |
341 | ||
342 | start-sanitize-tic80 | |
343 | * coff-tic80.c (rtype2howto): If passed a relocation type we don't | |
344 | understand, just set the howto field to NULL, and the caller will | |
345 | print an appropriate error message. | |
346 | end-sanitize-tic80 | |
347 | * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and | |
348 | code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif | |
349 | block. Use NULL for initializations of "ptr" rather than bare 0. | |
350 | * coff-h8300.c: Fix typo in comment. | |
351 | * coff-h8500.c: Ditto. | |
352 | * coff-w65.c: Ditto | |
353 | * coff-z8k.c: Ditto. | |
354 | ||
da171461 DE |
355 | Wed Mar 5 13:59:09 1997 Doug Evans <[email protected]> |
356 | ||
357 | * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc. | |
358 | (m32r_elf_relax_section, m32r_elf_relax_delete_bytes, | |
359 | m32r_elf_get_relocated_section_contents): First pass at relax support. | |
360 | ||
da171461 DE |
361 | Mon Mar 3 13:27:09 1997 Ulrich Drepper <[email protected]> |
362 | ||
363 | * elflink.h (elf_link_add_object_symbols): Use correct sh_size | |
364 | entry for reading verdef records. | |
365 | Use correct braces for computing increments of extverdaux and | |
366 | exteverdef record pointers. | |
367 | ||
4b4ac3ae FF |
368 | start-sanitize-tic80 |
369 | Sun Mar 2 22:47:54 1997 Fred Fish <[email protected]> | |
370 | ||
371 | * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2 | |
372 | instead of 4. | |
373 | ||
374 | end-sanitize-tic80 | |
a48ef404 ILT |
375 | Sun Mar 2 16:25:35 1997 Ian Lance Taylor <[email protected]> |
376 | ||
377 | * elflink.h (elf_link_find_version_dependencies): Check that | |
378 | DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is | |
379 | set. | |
380 | ||
84fd6e7e FF |
381 | start-sanitize-tic80 |
382 | Fri Feb 28 16:52:40 1997 Fred Fish <[email protected]> | |
383 | ||
384 | * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC. | |
385 | ||
386 | end-sanitize-tic80 | |
af4dffff ILT |
387 | Fri Feb 28 15:06:45 1997 Ian Lance Taylor <[email protected]> |
388 | ||
73769e1f ILT |
389 | * targets.c (bfd_default_vector): Make non-const. |
390 | (find_target): New static function, broken out of | |
391 | bfd_find_target. | |
392 | (bfd_set_default_target): New function. | |
393 | (bfd_find_target): Call find_target. When defaulting, use | |
394 | bfd_default_vector[0] if it is not NULL. | |
395 | * libbfd-in.h (bfd_default_vector): Adjust declaration. | |
396 | * bfd-in2.h, libbfd.h: Rebuild. | |
397 | ||
af4dffff ILT |
398 | * syms.c (bfd_is_local_label): Return false if the symbol has no |
399 | name. | |
400 | * coff-i960.c (coff_i960_is_local_label_name): New function. | |
401 | (coff_bfd_is_local_label_name): Define. | |
402 | * coff-m68k.c (m68k_coff_is_local_label_name): New function. | |
403 | (coff_bfd_is_local_label_name): Define. | |
404 | * coff-rs6000.c (xcoff_is_local_label_name): New function. | |
405 | (coff_bfd_is_local_label_name): Define. | |
406 | * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning | |
407 | with .. or _.L_ as local. | |
408 | * elf32-i386.c (elf_i386_is_local_label_name): New function. | |
409 | (bfd_elf32_bfd_is_local_label_name): Define. | |
410 | * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols | |
411 | beginning with $ as local. | |
412 | ||
85d6f0b4 ILT |
413 | Thu Feb 27 18:36:23 1997 Ian Lance Taylor <[email protected]> |
414 | ||
e316f514 ILT |
415 | * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name |
416 | rather than comparing against info->lprefix. | |
417 | * cofflink.c (_bfd_coff_link_input_bfd): Likewise. | |
418 | * elflink.h (elf_link_input_bfd): Likewise. | |
419 | * linker.c (_bfd_generic_link_output_symbols): Likewise. | |
420 | * xcofflink.c (xcoff_link_input_bfd): Likewise. | |
421 | ||
422 | * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as | |
423 | _bfd_elf_is_local_label_name if not already defined. | |
424 | * elf.c (_bfd_elf_is_local_label_name): New function. | |
425 | * elf-bfd.h (_bfd_elf_is_local_label_name): Declare. | |
426 | ||
427 | * coff-m88k.c (coff_bfd_is_local_label_name): Define. | |
428 | (m88k_is_local_label_name): New static function. | |
429 | ||
430 | * coffcode.h (coff_bfd_is_local_label_name): Define as | |
431 | _bfd_coff_is_local_label_name if not already defined. | |
432 | * coffgen.c (_bfd_coff_is_local_label_name): New function. | |
433 | * libcoff-in.h (_bfd_coff_is_local_label_name): Declare. | |
434 | * libcoff.h: Rebuild. | |
435 | ||
35a3e78e ILT |
436 | * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label |
437 | to _bfd_is_local_label_name. | |
438 | (bfd_target): Likewise. | |
439 | * syms.c (bfd_is_local_label): Define as function, not macro. | |
440 | (bfd_is_local_name): Define. | |
441 | * libbfd.c (bfd_generic_is_local_label_name): Rename from | |
442 | bfd_generic_is_local_label, and take a string rather than a | |
443 | symbol. | |
444 | * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define. | |
445 | (_bfd_nosymbols_bfd_is_local_label_name): Define. | |
446 | (bfd_generic_is_local_label): Don't declare. | |
447 | (bfd_generic_is_local_label_name): Declare. | |
448 | * bfd-in2.h, libbfd.h: Rebuild. | |
449 | * All backends: Change local_label to local_label_name. | |
450 | ||
85d6f0b4 ILT |
451 | * elf32-mips.c (struct mips_got_info): Add assigned_gotno field. |
452 | (mips_elf_relocate_got_local): Change return type to boolean. | |
453 | Don't assume that the first zero entry is unassigned; instead, use | |
454 | assigned_gotno. | |
455 | (mips_elf_relocate_section): Check return value of | |
456 | mips_elf_relocate_got_local. | |
457 | (mips_elf_create_got_section): Initialize assigned_gotno field. | |
458 | ||
56819c99 MH |
459 | start-sanitize-d30v |
460 | Wed Feb 26 15:19:51 1997 Martin M. Hunt <[email protected]> | |
461 | ||
462 | * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit | |
463 | relocations. | |
464 | ||
465 | end-sanitize-d30v | |
fa802cb0 ILT |
466 | Wed Feb 26 13:33:03 1997 Ian Lance Taylor <[email protected]> |
467 | ||
468 | * elflink.h (elf_link_input_bfd): Don't skip symbols from sections | |
469 | that have no contents merely because linker_mark is not set. | |
470 | ||
471 | Tue Feb 25 18:51:35 1997 Stan Shebs <[email protected]> | |
472 | ||
473 | * config.bfd (mips*-*-lnews*): New target. | |
474 | * coff-mips.c (mips_relocate_section): Make assert compare | |
475 | content byteorder instead of header byteorder. | |
476 | (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian | |
477 | data. | |
55ef0d90 | 478 | * targets.c (bfd_target_vector): Add ecoff_biglittle_vec. |
fa802cb0 ILT |
479 | * configure.in (ecoff_biglittle_vec): Add case. |
480 | * configure: Update. | |
481 | ||
7b4be668 ILT |
482 | Tue Feb 25 00:32:49 1997 Ian Lance Taylor <[email protected]> |
483 | ||
b08f5ac2 ILT |
484 | * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose |
485 | name begins with ".note". | |
486 | (map_sections_to_segments): Add a PT_NOTE segment for any loadable | |
487 | section whose name begins with ".note". | |
488 | (get_program_header_size): Corresponding change. | |
489 | ||
7b4be668 ILT |
490 | * elf32-mips.c (mips_elf_relocate_section): Check for misaligned |
491 | jal and for jal overflow. | |
492 | ||
493 | Mon Feb 24 17:53:14 1997 Ian Lance Taylor <[email protected]> | |
494 | ||
495 | From Eric Youngdale <[email protected]>: | |
496 | * elflink.h (elf_link_add_archive_symbols): If a default symbol is | |
497 | not found, try looking it up again without the version name. | |
498 | (elf_link_add_object_symbols): Always link against the dynamic | |
499 | symbol table of a dynamic object. When linking against a dynamic | |
500 | object, include version strings in symbol names, and set up | |
501 | version information. Add indirect symbols for default versions. | |
502 | (elf_link_create_dynamic_sections): Add special version sections. | |
503 | (struct elf_assign_sym_version_info): Define. | |
504 | (struct elf_find_verdep_info): Define. | |
505 | (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set | |
506 | up version sections. | |
507 | (elf_adjust_dynamic_symbol): Ignore indirect symbols. | |
508 | (elf_link_find_version_dependencies): New static function. | |
509 | (elf_link_assign_sym_version): New static function. | |
510 | (elf_link_renumber_dynsyms): New static function. | |
511 | (struct elf_final_link_info): Add symver_sec field. | |
512 | (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count | |
513 | local symbols of a dynamic object. Handle DT_VER* constants. | |
514 | (elf_link_output_extsym): Simplify BFD_ASSERT checking for a | |
515 | dynamic object. Skip indirect symbols from ELF objects. Remove | |
516 | the version name before choosing a hash bucket. Write out the | |
517 | version information if appropriate. | |
518 | (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN. | |
519 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
520 | (bfd_elf64_size_dynamic_sections): Likewise. | |
521 | * bfd-in2.h: Rebuild. | |
522 | * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field. | |
523 | Change elf_link_hash_flags to unsigned short. | |
524 | (ELF_LINK_HIDDEN): Define. | |
525 | (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr, | |
526 | dynverdef_hdr, dynversym_section, dynverdef_section, | |
527 | dynverref_section, cverdefs, cverrefs, verdef, verref. | |
528 | (elf_dynversym, elf_dynverdef, elf_dynverref): Define. | |
529 | (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare. | |
530 | (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare. | |
531 | (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare. | |
532 | (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare. | |
533 | (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare. | |
534 | (_bfd_elf_slurp_version_tables): Declare. | |
535 | * elf.c (_bfd_elf_swap_verdef_in): New function. | |
536 | (_bfd_elf_swap_verdef_out): Likewise. | |
537 | (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise. | |
538 | (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise. | |
539 | (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise. | |
540 | (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise. | |
541 | (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print | |
542 | version information if there is any. | |
543 | (_bfd_elf_link_hash_newfunc): Initialize verinfo field. | |
544 | (bfd_section_from_shdr): Handle SHT_GNU_ver* section types. | |
545 | (elf_fake_sections): Handle .gnu.version* section names. | |
546 | (assign_section_numbers): Handle SHT_GNU_ver* section types. | |
547 | (_bfd_elf_slurp_version_tables): New function. | |
548 | * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include | |
549 | version name in string entered in dynamic hash table. | |
550 | * elfcode.h: Include fnmatch.h. | |
551 | * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic | |
552 | symbol which was forced to become local. | |
553 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
554 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
555 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
556 | * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise. | |
557 | ||
7b951eed JL |
558 | Fri Feb 21 16:15:18 1997 Jeffrey A Law ([email protected]) |
559 | ||
560 | * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify | |
561 | somewhat. | |
562 | (mn10200_elf_relax_section): Correctly compute a symbol's value | |
563 | when the symbol is local, but not in the same section as we are | |
564 | relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16 | |
565 | relaxing. | |
566 | ||
77dd1a25 DE |
567 | Fri Feb 21 13:55:14 1997 Doug Evans <[email protected]> |
568 | ||
569 | * elf32-m32r.c: Rewrite to use ELF backend linker. | |
570 | Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns. | |
571 | Add small data area support (R_M32R_SDA16). | |
572 | * reloc.c: Document BFD_RELOC_M32R_SDA16. | |
573 | * bfd-in2.h,libbfd.h: Regenerated. | |
574 | ||
fd395661 JL |
575 | Thu Feb 20 23:50:31 1997 Jeffrey A Law ([email protected]) |
576 | ||
577 | * elf32-mn10200.c (mn10200_elf_relax_section): New function. | |
578 | (mn10200_elf_relax_delete_bytes): Likewise. | |
579 | (mn10200_elf_symbol_address_p): Likewise. | |
580 | (mn10200_elf_get_relocated_section_contents): Likewise. | |
581 | (bfd_elf32_bfd_relax_section): Define. | |
582 | (bfd_elf32_bfd_get_relocated_section_contents): Likewise. | |
64af6679 JL |
583 | |
584 | * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function. | |
585 | (mn10200_elf_relocate_section): Likewise. | |
586 | (elf_backend_relocate_section): Define. | |
587 | ||
fd8d7c31 MH |
588 | start-sanitize-d30v |
589 | Tue Feb 18 17:22:59 1997 Martin M. Hunt <[email protected]> | |
590 | ||
591 | * Makefile.in, archures.c, config.bfd, configure.in, elf.c, | |
592 | reloc.c, targets.c: New target, elf-*-D30V. | |
593 | ||
594 | * bfd-in2.h, configure, libbfd.h: Rebuilt. | |
595 | ||
596 | * cpu-d30v.c, elf32-d30v.c: New files. | |
597 | ||
598 | end-sanitize-d30v | |
92a956e8 FF |
599 | Tue Feb 18 15:31:48 1997 Fred Fish <[email protected]> |
600 | ||
601 | * reloc.c (struct reloc_howto_struct): Fix typo in comment. | |
602 | * bfd-in2.h: Regenerated. | |
603 | start-sanitize-tic80 | |
604 | * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function. | |
605 | (rtype2howto): Add function. | |
606 | (tic80_howto_table): Add. | |
607 | end-sanitize-tic80 | |
608 | ||
609 | Tue Feb 18 11:41:00 1996 Dawn Perchik <[email protected]> | |
610 | ||
611 | * sysdep.h: Don't define errno in MSVC if error.h is included. | |
612 | ||
8d1ba96e JL |
613 | start-sanitize-v850 |
614 | Tue Feb 18 10:04:13 1997 Jeffrey A Law ([email protected]) | |
615 | ||
616 | * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx | |
617 | is initialized before it is used. | |
618 | ||
619 | end-sanitize-v850 | |
8ceca983 ILT |
620 | Mon Feb 17 11:28:40 1997 Ian Lance Taylor <[email protected]> |
621 | ||
622 | * hp300hpux.c (convert_sym_type): Don't convert a secondary common | |
623 | symbol into a weak undefined symbol; leave it as a common symbol. | |
624 | ||
54626f1a ILT |
625 | Fri Feb 14 19:08:03 1997 Ian Lance Taylor <[email protected]> |
626 | ||
627 | * elflink.h (elf_link_add_object_symbols): Don't issue a warning | |
628 | about a symbol defined in a dynamic object if it has already been | |
629 | defined in a regular object. | |
630 | ||
236969ac ILT |
631 | Thu Feb 13 20:53:22 1997 Klaus Kaempf ([email protected]) |
632 | ||
633 | * makefile.vms: Add gcc flags to allow compiling with current gcc | |
634 | snapshot | |
635 | (targmatch.h): New dependency. | |
636 | ||
54626f1a ILT |
637 | * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for |
638 | openVMS/Alpha. | |
639 | * evax.h (ALPHA_R_CODEADDR): New relocation. | |
640 | * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for | |
641 | openVMS/Alpha. | |
642 | * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this | |
643 | relocation. | |
644 | * bfd-in2.h, libbfd.h: Rebuild. | |
645 | ||
646 | Restrict symbol length to 64 bytes, case preserving: | |
647 | * evax-emh.c (_bfd_evax_write_emh): Remove case hacking. | |
648 | * evax-misc.c (_bfd_evax_case_hack_symbol): Remove. | |
649 | (_bfd_evax_length_hash_symbol): Added. | |
650 | * evax-etir.c (_bfd_evax_write_etir): Call | |
651 | _bfd_evax_length_hash_symbol before output of symbol. | |
652 | * evax-egsd.c (_bfd_evax_write_egsd): Likewise. | |
653 | * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove. | |
654 | ||
655 | * evax-emh.c: Output filename to object file without path. | |
656 | ||
657 | * evax-egsd.c: New sections for local and global commons. | |
658 | ||
659 | * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c, | |
660 | evax-misc.c, evax.h: Remove 8 bit characters from copyright | |
661 | notices. Replace AXP with Alpha. | |
662 | ||
62332d05 ILT |
663 | Wed Feb 12 18:10:30 1997 Ian Lance Taylor <[email protected]> |
664 | ||
665 | * sunos.c (sunos_create_dynamic_sections): We need the dynamic | |
666 | sections if we are creating a shared library. | |
667 | ||
3883007e DE |
668 | Tue Feb 11 15:45:43 1997 Doug Evans <[email protected]> |
669 | ||
670 | * configure.host (i386-windows): Don't set host64=true. | |
671 | ||
a4183ba5 ILT |
672 | Tue Feb 11 15:27:32 1997 Ian Lance Taylor <[email protected]> |
673 | ||
674 | * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL. | |
675 | (elf_mips16_gprel_howto): New static variable. | |
676 | (mips16_gprel_reloc): New static function. | |
677 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL. | |
678 | (mips_info_to_howto_rel): Handle R_MIPS16_GPREL. | |
679 | (mips_elf_relocate_section): Handle R_MIPS16_GPREL. | |
680 | * reloc.c (BFD_RELOC_MIPS16_GPREL): Define. | |
681 | * bfd-in2.h, libbfd.h: Rebuild. | |
682 | ||
b9c5ee68 DE |
683 | Mon Feb 10 23:25:00 1997 Doug Evans <[email protected]> |
684 | ||
685 | * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true | |
686 | for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}. | |
687 | ||
276c2d7d GRK |
688 | start-sanitize-r5900 |
689 | Fri Feb 7 16:20:17 1997 Gavin Koch <[email protected]> | |
690 | ||
691 | * config.bfd: add r5900 | |
692 | ||
693 | end-sanitize-r5900 | |
ba4a4594 ILT |
694 | Fri Feb 7 12:39:11 1997 Ian Lance Taylor <[email protected]> |
695 | ||
696 | * elflink.h (elf_link_input_bfd): If we've discarded a section, | |
697 | the output section will be the absolute section; don't print an | |
698 | assertion message for that case when doing a relocateable link. | |
699 | ||
e900e695 ILT |
700 | Thu Feb 6 16:55:43 1997 Ian Lance Taylor <[email protected]> |
701 | ||
702 | * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define. | |
703 | (struct mips_elf_link_hash_entry): Add new fields fn_stub, | |
704 | need_fn_sub, call_stub, and call_fp_stub. | |
705 | (struct mips_elf_link_hash_table): Add field mips16_stubs_seen. | |
706 | (mips_elf_link_hash_newfunc): Initialize new fields. | |
707 | (mips_elf_link_hash_table_create): Likewise. | |
708 | (mips_elf_relocate_section): Redirect relocations to use mips16 | |
709 | stubs when appropriate. | |
710 | (mips_elf_check_relocs): Attach stub sections to the appropriate | |
711 | symbol. Set need_fn_stub when appropriate. | |
712 | (mips_elf_always_size_sections): New static function. | |
713 | (mips_elf_check_mips16_stubs): New static function. | |
714 | (elf_backend_always_size_sections): Define. | |
715 | * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field. | |
716 | ||
717 | * elflink.h (elf_link_input_bfd): Discard local symbols that are | |
718 | attached to sections which are not being included in the link. | |
719 | ||
5b61a02a ILT |
720 | Wed Feb 5 13:20:17 1997 Ian Lance Taylor <[email protected]> |
721 | ||
722 | * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the | |
723 | symbol value when computing the addend for a pc_relative | |
724 | pcrel_offset reloc. | |
725 | ||
bcb686ca ILT |
726 | Mon Feb 3 11:54:06 1997 Ian Lance Taylor <[email protected]> |
727 | ||
5a50eec6 ILT |
728 | * cofflink.c (_bfd_coff_generic_relocate_section): If doing a |
729 | relocateable link, just skip pc_relative pcrel_offset relocs. | |
730 | * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto | |
731 | structure for an ARM26 reloc which can be resolved. | |
732 | (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the | |
733 | reloc can be resolved. | |
734 | ||
bcb686ca ILT |
735 | * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one |
736 | error in overflow check for R_RELBYTE. | |
737 | ||
167dc907 ILT |
738 | Fri Jan 31 14:07:27 1997 Ian Lance Taylor <[email protected]> |
739 | ||
6c58561e ILT |
740 | * ieee.c (ieee_slurp_section_data): Pick up the start address. |
741 | From Mark Rasin <[email protected]>. | |
742 | ||
167dc907 ILT |
743 | * aoutx.h (aout_link_write_symbols): Don't apply discard_l to |
744 | debugging symbols. | |
745 | ||
1a2faf1f JL |
746 | Wed Jan 29 00:00:49 1997 Jeffrey A Law ([email protected]) |
747 | ||
748 | * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc. | |
749 | (elf_mn10200_howto_table): Likewise. | |
750 | (mn10200_reloc_map): Likewise. | |
751 | ||
1d5c6cfd DE |
752 | Mon Jan 27 12:07:35 1997 Doug Evans <[email protected]> |
753 | ||
754 | * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}. | |
755 | * bfd-in2.h, libbfd.h: Regenerated. | |
756 | * elf32-m32r.c: Add support for them. | |
757 | ||
9950f925 ILT |
758 | Mon Jan 27 12:25:02 1997 Ian Lance Taylor <[email protected]> |
759 | ||
54aa1dea ILT |
760 | * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length. |
761 | * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt. | |
762 | start-sanitize-v850 | |
763 | * elf32-v850.c (v850_elf_final_link_relocate): Remove used | |
764 | r_format and r_pcrel. Always return a value. | |
765 | end-sanitize-v850 | |
766 | * riscix.c (MY_final_link_callback): Define to dummy value. | |
767 | ||
9950f925 ILT |
768 | * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for |
769 | relocations against the text segment, look up the output name of | |
770 | the reloc section. | |
771 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
772 | * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise. | |
773 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
774 | * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise. | |
775 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
776 | ||
0716c2e9 | 777 | start-sanitize-tic80 |
8c00b01d FF |
778 | Wed Jan 22 15:40:28 1997 Fred Fish <[email protected]> |
779 | ||
780 | * coff-tic80.c (tic80coff_vec): Use correct data put/get | |
781 | routines for little endian data. | |
782 | * coffcode.h (coff_write_object_contents): Set magic to | |
783 | TIC80_ARCH_MAGIC for TIc80. | |
784 | ||
0716c2e9 FF |
785 | Tue Jan 21 12:32:43 1997 Fred Fish <[email protected]> |
786 | ||
787 | * coff-tic80.c (tic80coff_vec): Change to little endian data | |
788 | as the default. | |
789 | ||
790 | end-sanitize-tic80 | |
db109ca2 ILT |
791 | Thu Jan 16 17:45:57 1997 Ian Lance Taylor <[email protected]> |
792 | ||
793 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of | |
794 | auxiliary_filters parameter to be const char * const *. Accept a | |
795 | NULL terminated array. | |
796 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
797 | (bfd_elf32_size_dynamic_sections): Update declaration. | |
798 | * bfd-in2.h: Rebuild. | |
799 | ||
800 | Wed Jan 15 11:21:32 1997 Ian Lance Taylor <[email protected]> | |
801 | ||
802 | * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a | |
803 | NOTYPE symbol in a text section as a FUNC symbol. | |
804 | ||
805 | * coffcode.h (coff_compute_section_file_positions): Force | |
806 | relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER. | |
807 | ||
e1616e16 DE |
808 | Tue Jan 14 08:46:33 1997 Doug Evans <[email protected]> |
809 | ||
810 | * libaout.h (machine_type): Reserve several values for sparclet. | |
811 | ||
4af93ad0 MM |
812 | start-sanitize-tic80 |
813 | Mon Jan 13 22:39:08 1997 Michael Meissner <[email protected]> | |
814 | ||
815 | * config.bfd (tic80-*-*): Don't require 'coff'. | |
816 | ||
91eb4378 | 817 | end-sanitize-tic80 |
0ce71ebd MM |
818 | start-sanitize-v850 |
819 | Mon Jan 13 19:36:25 1997 Michael Meissner <[email protected]> | |
820 | ||
821 | * elf32-v850.c (v850_elf_howto_table): Set the special_function | |
822 | table to v850_elf_reloc for all non-standard relocations. | |
823 | (v850_elf_check_relocs): Add check for h being non-null. | |
824 | (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch | |
825 | statement instead of multiple ifs. | |
826 | (v850_elf_relocate_section): Fix up error message, don't just call | |
827 | abort. | |
828 | ||
829 | end-sanitize-v850 | |
483e1b91 JL |
830 | Mon Jan 6 13:28:35 1997 Jeffrey A Law ([email protected]) |
831 | ||
09a7bde3 | 832 | * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace. |
40131692 JL |
833 | Use bfd_elf_generic_reloc as special function for all relocs. |
834 | (bfd_elf32_mn10200_reloc): Remove unnecessary function. | |
835 | ||
836 | * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for | |
483e1b91 JL |
837 | 24bit pc-relative reloc. |
838 | ||
28eb95aa FF |
839 | start-sanitize-tic80 |
840 | Fri Jan 3 16:33:00 1997 Fred Fish <[email protected]> | |
841 | ||
842 | * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list. | |
843 | * coff-tic80.c (tic80coff_vec): Data byte order is big endian and | |
844 | header byte order is little endian. Use correct bfd_get and | |
845 | bfd_put routines for little endian headers. | |
846 | * coffcode.h (coff_set_arch_mach_hook): Set arch to | |
847 | bfd_arch_tic80 for TIC80_ARCH_MAGIC number. | |
848 | ||
849 | end-sanitize-tic80 | |
b3ef3894 JL |
850 | Fri Jan 3 16:54:08 1997 Jeffrey A Law ([email protected]) |
851 | ||
852 | * reloc.c: Add BFD_RELOC_24. | |
853 | * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs. | |
854 | (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes. | |
855 | * bfd-in2.h, libbfd.h: Rebuilt. | |
856 | ||
ff12f303 ILT |
857 | Fri Jan 3 16:58:31 1997 Richard Henderson <[email protected]> |
858 | ||
859 | elf64-alpha multiple .got rewrite: | |
860 | ||
861 | * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry. | |
862 | (bfd_elf*_mkobject): Don't define here ... | |
863 | * elfxx-target.h: ... but rather here. Default always_size_sections | |
864 | hook to NULL. | |
865 | * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was | |
866 | what the #defines in elf-bfd.h transmuted it to anyway. | |
867 | ||
868 | * section.c: Add SEC_LINKER_CREATED flag. | |
869 | * bfd-in2.h: Rebuild. | |
870 | * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to | |
871 | relocation section flags. | |
872 | (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of | |
873 | SEC_IN_MEMORY to recognize generated bits. | |
874 | * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections): | |
875 | Likewise. | |
876 | * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections, | |
877 | mips_elf_create_compact_rel_section, mips_elf_create_got_section, | |
878 | mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise. | |
879 | * elf32-ppc.c (ppc_elf_create_linker_section, | |
880 | ppc_elf_size_dynamic_sections): Likewise. | |
881 | * elf32-sparc.c (elf32_sparc_check_relocs, | |
882 | elf32_sparc_size_dynamic_sections): Likewise. | |
883 | * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to | |
884 | section flags. | |
885 | (_bfd_elf_create_dynamic_sections): Likewise. | |
886 | (_bfd_elf_make_linker_section_rela): Likewise. | |
887 | * elflink.h (elf_link_create_dynamic_sections): Likewise. | |
888 | (bfd_elf,size_dynamic_sections): Call the always_size_sections hook. | |
889 | (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY | |
890 | to identify generated bits. | |
891 | (elf_link_input_bfd): Likewise. | |
892 | ||
893 | * elf64-alpha.c: Rewrite everything touching relocations. | |
894 | ||
afaed5e9 | 895 | start-sanitize-v850 |
de224d6a MM |
896 | Fri Jan 3 11:42:53 1997 Michael Meissner <[email protected]> |
897 | ||
898 | * elf32-v850.c (all functions and static variables): Go through | |
899 | and regularize names to be of the form v850_elf_<xxx>. | |
900 | (toplevel): Include <elf/v850.h>. | |
901 | (enum reloc_type): Move to include/elf/v850.h. | |
902 | (v850_elf_check_relocs): For common variables, if the variable is | |
903 | referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable | |
904 | into the appropriate section. | |
905 | (elf_backend_check_relocs): Define. | |
906 | ||
afaed5e9 MM |
907 | Tue Dec 31 15:15:28 1996 Michael Meissner <[email protected]> |
908 | ||
909 | * elf32-v850.c (elf_v850_howto_table): Fix some spacing. | |
910 | ||
911 | end-sanitize-v850 | |
148437ec ILT |
912 | Tue Dec 31 14:44:50 1996 Ian Lance Taylor <[email protected]> |
913 | ||
7c342fc5 ILT |
914 | * config.bfd (mips*el-*-linux*): New target. |
915 | (mips*-*-linux*): New target. | |
916 | ||
917 | * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up. | |
918 | Return a useful value. | |
919 | ||
6ded6615 ILT |
920 | * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE. |
921 | ||
dda7af9f ILT |
922 | * configure.in: Check ac_cv_func_mmap_fixed_mapped, not |
923 | ac_cv_func_mmap. | |
924 | * configure: Rebuild. | |
ab98712a ILT |
925 | * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of |
926 | ac_cv_func_mmap in bfd/configure.host. | |
dda7af9f | 927 | |
148437ec ILT |
928 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add |
929 | filter_shlib and auxiliary_filter_shlib parameters. | |
930 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and | |
931 | DT_FILTER. | |
932 | * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration. | |
933 | (bfd_elf64_size_dynamic_sections): Likewise. | |
934 | * bfd-in2.h: Rebuild. | |
935 | ||
1eeccb22 ILT |
936 | Mon Dec 30 18:48:52 1996 Ian Lance Taylor <[email protected]> |
937 | ||
938 | * xcofflink.c (xcoff_build_ldsyms): When exporting all defined | |
939 | symbols, don't export a symbol which is defined by an object in an | |
940 | archive which contains shared objects. | |
941 | ||
60b26712 | 942 | start-sanitize-tic80 |
fc46a9ec FF |
943 | Mon Dec 30 16:12:58 1996 Fred Fish <[email protected]> |
944 | ||
945 | * archures.c (enum bfd_architecture): Add bfd_arch_tic80 | |
946 | for TI TMS320c80 (MVP). | |
947 | (bfd_archures_list): Add bfd_tic80_arch. | |
948 | * bfd-in2.h: Regenerate by running "make headers". | |
949 | ||
60b26712 FF |
950 | Sun Dec 29 16:18:52 1996 Fred Fish <[email protected]> |
951 | ||
952 | * cpu-tic80.c (bfd_tic80_arch): Add struct. | |
953 | * configure.in (case $vec): Correct typo, "tb" not "tp". | |
954 | Also add cofflink.o for tic80coff_vec. | |
955 | * configure: Regenerate with autoconf. | |
956 | ||
957 | end-sanitize-tic80 | |
412f8c93 ILT |
958 | Mon Dec 30 11:54:56 1996 Ian Lance Taylor <[email protected]> |
959 | ||
960 | * libbfd.c: Patch up the mmap code so that it is only built if BFD | |
961 | is configured with --with-mmap. | |
962 | ||
5a608f5b | 963 | start-sanitize-tic80 |
fc46a9ec | 964 | Sun Dec 29 10:48:57 1996 Fred Fish <[email protected]> |
5a608f5b FF |
965 | |
966 | * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o | |
967 | (ALL_MACHINES): Add cpu-tic80.o | |
968 | (cpu-tic80.o, coff-tic80.o): Add dependencies. | |
969 | * coff-tic80.c: Add skeleton, cloned from another coff config. | |
970 | * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC | |
971 | for TIc80. | |
972 | ||
973 | end-sanitize-tic80 | |
60b26712 | 974 | Fri Dec 27 20:56:41 1996 Fred Fish <[email protected]> |
cd6213ff FF |
975 | |
976 | * TODO: Correct a misspelling. | |
977 | start-sanitize-tic80 | |
978 | * coff-tic80.c: New file for TI TMS320C80 (MVP). | |
979 | * cpu-tic80.c: New file for TI TMS320C80 (MVP). | |
980 | * configure.in (case $vec): Add tic80coff_vec entry. | |
981 | * configure: Regenerate with autoconf. | |
982 | * archures.c (bfd_tic80_arch): Declare. | |
983 | * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80. | |
984 | * config.bfd (case ${targ}): Add tic80*-*-coff* target. | |
985 | * targets.c (tic80coff_vec): Add decl as extern bfd_target. | |
986 | (bfd_target_vector): Add tic80coff_vec entry. | |
987 | end-sanitize-tic80 | |
988 | ||
6b8ec6f3 ILT |
989 | Fri Dec 27 11:48:12 1996 H.J. Lu <[email protected]> |
990 | ||
991 | * elflink.h (elf_buckets): Add some more values for larger | |
992 | binaries. | |
993 | ||
78650abd ILT |
994 | Thu Dec 26 18:36:54 1996 Ian Lance Taylor <[email protected]> |
995 | ||
996 | * Makefile.in (install): Move subdir_do out of conditional. From | |
997 | Fred Fish <[email protected]>. | |
998 | ||
8d16fe5c JL |
999 | Wed Dec 18 10:04:30 1996 Jeffrey A Law ([email protected]) |
1000 | ||
1001 | * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and | |
1002 | 32 bit relocs. | |
1003 | (elf_mn10200_howto_table): Likewise. | |
1004 | (mn10200_reloc_map): Likewise. | |
1005 | ||
69e2ff18 ILT |
1006 | Tue Dec 17 11:09:36 1996 Ian Lance Taylor <[email protected]> |
1007 | ||
e4f4813f ILT |
1008 | * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a |
1009 | mips16 symbol during the link. | |
1010 | (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a | |
1011 | mips16 symbol. | |
1012 | (mips_elf_link_output_symbol_hook): New static function. | |
1013 | (elf_backend_link_output_symbol_hook): Define. | |
1014 | ||
69e2ff18 ILT |
1015 | * elf.c (bfd_elf_print_symbol): Print the st_other field if it is |
1016 | not zero. | |
1017 | ||
e85f2fbd ILT |
1018 | Mon Dec 16 14:38:39 1996 Ian Lance Taylor <[email protected]> |
1019 | ||
1020 | * elf.c (bfd_section_from_shdr): Don't check for reloc sections | |
1021 | against SEC_DEBUGGING sections here (revert patch of December 5). | |
1022 | * elfcode.h (elf_object_p): Check for them here, instead. | |
1023 | ||
e35765a9 ILT |
1024 | Sun Dec 15 14:46:06 1996 Ian Lance Taylor <[email protected]> |
1025 | ||
1026 | * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter. | |
1027 | * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to | |
1028 | slurp_reloc_table. | |
1029 | (_bfd_elf_get_dynamic_reloc_upper_bound): New function. | |
1030 | (_bfd_elf_canonicalize_dynamic_reloc): New function. | |
1031 | * elf-bfd.h (struct elf_size_info): Update declaration of | |
1032 | slurp_reloc_table. | |
1033 | (_bfd_elf_get_dynamic_reloc_upper_bound): Declare. | |
1034 | (_bfd_elf_canonicalize_dynamic_reloc): Declare. | |
1035 | * elfxx-target.h: Use new dynamic reloc routines by default. | |
1036 | * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic | |
1037 | parameter. | |
1038 | ||
6270adfb ILT |
1039 | Fri Dec 13 13:18:49 1996 Dan Wilder <[email protected]> |
1040 | ||
1041 | * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k | |
1042 | if NAMES_HAVE_UNDERSCORE is defined. | |
1043 | ||
21e45f82 DE |
1044 | Fri Dec 13 11:13:23 1996 Doug Evans <[email protected]> |
1045 | ||
1046 | * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131. | |
1047 | ||
e7bab9df MM |
1048 | Thu Dec 12 15:07:20 1996 Michael Meissner <[email protected]> |
1049 | ||
1050 | * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the | |
1051 | supported relocs. | |
1052 | ||
a5147005 ILT |
1053 | Thu Dec 12 14:55:41 1996 Ian Lance Taylor <[email protected]> |
1054 | ||
440f3914 ILT |
1055 | * elflink.h (elf_link_add_object_symbols): Only add a weak |
1056 | symbol if the real definition is in the dynamic symbol table. | |
1057 | After finding the real definition, then, if it is dynamic, add the | |
1058 | weak symbol to the dynamic symbol table. | |
1059 | ||
e5c3708d ILT |
1060 | * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static. |
1061 | ||
a5147005 ILT |
1062 | * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a |
1063 | function. | |
1064 | (ppcboot_bfd_print_private_bfd_data): Don't take the address of an | |
1065 | array. | |
1066 | ||
1067 | Tue Dec 10 23:23:52 1996 Jeffrey A Law ([email protected]) | |
1068 | ||
1069 | * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc | |
1070 | variants. | |
1071 | (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise. | |
1072 | (bfd_elf32_mn10300_reloc): Write data in little endian format. | |
1073 | * reloc.c: Remove mn10300 big endian relocs. | |
1074 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1075 | ||
1076 | * elf32-mn10200.c: Update from elf32-mn10300.c. | |
1077 | ||
207e944c JL |
1078 | Fri Dec 6 15:18:05 1996 Jeffrey A Law ([email protected]) |
1079 | ||
31cffd2e JL |
1080 | * elf32-mn10300.c (elf_symbol_leading_char): Define. |
1081 | ||
207e944c JL |
1082 | * elf32-mn10300.c: Add some comments. |
1083 | ||
6dcf1ef5 ILT |
1084 | Fri Dec 6 17:16:43 1996 Ian Lance Taylor <[email protected]> |
1085 | ||
1086 | * ihex.c (ihex_scan): Always initialize buf before jumping to | |
1087 | error_return. | |
1088 | (ihex_read_section): Likewise. | |
1089 | ||
d28f058e JL |
1090 | Thu Dec 5 22:29:18 1996 Jeffrey A Law ([email protected]) |
1091 | ||
1092 | * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial- | |
1093 | inplace for most relocs. | |
1094 | ||
80be821d ILT |
1095 | Thu Dec 5 13:24:46 1996 Ian Lance Taylor <[email protected]> |
1096 | ||
1097 | * elflink.h (elf_link_add_object_symbols): Calling check_relocs | |
1098 | even if SEC_ALLOC is not set. | |
1099 | * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC | |
1100 | when deciding whether to copy a reloc into a shared object. | |
1101 | (elf_i386_relocate_section): Likewise. | |
1102 | * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. | |
1103 | (elf32_sparc_relocate_section): Likewise. | |
1104 | * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a | |
1105 | reloc section if it is not set in the source section. | |
1106 | * elf32-sparc.c (elf32_sparc_check_relocs): Likewise. | |
1107 | * elf.c (bfd_section_from_shdr): Mark a reloc section associated | |
1108 | with a SEC_DEBUGGING section as SEC_DEBUGGING. | |
1109 | ||
e5c4495c MM |
1110 | Wed Dec 4 14:18:13 1996 Michael Meissner <[email protected]> |
1111 | ||
1112 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that | |
1113 | expects a .got.plt until we actually create it. | |
1114 | ||
179b58d9 ILT |
1115 | Mon Dec 2 12:13:51 1996 Ian Lance Taylor <[email protected]> |
1116 | ||
e5c4495c MM |
1117 | * cofflink.c (_bfd_coff_generic_relocate_section): Print an error |
1118 | message for bfd_reloc_outofrange, rather than aborting. From | |
1119 | Philippe De Muyter <[email protected]>. | |
1120 | ||
179b58d9 ILT |
1121 | * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in |
1122 | a relocateable link, don't try to process them. From Heinz Wrobel | |
1123 | <[email protected]>. | |
1124 | ||
943686fa JL |
1125 | Mon Dec 2 00:39:24 1996 Jeffrey A Law ([email protected]) |
1126 | ||
1127 | * elf32-mn10300.c (mn10300_info_howto): Renamed from | |
a5147005 | 1128 | mn10300_info_howto_rel. Tweak reloc argument to be an |
943686fa JL |
1129 | Elf32_Internal_Rela. |
1130 | (USE_RELA): Define instead of USE_REL. | |
1131 | (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. | |
1132 | ||
0e0f4106 PS |
1133 | Sun Dec 1 00:18:59 1996 Peter Schauer ([email protected]) |
1134 | ||
1135 | * configure.in, configure: Handle mips*-sgi-irix6*. | |
1136 | * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32 | |
1137 | core files. | |
1138 | ||
15aafe49 ILT |
1139 | Wed Nov 27 12:10:25 1996 Ian Lance Taylor <[email protected]> |
1140 | ||
1141 | * elf32-i386.c (elf_i386_relocate_section): Warn about a | |
1142 | relocation against a symbol defined in a section with no output | |
1143 | section. | |
1144 | ||
6c02f1a0 ILT |
1145 | Tue Nov 26 11:07:31 1996 Ian Lance Taylor <[email protected]> |
1146 | ||
dfc7020d ILT |
1147 | * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS. |
1148 | * configure, config.in: Rebuild with autoconf 2.12. | |
1149 | ||
6c02f1a0 ILT |
1150 | * elf-bfd.h (struct elf_link_hash_entry): Add other field. |
1151 | * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field. | |
1152 | (swap_out_syms): Set st_other from existing st_other field. | |
1153 | * elflink.h (elf_link_add_object_symbols): Store st_other in hash | |
1154 | table other field. | |
1155 | (elf_link_output_extsym): Set the other field from the global hash | |
1156 | table entry. | |
1157 | * elf32-mips.c (enum reloc_type): Add R_MIPS16_26. | |
1158 | (elf_mips16_jump_howto): New static variable. | |
1159 | (mips16_jump_reloc): New static function. | |
1160 | (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP. | |
1161 | (mips_info_to_howto_rel): Handle R_MIPS16_26. | |
1162 | (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26 | |
1163 | to a mips16 symbol. | |
1164 | * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs. | |
1165 | * bfd-in2.h, libbfd.h: Rebuild. | |
1166 | * cpu-mips.c (arch_info_struct): Add mips:16 entry. | |
1167 | ||
f082b5ea ILT |
1168 | Mon Nov 25 11:23:32 1996 Ian Lance Taylor <[email protected]> |
1169 | ||
1170 | * configure.host: Use long long for mips-sgi-irix6*. | |
1171 | ||
1172 | * coffswap.h (coff_swap_scnhdr_out): Make line number overflow | |
1173 | only a warning. From Philippe De Muyter <[email protected]>. | |
1174 | ||
12fdaaf8 JL |
1175 | Mon Nov 25 08:52:29 1996 Jeffrey A Law ([email protected]) |
1176 | ||
1177 | * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function. | |
1178 | (enum reloc_type): Add more reloc types. | |
1179 | (elf32_mn10300_howto_table): Update for new reloc types. | |
1180 | (elf32_mn10300_reloc_map): Update for new reloc types. | |
1181 | * reloc.c: Add some new relocs for the mn10300 series. | |
1182 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1183 | ||
23def276 JL |
1184 | Sat Nov 23 13:26:18 1996 Jeffrey A Law ([email protected]) |
1185 | ||
1186 | * som.c (setup_sections): Don't lose for a space which has | |
1187 | no data, but some symbols. | |
1188 | ||
a600a89e ILT |
1189 | Fri Nov 22 11:32:13 1996 Ian Lance Taylor <[email protected]> |
1190 | ||
1191 | * sunos.c (struct sunos_link_hash_table): Add got_needed field. | |
1192 | (sunos_link_hash_table_create): Initialize got_needed. | |
1193 | (sunos_create_dynamic_sections): Only set .got section size if it | |
1194 | is not already set. Set got_needed. | |
1195 | (bfd_sunos_size_dynamic_sections): Check got_needed. Only set | |
1196 | sdynptr, and only handle dynamic sections, if dynamic sections are | |
1197 | needed. | |
1198 | (sunos_scan_std_relocs): Pass false to create_dynamic_sections. | |
1199 | Initialize .got section. | |
1200 | (sunos_scan_ext_relocs): Likewise. | |
1201 | (sunos_write_dynamic_symbol): Set up PLT entry even if this is not | |
1202 | a dynamic symbol. | |
1203 | (sunos_finish_dynamic_link): Check got_needed. Only set up | |
1204 | dynamic linking information if needed. | |
1205 | ||
aa09d6b2 RS |
1206 | Thu Nov 21 10:31:31 1996 Rob Savoye ([email protected]) |
1207 | ||
1208 | * config.bfd: Added VersaDOS format to the Ericsson configuration. | |
1209 | ||
c3239e66 JL |
1210 | Wed Nov 20 16:31:31 1996 Jeffrey A Law ([email protected]) |
1211 | ||
1212 | * elf32-mn10300.c: Rough cut at relocs for the mn10300. | |
1213 | ||
c3239e66 JL |
1214 | Wed Nov 13 08:12:38 1996 Jeffrey A Law ([email protected]) |
1215 | ||
1216 | * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h | |
1217 | anymore. | |
1218 | ||
c3239e66 JL |
1219 | Tue Nov 12 13:30:00 1996 Dawn Perchik <[email protected]> |
1220 | ||
1221 | * filemode.c: Include sysdep.h. | |
1222 | * ihex.c: Add casts to eliminate compiler warnings. | |
1223 | * sunos.c: Add casts to eliminate compiler warnings. | |
1224 | ||
9e23db76 MM |
1225 | Mon Nov 11 10:37:02 1996 Michael Meissner <[email protected]> |
1226 | ||
1227 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt | |
1228 | section. | |
1229 | (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make | |
1230 | appropriate relocations in the .so file if shared. | |
1231 | (ppc_elf_relocate_section): Ditto. | |
1232 | ||
affcfcf9 DE |
1233 | Tue Oct 29 15:03:02 1996 Doug Evans <[email protected]> |
1234 | ||
1235 | * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use | |
1236 | complain_overflow_unsigned. | |
1237 | ||
421a2956 MH |
1238 | Tue Oct 29 12:53:46 1996 Martin M. Hunt <[email protected]> |
1239 | ||
1240 | * elf32-d10v.c (elf_d10v_howto_table): Don't complain on | |
1241 | overflows for R_D10V_16 and R_D10V_18. | |
1242 | ||
061cc10b ILT |
1243 | Tue Oct 29 13:23:53 1996 Ian Lance Taylor <[email protected]> |
1244 | ||
1245 | * ieee.c (ieee_write_section_part): Use LMA rather than VMA. | |
1246 | (do_with_relocs): Likewise. | |
1247 | (do_as_repeat): Likewise. | |
1248 | (copy_expression): Likewise. | |
1249 | ||
1250 | Fri Oct 25 16:56:40 1996 Ian Lance Taylor <[email protected]> | |
1251 | ||
1252 | * ieee.c (ieee_write_external_part): Correctly record whether | |
1253 | there is an external part. | |
1254 | ||
1255 | start-sanitize-v850 | |
1256 | Thu Oct 24 14:32:52 1996 Jeffrey A Law ([email protected]) | |
1257 | ||
1258 | * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly | |
1259 | handle tda offsets for sld.w and sst.w instructions. | |
1260 | Fix alignment check in sld.w and sst.w tda reloc handling. | |
1261 | ||
1262 | end-sanitize-v850 | |
27c7e907 SG |
1263 | Thu Oct 24 09:08:47 1996 Stu Grossman ([email protected]) |
1264 | ||
1265 | * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows. | |
1266 | ||
90ffe48b JL |
1267 | start-sanitize-v850 |
1268 | Wed Oct 23 00:53:16 1996 Jeffrey A Law ([email protected]) | |
1269 | ||
1270 | * elf32-v850.c: Add comments about assumptions about | |
1271 | char, short & long sizes. | |
1272 | (elf32_v850_bfd_final_link_relocate): Fix sign extension | |
1273 | problems for several relocs. | |
1274 | ||
1275 | * elf32-v850.c (elf32_v850_howto_table): Fix typo in | |
1276 | R_V850_SDA_OFFSET entry. | |
1277 | ||
c0e8bfc0 | 1278 | end-sanitize-v850 |
84be2a8f ILT |
1279 | Wed Oct 23 00:20:34 1996 Ian Lance Taylor <[email protected]> |
1280 | ||
1281 | * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym. | |
1282 | Store import file index in ldindx. | |
1283 | (xcoff_build_ldsyms): Assume that ldsym was not previously | |
1284 | allocated. For an imported symbol, copy ldindx into l_ifile. | |
1285 | ||
725b96f5 JL |
1286 | start-sanitize-v850 |
1287 | Tue Oct 22 19:20:38 1996 Jeffrey A Law ([email protected]) | |
1288 | ||
c322f1b5 | 1289 | * elf32-v850.c (elf_v850_howto_table): Fix ordering of |
90ffe48b JL |
1290 | R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various |
1291 | fields in R_V850_TDA_OFFSET. | |
c322f1b5 | 1292 | (elf32_v850_bfd_final_link_relocate): Tweak pc-relative |
90ffe48b | 1293 | relocs to work more like other relocs. Handle R_V850_TDA_OFFSET |
c322f1b5 JL |
1294 | relocations. |
1295 | ||
725b96f5 JL |
1296 | * elf32-v850.c: Include bfdlink.h. |
1297 | (bfd_elf32_v850_reloc): Return an error if we get a reloc | |
1298 | we can't handle. | |
1299 | (elf32_v850_bfd_final_link_relocate): New function. | |
1300 | (v850_elf_relocation_section): Likewise. | |
1301 | (elf_backend_relocate_section): Define. | |
1302 | ||
1303 | end-sanitize-v850 | |
40c0ea5a ILT |
1304 | Tue Oct 22 17:22:43 1996 Ian Lance Taylor <[email protected]> |
1305 | ||
1306 | * binary.c (binary_set_section_contents): Ignore sections which | |
1307 | don't have SEC_LOAD and SEC_ALLOC set. | |
1308 | ||
9c52f4b2 JL |
1309 | Mon Oct 21 12:13:05 1996 Jeffrey A Law ([email protected]) |
1310 | ||
1311 | * linker.c (_bfd_generic_final_link): Avoid losing static | |
1312 | symbols in the .bss section. | |
1313 | ||
bd4dd3d0 ILT |
1314 | Mon Oct 21 10:54:58 1996 Ian Lance Taylor <[email protected]> |
1315 | ||
68553b63 ILT |
1316 | * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64. |
1317 | (mips32_64bit_reloc): New static function. | |
1318 | (mips_reloc_map): Add entry for BFD_RELOC_64. | |
1319 | (mips_elf_relocate_section): Handle R_MIPS_64. | |
1320 | ||
bd4dd3d0 ILT |
1321 | * linker.c (default_indirect_link_order): Print an error message |
1322 | when attempting to do a relocateable link with different object | |
1323 | file formats, rather than calling abort. | |
1324 | ||
56910544 DE |
1325 | Thu Oct 17 10:43:29 1996 Doug Evans <[email protected]> |
1326 | ||
1327 | * reloc.c (m32r relocs): Rename them. | |
1328 | * bfd-in2.h, libbfd.h: Regenerated. | |
1329 | * elf32-m32r.c: Update. | |
1330 | (m32r_elf_10_pcrel_reloc): New function. | |
1331 | (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it. | |
1332 | (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks. | |
1333 | ||
e1d98a0a JL |
1334 | Wed Oct 16 11:24:35 1996 Jeffrey A Law ([email protected]) |
1335 | ||
4948949e JL |
1336 | * linker.c (_bfd_generic_final_link): Set "linker_mark" for |
1337 | all sections that will be included in the output file. | |
1338 | (_bfd_generic_link_output_symbols): Discard symbols in sections | |
1339 | which are being discarded. | |
1340 | ||
1341 | start-sanitize-v850 | |
b6d08fce JL |
1342 | |
1343 | * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET, | |
1344 | R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET. | |
1345 | (elf_v850_howto_table): Corresponding changes. | |
1346 | (elf_v850_reloc_map): Corresponding changes. | |
1347 | * reloc.c: Add additional V850 relocations. | |
1348 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1349 | ||
e1d98a0a JL |
1350 | * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we |
1351 | no longer want in pc-relative relocs. | |
1352 | ||
05f1baaa JL |
1353 | Tue Oct 15 22:17:37 1996 Jeffrey A Law ([email protected]) |
1354 | ||
1355 | * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently | |
1356 | accept a reloc against an undefined sybmol! | |
1357 | ||
1336da39 SG |
1358 | Tue Oct 15 16:17:28 1996 Stu Grossman ([email protected]) |
1359 | ||
1360 | * elf32-v850.c: Define elf_symbol_leading_char to be '_'. | |
1361 | ||
1362 | end-sanitize-v850 | |
c24453fe ILT |
1363 | Tue Oct 15 12:40:41 1996 Ian Lance Taylor <[email protected]> |
1364 | ||
ede836b9 ILT |
1365 | * VERSION: Bump for new relocation. |
1366 | ||
c24453fe ILT |
1367 | * hosts/i386bsd.h: If NBPG is not defined, define it as |
1368 | PAGE_SIZE, for recent versions of FreeBSD. | |
1369 | ||
e7a50458 ILT |
1370 | Mon Oct 14 12:37:26 1996 Ian Lance Taylor <[email protected]> |
1371 | ||
1372 | * configure.host: Use `long long' as the 64 bit type on a Solaris | |
1373 | host, since both gcc and the SunPRO compilers support it. | |
1374 | ||
6b31fd3a ILT |
1375 | Mon Oct 14 11:17:24 1996 Richard Henderson <[email protected]> |
1376 | ||
1377 | * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a | |
1378 | mistake to have reused the ECOFF LITERAL for ELF since they have | |
1379 | different semantics. | |
1380 | * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL. | |
1381 | * bfd-in2.h, libbfd.h: Rebuild. | |
1382 | ||
1383 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got | |
1384 | section overflow. | |
1385 | ||
1386 | * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a | |
1387 | dynamic relocation for an undefweak symbol when we are building | |
1388 | a static executable. | |
1389 | ||
f20f2474 SS |
1390 | Thu Oct 10 11:15:06 1996 Stan Shebs <[email protected]> |
1391 | ||
1392 | * mpw-make.sed (config.bfd, targmatch.sed): Edit references to | |
1393 | point explicitly to srcdir. | |
1394 | (targmatch.h): Edit references to point explicitly to objdir. | |
1395 | ||
3e222a5a ILT |
1396 | Thu Oct 10 14:14:23 1996 Ian Lance Taylor <[email protected]> |
1397 | ||
1398 | * config.bfd: When setting targ_cpu, don't get confused by | |
1399 | linux-gnu. | |
1400 | ||
81501797 SG |
1401 | Tue Oct 8 08:51:19 1996 Stu Grossman ([email protected]) |
1402 | ||
1403 | * configure.host: Add support for windows host (a build done | |
1404 | under the Microsoft build environment). | |
1405 | ||
fe4ff515 ILT |
1406 | Tue Oct 8 11:40:16 1996 Ian Lance Taylor <[email protected]> |
1407 | ||
1c4794f5 ILT |
1408 | * elflink.h (elf_link_add_object_symbols): If a symbol is a weak |
1409 | definition in a dynamic object, add it to the dynamic symbol table | |
1410 | if any dynamic object mentions it. Reverts part of last patch. | |
1411 | ||
9d81de19 ILT |
1412 | * sunos.c (struct sunos_link_hash_table): Add got_base field. |
1413 | (sunos_link_hash_table_create): Initialize got_base. | |
1414 | (bfd_sunos_size_dynamic_sections): If the .got section is more | |
1415 | than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to | |
1416 | 0x1000. | |
1417 | (sunos_check_dynamic_reloc): Subtract got_base from a base | |
1418 | relative relocation. | |
1419 | ||
fe4ff515 ILT |
1420 | * elf32-mips.c (elf_mips_isa): New static function. |
1421 | (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking | |
1422 | -mips1 and -mips2 code together, or -mips3 and -mips4 code. | |
1423 | ||
1233f74b ILT |
1424 | Mon Oct 7 11:44:17 1996 Ian Lance Taylor <[email protected]> |
1425 | ||
1426 | * archive.c (do_slurp_coff_armap): Only treat archive as little | |
1427 | endian for i960 COFF. | |
1428 | ||
a3d5a706 ILT |
1429 | Fri Oct 4 13:49:01 1996 Ian Lance Taylor <[email protected]> |
1430 | ||
65f56a58 ILT |
1431 | * coffcode.h (coff_compute_section_file_positions): Adjust sofar |
1432 | by the change in size of the section when EXEC_P is not set. | |
1433 | ||
a9dd34a9 ILT |
1434 | * coff-m68k.c (coff_rtype_to_howto): Define if not defined. |
1435 | (m68kcoff_rtype_to_howto): New static function. | |
1436 | * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section | |
1437 | VMA to the addend for a PC relative reloc. | |
1438 | ||
05a68c24 ILT |
1439 | * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on |
1440 | HP/UX 10.20. | |
1441 | * Makefile.in: Rebuild dependencies. | |
1442 | ||
a3d5a706 ILT |
1443 | * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when |
1444 | som.h is included. | |
1445 | ||
c00ae065 JL |
1446 | Fri Oct 4 11:41:39 1996 Jeffrey A Law ([email protected]) |
1447 | ||
1448 | * Makefile.in: Remove explicit dependencies for mn10200 and | |
1449 | mn10300 files. | |
1450 | (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c. | |
1451 | (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c | |
1452 | (dependencies): Rebuilt. | |
1453 | ||
dee99794 ILT |
1454 | Thu Oct 3 16:57:51 1996 Ian Lance Taylor <[email protected]> |
1455 | ||
1d871eb7 ILT |
1456 | * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms |
1457 | during this function. | |
1458 | ||
6b5af55c ILT |
1459 | * elflink.c (_bfd_elf_create_linker_section): Only use an existing |
1460 | section if the flags are compatible. | |
1461 | ||
dee99794 ILT |
1462 | * configure.in: Add havevecs, and put it in tdefaults. |
1463 | * mpw-config.in: Likewise. | |
1464 | * configure: Rebuild. | |
1465 | * targmatch.sed: New file; a sed script to build targmatch.h from | |
1466 | config.bfd. | |
1467 | * config.bfd: Add #if, #endif, and comments for targmatch.h. | |
1468 | * targets.c: Include "fnmatch.h". | |
1469 | (struct targmatch): Define. | |
1470 | (bfd_target_match): Define by including targmatch.h. | |
1471 | (bfd_find_target): If the target is not found by name, search for | |
1472 | it as a configuration triplet. | |
1473 | * Makefile.in: Rebuild dependencies. | |
1474 | (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o, | |
1475 | i386dynix.o, m68k4knetbsd.o, and riscix.o. | |
1476 | (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c, | |
1477 | hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c. | |
1478 | (HFILES): Add targmatch.h. Also, alphabetize and reindent. | |
1479 | (CFILES): Remove i386dynix.c and hp300bsd.c. | |
1480 | (targmatch.h): New target. | |
1481 | (do_clean): Remove targmatch.h. | |
1482 | ||
1483 | * configure.in: Add BFD_NEED_DECLARATION(getenv). | |
1484 | * acconfig.h: Add NEED_DECLARATION_GETENV. | |
1485 | * configure, config.in: Rebuild. | |
1486 | * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv. | |
1487 | * aout-adobe.c (aout_adobe_object_p): Don't declare getenv. | |
1488 | ||
ae1b99e4 JL |
1489 | Thu Oct 3 09:29:09 1996 Jeffrey A Law ([email protected]) |
1490 | ||
1491 | * cpu-mn10x00.c, elf32-mn10x00: Removed. | |
1492 | * cpu-mn10200.c, cpu-mn10300.c: New files. | |
1493 | * elf32-mn10200.c, elf32-mn10300.c: New files. | |
1494 | * Makefile.in: Break mn10x00 support into two separate | |
1495 | configurations, mn10200 and mn10300. | |
1496 | * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise. | |
1497 | * bfd-in2.h, configure: Rebuilt. | |
1498 | ||
4c7f3fde JM |
1499 | Thu Oct 3 15:38:19 1996 Jason Molenda ([email protected]) |
1500 | ||
1501 | * Makefile.in (do_clean): Move config.log to do_distclean. | |
1502 | ||
efc2b064 JL |
1503 | Wed Oct 2 21:40:55 1996 Jeffrey A Law ([email protected]) |
1504 | ||
1505 | * cpu-mn10x00.c, elf32-mn10x00.c: New files. | |
1506 | * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o. | |
1507 | (BFD32_BACKENDS): Similarly for elf32-mn10x00.o. | |
1508 | (elf32-mn10x00.o): Add dependencies. | |
1509 | * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00. | |
1510 | (bfd_mn10x00_arch): Declare. | |
1511 | (bfd_archures_list): Add bfd_mn10x00_arch. | |
1512 | * config.bfd: Add mn10x00-*-*. | |
1513 | * configure.in: Add bfd_elf32_mn10x00_vec. | |
1514 | * elf.c (prep_headers): Handle bfd_arch_mn10x00. | |
1515 | * targets.c (bfd_elf32_mn10x00_vec): Declare. | |
1516 | (bfd_target_vector): Add bfd_elf32_mn10x00_vec. | |
1517 | * bfd-in2.h, configure: Rebuilt. | |
1518 | ||
bf53bd9f ILT |
1519 | Wed Oct 2 15:46:45 1996 Klaus Kaempf <[email protected]> |
1520 | ||
1521 | openVMS/Alpha: Provide filename and case_hack flags via | |
1522 | symbol table from gas. | |
1523 | Add case_hack code for symbol output from vax/vms. | |
1524 | * evax-alpha.c (evax_initialize): Remove filename handling, | |
1525 | filename is provided via symbol table. | |
1526 | (evax_get_symtab): Use local symbol count when setting up table. | |
1527 | * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when | |
1528 | debugging. | |
1529 | (_bfd_evax_write_egsd): Skip file name symbol. | |
1530 | * evax-emh.c (get_vms_time_string): Local function now. | |
1531 | (_bfd_evax_write_emh): Extract source filename and case_hack flags | |
1532 | from symbol table. | |
1533 | * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names | |
1534 | through _bfd_evax_case_hack_symbol. | |
1535 | * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New | |
1536 | functions. | |
1537 | (_bfd_evax_basename): Removed. | |
1538 | (_bfd_get_vms_time_string): Moved to evax-emh.c. | |
1539 | * evax.h (evax_private_data_struct): Remove filename. | |
1540 | (flag_hash_long_names, flag_show_after_trunc, | |
1541 | flag_no_hash_mixed_case, vms_name_mapping): New flags for | |
1542 | vms_case_hack. | |
1543 | ||
263d4a62 ILT |
1544 | Wed Oct 2 12:02:02 1996 Ian Lance Taylor <[email protected]> |
1545 | ||
a0fe6c2d ILT |
1546 | * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl. |
1547 | (N_GETMID_NET, N_GETFLAG_NET): Likewise. | |
1548 | (NO_SWAP_MAGIC): Don't define. | |
1549 | (SWAP_MAGIC): Define. | |
1550 | ||
263d4a62 ILT |
1551 | * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is |
1552 | no hash table entry for a global symbol. | |
1553 | ||
161ac690 ILT |
1554 | Tue Oct 1 16:14:22 1996 Joel Sherrill <[email protected]> |
1555 | ||
1556 | * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*. | |
1557 | ||
0db6249c ILT |
1558 | Tue Oct 1 12:31:39 1996 Ian Lance Taylor <[email protected]> |
1559 | ||
8dd53b5c ILT |
1560 | * cofflink.c (coff_link_add_symbols): Don't override a meaningful |
1561 | symbol type with T_NULL. Warn if symbol type changes. Based on | |
e5c4495c | 1562 | patch from Philippe De Muyter <[email protected]>. |
8dd53b5c | 1563 | |
0db6249c ILT |
1564 | * elflink.h (elf_link_add_object_symbols): Only put a symbol from |
1565 | a dynamic object in the dynamic symbol table if it is referenced | |
1566 | or defined by a regular object. | |
1567 | ||
1568 | start-sanitize-v850 | |
1569 | Fri Sep 27 18:41:07 1996 Stu Grossman ([email protected]) | |
1570 | ||
1571 | * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to | |
1572 | remove dwarf local labels. Shrinks binaries by a factor of 3! | |
1573 | ||
1574 | end-sanitize-v850 | |
1575 | Mon Sep 23 13:33:00 1996 Ian Lance Taylor <[email protected]> | |
1576 | ||
1577 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section | |
1578 | by hand, rather than by calling bfd_make_section. | |
1579 | ||
80675684 DE |
1580 | Mon Sep 23 09:23:41 1996 Doug Evans <[email protected]> |
1581 | ||
1582 | * reloc.c: Rename m32r relocs. | |
1583 | * bfd-in2.h, libbfd.h: Rebuilt. | |
1584 | * elf32-m32r.c: Update. | |
80675684 | 1585 | |
a5a43df1 ILT |
1586 | Fri Sep 20 11:43:43 1996 Ian Lance Taylor <[email protected]> |
1587 | ||
e12ab364 ILT |
1588 | * aoutx.h (aout_link_input_section_ext): When doing a relocateable |
1589 | link, adjust the symbol index of a base relative reloc. Don't | |
1590 | change the addend of a PC relative reloc if pcrel_offset is set. | |
1591 | * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for | |
1592 | a relocateable link. | |
1593 | ||
a5a43df1 ILT |
1594 | * reloc.c (bfd_perform_relocation): Apply the relocation even if |
1595 | it is zero, in case src_mask matters. | |
1596 | (bfd_install_relocation): Likewise. | |
1597 | ||
e425358f ILT |
1598 | Thu Sep 19 11:03:06 1996 Ian Lance Taylor <[email protected]> |
1599 | ||
1600 | * xcofflink.c (xcoff_link_add_symbols): Always initialize | |
1601 | keep_syms. | |
1602 | (_bfd_xcoff_bfd_final_link): Don't set target_index | |
1603 | to an uninitialized value. | |
1604 | ||
7f21c97c ILT |
1605 | Tue Sep 17 14:18:31 1996 Ian Lance Taylor <[email protected]> |
1606 | ||
1607 | * coffcode.h (coff_slurp_line_table): Warn about illegal symbol | |
1608 | indices, rather than crashing. | |
1609 | (coff_slurp_reloc_table): Likewise. Check whether the howto field | |
1610 | is NULL. | |
8d784abe ILT |
1611 | * coff-sh.c (sh_relocate_section): Check for an illegal symbol |
1612 | index. | |
7f21c97c | 1613 | |
9859bc31 ILT |
1614 | Mon Sep 16 12:39:36 1996 Ian Lance Taylor <[email protected]> |
1615 | ||
1153e84b ILT |
1616 | * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D |
1617 | reloc to 0. | |
1618 | (coff_arm_adjust_symndx): New static function. | |
1619 | (coff_adjust_symndx): Define. | |
1620 | ||
9859bc31 ILT |
1621 | * srec.c (srec_scan): Accept multiple symbols on a single line. |
1622 | From Pascal Martin <[email protected]>. | |
1623 | ||
1624 | * README: New file. | |
1625 | ||
f8b82e49 DE |
1626 | Fri Sep 13 14:32:42 1996 Doug Evans <[email protected]> |
1627 | ||
1628 | * aoutf1.h (MY_bfd_merge_private_bfd_data): Define. | |
1629 | (sunos_merge_private_bfd_data): New function. | |
1630 | ||
0a7b8735 ILT |
1631 | Fri Sep 13 15:50:57 1996 Ian Lance Taylor <[email protected]> |
1632 | ||
76d30c3f ILT |
1633 | * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather |
1634 | than input BFD. | |
1635 | (bfd_merge_private_bfd_data): Likewise. | |
1636 | * section.c (bfd_copy_private_section_data): Likewise. | |
1637 | * syms.c (bfd_copy_private_symbol_data): Likewise. | |
1638 | * bfd-in2.h: Rebuild. | |
1639 | * aout-target.h (MY_bfd_copy_private_section_data): Check that | |
1640 | both BFD's are the right flavour. | |
1641 | * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise. | |
1642 | * elf.c (_bfd_elf_copy_private_symbol_data): Likewise. | |
1643 | * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise. | |
1644 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
1645 | * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise. | |
1646 | (ppc_elf_merge_private_bfd_data): Likewise. | |
1647 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise. | |
1648 | * peicode.h (pe_bfd_copy_private_section_data): Likewise. | |
1649 | ||
0a7b8735 ILT |
1650 | * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for |
1651 | R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes | |
1652 | its sanity check. | |
1653 | ||
3ebefb07 DE |
1654 | Thu Sep 12 11:45:57 1996 Doug Evans <[email protected]> |
1655 | ||
1656 | * reloc.c: Add m32r relocs. | |
1657 | * bfd-in2.h, libbfd.h: Rebuilt. | |
6cb9c903 | 1658 | * cpu-m32r.c,elf32-m32r.c: New files. |
3ebefb07 | 1659 | |
cacfb845 ILT |
1660 | Thu Sep 12 11:10:05 1996 Ian Lance Taylor <[email protected]> |
1661 | ||
1662 | * ieee.c (ieee_vec): Set symbol_leading_char field to '_'. | |
1663 | ||
d7775b43 ILT |
1664 | Wed Sep 11 11:57:56 1996 Ian Lance Taylor <[email protected]> |
1665 | ||
e461da9b ILT |
1666 | * tekhex.c (first_phase): Change type parameter from char to int. |
1667 | (out): Likewise. | |
1668 | (pass_over): Change func to expect int, not char. | |
1669 | ||
d7775b43 ILT |
1670 | * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC |
1671 | rather than SEC_LOAD when aligning the file offset for the first | |
1672 | section in a segment. | |
1673 | ||
ea3f0585 FF |
1674 | Tue Sep 10 16:18:30 1996 Fred Fish <[email protected]> |
1675 | ||
1676 | * syms.c (coff_section_type): Make arg const. | |
1677 | * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg | |
1678 | to make_bfd_asection(). | |
1679 | * elf-bfd.h (bfd_section_from_phdr): Add prototype. | |
1680 | * elfcode.h (bfd_section_from_phdr): Remove prototype. | |
1681 | (_bfd_elf_stringtab_init): Remove prototype. | |
1682 | ||
1683 | * netbsd-core.c (swap_abort): Add prototype. | |
1684 | * aix386-core.c (swap_abort): Ditto & make static | |
1685 | * hpux-core.c (swap_abort): Ditto & make static. | |
1686 | * irix-core.c (swap_abort): Ditto & make static. | |
1687 | * ptrace-core.c (swap_abort): Ditto & make static. | |
1688 | * trad-core.c (swap_abort): Ditto & make static. | |
1689 | * coffswap.h (coff_swap_reloc_in): Ditto. | |
1690 | (coff_swap_reloc_out): Ditto. | |
1691 | (coff_swap_filehdr_in): Ditto. | |
1692 | (coff_swap_filehdr_out): Ditto. | |
1693 | (coff_swap_sym_in): Ditto. | |
1694 | (coff_swap_sym_out): Ditto. | |
1695 | (coff_swap_aux_in): Ditto. | |
1696 | (coff_swap_aux_out): Ditto. | |
1697 | (coff_swap_lineno_in): Ditto. | |
1698 | (coff_swap_lineno_out): Ditto. | |
1699 | (coff_swap_aouthdr_in): Ditto. | |
1700 | (coff_swap_aouthdr_out): Ditto. | |
1701 | (coff_swap_scnhdr_in): Ditto. | |
1702 | (coff_swap_scnhdr_out): Ditto. | |
1703 | * ihex.c (ihex_sizeof_headers): Ditto. | |
1704 | * tekhex.c (getsym): Ditto. | |
1705 | (find_chunk): Ditto & make static. | |
1706 | (insert_byte): Ditto. | |
1707 | (first_phase): Ditto. | |
1708 | (pass_over): Ditto. | |
1709 | (tekhex_get_symtab): Ditto & make static. | |
1710 | (tekhex_get_symtab_upper_bound): Ditto & make static. | |
1711 | (tekhex_mkobject): Ditto. | |
1712 | (tekhex_object_p): Ditto. | |
1713 | (move_section_contents): Ditto. | |
1714 | (tekhex_get_section_contents): Ditto. | |
1715 | (tekhex_set_arch_mach): Ditto & make static. | |
1716 | (tekhex_set_section_contents): Ditto. | |
1717 | (writevalue): Ditto. | |
1718 | (writesym): Ditto. | |
1719 | (out): Ditto. | |
1720 | (tekhex_write_object_contents): Ditto. | |
1721 | (tekhex_sizeof_headers): Ditto. | |
1722 | (tekhex_make_empty_symbol): Ditto. | |
1723 | (tekhex_get_symbol_info): Ditto. | |
1724 | (tekhex_print_symbol): Ditto. | |
1725 | * irix-core.c (make_bfd_asection): Ditto. | |
1726 | (irix_core_core_file_p): Ditto. | |
1727 | (irix_core_core_file_failing_command): Ditto. | |
1728 | (irix_core_core_file_failing_signal): Ditto. | |
1729 | (irix_core_core_file_matches_executable_p): Ditto. | |
1730 | (irix_core_make_empty_symbol): Ditto. | |
1731 | * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto. | |
1732 | * srec.c (srec_new_symbol): Ditto. | |
1733 | (srec_get_section_contents): Ditto. | |
1734 | (srec_set_arch_mach): Ditto. | |
1735 | (srec_set_section_contents): Ditto. | |
1736 | (internal_srec_write_object_contents): Ditto. | |
1737 | (srec_write_object_contents): Ditto. | |
1738 | (symbolsrec_write_object_contents): Ditto. | |
1739 | (srec_sizeof_headers): Ditto. | |
1740 | (srec_make_empty_symbol): Ditto. | |
1741 | (srec_get_symtab_upper_bound): Ditto. | |
1742 | (srec_get_symtab): Ditto. | |
1743 | (srec_print_symbol): Ditto and make static. | |
1744 | * elf.c (elf_read): Ditto | |
1745 | (assign_section_numbers): Ditto. | |
1746 | (elf_fake_sections): Ditto. | |
1747 | (sym_is_global): Ditto. | |
1748 | (elf_map_symbols): Ditto. | |
1749 | (get_program_header_size): Ditto. | |
1750 | * coffgen.c (make_a_section_from_file): Ditto. | |
1751 | (coff_real_object_p): Ditto. | |
1752 | (fixup_symbol_value): Ditto. | |
1753 | (build_debug_section): Ditto. | |
1754 | (copy_name): Ditto. | |
1755 | * syms.c (coff_section_type): Ditto. | |
1756 | ||
00d7a64b JL |
1757 | Mon Sep 9 22:36:01 1996 Jeffrey A Law ([email protected]) |
1758 | ||
1759 | * bfd-in2.h: Rebuilt after m32r changes. | |
1760 | ||
71d7d44f DE |
1761 | Mon Sep 9 12:31:22 1996 Doug Evans <[email protected]> |
1762 | ||
66e4c229 | 1763 | * config.bfd,configure.in,configure: Add m32r support. |
f0c12b73 | 1764 | * Makefile.in,archures.c,elf.c,targets.c: Likewise. |
71d7d44f DE |
1765 | * config.bfd: Keep target list alphabetically sorted. |
1766 | ||
629f776a JL |
1767 | start-sanitize-v850 |
1768 | Mon Sep 9 11:48:41 1996 Jeffrey A Law ([email protected]) | |
1769 | ||
1770 | * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget | |
1771 | to add in the constant part found in the instruction itself. | |
1772 | (case R_V850_HI16_S): Likewise. | |
1773 | ||
1774 | end-sanitize-v850 | |
9c85b19d MH |
1775 | Fri Sep 6 17:04:39 1996 Martin M. Hunt <[email protected]> |
1776 | ||
1777 | * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16 | |
1778 | and R_D10V_18 to be 1 (word). | |
1779 | ||
4be2140e ILT |
1780 | Thu Sep 5 15:23:08 1996 Ian Lance Taylor <[email protected]> |
1781 | ||
1782 | * stabs.c (_bfd_link_section_stabs): If the output_section field | |
1783 | of either section is bfd_abs_section, then the linker is | |
1784 | discarding the section and we should not optimize it. | |
1785 | ||
0cd98b92 DE |
1786 | Tue Sep 3 12:16:20 1996 Doug Evans <[email protected]> |
1787 | ||
1788 | * Makefile.in (aout-sparcle.o): New target. | |
1789 | * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian. | |
1790 | * config.bfd (sparclet-*-aout*): Add case. | |
1791 | * configure.in (sparcle_aout_vec): Add case. | |
1792 | * configure: Regenerated. | |
0cd98b92 DE |
1793 | * targets.c (sparcle_aout_vec): Declare. |
1794 | (bfd_target_vector): Add sparcle_aout_vec. | |
1795 | * aout-sparcle.c: New file. | |
1796 | ||
b5ef63c4 | 1797 | start-sanitize-v850 |
7b0af209 | 1798 | Tue Sep 3 00:57:02 1996 Jeffrey A Law ([email protected]) |
b5ef63c4 | 1799 | |
e73b6ae6 JL |
1800 | * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of |
1801 | low order sign bit propogation for R_V850_HI16_S. | |
1802 | ||
1803 | * elf32-v850.c (bfd_elf32_v850_reloc): New function for | |
7b0af209 JL |
1804 | handling V850 specific relocs. |
1805 | (elf_v850_howto_table): Use the new function for some | |
1806 | relocations. Twiddle masks & shifts for some relocs. | |
1807 | Set partial_inplace where needed. | |
1808 | ||
1809 | end-sanitize-v850 | |
1810 | Mon Sep 2 12:12:34 1996 Ian Lance Taylor <[email protected]> | |
1811 | ||
1812 | * cpu-mips.c: Add an explicit mips:3000 entry, and change the | |
1813 | default architecture to a machine number of 0. | |
1814 | * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number | |
1815 | for E_MIPS_ARCH_1. | |
1816 | (_bfd_mips_elf_merge_private_bfd_data): If the machine number of | |
1817 | the output BFD is the default, set it from the first input BFD. | |
1818 | ||
1819 | start-sanitize-v850 | |
1820 | Sun Sep 1 18:38:01 1996 Jeffrey A Law ([email protected]) | |
1821 | ||
1822 | * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs | |
1823 | insert at bitpos zero. The HI16 relocs are shifted right | |
1824 | by 16 bits. Fix src_mask for all relocs. | |
1825 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is | |
1826 | little endian! | |
1827 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little | |
1828 | endian! | |
b5ef63c4 MA |
1829 | |
1830 | end-sanitize-v850 | |
bde9d875 ILT |
1831 | Sun Sep 1 15:41:08 1996 Ian Lance Taylor <[email protected]> |
1832 | ||
1833 | * rs6000-core.c (rs6000coff_core_file_matches_executable_p): | |
1834 | Rewrite to use BFD file read routines and to avoid using a fixed | |
1835 | length for the file name. | |
1836 | ||
01b49cb3 | 1837 | start-sanitize-v850 |
237b5c4c JL |
1838 | Sat Aug 31 10:22:25 1996 Jeffrey A Law ([email protected]) |
1839 | ||
1840 | * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}. | |
1841 | (elf_v850_howto_table): Add support for R_V850_{32,16,8}. | |
1842 | (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8} | |
1843 | to R_V850_{32,16,8}. | |
1844 | ||
01b49cb3 C |
1845 | Fri Aug 30 18:06:04 1996 J.T. Conklin <[email protected]> |
1846 | ||
1847 | * elf32-v850.c (reloc_type): Add R_V850_HI16_S. | |
1848 | (elf_v850_howto_table): Add info for HI16_S reloc. | |
1849 | (v850_reloc_map): Add HI_16_S reloc. | |
1850 | * reloc.c: Define BFD_RELOC_V850_* relocs. | |
1851 | ||
1852 | end-sanitize-v850 | |
492cfc71 ILT |
1853 | Fri Aug 30 11:49:19 1996 Ian Lance Taylor <[email protected]> |
1854 | ||
c86158e5 ILT |
1855 | Add SH ELF support. |
1856 | * elf32-sh.c: New file. | |
1857 | * elf.c (prep_headers): Handle bfd_arch_sh. | |
1858 | * elfcode.h (write_relocs): Handle absolute symbol. | |
1859 | * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare. | |
1860 | (_bfd_elf64_link_read_relocs): Declare. | |
1861 | * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from | |
1862 | elf_link_read_relocs. Make globally visible. Change all | |
1863 | callers. | |
1864 | (elf_link_input_bfd): Get external symbols from cache in | |
1865 | symtab_hdr->contents. Get contents from cache in | |
1866 | elf_section_data. | |
1867 | * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not | |
1868 | already defined. | |
1869 | * reloc.c: Define BFD_RELOC_SH_* relocs. | |
1870 | * libbfd-in.h (_bfd_sh_align_load_span): Declare. | |
1871 | * coff-sh.c (sh_insns_conflict): Fix a return value. | |
1872 | (_bfd_sh_align_load_span): New globally visible function, broken | |
1873 | out of sh_align_load. | |
1874 | (sh_align_load): Call _bfd_sh_align_load_span. | |
1875 | (sh_swap_insns): Change relocs parameter to PTR. | |
1876 | * bfd-in2.h, libbfd.h: Rebuild. | |
1877 | * targets.c (bfd_elf32_sh_vec): Declare. | |
1878 | (bfd_elf32_shl_vec): Declare. | |
1879 | * config.bfd (sh-*-elf*): New target. | |
1880 | * configure.in (bfd_elf32_sh_vec): New target vector. | |
1881 | (bfd_elf32_shl_vec): New target vector. | |
1882 | * configure: Rebuild. | |
1883 | * Makefile.in: Rebuild dependencies. | |
1884 | (BFD32_BACKENDS): Add elf32-sh.o. | |
1885 | (BFD32_BACKENDS_CFILES): Add elf32-sh.c. | |
1886 | ||
1887 | * elf.c (map_sections_to_segments): Check that LMA does not skip a | |
1888 | page before checking D_PAGED. | |
1889 | ||
492cfc71 ILT |
1890 | * ihex.c (ihex_scan): Removed unnecessary extbase variable. |
1891 | (ihex_write_object_contents): Remove extbase; always use segbase | |
1892 | instead. | |
1893 | ||
f7954d86 MM |
1894 | Thu Aug 29 16:52:17 1996 Michael Meissner <[email protected]> |
1895 | ||
1896 | * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. | |
1897 | * configure.host (i[345]86-*-*): Ditto. | |
1898 | * config.bfd (i[345]86-*-*): Ditto. | |
1899 | * configure: Regenerate. | |
1900 | ||
1901 | * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86 | |
1902 | elf. | |
1903 | ||
1904 | Tue Aug 27 09:18:18 1996 Jeffrey A Law ([email protected]) | |
1905 | ||
1906 | * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument. | |
1907 | * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype. | |
1908 | * som.c (hppa_som_gen_reloc_type): Add new argument. If | |
1909 | we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that | |
1910 | will have an ST_CODE type, change the symbol's type to ST_DATA. | |
1911 | * som.c (hppa_som_gen_reloc_type): Update prototype. | |
1912 | ||
4da624dd ILT |
1913 | Tue Aug 27 00:12:22 1996 Ian Lance Taylor <[email protected]> |
1914 | ||
1915 | * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for | |
1916 | R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible. | |
1917 | (mips_elf_size_dynamic_sections): Don't require .got to exist. | |
1918 | (mips_elf_finish_dynamic_sections): Likewise. | |
1919 | ||
9461513b ILT |
1920 | Thu Aug 22 10:54:38 1996 Ian Lance Taylor <[email protected]> |
1921 | ||
1c952df6 ILT |
1922 | * configure.host (HLDENV): New variable to set. Set it for |
1923 | *-*-sysv4*, since those linkers may not support -R but they always | |
1924 | support LD_RUN_PATH. | |
1925 | ||
9461513b ILT |
1926 | * libieee.h (NSECTIONS): Don't define. |
1927 | (ieee_data_struct): Change section_table to asection **. Add | |
1928 | section_table_size. | |
1929 | * ieee.c (get_section_entry): If the table isn't big enough, make | |
1930 | it bigger. | |
1931 | (ieee_slurp_sections): Remove assertion about number of sections. | |
1932 | (ieee_object_p): Adjust initialization of ieee to match changes to | |
1933 | the structure. | |
1934 | ||
1935 | * xcofflink.c (xcoff_mark): Don't copy relocs for undefined | |
1936 | symbols merely because we are generating a shared library. | |
1937 | (xcoff_build_ldsyms): Don't set up global linkage code for an | |
1938 | undefined symbol merely because we are generating a shared | |
1939 | library. | |
1940 | ||
0c1d95c7 C |
1941 | start-sanitize-v850 |
1942 | Tue Aug 20 15:06:05 1996 J.T. Conklin <[email protected]> | |
1943 | ||
1944 | * Makefile.in (ALL_MACHINES): Add cpu-v850.o. | |
1945 | (BFD32_BACKENDS) Add elf32-v850.o. | |
1946 | * archures.c: Add bfd_v850_arch. | |
1947 | * bfd-in2.h: Add bfd_v850_arch. | |
1948 | * config.bfd (v850-*-*): New target. | |
1949 | * configure: (bfd_elf32_v850_vec) New vector. | |
1950 | * configure.in: (bfd_elf32_v850_vec) New vector. | |
1951 | * cpu-v850.c: New file. | |
1952 | * elf.c (prep_headers): Added case bfd_arch_v850. | |
1953 | * elf32-v850.c: New file. | |
1954 | * targets.c (bfd_elf32_v850_vec): New vector. | |
1955 | ||
1956 | end-sanitize-v850 | |
1957 | Fri Aug 16 16:25:35 1996 Ian Lance Taylor <[email protected]> | |
1958 | ||
1959 | * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define | |
1960 | a function code symbol for an XMC_XO symbol. | |
1961 | ||
22edd547 SS |
1962 | Thu Aug 15 12:33:29 1996 Stan Shebs <[email protected]> |
1963 | ||
1964 | * mpw-config.in: Update editing of autoconf vars to reflect | |
1965 | Jul 18 configure.in change. | |
1966 | * mpw-make.sed: Update editing of include pathnames to be | |
1967 | more general, add @DASH_C_FLAG@ to explicit compile rule edit. | |
1968 | ||
1969 | Thu Aug 15 10:35:13 1996 Richard Henderson <[email protected]> | |
1970 | ||
1971 | * elf64-alpha.c (elf64_alpha_output_extsym): The section from | |
1972 | which to offset to get the .plt entry address is ".plt". | |
1973 | ||
53ef6e60 JSC |
1974 | Thu Aug 15 16:40:30 1996 James G. Smith <[email protected]> |
1975 | ||
1976 | * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM, | |
1977 | BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET): | |
1978 | Added, for internal use by the ARM gas. | |
1979 | * libbfd.h: Rebuilt | |
1980 | * bfd-in2.h: Rebuilt | |
1981 | ||
37d7888d ILT |
1982 | Wed Aug 14 17:02:09 1996 Richard Henderson <[email protected]> |
1983 | ||
1984 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo | |
1985 | in section dynidx start. | |
1986 | ||
e38d6d36 ILT |
1987 | Tue Aug 13 14:35:38 1996 Ian Lance Taylor <[email protected]> |
1988 | ||
1989 | * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose | |
1990 | name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an | |
1991 | optimization for g++. | |
1992 | ||
ae20860e MM |
1993 | Tue Aug 13 17:04:40 1996 Michael Meissner <[email protected]> |
1994 | ||
1995 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has | |
1996 | the -mrelocatable-lib bit set and the other doesn't, clear the | |
1997 | -mrelocatable-lib bit in the header. | |
1998 | ||
4596421b ILT |
1999 | Sat Aug 10 22:59:17 1996 Ian Lance Taylor <[email protected]> |
2000 | ||
2001 | * elflink.h (elf_link_add_object_symbols): Do not resolve a common | |
2002 | symbol against a STT_FUNC symbol in a shared library. | |
2003 | ||
f11e3f62 ILT |
2004 | Fri Aug 9 12:44:57 1996 Ian Lance Taylor <[email protected]> |
2005 | ||
410bc61d ILT |
2006 | * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor |
2007 | symbol is found, automatically define the corresponding function | |
2008 | code. | |
2009 | ||
d92099f1 ILT |
2010 | * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux |
2011 | if sym.n_numaux is not zero. | |
2012 | (_bfd_coff_link_input_bfd): Permit the symbol and the hash table | |
2013 | entry to disagree about the number of aux entries if the symbol | |
2014 | has zero. | |
2015 | ||
f11e3f62 ILT |
2016 | * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn |
2017 | section if it might be needed, not just if info->shared. | |
2018 | (mips_elf_adjust_dynamic_symbol): Make room for a null element at | |
2019 | the start of .rel.dyn if we are going to use it. | |
2020 | (mips_elf_finish_dynamic_sections): Only clear the first element | |
2021 | of .rel.dyn if the size is greater than zero. | |
2022 | ||
fbc4ed7d ILT |
2023 | Thu Aug 8 16:24:55 1996 Ian Lance Taylor <[email protected]> |
2024 | ||
b2a05baf ILT |
2025 | * xcofflink.c (xcoff_link_input_bfd): If we already called the |
2026 | undefined_symbol callback for a symbol, then don't issue any more | |
2027 | warnings about loader relocs. | |
2028 | (_bfd_ppc_xcoff_relocate_section): Don't do any further processing | |
2029 | after calling the undefined_symbol callback. | |
2030 | ||
fbc4ed7d ILT |
2031 | * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define. |
2032 | (xcoff_link_add_symbols): Permit multiple definitions of a symbol | |
2033 | as the AIX linker seems to do. | |
2034 | ||
8612a388 ILT |
2035 | Thu Aug 8 12:21:56 1996 Klaus Kaempf <[email protected]> |
2036 | ||
2037 | * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup. | |
2038 | (evax_initialize): Remove evax_reloc_table. | |
2039 | (evax_close_and_cleanup): Ditto. | |
2040 | (reloc_nil): Ditto. | |
2041 | (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64 | |
2042 | entries. | |
2043 | (evax_bfd_reloc_type_lookup): Ditto. | |
2044 | * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set | |
2045 | cooked_size == raw_size. | |
2046 | * evax-emh.c (_bfd_evax_register_filename): Remove. | |
2047 | * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands. | |
2048 | * evax-misc.c (add_new_contents): Malloc section at full size. | |
2049 | (_bfd_save_evax_section): Memcpy section contents directly. | |
2050 | * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove. | |
2051 | (evax_reloc_table): Remove. | |
2052 | ||
2053 | * hosts/alphavms.h (O_ACCMODE): Define if needed. | |
2054 | ||
2055 | * makefile.vms: Add better support for DEC C compilation | |
2056 | Add evax.h dependencies | |
2057 | ||
2058 | * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc. | |
2059 | (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove. | |
2060 | (BFD_RELOC_ALPHA_BASEREG): Remove. | |
2061 | * bfd-in2.h, libbfd.h: Rebuild. | |
2062 | ||
320a5c6b SG |
2063 | Thu Aug 8 08:17:32 1996 Stu Grossman ([email protected]) |
2064 | ||
2065 | * archive.c (bsd_write_armap): Ifdef around calls to getuid and | |
2066 | getgid if _WIN32 is defined. | |
2067 | * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef. | |
2068 | ||
2055bf85 SG |
2069 | Wed Aug 7 23:19:00 1996 Stu Grossman ([email protected]) |
2070 | ||
2071 | * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c: | |
2072 | Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX | |
2073 | include file. | |
2074 | * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE | |
2075 | isn't defined. | |
2076 | ||
85fe9d3e ILT |
2077 | Wed Aug 7 14:11:44 1996 Philippe De Muyter <[email protected]> |
2078 | ||
2079 | * configure.in: Call BFD_NEEDED_DECLARATION on strstr and | |
2080 | realloc. | |
2081 | * acconfig.h (NEED_DECLARATION_STRSTR): New macro. | |
2082 | (NEED_DECLARATION_REALLOC): New macro. | |
2083 | * configure, config.in: Rebuild. | |
2084 | * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. | |
2085 | (realloc): Declare if NEED_DECLARATION_REALLOC. | |
2086 | ||
2087 | * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or | |
2088 | <strings.h> if they exist. | |
2089 | ||
2090 | * ieee.c (ieee_set_section_contents): Cast bfd_alloc return. | |
2091 | ||
9b3307b0 ILT |
2092 | Wed Aug 7 12:12:03 1996 Ian Lance Taylor <[email protected]> |
2093 | ||
cc425b55 ILT |
2094 | * cpu-i386.c (i8086_arch): Architecture info for the i8086. |
2095 | ||
9b3307b0 ILT |
2096 | Based on patches from Eric Valette <[email protected]>: |
2097 | * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC, | |
2098 | LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8. | |
2099 | (elf_howto_table): Add entries for new relocs. | |
2100 | (elf_i386_reloc_type_lookup): Handle new relocs. | |
2101 | (elf_i386_info_to_howto): Just call abort. | |
2102 | (elf_i386_info_to_howto_rel): Check that the reloc type is valid. | |
2103 | (elf_i386_relocate_section): Likewise. | |
2104 | ||
75e3a45a MH |
2105 | Tue Aug 6 12:54:56 1996 Martin M. Hunt <[email protected]> |
2106 | ||
2107 | * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32. | |
2108 | ||
191d910c ILT |
2109 | Mon Aug 5 13:42:41 1996 Ian Lance Taylor <[email protected]> |
2110 | ||
b944e7e8 ILT |
2111 | * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section, |
2112 | only get the LMA from the phdr if they are in the same part of the | |
2113 | file. | |
2114 | ||
191d910c ILT |
2115 | * elf.c (map_sections_to_segments): Rewrite tests for starting a |
2116 | new segment to make them more comprehensible. If the relationship | |
2117 | between the LMA and the VMA changed, start a new segment. Don't | |
2118 | check dynsec when deciding whether to start a new segment for a | |
2119 | writeable section; -N will now handle this. | |
2120 | ||
e751d506 JL |
2121 | Thu Aug 1 22:43:08 1996 Jeffrey A Law ([email protected]) |
2122 | ||
2123 | * libhppa.h: Remove "esel" changes. Not the right approach. | |
2124 | * som.c: Corresponding changes. | |
2125 | (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols | |
2126 | which don't have a SOM symbol type associated with them. | |
2127 | Reverses a 1994 change. | |
2128 | ||
cdb88e87 ILT |
2129 | Wed Jul 31 15:50:55 1996 Ian Lance Taylor <[email protected]> |
2130 | ||
2131 | Make ld -N more reasonable for ELF: | |
2132 | * elf.c (map_sections_to_segments): If D_PAGED is not set, set | |
2133 | phdr_in_section to false, and always use a single load segment. | |
2134 | (elf_sort_sections): Sort sections by LMA after VMA. | |
2135 | (assign_file_positions_for_segments): If D_PAGED is not set, don't | |
2136 | align to maxpagesize. | |
2137 | (assign_file_positions_except_relocs): Likewise. | |
2138 | * elfcode.h (elf_object_p): If a section is loaded but not page | |
2139 | aligned, clear D_PAGED. | |
2140 | ||
d1b40d8e JSC |
2141 | Wed Jul 31 15:00:12 1996 James G. Smith <[email protected]> |
2142 | ||
2143 | * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL): | |
2144 | Added, for internal use by the ARM gas. | |
2145 | * libbfd.h: Rebuilt | |
2146 | * bfd-in2.h: Rebuilt | |
2147 | ||
ad240a82 JL |
2148 | Tue Jul 30 14:14:57 1996 Jeffrey A Law ([email protected]) |
2149 | ||
2150 | * libhppa.h (R_HPPA_ESEL): New field selector. | |
2151 | (e_esel): Similarly. | |
2152 | * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel, | |
2153 | then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream. | |
2154 | (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR. | |
2155 | ||
fb4dc1eb ILT |
2156 | Tue Jul 30 13:31:27 1996 Ian Lance Taylor <[email protected]> |
2157 | ||
2158 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular | |
2159 | archive search before looking for stripped dynamic objects. | |
2160 | ||
b223f950 ILT |
2161 | Fri Jul 26 17:51:39 1996 Ian Lance Taylor <[email protected]> |
2162 | ||
2163 | * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined | |
2164 | symbol a warning rather than an error. | |
2165 | ||
64f808f9 ILT |
2166 | Wed Jul 24 12:02:53 1996 Ian Lance Taylor <[email protected]> |
2167 | ||
2168 | * elf.c (assign_file_positions_for_segments): Track the virtual | |
2169 | memory position separately from the file position, and use it to | |
2170 | compute the alignment adjustment. | |
2171 | ||
11609502 MH |
2172 | Tue Jul 23 10:43:31 1996 Martin M. Hunt <[email protected]> |
2173 | ||
2174 | * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long" | |
2175 | and fixed mask on R_D10V_10_PCREL_L. | |
2176 | ||
9bd65136 ILT |
2177 | Mon Jul 22 15:30:30 1996 Ian Lance Taylor <[email protected]> |
2178 | ||
bf9884d4 ILT |
2179 | * elf64-mips.c: Include "aout/ar.h". |
2180 | (mips_elf64_slurp_armap): New static function. | |
2181 | (mips_elf64_write_armap): New static function. | |
2182 | (bfd_elf64_archive_*): Define. | |
2183 | * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined. | |
2184 | Use instead of bfd_generic_archive_p. | |
2185 | (bfd_elfNN_write_archive_contents): Define if not defined. Use | |
2186 | instead of _bfd_write_archive_contents. | |
2187 | (bfd_elfNN_mkdarchive): Define if not defined. Use instead of | |
2188 | _bfd_generic_mkarchive. | |
2189 | (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use | |
2190 | bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than | |
2191 | _bfd_archive_coff. | |
2192 | (TARGET_LITTLE_SYM): Likewise. | |
2193 | * archive.c (bfd_slurp_armap): Check for and reject an archive map | |
2194 | name of /SYM64/. | |
2195 | * Makefile.in: Rebuild dependencies. | |
2196 | ||
2197 | * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle | |
2198 | SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and | |
2199 | SHT_MIPS_EVENTS sections. | |
2200 | (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE, | |
2201 | SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS | |
2202 | sections. | |
2203 | (_bfd_mips_elf_fake_sections): Likewise. | |
2204 | ||
9bd65136 ILT |
2205 | * libecoff.h (ecoff_data_type): Add rdata_in_text field. |
2206 | * ecoff.c (ecoff_compute_section_file_positions): Copy | |
2207 | rdata_in_text from backend info to tdata. Clear it if any data | |
2208 | section comes before .rdata. | |
2209 | (_bfd_ecoff_write_object_contents): Use rdata_in_text field in | |
2210 | tdata rather than backend info. | |
2211 | ||
194141a9 ILT |
2212 | Fri Jul 19 18:15:51 1996 Ian Lance Taylor <[email protected]> |
2213 | ||
2214 | * configure.in: Fix test for whether a compiler has a 64 bit | |
2215 | type. From Jim Wilson <[email protected]>. | |
2216 | ||
a8a3d83a ILT |
2217 | Thu Jul 18 15:39:10 1996 Ian Lance Taylor <[email protected]> |
2218 | ||
f4e14cb9 ILT |
2219 | * configure.host (mips-sgi-irix6*): New host. |
2220 | ||
2221 | * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG | |
2222 | (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED, | |
2223 | BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h | |
2224 | to AC_OUTPUT call. | |
2225 | * configure: Rebuild. | |
2226 | * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@. | |
2227 | (BFD_HOST_64_BIT): Define conditionally. | |
2228 | (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined. | |
2229 | (bfd_vma): Typedef as BFD_HOST_U_64_BIT. | |
2230 | (symvalue, bfd_size_type): Likewise. | |
2231 | * bfd-in2.h: Rebuild. | |
2232 | * Makefile.in (do_clean): Remove bfd-tmp.h. | |
2233 | (do_distclean): Remove bfd-in3.h. | |
2234 | (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h. | |
2235 | (bfd-in3.h): New target. | |
2236 | ||
74556b94 ILT |
2237 | * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From |
2238 | Andrew Gierth <[email protected]>. | |
2239 | ||
ab659fd6 ILT |
2240 | * configure.host: Set INSTALL_SHLIB. |
2241 | * configure.in: Call AC_SUBST (INSTALL_SHLIB). | |
2242 | * configure: Rebuild. | |
2243 | * Makefile.in (install): Use @INSTALL_SHLIB@. | |
2244 | ||
e8c249cb ILT |
2245 | * config.bfd (mips*-*-irix6*): New target. |
2246 | * configure.host: Handle Irix 6 shared library like Irix 5. | |
2247 | ||
a8a3d83a ILT |
2248 | * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD |
2249 | symbol for a magic name. | |
2250 | (xcoff_link_input_bfd): Don't change the reloc symbol for an | |
2251 | XMC_TD symbol. | |
2252 | (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an | |
2253 | XMC_TD symbol. | |
2254 | ||
b576c7b3 SS |
2255 | Thu Jul 18 11:36:31 1996 Stan Shebs <[email protected]> |
2256 | ||
2257 | * mpw-config.in: Add ELF support to mips config, create the | |
2258 | elf32-target.h file in the object dir. | |
2259 | * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines. | |
2260 | ||
2ba0d82d KK |
2261 | Wed Jul 17 18:02:32 1996 Kim Knuttila <[email protected]> |
2262 | ||
2263 | * coff-ppc.c: Redid debug scheme - numerous fprintf's gone. | |
2264 | Also removed most abort calls, in favor of using bfd reporting. | |
2265 | ||
b576c7b3 | 2266 | Wed Jul 17 14:51:52 1996 Martin M. Hunt <[email protected]> |
50bd50d4 | 2267 | |
b576c7b3 SS |
2268 | * Makefile.in (ALL_MACHINES): Add cpu-d10v.o. |
2269 | (BFD32_BACKENDS) Add elf32-d10v.o. | |
50bd50d4 MH |
2270 | * archures.c: Add bfd_d10v_arch. |
2271 | * bfd-in2.h: Add bfd_d10v_arch. | |
2272 | * config.bfd (d10v-*-*): New target. | |
2273 | * configure: (bfd_elf32_d10v_vec) New vector. | |
2274 | * configure.in: (bfd_elf32_d10v_vec) New vector. | |
2275 | * cpu-d10v.c: New file. | |
2276 | * elf.c (prep_headers): Added case bfd_arch_d10v. | |
2277 | * elf32-d10v.c: New file. | |
2278 | * libbfd.h: Rebuild. | |
b576c7b3 SS |
2279 | * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L, |
2280 | BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define. | |
50bd50d4 | 2281 | * targets.c (bfd_elf32_d10v_vec): New vector. |
50bd50d4 | 2282 | |
2ce9802e KK |
2283 | Wed Jul 17 10:58:55 1996 Kim Knuttila <[email protected]> |
2284 | ||
2285 | * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf | |
2286 | ||
9676e446 | 2287 | Tue Jul 16 23:49:02 1996 Stu Grossman ([email protected]) |
3cc21bf6 | 2288 | |
9676e446 SG |
2289 | * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and |
2290 | bfd_mach_i386_i8086 machine types. | |
3cc21bf6 | 2291 | |
f7171978 ILT |
2292 | Wed Jul 10 12:42:56 1996 Ian Lance Taylor <[email protected]> |
2293 | ||
2294 | * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT | |
2295 | and _FINI sections. | |
2296 | ||
74e2ab38 ILT |
2297 | Wed Jul 10 11:18:21 1996 Richard Henderson <[email protected]> |
2298 | ||
2299 | * coffcode.h (coff_set_section_contents): A/UX does not require | |
2300 | special handling of the _LIB section. | |
2301 | ||
01cfaa6b JL |
2302 | Tue Jul 9 15:52:20 1996 Jeffrey A Law ([email protected]) |
2303 | ||
2304 | * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct | |
2305 | value for R_RELBYTE. | |
2306 | ||
2307 | * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks" | |
2308 | array if one was allocated. | |
2309 | ||
eb52b9dc ILT |
2310 | Tue Jul 9 12:21:54 1996 Ian Lance Taylor <[email protected]> |
2311 | ||
2312 | From Kazumoto Kojima <[email protected]>: | |
2313 | * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields | |
2314 | use_rld_obj_head and rld_value. | |
2315 | (mips_elf_link_hash_table_create): Initialize new fields. | |
2316 | (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as | |
2317 | dynamic. | |
2318 | (mips_elf_create_dynamic_sections): Create .rld_map section. If | |
2319 | __rld_obj_head symbol not seen, create an __rld_map symbol. | |
2320 | (mips_elf_size_dynamic_sections): Make space in .rld_map section. | |
2321 | Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry. | |
2322 | (mips_elf_finish_dynamic_symbol): Save value of __rld_map or | |
2323 | __rld_obj_head symbol. | |
2324 | (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP. | |
2325 | ||
56b4cbaa ILT |
2326 | Mon Jul 8 16:18:03 1996 Ian Lance Taylor <[email protected]> |
2327 | ||
9b292d4c ILT |
2328 | * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry. |
2329 | ||
dab45734 ILT |
2330 | * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use |
2331 | ppc_elf_addr16_ha_reloc. | |
2332 | (ppc_elf_addr16_ha_reloc): New static function. | |
2333 | ||
56b4cbaa ILT |
2334 | * coff-mips.c (struct mips_hi): Define. |
2335 | (mips_refhi_list): New static variable. | |
2336 | (mips_refhi_addr, mips_refhi_addend): Remove. | |
2337 | (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs. | |
2338 | (mips_reflo_reloc): Process mips_refhi_list. | |
2339 | (mips_relhi_list): New static variable. | |
2340 | (mips_relhi_addr, mips_relhi_addend): Remove. | |
2341 | (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs. | |
2342 | (mips_rello_reloc): Process mips_relhi_list. | |
2343 | (mips_relocate_section): Permit an arbitrary number of REFHI or | |
2344 | RELHI relocs before the associated REFLO or RELLO reloc. | |
2345 | ||
b777c6a7 ILT |
2346 | Fri Jul 5 19:27:49 1996 Ian Lance Taylor <[email protected]> |
2347 | ||
2348 | * aout-target.h (MY(callback)): Set reloc_count fields. | |
2349 | ||
100b65dd ILT |
2350 | Thu Jul 4 12:00:37 1996 Ian Lance Taylor <[email protected]> |
2351 | ||
48f3aaf3 ILT |
2352 | * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic |
2353 | sections unless this is a SunOS link. | |
2354 | ||
100b65dd ILT |
2355 | * VERSION: Set to 2.7.1. |
2356 | ||
2357 | * Released binutils 2.7. | |
2358 | ||
a31e14f4 ILT |
2359 | Wed Jul 3 14:59:47 1996 Ian Lance Taylor <[email protected]> |
2360 | ||
4d3daf4f ILT |
2361 | * i386aout.c: Include "aout/aout64.h". |
2362 | (i386aout_write_object_contents): New static function. | |
2363 | (MY_write_object_contents): Define. | |
2364 | ||
a31e14f4 ILT |
2365 | * netbsd.h (MY(write_object_contents)): Make sure that |
2366 | adjust_sizes_and_vmas is called before fiddling with the magic | |
2367 | number. | |
2368 | ||
d2d04f7a ILT |
2369 | Tue Jul 2 23:30:39 1996 Ian Lance Taylor <[email protected]> |
2370 | ||
2371 | * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo. | |
2372 | ||
4f6ee760 ILT |
2373 | Sun Jun 30 13:34:33 1996 Ian Lance Taylor <[email protected]> |
2374 | ||
2375 | * libbfd-in.h (itos, stoi): Don't define. | |
2376 | * libbfd.h: Rebuild. | |
2377 | * i386lynx.c (KEEPIT): Define as udata.i. | |
2378 | (NAME(lynx,swap_std_reloc_out)): Don't use stoi. | |
2379 | (NAME(lynx,swap_ext_reloc_out)): Likewise. | |
2380 | * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than | |
2381 | flags. Don't use stoi. | |
2382 | ||
2383 | * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000. | |
2384 | ||
2385 | * elf.c (map_sections_to_segments): Don't start a new segment for | |
2386 | a writable section if it's on the same page as the previous | |
2387 | segment. Reset the writable variable for a readonly section. | |
2388 | ||
dfb89b82 KK |
2389 | Sat Jun 29 16:18:51 1996 Kim Knuttila <[email protected]> |
2390 | ||
2391 | * peicode.h (coff_swap_aouthdr_in): Missing initializations of | |
2392 | first_thunk_address, thunk_size, and import_table_size. | |
2393 | * peicode.h: Improved some diagnostics regarding edata sections. | |
2394 | ||
2395 | * coff-ppc.c (coff_ppc_relocate_section): Earlier error check | |
2396 | on IMGLUE relocs. | |
2397 | (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's. | |
2398 | (TARGET_LITTLE_SYM): Added missing D_PAGED. | |
2399 | ||
8e80606f ILT |
2400 | Fri Jun 28 13:48:45 1996 Ian Lance Taylor <[email protected]> |
2401 | ||
f93fb275 ILT |
2402 | * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol |
2403 | with XCOFF_DEF_DYNAMIC set is really defined. | |
2404 | (xcoff_link_check_dynamic_ar_symbols): Likewise. | |
2405 | (xcoff_link_add_symbols): Only create special sections if using an | |
2406 | XCOFF hash table. | |
2407 | ||
8e80606f ILT |
2408 | * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like |
2409 | aixcoff-rs6000. | |
2410 | (bfd_install_relocation): Likewise. | |
2411 | ||
eec2f824 ILT |
2412 | Fri Jun 28 11:17:00 1996 Richard Henderson <[email protected]> |
2413 | ||
2414 | * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags | |
2415 | field. | |
2416 | (ALPHA_ELF_LINK_HASH_LU_ADDR): Define. | |
2417 | (ALPHA_ELF_LINK_HASH_LU_MEM): Define. | |
2418 | (ALPHA_ELF_LINK_HASH_LU_FUNC): Define. | |
2419 | (elf64_alpha_link_hash_newfunc): Initialize flags field. | |
2420 | (elf64_alpha_check_relocs): Record types of LITUSE entries that | |
2421 | are found for LITERAL relocs. | |
2422 | (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address | |
2423 | taken, we cannot generate a .plt entry for the symbol. | |
2424 | ||
5304aea9 ILT |
2425 | Thu Jun 27 11:24:29 1996 Ian Lance Taylor <[email protected]> |
2426 | ||
2427 | * configure.in: Add AC_ISC_POSIX, and check for setitimer and | |
2428 | sysconf functions (for gprof). | |
2429 | * configure, config.in: Rebuild. | |
2430 | ||
017047d4 ILT |
2431 | Wed Jun 26 16:29:02 1996 Ian Lance Taylor <[email protected]> |
2432 | ||
f292bbe9 ILT |
2433 | * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in |
2434 | an archive if it has a map. If the object file has the wrong | |
2435 | xvec, reject it. | |
2436 | ||
566e2325 ILT |
2437 | * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a |
2438 | BRADDR, SREL16, SREL32, or SREL64 reloc against an external | |
2439 | symbol. | |
2440 | (alpha_relocate_section): Likewise. | |
2441 | ||
017047d4 ILT |
2442 | * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof. |
2443 | (coff_swap_filehdr_out): Use FILHSZ, not sizeof. | |
2444 | (coff_swap_sym_out): Use SYMESZ, not sizeof. | |
2445 | (coff_swap_aux_out): Use AUXESZ, not sizeof. | |
2446 | (coff_swap_lineno_out): Use LINESZ, not sizeof. | |
2447 | (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof. | |
2448 | (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof. | |
2449 | * peicode.h: Corresponding changes. | |
2450 | ||
cb73f5d7 MM |
2451 | Tue Jun 25 15:28:34 1996 Michael Meissner <[email protected]> |
2452 | ||
2453 | * elflink.h (elf_create_pointer_linker_section): Comment out code | |
2454 | dealing with making GOT pointers negative of the GOT symbol for | |
2455 | now. | |
2456 | ||
297a4f1a ILT |
2457 | Tue Jun 25 11:41:24 1996 Richard Henderson <[email protected]> |
2458 | ||
2459 | * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't | |
2460 | increment the .rela.plt size until after we're done creating the | |
2461 | .plt entry. | |
2462 | (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the | |
2463 | .rela.plt offset directly rather than calculating it. | |
2464 | ||
dbbfec07 JM |
2465 | Mon Jun 24 17:15:10 1996 Jason Molenda ([email protected]) |
2466 | ||
01e58ff6 JM |
2467 | * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): |
2468 | Use autoconf-set values. | |
2469 | * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, | |
2470 | includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set | |
2471 | values. | |
dbbfec07 JM |
2472 | (docdir): Deleted. |
2473 | * configure.in (AC_PREREQ): autoconf v2.5 or higher. | |
2474 | * configure: Rebuilt. | |
2475 | ||
50004d8d JL |
2476 | Mon Jun 24 22:50:35 1996 Jeffrey A Law ([email protected]) |
2477 | ||
2478 | * som.c (som_write_fixups): Fix typo in R_END_TRY for exception | |
2479 | handling code > 1k away. | |
2480 | ||
2481 | Mon Jun 24 18:41:06 1996 Michael Meissner <[email protected]> | |
2482 | ||
2483 | * elflink.h (elf_create_pointer_linker_section): If DEBUG is | |
2484 | defined, output whenever the symbol is updated. | |
2485 | ||
2e0567eb ILT |
2486 | Mon Jun 24 17:58:12 1996 Jouke Numan <[email protected]> |
2487 | ||
2488 | * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC | |
2489 | section to 0 if user_set_vma is set. | |
2490 | * elflink.h (elf_bfd_final_link): Likewise. | |
2491 | ||
2492 | Sun Jun 23 20:42:51 1996 Doug Evans <[email protected]> | |
2493 | ||
2494 | Partially undo patch of Jun 20. | |
2495 | * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE. | |
2496 | (coff_compute_section_file_positions): Likewise. | |
2497 | (coff_write_object_contents): Likewise. Re-add deleted code, but | |
2498 | use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE. | |
2499 | * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef. | |
2500 | ||
bff4a496 ILT |
2501 | Fri Jun 21 17:38:15 1996 Joel Sherrill <[email protected]> |
2502 | ||
2503 | * config.bfd: Add support for *-*-rtems* configurations. | |
2504 | ||
7ae6550f ILT |
2505 | Fri Jun 21 15:19:59 1996 Ian Lance Taylor <[email protected]> |
2506 | ||
2507 | * elf.c (prep_headers): Add bfd_arch_alpha case. | |
2508 | ||
e8f46717 ILT |
2509 | Fri Jun 21 12:35:27 1996 Richard Henderson <[email protected]> |
2510 | ||
2511 | * elf64-alpha.c: New file. | |
2512 | * config.bfd (alpha-*-linuxecoff*): New target. | |
2513 | (alpha-*-linux*, alpha-*-elf*): New targets. | |
2514 | * configure.in (bfd_elf64_alpha_vec): New vector. | |
2515 | * configure: Rebuild. | |
2516 | * targets.c (bfd_elf64_alpha_vec): Declare. | |
2517 | (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64. | |
2518 | * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define. | |
2519 | * bfd-in2.h, libbfd.h: Rebuild. | |
2520 | * Makefile.in: Rebuild dependencies. | |
2521 | (BFD64_BACKENDS): Add elf64-alpha.o. | |
2522 | (BFD64_BACKENDS_CFILES): Add elf64-alpha.c. | |
2523 | ||
bacecac8 ILT |
2524 | Thu Jun 20 18:14:25 1996 Ian Lance Taylor <[email protected]> |
2525 | ||
2526 | * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather | |
2527 | than relying on a right shift of 32. | |
2528 | ||
9ca108cd DE |
2529 | Thu Jun 20 11:00:57 1996 Doug Evans <[email protected]> |
2530 | ||
b9110a3c DE |
2531 | * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE |
2532 | ifdef to COFF_WITH_PE. | |
2533 | (coff_compute_section_file_positions): Likewise. | |
2534 | (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE. | |
2535 | * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete. | |
2536 | * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef | |
2537 | COFF_IMAGE_WITH_PE, always include. | |
2538 | ||
9ca108cd DE |
2539 | * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0. |
2540 | ||
c2073f05 ILT |
2541 | Wed Jun 19 11:37:52 1996 Ian Lance Taylor <[email protected]> |
2542 | ||
7fc6a16a ILT |
2543 | * elf.c (map_sections_to_segments): Fix up the test for -Ttext to |
2544 | approximate the correct answer if SIZEOF_HEADERS was not used. | |
2545 | ||
c2073f05 ILT |
2546 | * binary.c (binary_set_section_contents): Set section file |
2547 | position based on LMA rather than VMA. | |
2548 | ||
4838929e ILT |
2549 | Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <[email protected]> |
2550 | ||
2551 | * linker.c (_bfd_generic_link_output_symbols): Don't output any | |
2552 | symbols if info->strip == strip_all. | |
2553 | ||
2554 | Tue Jun 18 15:17:36 1996 Jeffrey A. Law <[email protected]> | |
2555 | ||
2556 | * coff-h8300.c: Remove #if 0 code. | |
2557 | (compatable): Don't allow mixing/matching of different architectures. | |
2558 | ||
4838929e ILT |
2559 | * archures.c (bfd_mach_h8300s): Add. |
2560 | * bfd-in2.h: Rebuilt. | |
2561 | * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too. | |
2562 | (BADMAG): Likewise. | |
2563 | (h8300_reloc16_estimate): Likewise. | |
2564 | (h8300_reloc16_extra_cases): Likewise. | |
2565 | (h8300_bfd_link_add_symbols): Likewise. | |
2566 | * coffcode.h (coff_set_arch_mach_hook): Likewise. | |
2567 | (coff_set_flags): Likewise. | |
2568 | * cpu-h8300.c (h8300_scan): Likewise. | |
2569 | Add H8/S to bfd_h8300_arch list. | |
2570 | ||
c3d8e071 ILT |
2571 | Tue Jun 18 14:42:58 1996 Klaus Kaempf <[email protected]> |
2572 | ||
2573 | Added support for Alpha OpenVMS: | |
2574 | * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files. | |
2575 | * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files. | |
2576 | * config.h-vms, makefile.vms: New files. | |
2577 | * config.bfd (alpha-*-*vms*): New target. | |
2578 | * configure.in (evax_alpha_vec): New target vector. | |
2579 | * configure: Rebuild. | |
2580 | * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define. | |
2581 | (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define. | |
2582 | * targets.c (bfd_target_evax_flavour): Define. | |
2583 | (evax_alpha_vec): Declare. | |
2584 | (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec | |
2585 | if BFD64 is defined. | |
2586 | * bfd-in2.h, libbfd.h: Rebuild. | |
2587 | * Makefile.in: Rebuild dependencies. | |
2588 | (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o, | |
2589 | evax-emh.o, and evax-misc.o. | |
2590 | (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c, | |
2591 | evax-etir.c, evax-emh.c, and evax-misc.c. | |
2592 | (HFILES): Add evax.h. | |
2593 | ||
142aa7d9 ILT |
2594 | Tue Jun 18 13:54:18 1996 Ian Lance Taylor <[email protected]> |
2595 | ||
2596 | * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const | |
2597 | pointer. | |
2598 | (h8300_bfd_link_add_symbols): Likewise. | |
2599 | ||
b658d64d JL |
2600 | Mon Jun 17 10:06:50 1996 Jeffrey A. Law <[email protected]> |
2601 | ||
2602 | * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define. | |
2603 | * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY. | |
2604 | ||
2df1e84b ILT |
2605 | Mon Jun 17 12:49:11 1996 Ian Lance Taylor <[email protected]> |
2606 | ||
2607 | * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc | |
2608 | for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were | |
2609 | created. | |
2610 | (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and | |
2611 | R_MIPS_32 relocs if creating a shared library. | |
2612 | ||
2613 | Thu Jun 13 20:14:51 1996 Doug Evans <[email protected]> | |
2614 | ||
2615 | * peicode.h (add_data_entry): Use pei_section_data rather than | |
2616 | _cooked_size. Corresponds to May 13 change in coffcode.h. | |
2617 | ||
8100e72c ILT |
2618 | Thu Jun 13 10:23:40 1996 Ian Lance Taylor <[email protected]> |
2619 | ||
51bc9642 ILT |
2620 | * cofflink.c (_bfd_coff_final_link): Handle long section names. |
2621 | * coffcode.h (coff_write_object_contents): If there are long | |
2622 | section names, always set the f_symptr field, even if there are no | |
2623 | symbols. | |
2624 | * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field | |
2625 | if there are no symbols. | |
2626 | ||
8100e72c ILT |
2627 | * coffgen.c (make_a_section_from_file): Check return value of |
2628 | _bfd_coff_read_string_table. | |
2629 | (coff_real_object_p): Check return value of | |
2630 | make_a_section_from_file. | |
2631 | (_bfd_coff_read_string_table): Check that there are some symbols | |
2632 | before trying to read the string table size. | |
2633 | ||
0e3bd85e ILT |
2634 | Wed Jun 12 11:16:37 1996 Ian Lance Taylor <[email protected]> |
2635 | ||
ed675a04 ILT |
2636 | * xcofflink.c (xcoff_link_add_symbols): When considering whether |
2637 | to replace a symbol in a dynamic object with a symbol from another | |
2638 | dynamic object, do the replacement if the existing symbol is | |
2639 | global linkage code. | |
2640 | ||
49144784 ILT |
2641 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly |
2642 | for _ptrgl, and treat it as global linkage code. | |
2643 | ||
0e3bd85e ILT |
2644 | * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a |
2645 | filename or N_SO symbol past the offset, and use it to indicate | |
2646 | that there is no line number or function when appropriate. | |
2647 | ||
a5c7acea ILT |
2648 | Tue Jun 11 15:24:48 1996 Ian Lance Taylor <[email protected]> |
2649 | ||
2650 | * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a | |
2651 | common symbol defined by the linker. Don't export function code | |
2652 | even if export_defineds is set. | |
2653 | ||
2654 | Mon Jun 10 11:57:27 1996 Jeffrey A Law ([email protected]) | |
2655 | ||
2656 | * coff-h8300.c (howto_table): Add new entries for R_BCC_INV | |
2657 | and R_JMP_DEL. | |
2658 | (rtype2howto): Handle R_BCC_INV and R_JMP_DEL. | |
2659 | (h8300_symbol_address_p): New function. | |
2660 | (h8300_reloc16_estimate): Eliminate jumps made unnecessary by | |
2661 | relaxing. | |
2662 | ||
890f5b7f JL |
2663 | Sun Jun 9 16:30:20 1996 Jeffrey A Law ([email protected]) |
2664 | ||
2665 | * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing | |
2666 | problems. | |
2667 | (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot" | |
2668 | correctly for the two variants. Allow relaxing if the target | |
2669 | is 128 bytes away since after relaxation it'll be 126 bytes away. | |
2670 | (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust | |
2671 | "dot" and "value". Allow relaxing if the target is 128 bytes | |
2672 | away since after relaxation it'll be 126 bytes away. | |
2673 | * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing | |
2674 | the given section until nothing changes. | |
2675 | ||
0593fc16 ILT |
2676 | Thu Jun 6 15:24:45 1996 Richard Henderson <[email protected]> |
2677 | ||
2678 | * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA | |
2679 | alignment hack--we can get the lnnoptr info another way without | |
2680 | suddenly increasing the alignment requirements. Set the flags for | |
2681 | the _PDATA section. | |
2682 | (ecoff_compute_section_file_positions): Do so. | |
2683 | ||
9b263b79 ILT |
2684 | Thu Jun 6 11:24:37 1996 Ian Lance Taylor <[email protected]> |
2685 | ||
bbf7c335 ILT |
2686 | * ieee.c (ieee_write_object_contents): Put a timestamp in the file |
2687 | to keep the HP emulator database happy. | |
2688 | ||
9b263b79 ILT |
2689 | * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*. |
2690 | From Kevin Buettner <[email protected]>. | |
2691 | ||
2692 | Wed Jun 5 15:16:04 1996 Ian Lance Taylor <[email protected]> | |
2693 | ||
2694 | * aoutx.h (translate_to_native_sym_flags): Don't try to print the | |
2695 | name of a NULL section. | |
2696 | ||
26145b15 ILT |
2697 | Tue Jun 4 18:53:58 1996 Ian Lance Taylor <[email protected]> |
2698 | ||
2699 | * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is | |
2700 | set, always call the notice callback. | |
2701 | ||
2702 | * VERSION: Increment for bfdlink.h change. | |
2703 | ||
3a2080d8 ILT |
2704 | Mon Jun 3 11:01:53 1996 Ian Lance Taylor <[email protected]> |
2705 | ||
9d175198 ILT |
2706 | * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4. |
2707 | (sh_relax_delete_bytes): Correct handling of differently sized | |
2708 | trailing alignment reloc. | |
2709 | ||
5a04f1bd ILT |
2710 | * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined. |
2711 | * bfd-in2.h: Rebuild. | |
2712 | * configure.in: Warn if there is no known 64 bit type. | |
2713 | * configure: Rebuild. | |
2714 | ||
60c8b04f ILT |
2715 | * Makefile.in: Rebuild dependencies. |
2716 | (BFD32_BACKENDS): Add ppcboot.o. | |
2717 | (BFD32_BACKENDS_CFILES): Add ppcboot.c. | |
2718 | ||
3a2080d8 ILT |
2719 | * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c. |
2720 | From Per Fogelstrom <[email protected]>. | |
2721 | ||
903612a2 ILT |
2722 | Sat Jun 1 21:49:58 1996 Ian Lance Taylor <[email protected]> |
2723 | ||
2724 | * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in) | |
2725 | (bfd_mips_elf64_swap_reginfo_out): Move from here... | |
2726 | * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in) | |
2727 | (bfd_mips_elf64_swap_reginfo_out): ...to here. | |
2728 | ||
38893c8c ILT |
2729 | Fri May 31 13:51:28 1996 Ian Lance Taylor <[email protected]> |
2730 | ||
bc05732b ILT |
2731 | * elf64-mips.c: Improve reloc special_functions and handling of |
2732 | SHT_MIPS_OPTIONS section. | |
2733 | * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from | |
2734 | mips_elf_hi16_reloc and make globally visible. | |
2735 | (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and | |
2736 | make globally visible. | |
2737 | (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and | |
2738 | make globally visible. | |
2739 | (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc | |
2740 | and make globally visible. | |
2741 | (gprel16_with_gp): Check howto->src_mask before using value in | |
2742 | insn. | |
2743 | (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc | |
2744 | and make globally visible. | |
2745 | (gprel32_with_gp): Check howto->src_mask before fetching value. | |
2746 | (bfd_mips_elf_swap_options_in): New function. | |
2747 | (bfd_mips_elf_swap_options_out): New function. | |
2748 | (_bfd_mips_elf_set_private_flags): Rename from | |
2749 | mips_elf_set_private_flags and make globally visible. | |
2750 | (_bfd_mips_elf_copy_private_bfd_data): Rename from | |
2751 | mips_elf_copy_private_bfd_data and make globally visible. | |
2752 | (_bfd_mips_elf_merge_private_bfd_data): Rename from | |
2753 | mips_elf_merge_private_bfd_data and make globally visible. | |
2754 | (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name | |
2755 | for a SHT_MIPS_OPTIONS section. | |
2756 | (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section. | |
2757 | (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the | |
2758 | name of a SHT_MIPS_OPTIONS section. | |
2759 | (_bfd_mips_elf_set_section_contents): New function. | |
2760 | (mips_elf32_section_processing): Set the GP value in a | |
2761 | SHT_MIPS_OPTIONS section. | |
2762 | (_bfd_mips_elf_find_nearest_line): Rename from | |
2763 | mips_elf_find_nearest_line and make globally visible. | |
2764 | (bfd_elf32_set_section_contents): Define. | |
2765 | * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare. | |
2766 | (_bfd_mips_elf_lo16_reloc): Declare. | |
2767 | (_bfd_mips_elf_gprel16_reloc): Declare. | |
2768 | (_bfd_mips_elf_got16_reloc): Declare. | |
2769 | (_bfd_mips_elf_gprel32_reloc): Declare. | |
2770 | (_bfd_mips_elf_set_private_flags): Declare. | |
2771 | (_bfd_mips_elf_copy_private_bfd_data): Declare. | |
2772 | (_bfd_mips_elf_merge_private_bfd_data): Declare. | |
2773 | (_bfd_mips_elf_find_nearest_line): Declare. | |
2774 | (_bfd_mips_elf_set_section_contents): Declare. | |
2775 | ||
38893c8c ILT |
2776 | * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from |
2777 | elf_info_to_howto. | |
2778 | (elf_info_to_howto): Define. | |
2779 | * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from | |
2780 | elf_info_to_howto. | |
2781 | (elf_info_to_howto): Define. | |
2782 | * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from | |
2783 | elf_info_to_howto. | |
2784 | (elf_info_to_howto): Define. | |
2785 | ||
2786 | * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to | |
2787 | R_MOV16B[12], to match change in coff/internal.h. | |
2788 | ||
cabd8fa0 ILT |
2789 | Thu May 30 12:38:49 1996 Ian Lance Taylor <[email protected]> |
2790 | ||
00176555 ILT |
2791 | * elf64-mips.c: Extensive additions to provide better support for |
2792 | writing files and for gas. | |
2793 | * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out | |
2794 | of mips_elf_object_p. | |
2795 | (mips_elf32_object_p): Rename from mips_elf_object_p; call | |
2796 | _bfd_mips_elf_object_p. | |
2797 | (_bfd_mips_elf_final_write_processing): Rename from | |
2798 | mips_elf_final_write_processing and make globally visible. | |
2799 | (_bfd_mips_elf_fake_sections): Rename from | |
2800 | mips_elf_fake_sections and make globally visible. | |
2801 | (_bfd_mips_elf_section_from_bfd_section): Rename from | |
2802 | mips_elf_section_from_bfd_section and make globally visible. | |
2803 | (_bfd_mips_elf_section_processing): New function, broken out of | |
2804 | mips_elf_section_processing. | |
2805 | (mips_elf32_section_processing): Rename from | |
2806 | mips_elf_section_processing; call | |
2807 | _bfd_mips_elf_section_processing. | |
2808 | (_bfd_mips_elf_symbol_processing): Rename from | |
2809 | mips_elf_symbol_processing and make globally visible. | |
2810 | (_bfd_mips_elf_read_ecoff_info): Rename from | |
2811 | mips_elf_read_ecoff_info and make globally visible. | |
2812 | (mips_elf32_ecoff_debug_swap): Rename from | |
2813 | mips_elf_ecoff_debug_swap. | |
2814 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than | |
2815 | struct symbol_cache_entry. | |
2816 | (_bfd_elf_validate_reloc): New function, moved in from | |
2817 | elfcode.h:validate_reloc. | |
2818 | * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed | |
2819 | to _bfd_elf_validate_reloc. Change all callers. | |
2820 | * elf-bfd.h (bfd_section_from_shdr): Declare. | |
2821 | (_bfd_elf_symbol_from_bfd_symbol): Declare. | |
2822 | (_bfd_elf_validate_reloc): Declare. | |
2823 | (_bfd_mips_elf_object_p): Declare. | |
2824 | (_bfd_mips_elf_fake_sections): Declare. | |
2825 | (_bfd_mips_elf_section_from_bfd_section): Declare. | |
2826 | (_bfd_mips_elf_section_processing): Declare. | |
2827 | (_bfd_mips_elf_symbol_processing): Declare. | |
2828 | (_bfd_mips_elf_read_ecoff_info): Declare. | |
2829 | (_bfd_mips_elf_final_write_processing): Declare. | |
2830 | * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define | |
2831 | if already defined. | |
2832 | ||
cabd8fa0 ILT |
2833 | * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4. |
2834 | (mips_elf_final_write_processing): Likewise. | |
2835 | ||
d1bf45aa ILT |
2836 | Wed May 29 16:15:29 1996 Ian Lance Taylor <[email protected]> |
2837 | ||
2838 | 64-bit MIPS ELF ABI objdump support: | |
2839 | * elf64-mips.c: New file. | |
2840 | * Makefile.in: Rebuild dependencies. | |
2841 | (BFD64_BACKENDS): Add elf64-mips.o. | |
2842 | (BFD64_BACKENDS_CFILES): Add elf64-mips.c. | |
2843 | * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and | |
2844 | bfd_elf64_littlemips_vec to targ_selvecs. | |
2845 | (mips*-*-elf*): Likewise. | |
2846 | * confingure.in: Add bfd_elf64_bigmips_vec and | |
2847 | bfd_elf64_littlemips_vec to vector switch. | |
2848 | * configure: Rebuild. | |
2849 | * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function, | |
2850 | broken out of mips_elf_section_from_shdr. | |
2851 | (mips_elf32_section_from_shdr): Rename from | |
2852 | mips_elf_section_from_shdr. Call new function. | |
2853 | (elf_backend_section_from_shdr): Update name of renamed function. | |
2854 | * elf-bfd.h (struct elf_size_info): Change second parameter of | |
2855 | write_out_phdrs to be const. Likewise for second parameter of | |
2856 | swap_symbol_out. | |
2857 | (struct bfd_elf_section_data): Add rel_hdr2 field. | |
2858 | (bfd_elf32_swap_symbol_in): Change second parameter to be const. | |
2859 | (bfd_elf32_swap_symbol_out): Likewise. | |
2860 | (bfd_elf32_swap_reloc_in): Likewise. | |
2861 | (bfd_elf32_swap_reloc_out): Likewise. | |
2862 | (bfd_elf32_swap_reloca_in): Likewise. | |
2863 | (bfd_elf32_swap_reloca_out): Likewise. | |
2864 | (bfd_elf32_swap_phdr_in): Likewise. | |
2865 | (bfd_elf32_swap_phdr_out): Likewise. | |
2866 | (bfd_elf32_swap_dyn_in): Likewise. | |
2867 | (bfd_elf32_swap_dyn_out): Likewise. | |
2868 | (bfd_elf32_slurp_symbol_table): Declare. | |
2869 | (bfd_elf32_write_shdrs_and_ehdr): Declare. | |
2870 | (bfd_elf32_write_out_phdrs): Declare. | |
2871 | (bfd_elf64_swap_symbol_in): Change second parameter to be const. | |
2872 | (bfd_elf64_swap_symbol_out): Likewise. | |
2873 | (bfd_elf64_swap_reloc_in): Likewise. | |
2874 | (bfd_elf64_swap_reloc_out): Likewise. | |
2875 | (bfd_elf64_swap_reloca_in): Likewise. | |
2876 | (bfd_elf64_swap_reloca_out): Likewise. | |
2877 | (bfd_elf64_swap_phdr_in): Likewise. | |
2878 | (bfd_elf64_swap_phdr_out): Likewise. | |
2879 | (bfd_elf64_swap_dyn_in): Likewise. | |
2880 | (bfd_elf64_swap_dyn_out): Likewise. | |
2881 | (bfd_elf64_slurp_symbol_table): Declare. | |
2882 | (bfd_elf64_write_shdrs_and_ehdr): Declare. | |
2883 | (bfd_elf64_write_out_phdrs): Declare. | |
2884 | (_bfd_mips_elf_section_from_shdr): Declare. | |
2885 | * elf.c (bfd_section_from_shdr): Remove assertion requiring | |
2886 | SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc | |
2887 | section for the section, add the new one to rel_hdr2. Increment | |
2888 | reloc_count rather than setting it. | |
2889 | * elfcode.h (elf_slurp_symbol_table): Define name as macro. | |
2890 | Remove static declaration. | |
2891 | (elf_write_shdrs_and_ehdr): Define name as macro. | |
2892 | (elf_write_out_phdrs): Likewise. | |
2893 | (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare. | |
2894 | (elf_swap_shdr_in, elf_swap_shdr_out): Declare. | |
2895 | (elf_swap_symbol_in): Change second parameter to be const. | |
2896 | (elf_swap_symbol_out): Likewise. | |
2897 | (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise. | |
2898 | (elf_swap_shdr_in, elf_swap_shdr_out): Likewise. | |
2899 | (elf_swap_phdr_in, elf_swap_phdr_out): Likewise. | |
2900 | (elf_swap_reloc_in, elf_swap_reloc_out): Likewise. | |
2901 | (elf_swap_reloca_in, elf_swap_reloca_out): Likewise. | |
2902 | (elf_write_out_phdrs): Rename from write_out_phdrs. Change second | |
2903 | parameter to be const. Make non-static. | |
2904 | (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr. | |
2905 | Make non-static. | |
2906 | (elf_slurp_symbol_table): Make non-static. | |
2907 | (NAME(_bfd_elf,size_info)): Update names of renamed functions. | |
2908 | * elfxx-target.h (elf_info_to_howto): Define if not defined. | |
2909 | (elf_backend_size_info): Likewise. | |
2910 | (elfNN_bed): Use elf_backend_size_info. | |
2911 | * targets.c (bfd_elf64_bigmips_vec): Declare. | |
2912 | (bfd_elf64_littlemips_vec): Declare. | |
2913 | (bfd_target_vector): Add bfd_elf64_bigmips_vec and | |
2914 | bfd_elf64_littlemips_vec if BFD64 is defined. | |
2915 | ||
2916 | * libbfd.c (bfd_get_file_window): Add cast to fprintf argument. | |
2917 | ||
7dd3d45a ILT |
2918 | Tue May 28 11:42:08 1996 Ian Lance Taylor <[email protected]> |
2919 | ||
07692951 ILT |
2920 | * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not |
2921 | zeroes, in alignment holes. | |
2922 | ||
a4322a77 ILT |
2923 | * configure: Rebuild with autoconf 2.10. |
2924 | ||
7dd3d45a ILT |
2925 | * aoutx.h (NAME(aout,find_nearest_line)): Make room for the |
2926 | potential leading underscore in the allocated buffer. | |
2927 | ||
0293d5b0 MM |
2928 | Fri May 24 14:28:38 1996 Michael Meissner <[email protected]> |
2929 | ||
2930 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common | |
2931 | symbols into .sbss if this is a relocatable link. | |
2932 | ||
a5d0cd50 ILT |
2933 | Thu May 23 12:26:24 1996 Ian Lance Taylor <[email protected]> |
2934 | ||
2935 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about | |
2936 | undefined symbols when creating a shared library. | |
2937 | ||
2938 | Fri May 17 13:54:15 1996 Ian Lance Taylor <[email protected]> | |
2939 | ||
2940 | * coff-sh.c: Add a bunch of new code and static const arrays to | |
2941 | support aligning loads and stores on four byte memory boundaries. | |
2942 | Also: | |
2943 | (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and | |
2944 | R_SH_LABEL. | |
2945 | (sh_relax_section): Look for R_SH_CODE relocs. If we find one, | |
2946 | call sh_align_loads. | |
2947 | (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs | |
2948 | as unused. | |
2949 | ||
c403d358 ILT |
2950 | Thu May 16 16:34:13 1996 Ian Lance Taylor <[email protected]> |
2951 | ||
2952 | * cache.c (bfd_open_file): Unlink the file before opening it for | |
2953 | write. From Marty Leisner <[email protected]>. | |
2954 | ||
2955 | * opncls.c (bfd_fdopenr): Set opened_once. | |
2956 | ||
2f710e17 ILT |
2957 | Tue May 14 12:35:32 1996 Ian Lance Taylor <[email protected]> |
2958 | ||
ff60fc3a ILT |
2959 | * som.c (som_slurp_reloc_table): Clear external_relocs cache after |
2960 | freeing it. | |
2961 | ||
2f710e17 ILT |
2962 | * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile |
2963 | the code unconditionally. | |
2964 | ||
efb33f6b ILT |
2965 | Mon May 13 19:51:37 1996 Ian Lance Taylor <[email protected]> |
2966 | ||
2967 | * libcoff-in.h (struct pei_section_tdata): Define structure. | |
2968 | (pei_section_data): Define macro. | |
2969 | * libcoff.h: Rebuild. | |
2970 | * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE, | |
2971 | store s_paddr field in pei_section_data. | |
2972 | (coff_compute_section_file_positions): Use pei_section_data rather | |
2973 | than _cooked_size, and don't overwrite an existing value. | |
2974 | (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to | |
2975 | 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data. | |
2976 | * peicode.h (coff_bfd_copy_private_section_data): Define if | |
2977 | COFF_IMAGE_WITH_PE. | |
2978 | (pe_bfd_copy_private_section_data): New static function if | |
2979 | COFF_IMAGE_WITH_PE. | |
2980 | ||
5ecd6d7f ILT |
2981 | Wed May 8 16:10:38 1996 Ian Lance Taylor <[email protected]> |
2982 | ||
db1e2aa7 ILT |
2983 | * srec.c (srec_set_arch_mach): Write as a function rather than a |
2984 | macro definition. | |
2985 | ||
5ecd6d7f ILT |
2986 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has |
2987 | no map, just check each member in turn to see whether it is | |
2988 | required. | |
2989 | ||
aefee5c8 MM |
2990 | Wed May 8 09:17:34 1996 Michael Meissner <[email protected]> |
2991 | ||
2992 | * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition | |
2993 | table. Call BFD_ASSERT to validate header size, instead of | |
2994 | calling fatal. | |
2995 | (ppcboot_bfd_print_private_bfd_data): Put quotes around partition | |
2996 | name. | |
2997 | ||
0d1fcbbb MM |
2998 | Tue May 7 16:10:19 1996 Michael Meissner <[email protected]> |
2999 | ||
3000 | * ppcboot.c: New target for looking at PPCbug boot records. | |
3001 | ||
3002 | * config{ure.in,.bfd}: Add support for ppcboot target. | |
3003 | * targets.c: Ditto. | |
3004 | * configure: Regenerate. | |
3005 | ||
f4597f8c JL |
3006 | Tue May 7 11:15:19 1996 Jeffrey A Law ([email protected]) |
3007 | ||
3008 | * coff-h8300.c (howto_table): Update names to match recent | |
3009 | changes to include/coff/internal.h. Fix minor errors in the | |
3010 | existing relocs. Add R_MOVL1 and R_MOVL2. | |
3011 | (rtype2howto): Similarly. | |
3012 | (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the | |
3013 | existing relaxing code and peform more relaxing. | |
3014 | (h8300_reloc16_extra_cases): Likewise. | |
3015 | ||
0dc70e1a JL |
3016 | Mon May 6 18:24:09 1996 Jeffrey A Law ([email protected]) |
3017 | ||
3018 | * reloc16.c (bfd_coff_reloc16_get_value): Handle common | |
3019 | symbols correctly. | |
3020 | ||
d1b8ccb0 PS |
3021 | Sat May 4 05:08:45 1996 Peter Schauer ([email protected]) |
3022 | ||
3023 | * elfcode.h (elf_object_p): Reject generic ELF target if | |
3024 | e_machine matches an alternate machine code in a specific backend. | |
3025 | ||
3026 | * netbsd-core.c (netbsd_core_vec): Remove initializer for | |
3027 | obsolete align_power_min field. | |
3028 | ||
c9f5444e JL |
3029 | Fri May 3 13:07:35 1996 Jeffrey A Law ([email protected]) |
3030 | ||
3031 | * coff-h8300.c (reloc_howto_type): Add howto entry for | |
3032 | R_PCRWORD_B. | |
3033 | (rtype2howto): Handle R_PCRWORD_B. | |
3034 | (h8300_reloc16_extra_cases): Handle R_PCRWORD_B. | |
3035 | (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit | |
3036 | pc-relative branch (R_PCRWORD) into an 8bit pc-relative | |
3037 | branch (R_PCWORD_B). | |
3038 | ||
4ad842aa ILT |
3039 | Fri May 3 10:47:41 1996 Ian Lance Taylor <[email protected]> |
3040 | ||
340d654f ILT |
3041 | * aoutx.h (translate_from_native_sym_flags): Set the section for |
3042 | BSF_CONSTRUCTOR symbols. | |
3043 | ||
4ad842aa ILT |
3044 | * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of |
3045 | last_bf_index. | |
3046 | ||
9c7a5748 DE |
3047 | Wed May 1 18:39:32 1996 Doug Evans <[email protected]> |
3048 | ||
3049 | * coffcode.h (coff_write_object_contents): In comdat section lookup, | |
3050 | stop looking when section is found. | |
3051 | ||
622c93a3 ILT |
3052 | Wed May 1 14:17:57 1996 Ian Lance Taylor <[email protected]> |
3053 | ||
e8f3bb64 | 3054 | * coffcode.h (STRING_SIZE_SIZE): Define. |
9aac8e83 ILT |
3055 | (styp_to_sec_flags): Handle long symbol names when looking for the |
3056 | section symbol. | |
e8f3bb64 ILT |
3057 | (bfd_coff_backend_data): Add _bfd_coff_long_section_names field. |
3058 | (bfd_coff_long_section_names): Define. | |
3059 | (coff_write_object_contents): Handle long section names. | |
3060 | (bfd_coff_std_swap_table): Initialize new field. | |
3061 | * libcoff.h: Rebuild. | |
3062 | * coffgen.c (make_a_section_from_file): Handle long section | |
3063 | names. | |
3064 | (coff_write_symbols): Handle long section names. | |
3065 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
3066 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
3067 | * pe-arm.c (COFF_LONG_SECTION_NAMES): Define. | |
3068 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Define. | |
3069 | * pe-i386.c (COFF_LONG_SECTION_NAMES): Define. | |
3070 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Define. | |
3071 | * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define. | |
3072 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define. | |
3073 | ||
622c93a3 ILT |
3074 | * bout.c (b_out_callback): Set lma of sections. |
3075 | (b_out_bfd_get_relocated_section_contents): Rename in_abfd | |
3076 | parameter to output_bfd. Used input_bfd instead of output_bfd in | |
3077 | several places. | |
3078 | ||
6b725f83 ILT |
3079 | Tue Apr 30 17:56:39 1996 Ian Lance Taylor <[email protected]> |
3080 | ||
b7d1158a ILT |
3081 | * aoutx.h (translate_from_native_sym_flags): Don't create |
3082 | SEC_CONSTRUCTOR sections. | |
3083 | * ecoff.c (ecoff_set_symbol_info): Likewise. | |
3084 | ||
6b725f83 ILT |
3085 | * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp. |
3086 | From Don Bowman <[email protected]>. | |
3087 | ||
e28a1e77 DE |
3088 | Tue Apr 30 17:06:32 1996 Doug Evans <[email protected]> |
3089 | ||
3090 | * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add | |
3091 | SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. | |
3092 | ||
abec70b9 ILT |
3093 | Mon Apr 29 13:15:17 1996 Ian Lance Taylor <[email protected]> |
3094 | ||
3095 | * elf32-mips.c (struct mips_elf_link_hash_entry): Add | |
3096 | mips_32_relocs field. | |
3097 | (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field. | |
3098 | (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32 | |
3099 | relocs against a global symbol which is not defined in a regular | |
3100 | file. | |
3101 | (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc | |
3102 | against a global symbol, increment mips_32_relocs. | |
3103 | (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and | |
3104 | the symbol is not defined in a regular file, make room in the | |
3105 | .rel.dyn section. | |
3106 | ||
ecba7a3a ILT |
3107 | Fri Apr 26 18:00:37 1996 Ian Lance Taylor <[email protected]> |
3108 | ||
656c5b6d ILT |
3109 | * ecoff.c (ecoff_compute_section_file_positions): Track the real |
3110 | file position and the virtual file position separately. Set | |
3111 | filepos information bsaed on the real file position. | |
3112 | (_bfd_ecoff_set_section_contents): Handle .lib sections like the | |
3113 | Jan 23 change to coffcode.h. | |
3114 | ||
ecba7a3a ILT |
3115 | * som.c (som_slurp_symbol_table): Set the symbol count to the |
3116 | number of BFD symbols created. | |
3117 | ||
e25a7988 MM |
3118 | Fri Apr 26 12:34:29 1996 Michael Meissner <[email protected]> |
3119 | ||
3120 | * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the | |
3121 | output file if linking shared objects. Loop to check all relocs, | |
3122 | rather than returning false on first error. | |
3123 | ||
5c28a96e MM |
3124 | Thu Apr 25 13:25:12 1996 Michael Meissner <[email protected]> |
3125 | ||
3f7ca26b MM |
3126 | * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case. |
3127 | (ppc_elf_additional_program_headers): If .interp section, bump # | |
3128 | of program headers by 1. | |
3129 | (ppc_elf_adjust_dynamic_symbol): Flesh out support. | |
3130 | (ppc_elf_size_dynamic_sections): Add support for .plt section. | |
3131 | (ppc_elf_check_relocs): Print out filename in debug code. Enable | |
3132 | PLT support. | |
3133 | (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up | |
3134 | debug output. | |
3135 | (ppc_elf_relocate_section): If the output section isn't defined, | |
3136 | don't abort, just give an error message. | |
3137 | ||
5c28a96e MM |
3138 | * elflink.c (_bfd_elf_create_dynamic_sections): If the section |
3139 | being created is .sdata or .sdata2, don't make the symbol dynamic. | |
3140 | ||
f5d65485 ILT |
3141 | Wed Apr 24 14:04:07 1996 Ian Lance Taylor <[email protected]> |
3142 | ||
3143 | * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the | |
3144 | members of an archive for dynamic objects with no symbols, and | |
3145 | pass them directly to check_archive_element. | |
3146 | (xcoff_link_check_ar_symbols): Pass dynamic objects to | |
3147 | xcoff_link_check_dynamic_ar_symbols. | |
3148 | (xcoff_link_check_dynamic_ar_symbols): New static function. | |
3149 | ||
3150 | * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC | |
3151 | from _bfd_nodynamic to _bfd_xcoff. | |
3152 | * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound): | |
3153 | Declare. | |
3154 | (_bfd_xcoff_canonicalize_dynamic_symtab): Declare. | |
3155 | (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare. | |
3156 | (_bfd_xcoff_canonicalize_dynamic_reloc): Declare. | |
3157 | * libcoff.h: Rebuild. | |
3158 | * xcofflink.c (xcoff_swap_ldrel_in): New static function. | |
3159 | (xcoff_get_section_contents): New static function. | |
3160 | (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function. | |
3161 | (_bfd_xcoff_canonicalize_dynamic_symtab): New function. | |
3162 | (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function. | |
3163 | (xcoff_dynamic_reloc): New static variable. | |
3164 | (_bfd_xcoff_canonicalize_dynamic_reloc): New function. | |
3165 | (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents. | |
3166 | ||
3167 | Tue Apr 23 12:48:42 1996 Ian Lance Taylor <[email protected]> | |
3168 | ||
3169 | * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even | |
3170 | if reloc_entry->addend is not 0. | |
3171 | (CALC_ADDEND): Just set the addend to reloc.r_offset. | |
3172 | ||
34249b2f DE |
3173 | Mon Apr 22 18:29:01 1996 Doug Evans <[email protected]> |
3174 | ||
3175 | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of | |
3176 | R_SPARC_GLOB_JMP. | |
3177 | * elf64-sparc.c (sparc64_elf_howto_table): Likewise. | |
3178 | Add entries for R_SPARC_[56]. | |
3179 | (sparc_reloc_map): Add entries for R_SPARC_[56]. | |
3180 | ||
af50cd91 ILT |
3181 | Mon Apr 22 15:07:24 1996 Ian Lance Taylor <[email protected]> |
3182 | ||
1726b8f0 ILT |
3183 | Optimize linking of stabs in sections as used in ELF and COFF. |
3184 | * stabs.c: New file. | |
3185 | * libbfd-in.h (_bfd_link_section_stabs): Declare. | |
3186 | (_bfd_write_section_stabs): Declare. | |
3187 | (_bfd_write_stab_strings): Declare. | |
3188 | * libbfd.h: Rebuild. | |
3189 | * libcoff-in.h (struct coff_section_tdata): Add stab_info field. | |
3190 | (struct coff_link_hash_table): Add stab_info field. | |
3191 | * libcoff.h: Rebuild. | |
3192 | * cofflink.c (_bfd_coff_link_hash_table_init): Initialize | |
3193 | stab_info field. | |
3194 | (coff_link_add_symbols): Call _bfd_link_section_stabs if | |
3195 | appropriate. | |
3196 | (_bfd_coff_final_link): Write out stab strings hash table. | |
3197 | (_bfd_coff_link_input_bfd): Handle optimized stabs sections. | |
3198 | * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings | |
3199 | hash table. | |
3200 | * elf-bfd.h (struct elf_link_hash_table): Add stab_info field. | |
3201 | (struct bfd_elf_section_data): Add stab_info field. | |
3202 | * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info | |
3203 | field. | |
3204 | * elflink.h (elf_link_add_object_symbols): If appropriate, call | |
3205 | _bfd_link_section_stabs. | |
3206 | (elf_bfd_final_link): Write out stab strings hash table. | |
3207 | (elf_link_input_bfd): Handle optimized stabs sections. | |
3208 | * reloc.c (_bfd_final_link_relocate): Check address against | |
3209 | _raw_size rather than _cooked_size. | |
3210 | * Makefile.in: Rebuild dependencies. | |
3211 | (BFD_LIBS): Add stabs.o | |
3212 | (BFD_LIBS_CFILES): Add stabs.c. | |
3213 | ||
3214 | * VERSION: Increment for bfdlink.h change. | |
3215 | ||
af50cd91 ILT |
3216 | * coffgen.c (coff_renumber_symbols): Correct handling of |
3217 | BSF_NOT_AT_END common symbols. | |
3218 | ||
f9fa5df3 ILT |
3219 | Fri Apr 19 19:21:56 1996 Ian Lance Taylor <[email protected]> |
3220 | ||
3221 | * coff-ppc.c (record_toc): Add cast to avoid warning. | |
3222 | (ppc_allocate_toc_section): Likewise. | |
3223 | (coff_ppc_relocate_section): Remove ANSI C string concatenation. | |
3224 | (ppc_coff_reloc_type_lookup): Remove unreached code. | |
3225 | * coffcode.h (coff_write_object_contents): Don't take the address | |
3226 | of an array. | |
3227 | * peicode.h (pe_print_idata): Add casts to avoid warning. | |
3228 | (pe_print_edata): Likewise. | |
3229 | (pe_print_reloc): Remove ANSI C string concatenation. | |
3230 | ||
d6e0e2f7 ILT |
3231 | Thu Apr 18 18:51:18 1996 Ian Lance Taylor <[email protected]> |
3232 | ||
3233 | * libcoff-in.h (struct coff_final_link_info): Add last_bf_index | |
3234 | and last_bf fields. | |
3235 | * libcoff.h: Rebuild. | |
3236 | * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN | |
3237 | symbols. | |
3238 | (coff_swap_aux_out): Likewise. | |
3239 | * peicode.h (coff_swap_aux_in): Likewise. | |
3240 | (coff_swap_aux_out): Likewise. | |
3241 | * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN | |
3242 | symbols. | |
3243 | * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index | |
3244 | field. | |
3245 | (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols. | |
3246 | Fix up .bf endndx link fields. | |
3247 | * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index | |
3248 | field. | |
3249 | * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN | |
3250 | symbols. | |
3251 | ||
221d1e19 MM |
3252 | Wed Apr 17 12:08:24 1996 Michael Meissner <[email protected]> |
3253 | ||
3254 | * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling | |
3255 | on Solaris PowerPC systems doesn't get confused. | |
3256 | ||
3257 | * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not | |
3258 | #ifdef PPC. | |
3259 | ||
3260 | * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument. | |
3261 | (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't | |
3262 | update did_reg and did_reg2. | |
3263 | ||
8f9a56c6 ILT |
3264 | Wed Apr 17 13:07:37 1996 Ian Lance Taylor <[email protected]> |
3265 | ||
f97fca78 ILT |
3266 | * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow. |
3267 | ||
8f9a56c6 ILT |
3268 | * linker.c (_bfd_generic_link_add_one_symbol): When calling the |
3269 | callback routines, pass h->root.string rather than name, in case | |
3270 | copy is true and name is transient. | |
3271 | ||
603fdf16 SG |
3272 | Tue Apr 16 16:36:38 1996 Stu Grossman ([email protected]) |
3273 | ||
3274 | * elfcore.h: Add support for core files with multiple threads. | |
3275 | (Primarily for Solaris.) | |
3276 | ||
a2d914e1 ILT |
3277 | Tue Apr 16 13:44:08 1996 Ian Lance Taylor <[email protected]> |
3278 | ||
cdf23557 ILT |
3279 | * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if |
3280 | section->orelocation is NULL. | |
3281 | ||
a2d914e1 ILT |
3282 | * coffgen.c (bfd_coff_get_syment): New function. |
3283 | (bfd_coff_get_auxent): New function. | |
3284 | * bfd-in.h (bfd_coff_get_syment): Declare. | |
3285 | (bfd_coff_get_auxent): Declare. | |
3286 | * bfd-in2.h: Rebuild. | |
3287 | ||
5cf36a32 ILT |
3288 | Mon Apr 15 19:06:59 1996 Ian Lance Taylor <[email protected]> |
3289 | ||
3290 | * elf32-mips.c (struct mips_hi16): Define. | |
3291 | (mips_hi16_addr, mips_hi16_addend): Remove. | |
3292 | (mips_hi16_list): New static variable. | |
3293 | (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs. | |
3294 | (mips_elf_lo16_reloc): Process mips_hi16_list. | |
3295 | (mips_elf_relocate_section): Permit an arbitrary number of HI16 | |
3296 | relocs before the associated LO16 reloc. | |
3297 | ||
b7fce5be ILT |
3298 | Wed Apr 10 00:23:53 1996 Ian Lance Taylor <[email protected]> |
3299 | ||
176512da ILT |
3300 | * versados.c (versados_scan): Check bfd_alloc return value. |
3301 | (versados_object_p): Check all bfd_read return values. Require | |
3302 | that lang field be less than 10, to avoid confusion with Intel Hex | |
3303 | files. | |
3304 | ||
18de3f19 ILT |
3305 | * libaout.h (WRITE_HEADERS): Write out the relocs even if there |
3306 | aren't any symbols. | |
3307 | * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS, | |
3308 | not 0, for an absolute symbol. | |
3309 | (NAME(aout,swap_ext_reloc_out)): Likewise. | |
3310 | ||
66ab4152 ILT |
3311 | * ihex.c (ihex_scan): Accept a length of 4 for record type 5. |
3312 | (ihex_write_object_contents): For a large start address, output | |
3313 | the full 32 bit address in record type 5. | |
3314 | ||
b7fce5be ILT |
3315 | * ieee.c (ieee_write_byte): Change second parameter from bfd_byte |
3316 | to int to avoid promotion problems in prototype. | |
3317 | ||
f1b45745 ILT |
3318 | Tue Apr 9 11:44:21 1996 Ian Lance Taylor <[email protected]> |
3319 | ||
f400f358 ILT |
3320 | * configure.host: Use ${srcdir} when looking for picfrag. |
3321 | ||
3d9a5986 ILT |
3322 | * configure.host: Switch on ${libdir}, not $(libdir). From |
3323 | [email protected] (Alan Modra). | |
3324 | ||
f1b45745 ILT |
3325 | * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols |
3326 | entry point, not just for DYNAMIC objects. | |
3327 | * sunos.c (sunos_add_dynamic_symbols): Always call | |
3328 | sunos_create_dynamic_sections. If called with a non DYNAMIC | |
3329 | object, don't do anything else. | |
3330 | (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections. | |
3331 | ||
6f21f2e3 ILT |
3332 | Mon Apr 8 12:09:36 1996 Ian Lance Taylor <[email protected]> |
3333 | ||
639b5a09 ILT |
3334 | * configure.in: Permit --enable-shared to specify a list of |
3335 | directories. | |
3336 | * configure: Rebuild. | |
3337 | ||
6f21f2e3 ILT |
3338 | * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf* |
3339 | host when configuring with --enable-shard. | |
3340 | ||
3f5f565b ILT |
3341 | Fri Apr 5 12:24:13 1996 Ian Lance Taylor <[email protected]> |
3342 | ||
1ac75f5c ILT |
3343 | * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra |
3344 | <[email protected]>. | |
3345 | ||
1a9951a9 ILT |
3346 | * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE, |
3347 | to avoid crashing in bfd_hash_replace. | |
3348 | ||
f1ac3acb | 3349 | * sysdep.h: Use #ifdef, not #if. |
3f5f565b | 3350 | |
eb5f58e0 ILT |
3351 | Thu Apr 4 23:32:23 1996 Ian Lance Taylor <[email protected]> |
3352 | ||
3353 | * config.in: Rebuild. | |
3354 | ||
ab1aa5cd FF |
3355 | Thu Apr 4 18:49:09 1996 Fred Fish <[email protected]> |
3356 | ||
3357 | * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE. | |
3358 | (AC_CHECK_HEADERS): Check for sys/time.h | |
3359 | (AC_HEADER_TIME): Add macro. | |
3360 | * configure: Rebuild. | |
3361 | * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H | |
3362 | to control what combination of <time> and <sys/time.h> | |
3363 | get included. | |
3364 | ||
d1f74cd2 DE |
3365 | Tue Apr 2 13:11:53 1996 Doug Evans <[email protected]> |
3366 | ||
3367 | * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET. | |
3368 | (aout_32_sunos4_write_object_contents): Likewise. | |
3369 | * aoutx.h (NAME(aout,machine_type)): Handle | |
3370 | bfd_mach_sparc_{sparclet,sparclite}. | |
3371 | * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define. | |
3372 | (bfd_mach_sparc_v9_p): Update. | |
3373 | * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite. | |
3374 | * libaout.h (enum machine_type): Add M_SPARCLET. | |
3375 | * sunos.c (MACHTYPE_OK): Define. | |
3376 | * bfd-in2.h: Regenerated. | |
3377 | ||
1dad72bd ILT |
3378 | Tue Apr 2 00:33:18 1996 Ian Lance Taylor <[email protected]> |
3379 | ||
19bfbcbe ILT |
3380 | * elf-bfd.h (struct elf_link_hash_table): Add hgot field. |
3381 | * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field. | |
3382 | * elflink.c (_bfd_elf_create_got_section): Store the | |
3383 | _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field. | |
3384 | * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the | |
3385 | global offset table goes over 0x1000, set the value of | |
3386 | _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section. | |
3387 | (elf32_sparc_relocate_section): Subtract the offset of | |
3388 | _GLOBAL_OFFSET_TABLE_ when handling GOT relocations. | |
3389 | ||
1dad72bd ILT |
3390 | * elfcode.h: Don't include <string.h>. |
3391 | ||
ca4e2190 JL |
3392 | Mon Apr 1 10:39:24 1996 Jeffrey A Law ([email protected]) |
3393 | ||
3394 | * linker.c (_bfd_generic_link_hash_newfunc): Renamed from | |
3395 | generic_link_hash_newfunc. All references changed. | |
3396 | * genlink.h (_bfd_generic_link_hash_newfunc): Declaration | |
3397 | moved here from libbfd-in.h. | |
3398 | * libbfd-in.h: Corresponding changes. | |
3399 | * libbfd.h: Regenerated. | |
3400 | ||
ce6a7731 ILT |
3401 | Mon Apr 1 12:35:36 1996 Ian Lance Taylor <[email protected]> |
3402 | ||
aad53b0d ILT |
3403 | * aoutx.h (aout_link_input_section_std): When reporting an |
3404 | overflow error, use the name of the symbol in the hash table if | |
3405 | available. | |
3406 | (aout_link_input_section_ext): Likewise. | |
3407 | ||
ce6a7731 ILT |
3408 | * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got |
3409 | defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR. | |
3410 | ||
323b430f SC |
3411 | Sun Mar 31 01:58:41 1996 steve chamberlain <[email protected]> |
3412 | ||
3413 | * peicode.h (coff_swap_aouthdr_out): Delete test for .junk. | |
3414 | * coffcode.h (coff_compute_section_file_positions): Likewise. | |
3415 | (coff_write_object_contents): Likewise. | |
3416 | ||
7fc1cd16 ILT |
3417 | Fri Mar 29 12:44:36 1996 Ian Lance Taylor <[email protected]> |
3418 | ||
5a28331f ILT |
3419 | * section.c (SEC_LINK_ONCE): Define. |
3420 | (SEC_LINK_DUPLICATES): Define. | |
3421 | (SEC_LINK_DUPLICATES_DISCARD): Define. | |
3422 | (SEC_LINK_DUPLICATES_ONE_ONLY): Define. | |
3423 | (SEC_LINK_DUPLICATES_SAME_SIZE): Define. | |
3424 | (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define. | |
3425 | * bfd-in2.h: Rebuild. | |
3426 | * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn | |
3427 | SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT. | |
3428 | (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE | |
3429 | into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set | |
3430 | SEC_LINK_ONCE, and look through the symbol table for the setting | |
3431 | for SEC_LINK_DUPLICATES. | |
3432 | (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is | |
3433 | set for a section, find the section symbol in the symbol table, | |
3434 | and set the aux entry based on SEC_LINK_DUPLICATES. | |
3435 | * coffgen.c (coff_print_symbol): Add a space before "checksum". | |
3436 | * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add | |
3437 | SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags. | |
3438 | * coff-i386.c (i386coff_vec): Likewise. | |
3439 | * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise. | |
3440 | ||
7fc1cd16 ILT |
3441 | * VERSION: Bump to 2.6.1. |
3442 | * Makefile.in (stamp-h): Depend upon VERSION. | |
3443 | ||
9399a257 JL |
3444 | Thu Mar 28 23:48:49 1996 Jeffrey A Law ([email protected]) |
3445 | ||
3446 | * libbfd-in.h (generic_link_hash_newfunc): Add declaration. | |
3447 | * libbfd.h: Rebuilt. | |
3448 | * linker.c (generic_link_hash_newfunc): No longer static. | |
3449 | * coffcode.h (coff_bfd_link_hash_create): Allow specific targets | |
3450 | to override. | |
3451 | * coff-h8300.c: Add two derived hash tables and their associated | |
3452 | funtions and #defines for use by the h8300 linker. | |
3453 | (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in | |
3454 | the function vector as needed. Place the address of the function | |
3455 | vector entry in the location specified by the R_MEM_INDIRECT reloc. | |
3456 | Rewrite the vectors section contents as necessary. | |
3457 | (h8300_bfd_link_add_symbols): New function for the h8300 linker. | |
3458 | (coff_bfd_link_add_symbols): Define to use h8300 specific version. | |
3459 | (coff_bfd_link_hash_table_create): Likewise. | |
3460 | ||
506f2bb4 ILT |
3461 | Thu Mar 28 17:44:08 1996 Ian Lance Taylor <[email protected]> |
3462 | ||
3463 | * libhppa.h: If gcc 2.7 or higher, declare all the functions with | |
3464 | __attribute__ ((__unused__)) so that -Wall doesn't warn about | |
3465 | them. | |
3466 | (hppa_rebuild_insn): Pass pointer to correct type to | |
3467 | low_sign_unext and dis_assemble_21. | |
3468 | ||
05a84ae1 DE |
3469 | Thu Mar 28 11:00:36 1996 Doug Evans <[email protected]> |
3470 | ||
3471 | * config.bfd (sparc64-{sysv4*,solaris2*}): Delete. | |
3472 | Stick with sparc-*-{sysv4*,solaris2*}. | |
3473 | ||
919cf4b5 ILT |
3474 | Wed Mar 27 10:43:34 1996 Ian Lance Taylor <[email protected]> |
3475 | ||
8230f31c ILT |
3476 | * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields. |
3477 | (coff_swap_aux_out): Swap out extra PE x_scn fields. | |
3478 | * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields. | |
3479 | * coffgen.c (coff_print_symbol): If any of the extra PE x_scn | |
3480 | fields is non-zero, print them. | |
3481 | ||
9addd1d4 ILT |
3482 | * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE |
3483 | ifdef. Remove unused variables. | |
3484 | (ppc_record_data_in_toc_entry): Ifdef out. Removed unused | |
3485 | variables. | |
3486 | (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef. | |
3487 | (get_symbol_value): Ifdef out. | |
3488 | (pe_ppc_reloc): Ifdef out. Remove unused variables. | |
3489 | (coff_ppc_relocate_section): Remove unused variables. Make | |
3490 | fprintf strings and argument types correspond. Put before_addr in | |
3491 | DEBUG_RELOC ifdef. | |
ff0e4a93 ILT |
3492 | (dump_toc): Make fprintf strings and argument types correspond. |
3493 | (ppc_process_before_allocation): Remove unused variables. Always | |
3494 | return a value. | |
9addd1d4 ILT |
3495 | (ppc_reflo_reloc): Ifdef out. |
3496 | (ppc_addr32nb_reloc): Ifdef out. | |
3497 | (ppc_coff_rtype2howto): Make fprintf strings and argument types | |
3498 | correspond. | |
3499 | (coff_ppc_rtype_to_howto): Likewise. | |
3500 | (ppc_coff_swap_sym_in_hook): Remove unused variables. | |
3501 | ||
3502 | * peicode.h (pe_print_idata): Move otherwise unused variables into | |
3503 | the #ifdef where they are used. Always return a value. | |
ff0e4a93 ILT |
3504 | (pe_print_edata): Make fprintf strings and argument types |
3505 | correspond. Always return a value. | |
9addd1d4 ILT |
3506 | (pe_print_pdata): Removed unused variable addr_value. Always |
3507 | return a value. | |
3508 | (pe_print_reloc): Remove unused variable onaline. Make fprintf | |
ff0e4a93 | 3509 | strings and argument types correspond. Always return a value. |
9addd1d4 ILT |
3510 | |
3511 | * elf32-ppc.c (ppc_elf_fake_sections): Return true. | |
3512 | (ppc_elf_finish_dynamic_symbol): Move definition of unused | |
3513 | variable rela inside #if 0 section where it is used. | |
3514 | ||
c877bdf1 ILT |
3515 | * ns32k.h: New file. |
3516 | * cpu-ns32k.h: Include ns32k.h. Rename externally visible | |
3517 | functions to start with _bfd_. | |
3518 | * aout-ns32k.c: Include ns32k.h. Change references to renamed | |
3519 | functions in cpu-ns32k.h. | |
3520 | * Makefile.in: Rebuild dependencies. | |
3521 | (HFILES): Add ns32k.h. | |
3522 | ||
ff0e4a93 ILT |
3523 | * section.c (struct sec): Add linker_mark field. Change |
3524 | user_set_vma and reloc_done to be single bit fields. | |
3525 | (STD_SECTION): Update accordingly. | |
7ec49f91 ILT |
3526 | * bfd-in2.h: Rebuild. |
3527 | * aoutx.h (NAME(aout,final_link)): Mark sections included in the | |
3528 | link. | |
3529 | (aout_link_input_bfd): Don't link unmarked sections. | |
3530 | * cofflink.c (_bfd_coff_final_link): Mark sections included in the | |
3531 | link. | |
3532 | (_bfd_coff_link_input_bfd): Don't link unmarked sections. | |
3533 | * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in | |
3534 | the link. | |
3535 | * elflink.h (elf_bfd_final_link): Mark sections included in the | |
3536 | link. | |
3537 | (elf_link_input_bfd): Don't link unmarked sections. | |
3538 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included | |
3539 | in the link. | |
3540 | (xcoff_link_input_bfd): Don't link unmarked sections. | |
3541 | ||
919cf4b5 ILT |
3542 | * coffswap.h (coff_swap_scnhdr_out): Include section name in |
3543 | overflow error messages. | |
3544 | ||
986cf3b8 ILT |
3545 | Tue Mar 26 15:46:18 1996 Ian Lance Taylor <[email protected]> |
3546 | ||
fd681dcd ILT |
3547 | * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name |
3548 | is not set, print "BFD: " before the error message. | |
3549 | ||
986cf3b8 ILT |
3550 | * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From |
3551 | Miles Bader <[email protected]>. | |
3552 | * configure: Rebuild. | |
3553 | ||
3998d526 ILT |
3554 | Fri Mar 22 12:17:00 1996 Ian Lance Taylor <[email protected]> |
3555 | ||
c3dffbd7 ILT |
3556 | * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL |
3557 | symbols. | |
3558 | ||
3998d526 ILT |
3559 | * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and |
3560 | m68k-aout, m68k-coff, and m68k-elf targets. | |
3561 | ||
e4d27380 ILT |
3562 | Fri Mar 22 11:33:44 1996 Martin Anantharaman <[email protected]> |
3563 | ||
3564 | * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST. | |
3565 | (ieee_generic_stat_arch_elt): Restructured to prevent | |
3566 | ieee_object_p from being called repeatedly. | |
3567 | ||
51776a11 SC |
3568 | Thu Mar 21 11:00:47 1996 steve chamberlain <[email protected]> |
3569 | ||
3570 | * coffcode.h (coff_write_object_contents): Allocate | |
3571 | buffers large enough for any FILEHDR or AOUTHDR. | |
3572 | ||
3573 | Thu Mar 21 16:28:17 1996 David Mosberger-Tang <[email protected]> | |
3574 | ||
3575 | * ecofflink.c (lookup_line): New static function, renamed and | |
3576 | slighly changed from old _bfd_ecoff_locate_line. | |
3577 | (_bfd_ecoff_locate_line): Cache line number information. Use | |
3578 | lookup_line for actual lookup. | |
3579 | ||
9e4ebb1b MM |
3580 | Thu Mar 21 14:59:11 1996 Michael Meissner <[email protected]> |
3581 | ||
3582 | * peicode.h (pe_print_pdata): Warn if the .pdata section is not a | |
3583 | multiple of 20 bytes. | |
3584 | ||
9e7427a4 ILT |
3585 | Thu Mar 21 13:54:40 1996 Ian Lance Taylor <[email protected]> |
3586 | ||
51776a11 SC |
3587 | * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to |
3588 | allocate ecoff_find_line, and don't initialize by hand. | |
3589 | * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for | |
3590 | mips_elf_find_line, and don't call memset. | |
3591 | ||
9e7427a4 ILT |
3592 | * coffcode.h (coff_compute_section_file_positions): If not |
3593 | producing a final executable, don't consider sofar when aligning | |
3594 | the section to the correct size. | |
3595 | ||
3596 | Wed Mar 20 16:53:12 1996 Ian Lance Taylor <[email protected]> | |
3597 | ||
3598 | * coffcode.h (coff_add_missing_symbols): Ifdef out. | |
3599 | (coff_write_object_contents): Don't call coff_add_missing_symbols. | |
3600 | * coffgen.c (coff_section_symbol): Ifdef out. | |
3601 | ||
e7f9ba4f ILT |
3602 | Mon Mar 18 12:54:41 1996 Ian Lance Taylor <[email protected]> |
3603 | ||
3604 | * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if | |
3605 | output_bfd is not NULL. | |
3606 | ||
34c4d647 DE |
3607 | Thu Mar 14 17:12:06 1996 Doug Evans <[email protected]> |
3608 | ||
3609 | * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead | |
3610 | of bfd_alloc (fixes fix_line not being initialized). | |
3611 | Delete zeroing of fix_{value,tag,end,scnlen} fields. | |
3612 | ||
4e054247 JL |
3613 | Thu Mar 14 16:06:06 1996 Jeffrey A Law ([email protected]) |
3614 | ||
57289b5c JL |
3615 | * coffcode.h: Allow specific backends to override the |
3616 | bfd_link_add_symbols routine. | |
3617 | ||
4e054247 JL |
3618 | * coff-h8300.c: Include genlink.h. |
3619 | (howto_table): Add R_MEM_INDIRECT. | |
3620 | (rtype2howto): Support R_MEM_INDIRECT. | |
3621 | (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE | |
3622 | for now. | |
3623 | ||
a10d3dec ILT |
3624 | Tue Mar 12 12:41:17 1996 David Mosberger-Tang <[email protected]> |
3625 | ||
3626 | * coff-alpha.c (alpha_relocate_section): Use | |
3627 | info->callbacks_warning, rather than _bfd_error_handler, for | |
3628 | "multiple gp" warning. | |
3629 | ||
ea2488ad ILT |
3630 | Tue Mar 12 12:10:55 1996 Ian Lance Taylor <[email protected]> |
3631 | ||
8881b321 ILT |
3632 | * linker.c (bfd_wrapped_link_hash_lookup): New function. |
3633 | (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash | |
3634 | table string. Use bfd_wrapped_link_hash_lookup. | |
3635 | (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash | |
3636 | table string. | |
3637 | * aoutx.h (aout_link_write_symbols): Use the name from the hash | |
3638 | table, if any, when writing out symbols. | |
3639 | (aout_link_input_section_std): Use the name from the hash table, | |
3640 | if any, when reporting undefined symbols. | |
3641 | (aout_link_input_section_ext): Likewise. | |
3642 | (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup. | |
3643 | * bout.c (get_value): Likewise. | |
3644 | * cofflink.c (_bfd_coff_reloc_link_order): Likewise. | |
3645 | * ecoff.c (ecoff_reloc_link_order): Likewise. | |
3646 | * elflink.h (elf_link_add_object_symbols): Likewise. | |
3647 | (elf_reloc_link_order): Likewise. | |
3648 | * linker.c (_bfd_generic_link_output_symbols): Likewise. | |
3649 | (_bfd_generic_reloc_link_order): Likewise. | |
3650 | (default_indirect_link_order): Likewise. | |
3651 | * reloc16.c (bfd_coff_reloc16_get_value): Likewise. | |
3652 | * sunos.c (sunos_add_one_symbol): Likewise. | |
3653 | * xcofflink.c (xcoff_link_add_symbols): Likewise. | |
3654 | (bfd_xcoff_link_count_reloc): Likewise. | |
3655 | (xcoff_reloc_link_order): Likewise. | |
3656 | ||
3657 | * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff | |
3658 | into -1 for intern->rss. | |
3659 | ||
ea2488ad ILT |
3660 | * configure: Rebuild with autoconf 2.8. |
3661 | ||
c189fdfb ILT |
3662 | Mon Mar 11 12:28:31 1996 Ian Lance Taylor <[email protected]> |
3663 | ||
3664 | * stab-syms.c (__define_stab_duplicate): Define. | |
3665 | (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a | |
3666 | switch. | |
3667 | * bfd-in.h (bfd_get_stab_name): Declare. | |
3668 | * bfd-in2.h: Rebuild. | |
3669 | * Makefile.in: Rebuild dependencies. | |
3670 | (BFD_LIBS): Add stab-syms.o. | |
3671 | (BFD_LIBS_CFILES): Add stab-syms.c. | |
3672 | (BFD32_BACKENDS): Remove stab-syms.o. | |
3673 | (BFD32_BACKENDS_CFILES): Remove stab-syms.c. | |
3674 | * configure.in: Don't list stab-syms.o in bfd_backends. | |
3675 | * configure: Rebuild. | |
3676 | * libaout.h (aout_stab_name): Don't declare. | |
3677 | * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name, | |
3678 | not aout_stab_name. | |
3679 | ||
3680 | Fri Mar 8 11:26:20 1996 Ian Lance Taylor <[email protected]> | |
3681 | ||
3682 | * elf.c (assign_file_positions_for_segments): Adjust file offset | |
3683 | for section alignment even if SEC_LOAD is not set. | |
3684 | ||
c5bde1ef ILT |
3685 | Tue Mar 5 12:02:23 1996 Ian Lance Taylor <[email protected]> |
3686 | ||
8f218e05 ILT |
3687 | * configure.in: Don't set SHLIB or SHLINK to an empty string, |
3688 | since they appear as targets in Makefile.in. | |
3689 | * configure: Rebuild. | |
3690 | ||
c5bde1ef ILT |
3691 | * sunos.c (sunos_scan_ext_relocs): If not making a shared library, |
3692 | don't fiddle with a symbol which is not defined anywhere. | |
3693 | ||
cb84f028 ILT |
3694 | Mon Mar 4 12:49:16 1996 Ian Lance Taylor <[email protected]> |
3695 | ||
4e59f523 ILT |
3696 | * xcofflink.c (xcoff_mark): Treat undefined imported symbols as |
3697 | though they are defined in a shared library. | |
3698 | (xcoff_build_ldsyms): Likewise. | |
3699 | ||
ea2504d5 ILT |
3700 | * coffgen.c (coff_find_nearest_line): Don't look at the line |
3701 | numbers for the section if section->lineno is NULL. | |
3702 | ||
cb84f028 ILT |
3703 | * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error |
3704 | message rather than calling BFD_ASSERT. | |
3705 | * elfcode.h (write_relocs): Check return value of | |
3706 | _bfd_elf_symbol_from_bfd_symbol. | |
3707 | ||
6e036cf7 MM |
3708 | Fri Mar 1 09:42:59 1996 Michael Meissner <[email protected]> |
3709 | ||
3710 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag | |
3711 | for .sbss section. | |
3712 | ||
d08435de JL |
3713 | Wed Feb 28 11:25:47 1996 Jeffrey A Law ([email protected]) |
3714 | ||
3715 | * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL | |
3716 | and R_HPPA_NLRSEL. | |
3717 | (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to | |
3718 | hppa_reloc_field_selector_type_alt. | |
3719 | (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling. | |
3720 | * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field | |
3721 | selectors. | |
3722 | (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL. | |
3723 | ||
09609415 ILT |
3724 | Wed Feb 28 11:00:24 1996 Ian Lance Taylor <[email protected]> |
3725 | ||
3726 | * elf.c (assign_file_positions_for_segments): Adjust the segment | |
3727 | memory size for the alignment of a SEC_ALLOC section, not just a | |
3728 | SEC_LOAD section. | |
3729 | ||
55626bf0 ILT |
3730 | Tue Feb 27 14:17:31 1996 Andreas Schwab <[email protected]> |
3731 | ||
3732 | * m68klinux.c: New file. | |
3733 | * hosts/m68klinux.h: New file. | |
3734 | * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets. | |
3735 | * configure.in (m68*-*-linux*): New native host. | |
3736 | (m68klinux_vec): New vector. | |
3737 | * configure: Rebuild. | |
3738 | * targets.c (m68klinux_vec): Declare. | |
3739 | * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from | |
3740 | bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c. | |
3741 | * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename | |
3742 | declaration from bfd_linux_size_dynamic_sections. | |
3743 | (bfd_m68klinux_size_dynamic_sections): Declare. | |
3744 | * bfd-in2.h: Rebuild. | |
3745 | * Makefile.in: Rebuild dependencies. | |
3746 | (BFD32_BACKENDS): Add m68klinux.o. | |
3747 | (BFD32_BACKENDS_CFILES): Add m68klinux.c. | |
3748 | ||
6c7b3090 JL |
3749 | Tue Feb 27 11:31:34 1996 Jeffrey A Law ([email protected]) |
3750 | ||
3751 | * libhppa.h (pa_arch): Add pa20. | |
3752 | (hppa_reloc_field_selector_type): Add R_HPPA_NSEL. | |
3753 | (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt. | |
3754 | (hppa_field_adjust): Handle e_nsel. | |
3755 | * som.c: Provide default definitions for many new relocs found only | |
3756 | in hpux10 include files. | |
3757 | (som_fixup_formats): Add several new relocs from hpux10. | |
3758 | (som_hppa_howto_table): Add hpux10 relocs. | |
3759 | (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs. | |
3760 | ||
14fd4616 SS |
3761 | Mon Feb 26 12:52:48 1996 Stan Shebs <[email protected]> |
3762 | ||
3763 | * mpw-make.sed: Edit out recent shared library support, and | |
3764 | rules to rebuild .h files using doc/chew. | |
3765 | ||
3d9f042c ILT |
3766 | Mon Feb 26 14:48:39 1996 David Mosberger-Tang <[email protected]> |
3767 | ||
3768 | * ecoff.c (ecoff_compute_section_file_positions): Adjust the file | |
3769 | size even of sections with no contents. | |
3770 | ||
bdec6228 ILT |
3771 | Mon Feb 26 14:01:13 1996 Ian Lance Taylor <[email protected]> |
3772 | ||
88358469 ILT |
3773 | * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names |
3774 | starting with '$' the way we skip names starting with '.'. When | |
3775 | updating x_endndx, don't be fooled by an index which has been | |
3776 | merged. | |
3777 | ||
bdec6228 ILT |
3778 | * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a |
3779 | struct/union/enum type with no elements. | |
3780 | ||
053ae1d7 ILT |
3781 | Sat Feb 24 11:38:58 1996 Ian Lance Taylor <[email protected]> |
3782 | ||
15f4406c ILT |
3783 | * bfd.c (bfd_errmsg): Handle a NULL return from strerror. |
3784 | ||
c8435133 ILT |
3785 | * archive.c (bfd_generic_archive_p): If the first file in the |
3786 | archive can not be recognized as an object, don't assume that this | |
3787 | is the wrong format. | |
3788 | ||
053ae1d7 ILT |
3789 | * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the |
3790 | format is not bfd_object. | |
3791 | (bfd_elf_get_dt_soname): Likewise. | |
3792 | ||
ea74d979 ILT |
3793 | Wed Feb 21 13:58:04 1996 Ian Lance Taylor <[email protected]> |
3794 | ||
3795 | * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES | |
3796 | reloc. | |
3797 | ||
871a3f3b C |
3798 | Tue Feb 20 16:22:44 1996 J.T. Conklin <[email protected]> |
3799 | ||
3800 | * bfd.c (tdata): Add netbsd_core_data. | |
3801 | * bfd-in2.h: Regenerated. | |
3802 | ||
3803 | Tue Feb 20 16:50:02 1996 Ian Lance Taylor <[email protected]> | |
3804 | ||
fe6fc35f ILT |
3805 | * sunos.c (SUNOS_CONSTRUCTOR): Define. |
3806 | (sunos_add_one_symbol): Don't let a symbol from a dynamic object | |
3807 | override a constructor symbol. Set SUNOS_CONSTRUCTOR when | |
3808 | appropriate. | |
3809 | ||
871a3f3b C |
3810 | * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags |
3811 | to get the symbol index, matching 14 Jul 95 change. | |
3812 | ||
d3785301 FF |
3813 | Tue Feb 20 08:26:27 1996 Fred Fish <[email protected]> |
3814 | ||
3815 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): | |
3816 | Remove duplicate definition of gp. | |
3817 | ||
60a49e7f ILT |
3818 | Mon Feb 19 12:37:41 1996 Ian Lance Taylor <[email protected]> |
3819 | ||
81bdcecf ILT |
3820 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't |
3821 | assume that we can set the GP value and then get the same value, | |
3822 | since it won't be true if the output file is neither ELF nor | |
3823 | ECOFF. | |
3824 | * coff-mips.c (mips_adjust_reloc_in): Don't bother to use | |
3825 | _bfd_get_gp_value here. | |
3826 | (mips_gprel_reloc): Don't assume we can set and get the GP value. | |
3827 | * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from | |
3828 | mips_elf_final_gp. | |
3829 | (mips_elf_lo16_reloc): Likewise. | |
3830 | (mips_elf_final_gp): Add pgp parameter. Set it to the GP value. | |
3831 | Don't require that the BFD be ELF. | |
3832 | (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp. | |
3833 | (mips_elf_gprel32_reloc): Likewise. | |
3834 | (mips_elf_relocate_section): Don't assume we can set and get the | |
3835 | GP value. | |
3836 | (mips_elf_finish_dynamic_symbol): Don't bother to use | |
3837 | _bfd_get_gp_value here. | |
3838 | ||
3839 | * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv. | |
3840 | Don't change epdr between malloc and free. Be careful not to free | |
3841 | NULL pointers. Zero out the first RPDR. | |
3842 | ||
7b61165a ILT |
3843 | * configure.host: On Linux, only pass -rpath option if $(libdir) |
3844 | is neither /lib nor /usr/lib. From Alan Modra | |
3845 | <[email protected]>. | |
3846 | ||
60a49e7f ILT |
3847 | * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to |
3848 | dt_name. | |
3849 | (elf_dt_name): Rename from elf_dt_needed_name. | |
3850 | * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not | |
3851 | elf_dt_needed_name. | |
3852 | (bfd_elf_get_dt_soname): New function. | |
3853 | * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not | |
3854 | elf_dt_needed_name. Save the SONAME back in elf_dt_name. | |
3855 | * bfd-in.h (bfd_elf_get_dt_soname): Declare. | |
3856 | * bfd-in2.h: Rebuild. | |
3857 | ||
b268e261 DE |
3858 | Mon Feb 19 02:50:23 1996 Doug Evans <[email protected]> |
3859 | ||
3860 | * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from | |
3861 | _bfd_sparc_elf_reloc_type_lookup. | |
3862 | (bfd_elf32_bfd_reloc_type_lookup): Update. | |
3863 | * elf64-sparc.c (SPARC64_OLD_RELOCS): Define. | |
3864 | (sparc64_elf_howto_table): Define. | |
3865 | (sparc_reloc_map): Define. | |
3866 | (sparc64_elf_reloc_type_lookup): New function. | |
3867 | (sparc_elf_wdisp16_reloc): New function. | |
3868 | (elf_info_to_howto): Use sparc64_elf_howto_table. | |
3869 | (sparc64_elf_relocate_section): Likewise. | |
3870 | (bfd_elf64_bfd_reloc_type_lookup): Update. | |
3871 | ||
9e2ef098 ILT |
3872 | Sun Feb 18 15:02:25 1996 Ian Lance Taylor <[email protected]> |
3873 | ||
3874 | * configure.host: Check for 'do not mix' from native linker before | |
3875 | trying to use -rpath. | |
3876 | ||
4c70373f ILT |
3877 | Fri Feb 16 12:46:18 1996 Ian Lance Taylor <[email protected]> |
3878 | ||
cba3f8a9 ILT |
3879 | * bfd.c (_bfd_get_gp_value): New function. |
3880 | (_bfd_set_gp_value): New function. | |
3881 | * libbfd-in.h (_bfd_get_gp_value): Declare. | |
3882 | (_bfd_set_gp_value): Declare. | |
3883 | * libbfd.h: Rebuild. | |
3884 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use | |
3885 | _bfd_get_gp_value and _bfd_set_gp_value rather than referring | |
3886 | directly to the fields in the tdata information. | |
3887 | (alpha_relocate_section): Likewise. | |
3888 | * coff-mips.c (mips_adjust_reloc_in): Likewise. | |
3889 | (mips_gprel_reloc): Likewise. | |
3890 | (mips_relocate_section): Likewise. | |
3891 | * elf32-mips.c (mips_elf_hi16_reloc): Likewise. | |
3892 | (mips_elf_lo16_reloc): Likewise. | |
3893 | (mips_elf_final_gp): Likewise. | |
3894 | (mips_elf_gprel16_reloc): Likewise. | |
3895 | (mips_elf_gprel32_reloc): Likewise. | |
3896 | (mips_elf_relocate_section): Likewise. | |
3897 | (mips_elf_finish_dynamic_symbol): Likewise. | |
3898 | ||
4c70373f ILT |
3899 | * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx. |
3900 | ||
a0a2dd54 ILT |
3901 | Thu Feb 15 11:29:13 1996 Ian Lance Taylor <[email protected]> |
3902 | ||
f54c7482 | 3903 | * configure.in: Call AC_PROG_CC before configure.host. |
65eed095 ILT |
3904 | * configure: Rebuild. |
3905 | * configure.host: Don't set information which autoconf should | |
3906 | figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB. | |
65eed095 | 3907 | |
14293419 ILT |
3908 | * configure.host: Remove go32 and win32 host information, since it |
3909 | should no longer be needed. | |
3910 | ||
edf3fe48 ILT |
3911 | * elf.c (map_sections_to_segments): If we have a .dynamic section, |
3912 | then start a new segment rather than put a writable section in a | |
3913 | readonly segment. | |
3914 | ||
b5e4f369 ILT |
3915 | * configure.host: Set RPATH_ENVVAR. |
3916 | ||
f2e33e27 ILT |
3917 | * Makefile.in: Rebuild dependencies. |
3918 | ||
a0a2dd54 ILT |
3919 | * elflink.c (_bfd_elf_create_linker_section): Remove unused |
3920 | zero_section variable. | |
3921 | ||
52c6bc4d ILT |
3922 | Thu Feb 15 10:39:17 1996 H.J. Lu <[email protected]> |
3923 | ||
3924 | * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h. | |
3925 | ($(srcdir)/libbfd.h): Rename from libbfd.h. | |
3926 | ($(srcdir)/libcoff.h): Rename from libcoff.h. | |
3927 | ||
c9e5279f ILT |
3928 | Wed Feb 14 16:29:07 1996 Martin Anantharaman <[email protected]> |
3929 | ||
cb50baea ILT |
3930 | * ieee.c (ieee_write_expression): Only use an R variable for a |
3931 | local symbol. Don't output a zero offset. Handle a zero address. | |
3932 | (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST. | |
3933 | (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and | |
3934 | PCREL_OFFSET. | |
3935 | (parse_expression): Don't try to handle multiple occurrences of a | |
3936 | P variable. Handle I variables differently from X variables. Fix | |
3937 | the order of minus expressions. | |
3938 | (ieee_slurp_external_symbols): Generate an I variable for an NN | |
3939 | record. Fix handling of ATI and ATX records. | |
3940 | (ieee_slurp_sections): Only set minimal section attributes. | |
3941 | Adjust them later, based on the section contents. | |
3942 | (ieee_object_p): Read in the file until just after the ME record. | |
3943 | Call ieee_slurp_section_data to set the section flags. | |
3944 | (do_one): Add iterations parameter. Only repeat the first load | |
3945 | item. Set the section and file reloc flags. | |
3946 | (ieee_slurp_section_data): Set section flags. Pass iterations to | |
3947 | do_one. | |
3948 | (ieee_canonicalize_reloc): Handle I variables. | |
3949 | (do_with_relocs): Only emit relocation size when necessary. | |
3950 | Increase MAXRUN to 127. Change ov to be assigned, and take | |
3951 | src_mask and pcrel_offset into account. | |
3952 | (ieee_write_data_part): Skip sections that are not loaded. | |
3953 | (ieee_write_external_part): Don't output optional last entry of WX | |
3954 | records. | |
3955 | (ieee_write_me_part): Make setting of me_record neater. | |
3956 | (ieee_generic_stat_arch_elt): Get the size of an archive element. | |
3957 | ||
c9e5279f ILT |
3958 | * syms.c (stt): Add entries for zerovars, vars, and code. |
3959 | ||
3960 | * elfcode.h (validate_reloc): New static function. | |
3961 | (write_relocs): Call validate_reloc for non ELF relocs. | |
3962 | ||
3963 | * elfxx-target.h (elf_symbol_leading_char): Define if not defined. | |
3964 | (TARGET_BIG_SYM): Use elf_symbol_leading_char. | |
3965 | (TARGET_LITTLE_SYM): Likewise. | |
3966 | ||
3967 | * config.bfd (m68*-*-psos*): New target. | |
3968 | ||
d9d65be6 ILT |
3969 | Tue Feb 13 15:56:22 1996 Bryan Ford <[email protected]> |
3970 | ||
3971 | * i386msdos.c: Remove some #if 0 code. | |
3972 | (msdos_write_object_contents): Don't include empty sections in the | |
3973 | size computation, regardless of their address. | |
3974 | ||
3975 | Tue Feb 13 15:36:37 1996 Michael Meissner <[email protected]> | |
3976 | ||
3977 | * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj | |
3978 | is NULL, ie, the -r switch is used. | |
3979 | ||
db5970c7 ILT |
3980 | Tue Feb 13 14:35:15 1996 Ian Lance Taylor <[email protected]> |
3981 | ||
e9f03cd4 ILT |
3982 | * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define. |
3983 | (BFD_RELOC_MIPS_GOT_LO16): Define. | |
b7384d22 | 3984 | (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define. |
e9f03cd4 ILT |
3985 | * bfd-in2.h, libbfd.h: Rebuild. |
3986 | * elf32-mips.c (mips_reloc_map): Map new relocs. | |
3987 | ||
fe7c066a ILT |
3988 | * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. |
3989 | ||
1ab628e4 ILT |
3990 | * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not |
3991 | $(SHLINK). | |
3992 | ||
db5970c7 ILT |
3993 | * ieee.c (get_symbol): Set the section to bfd_abs_section. |
3994 | (do_with_relocs): If EXEC_P is set and there are no relocs, use a | |
3995 | simple number for the section address, rather than an expression. | |
3996 | Limit the number of bytes between relocs to MAXRUN. | |
3997 | (ieee_write_me_part): Set me_record to the file offset after the | |
3998 | start address. | |
3999 | (ieee_write_processor): New static function. | |
4000 | (ieee_write_object_contents): Use ieee_write_processor. | |
4001 | ||
318b7c18 ILT |
4002 | Fri Feb 9 10:53:00 1996 Ian Lance Taylor <[email protected]> |
4003 | ||
db5970c7 ILT |
4004 | * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS. |
4005 | ||
4006 | * coff-aux.c: Change include of aux.h to aux-coff.h. | |
318b7c18 | 4007 | |
56b64690 ILT |
4008 | Thu Feb 8 14:01:03 1996 Andreas Schwab <[email protected]> |
4009 | ||
4010 | * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE | |
4011 | relocation put the addend both in the reloc entry and the data. | |
4012 | (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in | |
4013 | GOT offset value. | |
4014 | ||
4015 | * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve | |
4016 | a R_68K_PCxx reloc against a defined global symbol directly. | |
4017 | (elf_m68k_check_relocs): Don't count such a reloc. | |
4018 | ||
4019 | * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with | |
4020 | a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local | |
4021 | symbol for now, otherwise always record the symbol as dynamic. | |
4022 | (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc | |
4023 | is not referenced by a dynamic object, and we are not making a | |
4024 | shared object, then don't make a PLT entry. If we do make a PLT | |
4025 | entry, make sure the symbol has been recorded as dynamic. | |
4026 | ||
5d649ca8 ILT |
4027 | Wed Feb 7 13:56:06 1996 Ian Lance Taylor <[email protected]> |
4028 | ||
4029 | * configure.host: When making a shared library, set HLDFLAGS to | |
4030 | pass an appropriate -rpath option. Use the make variable SONAME | |
4031 | as the shared library soname, rather than computing it here. On | |
4032 | SunOS, build stamp-tshlink in place of $(SHLINK). | |
4033 | * Makefile.in (SONAME): New variable. | |
4034 | ($(SHLINK)): Make a link to the transformed name, as well. | |
4035 | (stamp-tshlink): New target. | |
4036 | (install): Skip stamp-tshlink during install. | |
4037 | ||
8cc98cd5 MM |
4038 | Wed Feb 7 13:37:39 1996 Michael Meissner <[email protected]> |
4039 | ||
56b64690 ILT |
4040 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the |
4041 | linker sections have been set up yet. | |
4042 | ||
8cc98cd5 MM |
4043 | * elf.c (make_mapping): Add an additional argument to suppress |
4044 | making the first section include the program headers. | |
4045 | (map_sections_to_segments): If the user used -Ttext such that the | |
4046 | program headers are on a different page, do not set the flags | |
4047 | saying that this section includes the program headers. | |
4048 | ||
fe16107d C |
4049 | Tue Feb 6 14:04:49 1996 J.T. Conklin <[email protected]> |
4050 | ||
4051 | * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c. | |
4052 | don't define TRAD_HEADER. | |
4053 | * configure: Rebuild. | |
4054 | ||
4055 | * netbsd-core.c: New file, support for NetBSD core files. | |
4056 | * hosts/*nbsd.h: Removed. | |
4057 | ||
f1783016 DE |
4058 | Tue Feb 6 11:47:49 1996 Doug Evans <[email protected]> |
4059 | ||
4060 | * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types. | |
4061 | (BFD_RELOC_SPARC_LO7 reloc type): Deleted. | |
4062 | * libbfd.h, bfd-in2.h: Regenerated. | |
4063 | * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from | |
4064 | bfd_elf32_bfd_reloc_type_lookup. | |
4065 | (reloc_type{,_names}): Deleted. | |
4066 | (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. | |
4067 | Add sparc64 relocs. | |
4068 | (sparc_reloc_map): Add sparc64 relocs. | |
4069 | (sparc_elf_notsupported_reloc): New static function. | |
4070 | (sparc_elf_wdisp16_reloc): New static function. | |
4071 | (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}. | |
4072 | (elf32_sparc_relocate_section): Likewise. | |
4073 | (bfd_elf32_bfd_reloc_type_lookup): Define. | |
4074 | * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted. | |
4075 | (reloc_type{,_names}): Deleted. | |
4076 | (elf_sparc_howto_table): Deleted. | |
4077 | (sparc_reloc_map): Deleted. | |
4078 | (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table. | |
4079 | (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define. | |
4080 | ||
48fd00b6 ILT |
4081 | Tue Feb 6 12:12:22 1996 Ian Lance Taylor <[email protected]> |
4082 | ||
2300e217 ILT |
4083 | * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a |
4084 | *-*-hpux* host. | |
4085 | ||
48fd00b6 ILT |
4086 | * Makefile.in (program_transform_name): New variable. |
4087 | (install): Transform library name before installing it. | |
4088 | ||
8adca582 ILT |
4089 | Mon Feb 5 10:38:27 1996 Ian Lance Taylor <[email protected]> |
4090 | ||
cbe75cb6 ILT |
4091 | * archures.c (bfd_mach_i960_hx): Define. |
4092 | * bfd-in2.h: Rebuild. | |
4093 | * cpu-i960.c (scan_960_mach): Accept machine "hx". | |
4094 | (MATRIX): Expand entries for HX. | |
4095 | (arch_info_struct): Add i960:hx entry. | |
4096 | * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx. | |
4097 | * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX. | |
4098 | (coff_set_flags): Handle bfd_mach_i960_hx. | |
4099 | ||
44f795f7 ILT |
4100 | Support for building as a shared library, based on patches from |
4101 | Alan Modra <[email protected]>: | |
4102 | * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib. | |
4103 | New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC, | |
4104 | SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK. | |
4105 | * configure: Rebuild. | |
4106 | * configure.host: If --enable-shared, adjust shared library stuff | |
4107 | based on the host. If the host is SunOS, and the linker supports | |
4108 | -rpath, set HLDFLAGS to use it. | |
4109 | * Makefile.in (ALLLIBS): New variable. | |
4110 | (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables. | |
4111 | (COMMON_SHLIB, SHLINK): New variables. | |
4112 | (.c.o): If PICFLAG is set, compile twice, once PIC, once normal. | |
4113 | (STAGESTUFF): Remove variable. | |
4114 | (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than | |
4115 | $(TARGETLIB). | |
4116 | (stamp-ofiles): New target, like old ofiles target, but build | |
4117 | using a temporary file and move-if-change, and touch stamp-ofiles | |
4118 | when done. | |
4119 | (ofiles): Just depend upon stamp-ofiles. | |
4120 | (stamp-piclist, piclist): New targets. | |
4121 | ($(SHLIB), $(SHLINK)): New targets. | |
4122 | (targets.o, archures.o): Build twice if PICFLAG is set. | |
4123 | (do_mostlyclean): Remove pic/*.o. | |
4124 | (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and | |
4125 | stamp-piclist. | |
4126 | (do_distclean): Remove pic and stamp-picdir. | |
4127 | (install): Install shared libraries. | |
4128 | ($(OFILES)): Depend upon stamp-picdir. | |
4129 | (stamp-picdir): New target. | |
4130 | ||
cb62d2bc ILT |
4131 | * libcoff-in.h: Add comment reminding people that libcoff.h is a |
4132 | generated file. | |
4133 | * libcoff.h: Rebuild. | |
4134 | ||
8adca582 ILT |
4135 | * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the |
4136 | flavour of a section with no owner. | |
4137 | ||
4138 | * elf32-mips.c (mips_elf_create_dynamic_sections): Clear | |
4139 | ELF_LINK_NON_ELF flag. | |
4140 | (mips_elf_create_got_section): Likewise. | |
4141 | ||
4142 | * elf.c: Revert last change, since it breaks dynamic linking. | |
4143 | * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg | |
4144 | field. | |
4145 | * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define. | |
4146 | * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define. | |
4147 | (elfNN_bed): Don't initialize want_hdr_in_seg field. | |
4148 | ||
4149 | Sun Feb 4 20:45:13 1996 Michael Meissner <[email protected]> | |
4150 | ||
4151 | * elf.c (assign_file_positions_for_segments): If the backend does | |
4152 | not want the elf header or the program headers in the address | |
4153 | space, do not include them in the calculations. | |
4154 | ||
4155 | * elf32-ppc.c (ppc_elf_additional_program_headers): New hook | |
4156 | function to determine if we need additional program headers. | |
4157 | (ppc_elf_modify_segment_map): Define as a NOP function for now. | |
4158 | (ppc_elf_create_linker_section): .sdata2 is a read-only section. | |
4159 | ||
0f09ddd4 ILT |
4160 | Sat Feb 3 23:00:03 1996 Ian Lance Taylor <[email protected]> |
4161 | ||
4162 | * coffcode.h: Move today's libcoff.h change into coffcode.h. | |
4163 | ||
b48f10ba FF |
4164 | Sat Feb 3 15:43:44 1996 Fred Fish <[email protected]> |
4165 | ||
0f09ddd4 ILT |
4166 | * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args |
4167 | back into one line. Some compilers (sunos 4.1.3 for example) | |
4168 | won't accept args split across more than one line. | |
b48f10ba | 4169 | |
50761d3b SC |
4170 | Fri Feb 2 11:42:15 1996 Steve Chamberlain <[email protected]> |
4171 | ||
4172 | * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32. | |
4173 | * configure: Regenerate. | |
4174 | ||
9dce8260 JL |
4175 | Fri Feb 2 12:12:16 1996 Jeffrey A Law ([email protected]) |
4176 | ||
4177 | * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't | |
4178 | try to do arithmetic on a void *, cast it to a unsigned char * first. | |
4179 | ||
6c55897c ILT |
4180 | Thu Feb 1 16:04:06 1996 Ian Lance Taylor <[email protected]> |
4181 | ||
869b7d80 ILT |
4182 | * elf-bfd.h (ELF_LINK_NON_ELF): Define. |
4183 | * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to | |
4184 | ELF_LINK_NON_ELF. | |
4185 | * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF | |
4186 | flag for a newly defined symbol. | |
4187 | (NAME(bfd_elf,record_link_assignment)): Likewise. | |
4188 | (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to | |
4189 | set the DEF or REF_REGULAR flags correctly. | |
4190 | ||
6f6956c6 ILT |
4191 | * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir. |
4192 | (libbfd.h, libcoff.h): Corresponding change. | |
4193 | ||
6c55897c ILT |
4194 | * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with |
4195 | a PLT32 reloc as dynamic. | |
4196 | (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc | |
4197 | is not referenced by a dynamic object, and we are not making a | |
4198 | shared object, then don't make a PLT entry. If we do make a PLT | |
4199 | entry, make sure the symbol has been recorded as dynamic. | |
4200 | ||
b06136f2 SC |
4201 | Wed Jan 31 17:23:32 1996 Steve Chamberlain <[email protected]> |
4202 | ||
4203 | * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL. | |
4204 | * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32. | |
4205 | (powerpcle-*-cygwin32): New. | |
4206 | * peicode.h (add_data_entry): Get address from vma. | |
4207 | ||
5c867ecd MM |
4208 | Wed Jan 31 16:23:57 1996 Michael Meissner <[email protected]> |
4209 | ||
4210 | * elflink.c (_bfd_elf_create_linker_section): If the symbol | |
4211 | attached to the section has already been created as an undefined | |
4212 | symbol, treat it as if it hasn't been created yet. | |
4213 | ||
28c16b55 ILT |
4214 | Wed Jan 31 16:16:53 1996 Ian Lance Taylor <[email protected]> |
4215 | ||
4216 | * elflink.h (elf_bfd_final_link): Don't output initial dummy | |
4217 | symbol or section symbols if stripping all symbols and this is not | |
4218 | a relocateable link. Don't output the symbol string table if | |
4219 | there are no symbols. | |
4220 | (elf_link_flush_output_syms): Don't do anything if there are no | |
4221 | symbols to flush. | |
4222 | ||
d19df9b5 ILT |
4223 | Wed Jan 31 12:55:49 1996 Richard Henderson <[email protected]> |
4224 | ||
4225 | * coff-aux.c: New file. | |
4226 | * hosts/m68kaux.h: New file. | |
4227 | * config.bfd (m68*-apple-aux*): New target. | |
4228 | * configure.in (m68*-apple-aux*): New native host. | |
4229 | (m68kaux_coff_vec): New vector. | |
4230 | * configure: Rebuild. | |
4231 | * targets.c (m68kaux_coff_vec): Declare. | |
4232 | * coffcode.h (bfd_coff_backend_data): Add field | |
4233 | _bfd_coff_link_add_one_symbol. | |
4234 | (bfd_coff_link_add_one_symbol): Define. | |
4235 | (compare_arelent_ptr): New static function if TARG_AUX. | |
4236 | (coff_write_relocs): If TARG_AUX, sort the relocs. | |
4237 | (coff_write_object_contents): Set A/UX aouthdr magic number. | |
4238 | (coff_link_add_one_symbol): Define if not defined. | |
4239 | (bfd_coff_std_swap_table): Initialize new field. | |
4240 | * libcoff.h: Rebuild. | |
4241 | * cofflink.c (coff_link_add_symbols): Call | |
4242 | bfd_coff_link_add_one_symbol rather than | |
4243 | _bfd_generic_link_add_one_symbol. | |
4244 | * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined. | |
4245 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
4246 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
4247 | * Makefile.in: Rebuild dependencies. | |
4248 | (BFD32_BACKENDS): Add coff-aux.o. | |
4249 | (BFD32_BACKENDS_CFILES): Add coff-aux.c. | |
4250 | ||
a796aafd ILT |
4251 | Wed Jan 31 11:37:46 1996 Andreas Schwab <[email protected]> |
4252 | ||
4253 | * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT* | |
4254 | relocation; ignore addend with R_68K_{GOT,PLT}*O relocation. | |
4255 | ||
a8763553 ILT |
4256 | Tue Jan 30 12:09:04 1996 Ian Lance Taylor <[email protected]> |
4257 | ||
66761e59 ILT |
4258 | * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h, |
4259 | $(srcdir)/libbfd.h and $(srcdir)/libcoff.h. | |
4260 | (maintainer-clean): Warn about deleting special files. | |
4261 | (bfd-in2.h, libbfd.h, libcoff.h): New targets. | |
4262 | ||
cf5138e3 ILT |
4263 | * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and |
4264 | warning symbols correctly. | |
4265 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
4266 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
4267 | * elf32-mips.c (mips_elf_relocate_section): Likewise. | |
4268 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
4269 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
4270 | * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. | |
4271 | ||
a8763553 ILT |
4272 | * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid |
4273 | warnings. | |
4274 | ||
bdd2e7f1 KK |
4275 | Mon Jan 29 14:27:24 1996 Kim Knuttila <[email protected]> |
4276 | ||
4277 | * libcoff-in.h: aligned newly exported names with bfd naming | |
4278 | conventions. Removed an erroneous define of POWERPC_LE_PE. | |
4279 | * libcoff.h: Rebuild. | |
4280 | * cofflink.c, coff-ppc.c: the above function name changes | |
4281 | ||
d2bb6c79 ILT |
4282 | Mon Jan 29 13:06:28 1996 Ian Lance Taylor <[email protected]> |
4283 | ||
eb5bc1f3 ILT |
4284 | From Basim Kadhim <[email protected]>: |
4285 | * ecoff.c (struct extsym_info): Define. | |
4286 | (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info | |
4287 | to ecoff_link_write_external. | |
4288 | (ecoff_link_write_external): Accept a struct extsym_info pointer. | |
4289 | Strip symbols when appropriate. | |
4290 | ||
052b35d2 ILT |
4291 | Based on patches from Ronald F. Guilmette <[email protected]>: |
4292 | * syms.c (BSF_OBJECT): Define. | |
4293 | (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT. | |
4294 | * bfd-in2.h: Rebuild. | |
4295 | * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an | |
4296 | STT_OBJECT symbol. | |
4297 | * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT | |
4298 | is set. | |
4299 | ||
53787b23 ILT |
4300 | * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when |
4301 | copying relocs into a shared object, treat a defined global symbol | |
4302 | as a local symbol. | |
4303 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
4304 | * elf32-mips.c (mips_elf_relocate_section): Likewise. | |
4305 | * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. | |
4306 | ||
d2bb6c79 ILT |
4307 | * elflink.h (elf_link_add_object_symbols): Only set weakdef to a |
4308 | real defined symbol, not to a weak defined symbol. | |
4309 | ||
13d1a4dd KK |
4310 | Mon Jan 29 11:34:36 1996 Kim Knuttila <[email protected]> |
4311 | ||
4312 | * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types | |
4313 | and made a few static functions externs. | |
4314 | ||
4315 | * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the | |
4316 | POWERPC_LE_PE hack in cofflink. | |
4317 | ||
4318 | * libcoff-in.h: promoted the following from cofflink.c to allow | |
4319 | _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE, | |
4320 | coff_debug_merge_element, struct coff_debug_merge_type, | |
4321 | coff_debug_merge_hash_entry, coff_debug_merge_hash_table, | |
4322 | coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free, | |
4323 | coff_debug_merge_hash_lookup, coff_link_section_info, | |
4324 | coff_final_link_info, coff_debug_merge_hash_newfunc, | |
4325 | coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order. | |
4326 | ||
4327 | * libcoff.h: re-gen'd | |
4328 | ||
86aac8ea ILT |
4329 | Fri Jan 26 18:33:35 1996 Ian Lance Taylor <[email protected]> |
4330 | ||
4331 | * syms.c: Include "bfdlink.h". | |
4332 | (struct stab_find_info): Define. | |
4333 | (_bfd_stab_section_find_nearest_line): New function. | |
4334 | * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare. | |
4335 | * libbfd.h: Rebuild. | |
4336 | * elf-bfd.h (struct elf_obj_tdata): Add line_info field. | |
4337 | * elf.c (_bfd_elf_find_nearest_line): Try calling | |
4338 | _bfd_stab_section_find_nearest_line before searching the ELF | |
4339 | symbol table. Find the closest STT_FUNC symbol, not the last one. | |
4340 | * libcoff-in.h (coff_data_type): Add line_info field. | |
bdd2e7f1 | 4341 | * libcoff.h: Rebuild. |
86aac8ea ILT |
4342 | * coffgen.c (coff_find_nearest_line): Try calling |
4343 | _bfd_stab_section_find_nearest_line before searching the COFF | |
4344 | symbol table. | |
4345 | * Makefile.in: Rebuild dependencies. | |
4346 | ||
4347 | Fri Jan 26 16:11:19 1996 Michael Meissner <[email protected]> | |
4348 | ||
4349 | * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size | |
4350 | 4 bytes, so we get the correct value when updating the register | |
4351 | field in little endian mode. | |
4352 | ||
43d36aad ILT |
4353 | Thu Jan 25 12:14:16 1996 Ian Lance Taylor <[email protected]> |
4354 | ||
f0a97077 ILT |
4355 | * libcoff-in.h (struct xcoff_tdata): Remove toc_section and |
4356 | entry_section fields. Add sntoc and snentry fields. | |
4357 | * libcoff.h: Rebuild. | |
4358 | * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry, | |
4359 | not toc_section and entry_section (the COFF file does not have any | |
4360 | sections at this point). | |
4361 | (coff_write_object_contents): Set o_snentry and o_sntoc from | |
4362 | snentry and sntoc rather than entry_section and toc_section. | |
4363 | * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and | |
4364 | snentry, not toc_section and entry_section. | |
4365 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set | |
4366 | entry_section from hentry. | |
4367 | (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set, | |
ea2504d5 | 4368 | set snenty. |
f0a97077 ILT |
4369 | (xcoff_link_input_bfd): Set sntoc, not toc_section. |
4370 | (xcoff_write_global_symbol): Get toc_section from sntoc, rather | |
4371 | than using toc_section directly. | |
4372 | ||
9b4598d0 ILT |
4373 | * archures.c: Add missing `.' in enum bfd_architecture. |
4374 | * bfd-in2.h: Rebuild. | |
4375 | ||
43d36aad ILT |
4376 | * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From |
4377 | Robert Lipe <[email protected]>. | |
4378 | ||
eb82bc60 MM |
4379 | Thu Jan 25 12:08:51 1996 Michael Meissner <[email protected]> |
4380 | ||
4381 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2} | |
4382 | to sections we allocate. Use bfd_zalloc to allocate initialial | |
4383 | sections, not bfd_alloc. | |
4384 | (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from | |
4385 | SDA{,2}I16 relocations. | |
4386 | (ppc_elf_add_symbol_hook): Use the value of -G nn to determine | |
4387 | whether to put something in .sbss or not. | |
4388 | (ppc_elf_relocate_section): Add support for more relocations. Add | |
c1e65e24 MM |
4389 | in sec->output_offset where appropriate. Make error messages |
4390 | include the symbol name. | |
eb82bc60 MM |
4391 | |
4392 | * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before | |
4393 | trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_ | |
4394 | doesn't get redefined messages if -shared. | |
4395 | ||
4396 | * elflink.h (elf_create_pointer_linker_section) Only bump RELA | |
4397 | section if the rel_section field has been set up. | |
4398 | ||
9d621c7d MM |
4399 | Wed Jan 24 20:40:26 1996 Michael Meissner <[email protected]> |
4400 | ||
4401 | * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi | |
4402 | relocations. | |
4403 | ||
75c9ddc9 DE |
4404 | Wed Jan 24 10:38:34 1996 Doug Evans <[email protected]> |
4405 | ||
4406 | * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking | |
4407 | of flags, only flags used are controlled by mach number. Bump up | |
4408 | output file mach number to highest of input file mach numbers. | |
4409 | (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1. | |
4410 | (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa. | |
4411 | ||
72c513bc DE |
4412 | * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out |
4413 | bfd_elf64_sparc_vec support. | |
4414 | ||
3cbe19d2 MM |
4415 | Tue Jan 23 14:33:05 1996 Michael Meissner <[email protected]> |
4416 | ||
4417 | * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if | |
4418 | the embedded bit is set on some objects and not on others. Just | |
4419 | or it together. | |
d8fd85ad MM |
4420 | (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA} |
4421 | relocations. | |
3cbe19d2 | 4422 | |
5eb83ede ILT |
4423 | Tue Jan 23 14:22:45 1996 Ian Lance Taylor <[email protected]> |
4424 | ||
4a3d3b42 ILT |
4425 | * coffcode.h (coff_new_section_hook): Don't try to align the |
4426 | .stabstr section. | |
4427 | ||
5eb83ede ILT |
4428 | * coffcode.h (coff_set_section_contents): Fix the handling of the |
4429 | .lib section to work even if the entire section contents are | |
4430 | written at once. From Gvran Uddeborg <[email protected]> and | |
4431 | Robert Lipe <[email protected]>. | |
4432 | ||
05f927dd MM |
4433 | Mon Jan 22 18:45:51 1996 Michael Meissner <[email protected]> |
4434 | ||
4435 | * elflink.h (elf_finish_pointer_linker_section): Don't allocate | |
4436 | memory here for contents. | |
4437 | ||
4438 | * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and | |
4439 | _SDA2_BASE_ by 32768. | |
4440 | (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't | |
4441 | started using. Allocate contents for .sdata and .sdata2 sections | |
4442 | also. | |
4443 | (ppc_elf_check_relocs): Use bfd_get_section_name in debug message, | |
4444 | rather than _name. | |
4445 | (ppc_elf_finish_dynamic_symbol): Remove code that attempted to | |
4446 | size _SDA{,2}_BASE_. | |
4447 | (ppc_elf_relocate_section): Change how sdata{,2} relocations are | |
4448 | done. | |
4449 | ||
5bc513b4 DE |
4450 | Mon Jan 22 08:52:04 1996 Doug Evans <[email protected]> |
4451 | ||
5a5bac64 DE |
4452 | * elflink.h (elf_finish_pointer_linker_section): Fix typo. |
4453 | ||
5bc513b4 | 4454 | * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64. |
5bc513b4 | 4455 | (bfd_mach_sparc_{v8plus,v8plusa}): Define. |
5bc513b4 | 4456 | (bfd_mach_sparc_v9a): Define. |
049f3d4c | 4457 | (bfd_mach_sparc_v9_p): Define. |
5bc513b4 DE |
4458 | * bfd-in2.h: Regenerated. |
4459 | * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to | |
4460 | bfd_mach_sparc_v9. | |
d3366d23 | 4461 | * elf64-sparc.c (sparc64_elf_object_p): Likewise. |
5bc513b4 DE |
4462 | * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec |
4463 | to bfd_elf32_sparc_vec. | |
4464 | * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info. | |
5bc513b4 | 4465 | Add v8plus{,a} support. |
5bc513b4 | 4466 | Add v9a support. |
768b8ade | 4467 | (sparc_compatible): New function. |
5bc513b4 | 4468 | * elf32-sparc.h: #include "elf/sparc.h". |
75c9ddc9 | 4469 | (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p, |
5bc513b4 | 4470 | elf32_sparc_final_write_processing): New functions. |
75c9ddc9 | 4471 | (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p, |
5bc513b4 | 4472 | elf_backend_final_write_processing): Define. |
5bc513b4 | 4473 | |
3b3753b8 MM |
4474 | Mon Jan 22 11:21:51 1996 Michael Meissner <[email protected]> |
4475 | ||
4476 | * elf-bfd.h (struct elf_link_hash_entry): Add | |
4477 | linker_section_pointer field. | |
4478 | (enum elf_linker_section_enum): Enumeration for new way of | |
4479 | creating linker dynamic sections and symbols. | |
4480 | (elf_linker_section{,_pointers}): New structures for creating | |
4481 | dynamic sections and symbols. | |
4482 | (elf_obj_tdata): Add linker_section_pointers and linker_section | |
4483 | fields. | |
4484 | (elf_local_ptr_offsets,elf_linker_section): New accessor macros. | |
4485 | (_bfd_elf_create_linker_section): New declarations. | |
4486 | (_bfd_elf_find_pointer_linker_section): Ditto. | |
4487 | (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto. | |
4488 | (_bfd_elf_make_linker_section_rela): Ditto. | |
4489 | ||
4490 | * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields. | |
4491 | ||
4492 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete. | |
4493 | (ppc_elf_create_linker_section): New function to create the | |
4494 | sections .got, .sdata, and .sdata2. | |
4495 | (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if | |
4496 | needed. | |
4497 | (ppc_elf_check_relocs): Support more of the eabi relocations. | |
4498 | (ppc_elf_relocate_section): Ditto. | |
4499 | (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768 | |
4500 | if the .sdata{,2} + .sbss{,2} section size is > 32k. | |
4501 | ||
4502 | * elflink.h (elf_create_pointer_linker_section): New function to | |
4503 | create initialized pointers in dynamic linker sections. | |
4504 | (elf_finish_pointer_linker_section): Actually intialize the | |
4505 | pointers created above. | |
4506 | ||
4507 | * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New | |
4508 | macros to provide both 32 and 64 bit versions of | |
4509 | elf_create_pointer_linker_section. | |
4510 | (bfd_elf{32,64}_finish_pointer_linker_section): New macros to | |
4511 | provide both 32 and 64 bit versions of | |
4512 | elf_finish_pointer_linker_section. | |
4513 | ||
4514 | * elflink.c (_bfd_elf_create_linker_section): New function to | |
4515 | create a linker section. | |
4516 | (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a | |
4517 | given address in the linker pointer offsets created for a given | |
4518 | symbol. | |
4519 | (_bfd_elf_make_linker_section_rela): Make a RELA section | |
4520 | corresponding to the generated linker section. | |
4521 | ||
6b3eb07e DE |
4522 | Sat Jan 20 08:36:10 1996 Doug Evans <[email protected]> |
4523 | ||
4524 | * elf32-sparc.c (ELF_MACHINE_ALT1): Define. | |
4525 | ||
e7894f6b KK |
4526 | Thu Jan 18 18:25:34 1996 Kim Knuttila <[email protected]> |
4527 | ||
4528 | * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs. | |
4529 | (coff_ppc_relocate_section): Handle special values for gcc built dlls. | |
4530 | (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries. | |
4531 | Also begin the toc at 4 as an eye catcher ('31313131' marks the first | |
4532 | toc entry in an objdump) for now. | |
4533 | (ppc_do_last, ppc_get_last): New function - needed to save processing | |
4534 | the toc owner to the end. | |
4535 | (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the | |
4536 | toc owner last. | |
4537 | ||
4538 | * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the | |
4539 | toc owner from being done till last. Must define POWERPC_LE_PC | |
4540 | to enable it. | |
4541 | ||
4542 | * coffcode.h (coff_set_alignment_hook): alignment setting for .stab | |
4543 | ||
4544 | * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str | |
4545 | to INFO. | |
4546 | (coff_swap_aouthdr_out): Removed a non-working hack for computing the | |
4547 | SizeOfImage for PowerPC. Ignore the size of the .junk section. | |
4548 | ||
80b99ca0 ILT |
4549 | Thu Jan 18 17:42:12 1996 Ian Lance Taylor <[email protected]> |
4550 | ||
4551 | * elfcore.h: Include <signal.h> before <sys/procfs.h>. | |
4552 | ||
df96df4c ILT |
4553 | Wed Jan 17 12:40:14 1996 Ian Lance Taylor <[email protected]> |
4554 | ||
4555 | * cpu-powerpc.c (arch_info_struct): Change last entry to not point | |
4556 | back to first. | |
4557 | (bfd_powerpc_arch): Point at first entry in arch_info_struct. | |
4558 | ||
d49ddb85 ILT |
4559 | Tue Jan 16 15:10:49 1996 Ian Lance Taylor <[email protected]> |
4560 | ||
4561 | * elf.c (assign_file_positions_for_segments): Don't increment file | |
4562 | offset for a segment which contains no loadable sections. | |
4563 | ||
4500a112 MM |
4564 | Mon Jan 15 17:46:27 1996 Michael Meissner <[email protected]> |
4565 | ||
4566 | * reloc.c: Add new PowerPC relocations. | |
4567 | * {bfd-in2,libbfd}.h: Regenerate. | |
4568 | ||
4569 | * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations. | |
4570 | (ppc_elf_reloc_type_lookup): Lookup new relocations. | |
4571 | ||
252239f8 ILT |
4572 | Mon Jan 15 14:29:44 1996 Ian Lance Taylor <[email protected]> |
4573 | ||
20ab764e ILT |
4574 | * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22 |
4575 | entries. | |
4576 | ||
0a4ffa2d ILT |
4577 | * sunos.c (sunos_scan_ext_relocs): Don't fail assert if |
4578 | info->shared. | |
4579 | ||
45ca3195 ILT |
4580 | * coffgen.c (coff_find_nearest_line): Don't try to cache |
4581 | information in sections that are not owned by a BFD. From Richard | |
4582 | Henderson <[email protected]>. | |
4583 | ||
252239f8 ILT |
4584 | * elf32-mips.c: Numerous changes to dynamic linking code, mostly |
4585 | from Kazumoto Kojima <[email protected]>. | |
4586 | * elflink.h (elf_link_output_extsym): Remove special check for | |
4587 | _rld_new_interface. | |
4588 | ||
4589 | * ecoffswap.h: Add prototypes for static functions. | |
4590 | ||
bd2d10c0 MM |
4591 | Sun Jan 14 21:36:08 1996 Michael Meissner <[email protected]> |
4592 | ||
4593 | * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions. | |
4594 | (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc | |
4595 | references. | |
4596 | (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections | |
4597 | to satisfy a TOC16 relocation. Rewrite unsupported relocation | |
4598 | support. Begin support for R_PPC_SDA{2,}REL. | |
4599 | ||
1c3a295b MM |
4600 | Sat Jan 13 09:36:52 1996 Michael Meissner <[email protected]> |
4601 | ||
4602 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to | |
4603 | create the .got and .got.neg sections. | |
4604 | (ppc_elf_size_dynamic_sections): Call it. | |
4605 | (ppc_elf_check_relocs): Call it. | |
4606 | (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got. | |
4607 | (ppc_elf_check_relocs): Add error messages for relocations we | |
4608 | don't yet support. Do not include R_PPC_SDAREL16 like a GOT | |
4609 | relocation. | |
4610 | ||
57081126 MM |
4611 | Fri Jan 12 15:27:59 1996 Michael Meissner <[email protected]> |
4612 | ||
4613 | * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new | |
4614 | section flags for V.4 and eabi. | |
4615 | ||
3c38b3df ILT |
4616 | Fri Jan 12 13:59:16 1996 Ian Lance Taylor <[email protected]> |
4617 | ||
14899eb7 ILT |
4618 | * elf.c (assign_file_positions_for_segments): If a segment |
4619 | contains no sections, don't mark it as readable. | |
4620 | ||
98bb57ad ILT |
4621 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare. |
4622 | * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare. | |
4623 | ||
02fcd126 ILT |
4624 | * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of |
4625 | dynamic section, if there is one. | |
4626 | * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field. | |
4627 | (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR. | |
4628 | (bfd_elf64_swap_dyn_in): Likewise. | |
4629 | * elfcode.h (elf_swap_dyn_in): Change type of second parameter to | |
4630 | PTR. | |
4631 | (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field. | |
4632 | ||
3c38b3df ILT |
4633 | * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a |
4634 | DT_TEXTREL entry because of .rel.plt. From Martin Pirker | |
4635 | <[email protected]>. | |
4636 | ||
83f4323e MM |
4637 | Thu Jan 11 17:06:14 1996 Michael Meissner <[email protected]> |
4638 | ||
4639 | * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for | |
4640 | PowerPC V.4 and eabi. | |
4641 | * bfd-in2.h: Regenerate. | |
4642 | * libfd.h: Regenerate. | |
4643 | ||
4644 | * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags. | |
4645 | ||
4646 | * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED | |
4647 | section type and SHF_EXCLUDE section flag, turning them into the | |
4648 | appropriate bfd section flag. | |
4649 | ||
a0271667 ILT |
4650 | Thu Jan 11 11:23:30 1996 Ian Lance Taylor <[email protected]> |
4651 | ||
c9746fb6 ILT |
4652 | * xcofflink.c (xcoff_link_add_symbols): Create the special |
4653 | sections if we see a DYNAMIC object, in case that is the only | |
4654 | XCOFF input object we see. | |
4655 | ||
5b3b9ff6 ILT |
4656 | * elf32-mips.c: Extensive changes for a start at dynamic linking |
4657 | support, from Kazumoto Kojima <[email protected]>. | |
4658 | ||
4659 | * elf-bfd.h (struct elf_backend_data): Add type_change_ok field. | |
4660 | (struct elf_backend_data): Remove | |
4661 | elf_backend_create_program_headers field. Add | |
4662 | elf_backend_additional_program_headers and | |
4663 | elf_backend_modify_segment_map fields. | |
4664 | * elfxx-target.h (elf_backend_type_change_ok): Define if not | |
4665 | defined. | |
4666 | (elf_backend_additional_program_headers): Likewise. | |
4667 | (elf_backend_modify_segment_map): Likewise. | |
4668 | (elf_backend_create_program_headers): Don't define. | |
4669 | (elfNN_bed): Change to account for field changes. | |
4670 | * elf.c (assign_file_positions_for_segments): Call new | |
4671 | modify_segment_map backend function. Don't call old | |
4672 | create_program_headers backend function. | |
4673 | (get_program_header_size): Call additional_program_headers rather | |
4674 | than create_program_headers. | |
4675 | * elflink.h (elf_link_add_object_symbols): Initialize | |
4676 | type_change_ok from new backend field. | |
4677 | (elf_link_output_extsym): Don't warn if _rld_new_interface is | |
4678 | defined. | |
4679 | (elf_reloc_link_order): Treat a reloc against a defined symbol as | |
4680 | a reloc against the appropriate section. | |
4681 | ||
761f377f ILT |
4682 | * elf-bfd.h (struct bfd_elf_section_data): Add tdata field. |
4683 | (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init. | |
4684 | (elf_flags_init): Rename from elf_ppc_flags_init. | |
4685 | * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not | |
4686 | elf_ppc_flags_init. | |
4687 | (ppc_elf_copy_private_bfd_data): Likewise. | |
4688 | (ppc_elf_merge_private_bfd_data): Likewise. | |
4689 | ||
a0271667 ILT |
4690 | * elf32-m68k.c (howto_table): Change src_mask to 0 for all |
4691 | relocation entries. | |
4692 | ||
64d5f5d0 ILT |
4693 | Tue Jan 9 15:22:53 1996 David Mosberger-Tang <[email protected]> |
4694 | ||
4695 | * coff-alpha.c (alpha_relocate_section): During final link, allow | |
4696 | output .lita section to be bigger than 64k by adjusting gp value | |
4697 | on a per-input section basis. | |
4698 | * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning | |
4699 | field. | |
4700 | (struct ecoff_section_tdata): Add gp field. | |
4701 | ||
c40d9c77 ILT |
4702 | Tue Jan 9 12:00:36 1996 Ian Lance Taylor <[email protected]> |
4703 | ||
64d5f5d0 ILT |
4704 | Handle Alpha ECOFF changes in OSF/1 3.2. |
4705 | * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos | |
4706 | field. | |
4707 | * coff-alpha.c: Include "aout/ar.h". | |
4708 | (alpha_ecoff_get_relocated_section_contents): Don't require an | |
4709 | ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1 | |
4710 | 3.2 doesn't generate one. | |
4711 | (alpha_relocate_section): Likewise. | |
4712 | (alpha_ecoff_slurp_armap): Define. | |
4713 | (alpha_ecoff_slurp_extended_name_table): Define. | |
4714 | (alpha_ecoff_construct_extended_name_table): Define. | |
4715 | (alpha_ecoff_truncate_arname): Define. | |
4716 | (alpha_ecoff_write_armap): Define. | |
4717 | (alpha_ecoff_generic_stat_arch_elt): Define. | |
4718 | (alpha_ecoff_update_armap_timestamp): Define. | |
4719 | (ARFZMAG): Define. | |
4720 | (alpha_ecoff_read_ar_hdr): New static function. | |
4721 | (alpha_ecoff_get_elt_at_filepos): New static function. | |
4722 | (alpha_ecoff_openr_next_archived_file): New static function. | |
4723 | (alpha_ecoff_get_elt_at_index): New static function. | |
4724 | (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field. | |
4725 | (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from | |
4726 | _bfd_ecoff to alpha_ecoff. | |
4727 | * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos | |
4728 | field from backend structure, rather than always calling | |
4729 | _bfd_get_elt_at_filepos. | |
4730 | * coff-mips.c (mips_ecoff_backend_data): Initialize | |
4731 | get_elt_at_filepos field. | |
4732 | * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied | |
4733 | from _bfd_generic_read_ar_hdr with minor changes. | |
4734 | (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag. | |
4735 | * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare. | |
4736 | * libbfd.h: Rebuild. | |
4737 | ||
4738 | * bfd-in.h (BFD_IN_MEMORY): Define. | |
4739 | * libbfd-in.h (struct bfd_in_memory): Define. | |
4740 | * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag. | |
4741 | (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file. | |
4742 | (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set. | |
4743 | (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag. | |
4744 | * bfd.c (struct _bfd): Change iostream field from char * to PTR. | |
4745 | (bfd_get_size): Handle BFD_IN_MEMORY flag. | |
4746 | * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files. | |
4747 | (bfd_open_file): Cast to PTR, not char *, when setting iostream. | |
4748 | (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set. | |
4749 | * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting | |
4750 | iostream. | |
4751 | (bfd_openstreamr): Likewise. | |
4752 | * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if | |
4753 | BFD_IN_MEMORY is not set. | |
4754 | * riscix.c (riscix_some_aout_object_p): Likewise. | |
4755 | * bfd-in2.h, libbfd.h: Rebuild. | |
4756 | ||
4757 | * targets.c (bfd_target): Add _bfd_get_elt_at_index field. | |
4758 | (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index. | |
4759 | (bfd_get_elt_at_index): Define. | |
4760 | * archive.c (_bfd_generic_get_elt_at_index): Rename from | |
4761 | bfd_get_elt_at_index. Change index parameter from int to | |
4762 | symindex. | |
4763 | * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare. | |
4764 | (_bfd_noarchive_get_elt_at_index): Define. | |
4765 | (_bfd_archive_bsd_get_elt_at_index): Define. | |
4766 | (_bfd_archive_coff_get_elt_at_index): Define. | |
4767 | * bfd-in2.h, libbfd.h: Rebuild. | |
4768 | * aout-target.h (MY_get_elt_at_index): Define if not defined. | |
4769 | * coff-rs6000.c (xcoff_get_elt_at_index): Define. | |
4770 | * ieee.c (ieee_get_elt_at_index): Define. | |
4771 | * libecoff.h (_bfd_ecoff_get_elt_at_index): Define. | |
4772 | * oasys.c (oasys_get_elt_at_index): Define. | |
4773 | * som.c (som_get_elt_at_index): Define. | |
4774 | ||
c40d9c77 ILT |
4775 | * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line |
4776 | numbers to the .text section. | |
4777 | ||
efa77952 ILT |
4778 | Mon Jan 8 17:00:57 1996 Ian Lance Taylor <[email protected]> |
4779 | ||
4780 | * ieee.c (ieee_write_debug_part): Change return type to boolean. | |
4781 | If there is a SEC_DEBUGGING section, get the contents of the debug | |
4782 | information part from it. | |
4783 | (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING | |
4784 | section in memory. | |
4785 | (ieee_write_object_contents): Check ieee_write_debug_part return. | |
4786 | ||
767f22d5 FF |
4787 | Thu Jan 4 17:12:37 1996 Fred Fish <[email protected]> |
4788 | ||
4789 | * config.bfd (i[345]86-*-freebsd*): Add target. | |
4790 | * configure.in (i386freebsd_vec): Add vec. | |
4791 | * configure: Regenerate. | |
4792 | * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o. | |
4793 | (BFD32_BACKENDS_CFILES): Add i386freebsd.c. | |
4794 | Rebuild dependencies.. | |
4795 | * freebsd.h: New file. | |
4796 | * i386freebsd.c: New file. | |
4797 | * targets.c (i386freebsd_vec): Declare. | |
4798 | (bfd_target_vector): Add i386freebsd_vec. | |
4799 | * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE | |
4800 | * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE | |
4801 | ||
f8254a3c ILT |
4802 | Thu Jan 4 16:27:46 1996 Ian Lance Taylor <[email protected]> |
4803 | ||
4804 | * ieee.c (ieee_slurp_debug): New static function. | |
4805 | (ieee_object_p): Call it. | |
4806 | (ieee_slurp_section_data): Skip debugging sections. | |
4807 | (ieee_get_reloc_upper_bound): Likewise. | |
4808 | (ieee_get_section_contents): Likewise. | |
4809 | (ieee_canonicalize_reloc): Likewise. | |
4810 | (ieee_write_section_part): Likewise. | |
4811 | (ieee_write_debug_part): Likewise. | |
4812 | (ieee_write_data_part): Likewise. | |
4813 | (init_for_output): Likewise. | |
4814 | ||
07a159db MM |
4815 | Wed Jan 3 19:42:47 1996 Michael Meissner <[email protected]> |
4816 | ||
4817 | * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations | |
4818 | work. | |
4819 | (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto | |
4820 | relocs, since ppc_elf_relocate_section handles the linker case. | |
4821 | (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer | |
4822 | used. | |
4823 | (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into | |
4824 | ppc_elf_relocate_section since that is now the only caller. | |
4825 | (ppc_elf_relocate_section): Ditto. | |
4826 | ||
d812945a ILT |
4827 | Wed Jan 3 15:11:30 1996 Ian Lance Taylor <[email protected]> |
4828 | ||
4829 | * coffcode.h (coff_write_object_contents): If we don't know the | |
4830 | section of the entry point for an XCOFF executable, always set the | |
4831 | entry address to -1. | |
4832 | ||
3a56d0b4 MM |
4833 | Tue Jan 2 14:17:15 1996 Michael Meissner <[email protected]> |
4834 | ||
4835 | * elf.c (bfd_section_from_shdr): Add support for note sections. | |
4836 | ||
c4406e50 ILT |
4837 | Tue Jan 2 13:10:25 1996 Ian Lance Taylor <[email protected]> |
4838 | ||
d812945a ILT |
4839 | * bfd-in.h (struct _symbol_info): Add stab_type field. |
4840 | * bfd-in2.h: Rebuild. | |
4841 | * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type. | |
4842 | ||
c4406e50 ILT |
4843 | * elf32-ppc.c: Remove trailing newline from calls to |
4844 | _bfd_error_handler. | |
4845 | (ppc_elf_merge_private_bfd_data): Only warn about endianness | |
4846 | difference if target endianness is known. | |
4847 | ||
08556813 MM |
4848 | Thu Dec 21 12:43:49 1995 Michael Meissner <[email protected]> |
4849 | ||
4850 | * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the | |
4851 | old style TOC16 references without using R_PPC_GOT. | |
4852 | (ppc_reloc_type): Ditto. | |
4853 | (ppc_elf_reloc_type_lookup): Add support for TOC16. | |
4854 | (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner. | |
4855 | (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc. | |
4856 | (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support. | |
4857 | (ppc_elf_check_relocs): New function for GOT/PLT support that is | |
4858 | work in progress. | |
4859 | (ppc_elf_adjust_dynamic_symbol): Ditto. | |
4860 | (ppc_elf_adjust_dynindx): Ditto. | |
4861 | (ppc_elf_size_dynamic_sections): Ditto. | |
4862 | (ppc_elf_finish_dynamic_symbol): Ditto. | |
4863 | (ppc_elf_finish_dynamic_sections): Ditto. | |
4864 | (ELF_DYNAMIC_INTERPRETER): Define. | |
4865 | ||
86587dd4 KR |
4866 | Wed Dec 20 19:14:18 1995 Ken Raeburn <[email protected]> |
4867 | ||
4868 | * elf.c (copy_private_bfd_data): When attaching sections to | |
4869 | segments ignore sections that won't be allocated. Patch from | |
4870 | Andreas Schwab. | |
4871 | ||
bf7f243f KR |
4872 | Tue Dec 19 20:01:43 1995 Ken Raeburn <[email protected]> |
4873 | ||
4874 | * config.bfd: Match on m68k-cbm-* only if OS doesn't match | |
4875 | anything else. | |
4876 | ||
d9518e2e ILT |
4877 | Tue Dec 19 16:38:59 1995 Ian Lance Taylor <[email protected]> |
4878 | ||
4879 | * coff-i960.c (CALC_ADDEND): Define. | |
4880 | (coff_i960_relocate_section): Add the input section VMA to the | |
4881 | addend for PC relative relocs. | |
4882 | ||
4883 | Sun Dec 17 20:11:55 1995 Kim Knuttila <[email protected]> | |
4884 | ||
4885 | * peicode.h (pe_print_pdata): Must test the entire entry for zero | |
4886 | to correctly terminate. | |
4887 | ||
010a405a ILT |
4888 | Fri Dec 15 12:05:57 1995 Ian Lance Taylor <[email protected]> |
4889 | ||
dc092b6b ILT |
4890 | * targets.c (enum bfd_endian): Define. |
4891 | (bfd_target): Rename byteorder_big_p to byteorder, and change it | |
4892 | from boolean to enum bfd_endian. Change header_byteorder_big_p | |
4893 | correspondingly. | |
4894 | * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros. | |
4895 | (bfd_header_big_endian, bfd_header_little_endian): New macros. | |
4896 | * bfd-in2.h: Rebuild. | |
4897 | * All targets: Change initialization of byteorder and | |
4898 | header_byteorder to use enum bfd_endian values rather than | |
4899 | booleans. | |
4900 | * All files: Change all references to byteorder_big_p and | |
4901 | header_byteorder_big_p to use new bfd_*_endian macros. | |
4902 | ||
010a405a ILT |
4903 | * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not |
4904 | s_vaddr. | |
4905 | * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not | |
4906 | vma. | |
4907 | * ecoff.c (_bfd_ecoff_write_object_contents): Likewise. | |
4908 | ||
fcb43906 SC |
4909 | Fri Dec 15 07:32:09 1995 steve chamberlain <[email protected]> |
4910 | ||
4911 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'. | |
4912 | ||
0d709d31 ILT |
4913 | Thu Dec 14 13:45:37 1995 Ian Lance Taylor <[email protected]> |
4914 | ||
14578105 ILT |
4915 | * ieee.c: Lots of minor cleanups. Make many functions return |
4916 | errors rather than calling abort. Also: | |
4917 | (ieee_write_twobyte): Remove; change callers to call existing | |
4918 | ieee_write_2bytes function. | |
4919 | (ieee_write_expression): Don't output the section twice when | |
4920 | outputting a local symbol. Don't emit an extraneous zero if there | |
4921 | is only one term. | |
4922 | (ieee_slurp_sections): Set the lma as well as the vma. | |
4923 | (ieee_archive_p): Use bfd_alloc_grow rather than an obstack. | |
4924 | ||
0d709d31 ILT |
4925 | * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just |
4926 | a recognized one or bfd_arch_unknown. | |
4927 | (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy | |
4928 | to succeed. | |
4929 | (ihex_get_symtab): Likewise. | |
4930 | ||
14dc2f77 ILT |
4931 | Wed Dec 13 15:44:06 1995 Ian Lance Taylor <[email protected]> |
4932 | ||
4933 | * aoutx.h: Include <ctype.h>. | |
4934 | (struct aout_link_includes_table): Define. | |
4935 | (struct aout_link_includes_totals): Define. | |
4936 | (struct aout_link_includes_entry): Define. | |
4937 | (aout_link_includes_lookup): Define macro. | |
4938 | (struct aout_final_link_info): Add includes field. | |
4939 | (aout_link_includes_newfunc): New static function. | |
4940 | (NAME(aout,final_link)): Initialize includes hash table. | |
4941 | (aout_link_write_symbols): Eliminate duplicate N_BINCL entries. | |
4942 | ||
480ccad5 SS |
4943 | Wed Dec 13 10:52:14 1995 Stan Shebs <[email protected]> |
4944 | ||
4945 | * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff. | |
4946 | ||
3920d9c9 KK |
4947 | Wed Dec 13 11:07:45 1995 Kim Knuttila <[email protected]> |
4948 | ||
4949 | * coff-ppc.c (coff_ppc_relocate_section): removed debugging code. | |
4950 | ||
207345f2 KK |
4951 | Tue Dec 12 17:42:06 1995 Kim Knuttila <[email protected]> |
4952 | ||
4953 | * peicode.h (pe_print_reloc): New function to dump the .reloc section. | |
4954 | (pe_print_private_bfd_data): call pe_print_reloc. | |
4955 | * coffcode.h (coff_set_alignment_hook): .reloc section alignment. | |
4956 | * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed | |
4957 | up some debugging as well. | |
4958 | ||
273c019e ILT |
4959 | Tue Dec 12 11:34:23 1995 Ian Lance Taylor <[email protected]> |
4960 | ||
4961 | * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette | |
4962 | <[email protected]>. | |
4963 | ||
010d9f2d ILT |
4964 | Fri Dec 8 17:47:07 1995 Ian Lance Taylor <[email protected]> |
4965 | ||
4966 | * elflink.h (elf_link_add_object_symbols): Set section_count to 0 | |
4967 | when setting sections to NULL. | |
4968 | ||
4a4a66bd ILT |
4969 | Wed Dec 6 17:05:37 1995 Ian Lance Taylor <[email protected]> |
4970 | ||
4971 | * xcofflink.c (struct xcoff_loader_info): Add export_defineds | |
4972 | field. | |
4973 | (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter. | |
4974 | (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT | |
4975 | for all symbols. | |
4976 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
4977 | * bfd-in2.h: Rebuild. | |
4978 | ||
545bf026 KK |
4979 | Mon Dec 4 16:40:47 1995 Kim Knuttila <[email protected]> |
4980 | ||
4981 | * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's | |
4982 | ||
1f4ae0d6 ILT |
4983 | Mon Dec 4 11:25:39 1995 Ian Lance Taylor <[email protected]> |
4984 | ||
55cac920 ILT |
4985 | * ihex.c (ihex_scan): Handle record types 4 and 5. |
4986 | (ihex_object_p): Permit types 4 and 5. | |
4987 | (ihex_set_section_contents): Remove check for out of range | |
4988 | addresses. | |
4989 | (ihex_write_object_contents): Generate types 4 and 5. | |
4990 | ||
1f4ae0d6 ILT |
4991 | * elflink.h (elf_link_output_extsym): Just ignore warning and |
4992 | indirect references to symbols which don't really exist. | |
4993 | ||
53d45489 KK |
4994 | Sun Dec 3 19:00:27 1995 Kim Knuttila <[email protected]> |
4995 | ||
4996 | * peicode.h (pe_print_idata): Minor format fixes | |
4997 | (pe_print_edata): New function. Under private printing, this formats | |
4998 | the edata section of a PE file. | |
4999 | (pe_print_private_bfd_data): Added call to pe_print_edata. | |
5000 | ||
361e8876 DE |
5001 | Sun Dec 3 16:46:54 1995 Richard Earnshaw ([email protected]) |
5002 | ||
5003 | * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol | |
5004 | index, don't call stoi. | |
5005 | ||
58142f10 ILT |
5006 | Fri Dec 1 14:46:51 1995 Ian Lance Taylor <[email protected]> |
5007 | ||
ffd15489 ILT |
5008 | * srec.c (srec_scan): Set lma as well as vma. |
5009 | ||
5010 | * ihex.c: New file; support for Intel Hex format. | |
5011 | * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour. | |
5012 | (ihex_vec): Declare. | |
5013 | (bfd_target_vector): Always include ihex_vec. | |
5014 | * bfd.c (struct _bfd): Add ihex_data field to tdata union. | |
5015 | * Makefile.in: Rebuild dependencies. | |
5016 | (BFD_LIBS): Add ihex.o | |
5017 | (BFD_LIBS_CFILES): Add ihex.c. | |
5018 | * bfd-in2.h: Rebuild. | |
5019 | ||
ae0a6bea ILT |
5020 | * elf.c (assign_file_positions_for_segments): Sort the sections in |
5021 | each segment. | |
5022 | (get_program_header_size): Return the right size if segment_map is | |
5023 | not NULL. | |
5024 | (copy_private_bfd_data): Don't bother to sort the sections. | |
5025 | ||
5026 | * bfd.c (bfd_record_phdr): New function. | |
5027 | * bfd-in.h (bfd_record_phdr): Declare. | |
5028 | * bfd_in2.h: Rebuild. | |
5029 | ||
ce0ee4bf ILT |
5030 | * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus |
5031 | BFD_ASSERT. | |
5032 | ||
58142f10 ILT |
5033 | * libbfd.c (bfd_malloc, bfd_realloc): New functions. |
5034 | (bfd_zmalloc): Return PTR, not char *. Take size_t, not | |
5035 | bfd_size_type. | |
5036 | * libbfd-in.h (bfd_malloc, bfd_realloc): Declare. | |
5037 | (bfd_zmalloc): Change declaration. | |
5038 | * libbfd.h: Rebuild. | |
5039 | * Many files: Use bfd_malloc and bfd_realloc rather than malloc | |
5040 | and realloc. Don't set bfd_error_no_memory if they fail. | |
5041 | ||
59066248 KK |
5042 | Thu Nov 30 19:32:26 1995 Kim Knuttila <[email protected]> |
5043 | ||
5044 | * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous | |
5045 | uses as well. Added a new howto to deal with TOCREL16 relocs that | |
5046 | are TOCDEFN as well. | |
5047 | (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs | |
5048 | to handle RVA relocs from dlltool. | |
5049 | (ppc_coff_rtype2howto): TOCDEFN reloc addition. | |
5050 | (coff_ppc_rtype_to_howto): TOCDEFN reloc addition. | |
5051 | (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition. | |
5052 | ||
5053 | * coffcode.h (coff_set_alignment_hook): check idata$X sections | |
5054 | to get the right section alignment. | |
5055 | ||
6933148a ILT |
5056 | Thu Nov 30 16:48:18 1995 Ian Lance Taylor <[email protected]> |
5057 | ||
5058 | * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on | |
5059 | p_paddr if p_paddr is zero. | |
5060 | (make_mapping): Set includes_filehdr and includes_phdrs for first | |
5061 | PT_LOAD segment. | |
5062 | (map_sections_to_segments): Set includes_phdrs for PT_PHDR | |
5063 | segment. | |
5064 | (assign_file_positions_for_segments): Handle includes_filehdr and | |
5065 | includes_phdrs. Remove special handling of PT_PHDR and first | |
5066 | PT_LOAD segments. | |
5067 | (copy_private_bfd_data): Set includes_filehdr and includes_phdr | |
5068 | when appropriate. Remove special handling of PT_PHDR segment. | |
5069 | Use a more complex condition for when a section is included in a | |
5070 | segment to handle Solaris linker oddities. | |
5071 | ||
f62fed1c ILT |
5072 | Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]> |
5073 | ||
5074 | * coff-m88k.c (howto_table): Reformatted for easier reading; | |
5075 | special_function now points to new function m88k_special_reloc. | |
5076 | (howto_hvrt16): Function previously used for handling HVRT16 relocs | |
5077 | removed. | |
5078 | (rtype2howto): Do not add reloc's r_offset to the addend, this will | |
5079 | be done correctly by m88k_special_reloc. | |
5080 | (reloc_processing): New function to be used by RELOC_PROCESSING. | |
5081 | (RELOC_PROCESSING): Define to call reloc_processing. | |
5082 | ||
64ecde46 ILT |
5083 | Wed Nov 29 12:42:36 1995 Ian Lance Taylor <[email protected]> |
5084 | ||
b00c57ec ILT |
5085 | * peicode.h (pe_print_idata): Call malloc rather than xmalloc. |
5086 | (pe_print_pdata): Likewise. | |
5087 | ||
a9713b91 ILT |
5088 | * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if |
5089 | obstack_alloc fails. | |
5090 | (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish | |
5091 | fails. | |
5092 | * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails. | |
5093 | * Many files: don't set bfd_error_no_memory if one of the above | |
5094 | routines fails. | |
5095 | ||
3dbf33ee ILT |
5096 | * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr |
5097 | if p_paddr_valid is set. | |
5098 | (copy_private_bfd_data): New static function. | |
5099 | (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data. | |
5100 | ||
44ef8897 ILT |
5101 | * elf.c (assign_file_positions_for_segments): Fix case where extra |
5102 | program headers were allocated. | |
5103 | ||
27fb8f29 ILT |
5104 | * elf.c (_bfd_elf_print_private_bfd_data): New function. |
5105 | * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare. | |
5106 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to | |
5107 | _bfd_elf_print_private_bfd_data. | |
5108 | ||
64ecde46 ILT |
5109 | * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if |
5110 | r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc. | |
5111 | Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS. | |
5112 | (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to | |
5113 | RELOC_SECTION_LITA for ALPHA_R_IGNORE. | |
5114 | (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change | |
5115 | RELOC_SECTION_ABS to RELOC_SECTION_NONE. | |
5116 | ||
fd0198f0 ILT |
5117 | Tue Nov 28 16:59:50 1995 Ian Lance Taylor <[email protected]> |
5118 | ||
5119 | * elf-bfd.h (struct elf_obj_tdata): Add segment_map field. | |
5120 | * elf.c (make_mapping): New static function. | |
5121 | (map_sections_to_segments): New static function. | |
5122 | (elf_sort_sections): New static function. | |
5123 | (assign_file_positions_for_segments): New static function. | |
5124 | (map_program_segments): Remove. | |
5125 | (get_program_header_size): Remove sorted_hdrs, count, and | |
5126 | maxpagesize parameters. Simplify. | |
5127 | (assign_file_positions_except_relocs): When generating an | |
5128 | executable, use assign_file_positions_for_segments. | |
5129 | (elf_sort_hdrs): Remove. | |
5130 | (_bfd_elf_sizeof_headers): Remove eliminated parameters from call | |
5131 | to get_program_header_size. | |
5132 | ||
3b3f7625 ILT |
5133 | Mon Nov 27 12:27:46 1995 Ian Lance Taylor <[email protected]> |
5134 | ||
1ff0461b ILT |
5135 | * hp300hpux.c (MY(callback)): Set lma as well as vma. |
5136 | ||
80c8485c ILT |
5137 | * configure, config.in: Regenerate with autoconf 2.7. |
5138 | ||
3b3f7625 ILT |
5139 | * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1. |
5140 | * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0. | |
5141 | ||
fa63d1ef ILT |
5142 | Wed Nov 22 12:02:09 1995 Ian Lance Taylor <[email protected]> |
5143 | ||
a877f591 ILT |
5144 | * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section. |
5145 | (ecoff_sec_to_styp_flags): Likewise. | |
5146 | (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST. | |
5147 | (ecoff_set_symbol_info): Handle scRConst. | |
5148 | (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST. | |
5149 | (ecoff_compute_section_file_positions): Handle .rconst section. | |
5150 | (_bfd_ecoff_write_object_contents): Likewise. | |
5151 | (ecoff_link_check_archive_element): Handle scRConst. | |
5152 | (ecoff_link_add_externals): Likewise. | |
5153 | (ecoff_link_write_external): Handle .rconst section. | |
5154 | (ecoff_reloc_link_order): Likewise. | |
5155 | * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst. | |
5156 | * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst | |
5157 | section. | |
5158 | (alpha_relocate_section): Handle RELOC_SECTION_RCONST. | |
5159 | ||
fa63d1ef ILT |
5160 | * sunos.c (sunos_scan_dynamic_symbol): Only set written if the |
5161 | DEF_DYNAMIC flag is set. | |
5162 | ||
25bada65 KR |
5163 | Tue Nov 21 13:25:29 1995 Ken Raeburn <[email protected]> |
5164 | ||
5165 | * host-aout.c: If TRAD_HEADER is defined, include it. | |
5166 | ||
7938b4cb ILT |
5167 | Tue Nov 21 13:03:57 1995 Ian Lance Taylor <[email protected]> |
5168 | ||
85e493f0 ILT |
5169 | * aclocal.m4 (AC_PROG_CC): Remove local definition. |
5170 | (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM. | |
5171 | (BFD_NEED_DECLARATION): New function. | |
5172 | * configure.in: Use BFD_NEED_DECLARATION. | |
bd77213b ILT |
5173 | * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section. |
5174 | * configure, config.in: Rebuild with autoconf 2.6. | |
85e493f0 | 5175 | |
83dcdc61 ILT |
5176 | * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear |
5177 | special_sections before returning when called with a non XCOFF | |
5178 | BFD. | |
5179 | ||
7938b4cb ILT |
5180 | * coffgen.c (coff_renumber_symbols): Sort common symbols with |
5181 | global symbols. | |
5182 | ||
5183 | * coffcode.h (coff_compute_section_file_positions): Only pad the | |
5184 | previous section to force file alignment when creating an | |
5185 | executable. | |
5186 | ||
b5403ad7 ILT |
5187 | Mon Nov 20 14:54:09 1995 Ian Lance Taylor <[email protected]> |
5188 | ||
a418e05d ILT |
5189 | * coffcode.h (coff_compute_section_file_positions): If |
5190 | RS6000COFF_C, set up the .debug section. | |
5191 | ||
b5403ad7 ILT |
5192 | * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value |
5193 | if it is not large enough to accomodate the entire TOC area with | |
5194 | signed 16 bit offsets. | |
5195 | (xcoff_write_global_symbol): Handle negative TOC offsets in global | |
5196 | linkage code. | |
5197 | (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a | |
5198 | TOC anchor to use the TOC value used in the output file. | |
5199 | ||
90a7abbc ILT |
5200 | Sat Nov 18 18:01:41 1995 Ian Lance Taylor <[email protected]> |
5201 | ||
5202 | * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return. | |
5203 | (_bfd_coff_read_string_table): Likewise. | |
5204 | ||
177b1932 DE |
5205 | Sat Nov 18 19:43:04 1995 Richard Earnshaw ([email protected]) |
5206 | ||
5207 | * pe-arm.c: Fix typos. | |
5208 | * coff-arm.c: Likewise. | |
5209 | ||
5210 | Fri Nov 17 16:22:04 1995 Kim Knuttila <[email protected]> | |
5211 | ||
5212 | * coff-ppc.c (list_ele): Added "cat"egory member. | |
5213 | (record_toc): New category parameter (priv or pub). | |
5214 | (ppc_record_toc_entry): Check to see if toc bounds exceeded. | |
5215 | (ppc_process_before_allocation): Removed embrionic data-in-toc from | |
5216 | the mainline. It addes extra toc cells in error. | |
5217 | (ppc_coff_swap_sym_in_hook): Added some documentation. | |
5218 | (dump_toc): Can now diagnose "virtual toc" chicanery. | |
5219 | ||
e34314c4 ILT |
5220 | Fri Nov 17 10:41:25 1995 Philippe De Muyter <[email protected]> |
5221 | ||
5222 | * elf-bfd.h (struct elf_link_hash_table): Change type of | |
5223 | dynsymcount and bucketcount fields from size_t to bfd_size_type. | |
5224 | ||
73a68447 ILT |
5225 | Fri Nov 17 10:02:58 1995 Ian Lance Taylor <[email protected]> |
5226 | ||
535e9e29 ILT |
5227 | * coffcode.h (coff_pointerize_aux_hook): I960 version: don't |
5228 | pointerize C_LEAFSTAT or C_LEAFEXT entries. | |
5229 | ||
73a68447 ILT |
5230 | * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create |
5231 | DT_INIT and DT_FINI entries if the _init or _fini symbol is | |
5232 | defined or mentioned in a regular file. | |
5233 | ||
cd2b2402 KK |
5234 | Thu Nov 16 15:16:42 1995 Kim Knuttila <[email protected]> |
5235 | ||
5236 | * coff-ppc.c (ppc_record_data_in_toc_entry): new function | |
5237 | (coff_ppc_relocate_section): Handle TOCDEFN attribute | |
5238 | (coff_ppc_relocate_section): Correct REL24 handling | |
5239 | (ppc_process_before_allocation): Correct TOCDEFN handling | |
5240 | ||
5241 | * peicode.h (dir_names): Added name descriptions | |
5242 | ||
b218076e KR |
5243 | Thu Nov 16 03:38:03 1995 Ken Raeburn <[email protected]> |
5244 | ||
5245 | * VERSION: Updated to cygnus-2.6. | |
5246 | ||
5247 | Wed Nov 15 19:30:07 1995 Ken Raeburn <[email protected]> | |
5248 | ||
5249 | * targets.c (m68k4knetbsd_vec): Declare. | |
5250 | ||
e9f30616 ILT |
5251 | Wed Nov 15 18:05:52 1995 Ian Lance Taylor <[email protected]> |
5252 | ||
5253 | * targets.c (bfd_target): Change type of second argument to | |
5254 | _bfd_print_private_bfd_data from void * to PTR. | |
5255 | * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast | |
5256 | using PTR rather than void *. | |
5257 | * bfd-in2, libbfd.h: Rebuild. | |
5258 | * peicode.h (pe_print_private_bfd_data): Change vfile from void * | |
5259 | to PTR. | |
5260 | * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as | |
5261 | _bfd_generic_bfd_print_private_bfd_data rather than casting | |
5262 | bfd_true. | |
5263 | ||
ae75c4a4 KR |
5264 | Wed Nov 15 04:09:14 1995 Ken Raeburn <[email protected]> |
5265 | ||
5266 | * Makefile.in (.dep1): Fix stupid typo in last change. Remove any | |
5267 | "DO NOT DELETE" lines or blank lines that mkdep writes on some | |
5268 | systems. | |
5269 | (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES, | |
5270 | BFD64_BACKENDS_CFILES): New variables. | |
5271 | (CFILES): Use them. | |
5272 | ||
bebcd3db ILT |
5273 | Tue Nov 14 11:52:23 1995 Ian Lance Taylor <[email protected]> |
5274 | ||
4b71e164 ILT |
5275 | * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0, |
5276 | not at the file position of the first section. | |
5277 | * coffcode.h (coff_compute_section_file_positions): Avoid using | |
5278 | unportable #elif. | |
5279 | (coff_write_object_contents): When generating a PPC PE executable | |
5280 | with no symbols, round up the file size to a COFF_PAGE_SIZE | |
5281 | boundary. | |
5282 | * cofflink.c (_bfd_coff_final_link): If there are no symbols, | |
5283 | don't write out a string table. | |
5284 | ||
631b10f4 ILT |
5285 | * elf.c (bfd_section_from_shdr): When using a different section |
5286 | header, pass the new one to _bfd_elf_make_section_from_shdr. | |
5287 | (elf_fake_sections): Don't set sh_info and sh_entsize fields. | |
5288 | (elf_map_symbols): Add section VMA to symbol value when comparing | |
5289 | against 0. | |
5290 | (_bfd_elf_compute_section_file_positions): Only build symbol table | |
5291 | if there are some symbols. Set file offset of symtab and strtab | |
5292 | sections. | |
5293 | (assign_file_positions_except_relocs): Remove dosyms parameter. | |
5294 | Change all callers. Never set file offset of symtab and strtab | |
5295 | sections. | |
5296 | (_bfd_elf_copy_private_section_data): New function. | |
5297 | (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define. | |
5298 | (_bfd_elf_copy_private_symbol_data): New function. | |
5299 | (swap_out_syms): Check for special mapping of st_shndx created by | |
5300 | copy_private_symbol_data. | |
5301 | * elfxx-target.h: Use new copy routines. | |
5302 | * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare. | |
5303 | (_bfd_elf_copy_private_section_data): Declare. | |
5304 | ||
5305 | * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec. | |
5306 | ||
5307 | * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle | |
5308 | C_NT_WEAK. | |
5309 | ||
bebcd3db ILT |
5310 | * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not |
5311 | _bfd_dummy_target, matching the recent change to archive | |
5312 | recognition. | |
5313 | ||
7ad4ba81 ILT |
5314 | Mon Nov 13 13:24:38 1995 Ian Lance Taylor <[email protected]> |
5315 | ||
afa67334 ILT |
5316 | * libbfd.c (bfd_get_file_window): Use casts to avoid doing |
5317 | arithmetic on PTR types. | |
5318 | ||
f2bd8915 ILT |
5319 | * aout-target.h (MY(callback)): Set the lma of the sections. |
5320 | ||
7ad4ba81 ILT |
5321 | * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined |
5322 | symbol into a reloc against the section. | |
5323 | ||
93b6a3f8 KK |
5324 | Mon Nov 13 07:31:35 1995 Kim Knuttila <[email protected]> |
5325 | ||
5326 | * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline | |
5327 | glue for the relocs: IMGLUE and IFGLUE. | |
5328 | (record_toc): new function - tracks toc contents | |
5329 | (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc | |
5330 | (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE | |
5331 | (ppc_coff_rtype2howto): removed invalid IMGLUE hack | |
5332 | (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack | |
125d37c4 | 5333 | (ppc_record_toc_entry): Removed a debug define (duh) |
93b6a3f8 KK |
5334 | |
5335 | * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata" | |
5336 | (pe_print_idata): New function - formats the idata section data | |
5337 | (pe_print_pdata): New function - formats the pdata section data | |
5338 | (pe_print_private_bfd_data): calls to above | |
5339 | ||
c769947b SS |
5340 | Sun Nov 12 12:23:24 1995 Stan Shebs <[email protected]> |
5341 | ||
5342 | * Makefile.in (bfd_libs_here, etc): Provide empty definitions. | |
5343 | * coff-rs6000.c (rs6000coff_vec): Add conditional defines | |
5344 | TARGET_SYM and TARGET_NAME for vector and BFD name. | |
5345 | * coff-pmac.c (pmac_xcoff_vec): Remove. | |
5346 | (TARGET_SYM, TARGET_NAME): Define. | |
5347 | * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the | |
5348 | machine to 0, not all PowerMacs are 601s. | |
5349 | ||
5350 | Fri Nov 10 12:10:14 1995 Ian Lance Taylor <[email protected]> | |
5351 | ||
5352 | * elfcode.h (elf_object_p): Read in any program headers. | |
5353 | * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma | |
5354 | based on the program headers, if any. | |
5355 | (elf_fake_sections): Set sh_addr from the vma, not the lma. | |
5356 | (map_program_segments): Set p_paddr of program headers based on | |
5357 | the lma. | |
5358 | ||
ee174815 ILT |
5359 | Thu Nov 9 13:01:31 1995 Ian Lance Taylor <[email protected]> |
5360 | ||
839087b7 ILT |
5361 | * archive.c (bfd_generic_archive_p): Preserve tdata in case of |
5362 | failure. | |
5363 | ||
922530a6 ILT |
5364 | * aoutx.h (NAME(aout,final_link)): Report a reasonable error when |
5365 | trying to do a relocateable link with a non-a.out object file. | |
5366 | ||
5367 | * archive.c (bfd_generic_archive_p): Check the first object file | |
5368 | in an archive even if target_defaulted is set. If the object file | |
5369 | has the wrong xvec, reject it. | |
5370 | ||
a1774c51 ILT |
5371 | * aoutx.h (NAME(aout,set_section_contents)): If a section can not |
5372 | be represented, report the name via _bfd_error_handler. | |
5373 | (translate_to_native_sym_flags): Likewise. | |
5374 | * elf32-mips.c (mips_elf_final_link): Likewise. | |
5375 | * oasys.c (oasys_write_sections): Likewise. | |
5376 | ||
4a378b13 ILT |
5377 | * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version |
5378 | which checks for STYP_OVRFLO sections. | |
5379 | (coff_compute_section_file_positions): If RS6000COFF_C, handle | |
5380 | reloc and lineno count overflows. | |
5381 | (coff_write_object_contents): Call coff_count_linenumbers before | |
5382 | coff_compute_section_file_positions. If RS6000COFF_C, handle | |
5383 | reloc and lineno count overflows. | |
5384 | * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and | |
5385 | relocs before dealing with .pad sections. Count overflow section | |
5386 | headers when handling .pad sections. | |
5387 | ||
7906bf87 ILT |
5388 | * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1 |
5389 | if RS6000COFF_C. | |
5390 | ||
ee174815 ILT |
5391 | * xcofflink.c (XCOFF_DESCRIPTOR): Define. |
5392 | (struct xcoff_link_hash_table): Add descriptor_section and | |
5393 | special_sections fields. | |
5394 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields. | |
5395 | (xcoff_link_add_symbols): Set linkage section alignment. Create | |
5396 | descriptor section. Check for magic symbol names (_text, etc.), | |
5397 | and record them in special_sections if found. Set | |
5398 | XCOFF_DESCRIPTOR flag for a function descriptor, and set its | |
5399 | descriptor field to point back to the function code symbol. | |
5400 | (xcoff_sweep): Always mark the special descriptor_section. | |
5401 | (bfd_xcoff_export_symbol): Check whether the symbol might be a | |
5402 | function descriptor, and mark it if it is. | |
5403 | (bfd_xcoff_size_dynamic_sections): Add new special_sections | |
5404 | parameter, and fill it in. Allocate space for the descriptor | |
5405 | section. | |
5406 | (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining | |
5407 | global linkage code. If an undefined function descriptor is | |
5408 | exported, arrange to define it. Warn about any other undefined | |
5409 | exported symbol. | |
5410 | (_bfd_xcoff_bfd_final_link): Write out the descriptor section. | |
5411 | (xcoff_write_global_symbol): Create a function descriptor when | |
5412 | necessary. | |
5413 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration. | |
5414 | * bfd-in2.h: Rebuild. | |
5415 | ||
0e829f18 KK |
5416 | Thu Nov 9 08:40:23 1995 Kim Knuttila <[email protected]> |
5417 | ||
5418 | * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing | |
5419 | (ppc_coff_link_hash_table): new types for hashing | |
5420 | (ppc_coff_link_hash_newfunc): hash entry constructor | |
5421 | (ppc_coff_link_hash_table_init): hash table initializer | |
5422 | (ppc_coff_link_hash_table_create): hash table constructor | |
5423 | (ppc_record_toc_entry): changed references to hash table | |
5424 | (coff_ppc_relocate_section): changed references to hash table | |
5425 | ||
5426 | * libcoff-in.h (coff_link_hash_entry): removed toc_offset | |
5427 | * libcoff.h: Rebuild | |
5428 | ||
5429 | * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init | |
5430 | (coff_link_add_symbols): removed toc_offset init | |
5431 | ||
7ac84736 KR |
5432 | Thu Nov 9 04:00:38 1995 Ken Raeburn <[email protected]> |
5433 | ||
b27cc4bc KR |
5434 | * Makefile.in (.dep1): Make sure the file mkdep is to write exists |
5435 | first. | |
5436 | ||
7ac84736 KR |
5437 | * configure.in: Added new option --with[out]-mmap. Set USE_MMAP |
5438 | if it is given and mmep is available. | |
5439 | * acconfig.h: Undef USE_MMAP. | |
5440 | * configure, config.in: Regenerated. | |
5441 | * aoutx.h: If USE_MMAP is not defined, do all symbol and string | |
5442 | table handling the old way. | |
5443 | (aout_get_external_symbols): Don't complain if last byte of string | |
5444 | table is nonzero. | |
5445 | * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h. | |
5446 | (bfd_free_window) [! USE_MMAP]: Don't define. | |
5447 | (bfd_get_file_window, | |
5448 | _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort. | |
5449 | ||
1b3b0c03 ILT |
5450 | Wed Nov 8 20:03:44 1995 Eric Freudenthal <[email protected]> |
5451 | ||
5452 | * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than | |
5453 | 0xffff0000. | |
5454 | ||
092abcdf ILT |
5455 | Wed Nov 8 11:31:11 1995 Ian Lance Taylor <[email protected]> |
5456 | ||
33698029 ILT |
5457 | * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be |
5458 | compatible with AMD generated COFF files. Try to support both AMD | |
5459 | and GNU formats simultaneously. | |
5460 | (coff_a29k_relocate_section): Likewise. | |
5461 | ||
0bb8ff19 ILT |
5462 | * libbfd.c (bfd_get_file_window): Change writable parameter from |
5463 | int to boolean; update all callers. Pass MAP_SHARED if not | |
5464 | writable--it's required on Solaris. Cast fprintf argument to | |
5465 | avoid warning. | |
5466 | * bfd-in.h (bfd_get_file_window): Update declaration. | |
5467 | * bfd-in2.h: Rebuild. | |
5468 | * aoutx.h: Update calls to bfd_get_file_window. | |
5469 | ||
0634a431 ILT |
5470 | * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC. |
5471 | Change all uses. | |
5472 | (xcoff_swap_ldhdr_in): New static function. | |
5473 | (xcoff_swap_ldsym_in): New static function. | |
7812bf9c | 5474 | (xcoff_find_reloc): Handle the case of a single reloc correctly. |
0634a431 ILT |
5475 | (xcoff_link_add_symbols): If we just created a descriptor, pass it |
5476 | to _bfd_generic_link_add_one_symbol, to save a hash lookup. | |
417acf22 | 5477 | Handle XTY_ER/XMC_XO symbols correctly. |
0634a431 ILT |
5478 | (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols |
5479 | rather than normal symbol table. | |
417acf22 ILT |
5480 | (bfd_xcoff_import_symbol): It's not an error if the symbol is |
5481 | already defined with the same absolute value. | |
0634a431 ILT |
5482 | (xcoff_mark): When considering called symbols, check whether the |
5483 | descriptor is from a dynamic object, rather than the symbol | |
5484 | itself. | |
5485 | (xcoff_build_ldsyms): Likewise. | |
5486 | ||
092abcdf ILT |
5487 | * libbfd.c (bfd_get_file_window): Change return type to boolean. |
5488 | Cast realloc and malloc return values. If malloc or realloc fail, | |
5489 | set bfd_error_no_memory. | |
5490 | * bfd-in.h (bfd_get_file_window): Change type to boolean. | |
5491 | * bfd-in2.h: Rebuild. | |
5492 | ||
d6f41a7d KK |
5493 | Tue Nov 7 11:53:48 1995 Kim Knuttila <[email protected]> |
5494 | ||
5495 | * coff-ppc.c (ppc_record_toc_entry): new function. | |
5496 | (in_reloc_p): changed return value. | |
5497 | (coff_ppc_relocate_section): much rework. | |
5498 | (ppc_allocate_toc_section): new function. | |
5499 | (ppc_process_before_allocation): new function. | |
5500 | (ppc_coff_swap_sym_in_hook): new function. | |
5501 | ||
5502 | * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset. | |
5503 | (coff_link_add_symbols): initialize toc_offset. | |
5504 | ||
5505 | * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook | |
5506 | (coff_swap_aouthdr_out): Added more sections to the data | |
5507 | dictionary for the pe file header. Also changed linker version | |
5508 | number on the ppc side. | |
5509 | (dir_names): small improvements to the dictionary printing. | |
5510 | (pe_mkobject_hook): save the file level flags. | |
5511 | ||
5512 | * libcoff-in.h (coff_link_hash_entry): added toc_offset field | |
5513 | (pe_tdata): added real_flags field | |
5514 | (coff_tdata): added local_toc_sym_map and access macro | |
5515 | ||
5516 | * libcoff.h (coff_link_hash_entry): added toc_offset field | |
5517 | (pe_tdata): added real_flags field | |
5518 | (coff_tdata): added local_toc_sym_map and access macro | |
5519 | ||
5520 | * coffcode.h (coff_set_alignment_hook): added hook for PE. | |
5521 | (coff_mkobject): init for local_toc_sym_map | |
5522 | (coff_write_object_contents): set the internal_a.magic to | |
5523 | IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other | |
5524 | ppc compilers use. | |
5525 | ||
6bc200f2 ILT |
5526 | Tue Nov 7 13:48:58 1995 Ian Lance Taylor <[email protected]> |
5527 | ||
c0971298 ILT |
5528 | * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs |
5529 | entries until both the line number address and the function name | |
5530 | address are too large. | |
5531 | ||
6a468850 ILT |
5532 | * configure.in: Call AC_CHECK_PROG to find and cache AR. |
5533 | * configure: Rebuilt. | |
5534 | ||
6bc200f2 ILT |
5535 | * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it |
5536 | is defined in the environment. | |
5537 | ||
c44bf94c JL |
5538 | Tue Nov 7 10:57:24 1995 Jeffrey A Law ([email protected]) |
5539 | ||
5540 | * som.c (som_get_section_contents_in_window): Define to use | |
5541 | generic version. | |
5542 | ||
cf587de8 ILT |
5543 | Mon Nov 6 17:13:15 1995 Harry Dolan <[email protected]> |
5544 | ||
5545 | * coff-i860.c: New file, based on coff-i386.c. | |
5546 | * cpu-i860.c: New file, based on cpu-i386.c. | |
5547 | * hosts/i860mach3.h: New file, based on hosts/i386mach3.h. | |
5548 | * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New | |
5549 | targets, using i860coff_vec. | |
5550 | * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using | |
5551 | trad-core.o and hosts/i860mach3.h. | |
5552 | (i860coff_vec): Use coff-i860.o and cofflink.o. | |
5553 | * configure: Rebuild. | |
5554 | * Makefile.in: Rebuild dependencies. | |
5555 | (ALL_MACHINES): Add cpu-i860.o. | |
5556 | (BFD32_BACKENDS): Add coff-i860.o. | |
5557 | (CFILES): Add cpu-i860.c and coff-i860.c. | |
5558 | * targets.c (i860coff_vec): Declare. | |
5559 | (bfd_target_vector): Add &i860coff_vec. | |
5560 | * archures.c (bfd_i860_arch): Declare. | |
5561 | (bfd_archures_list): Add &bfd_i860_arch. | |
5562 | * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number. | |
5563 | (coff_set_flags): Handle bfd_arch_i860. | |
5564 | (coff_write_object_contents): Handle I860 a.out magic number. | |
5565 | ||
83c23fca ILT |
5566 | Mon Nov 6 14:34:07 1995 Ian Lance Taylor <[email protected]> |
5567 | ||
5568 | * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of | |
5569 | the created .tc section to 2. | |
5570 | (xcoff_mark): Don't keep a .loader reloc for a call to an | |
5571 | undefined symbol when creating a shared library. | |
5572 | (xcoff_build_ldsyms): When creating a shared library, generate | |
5573 | global linkage code for a call to an undefined symbol. | |
5574 | ||
5d9eb9c3 KR |
5575 | Sun Nov 5 21:44:13 1995 Ken Raeburn <[email protected]> |
5576 | ||
5577 | * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES, | |
5578 | BFD32_BACKENDS, BFD64_BACKENDS. | |
5579 | (.dep1): Put mkdep output in a separate file. | |
5580 | Rebuilt dependencies. | |
5581 | ||
ffacb892 KR |
5582 | * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return |
5583 | value. | |
5584 | ||
4fe6d901 KR |
5585 | Permit use of mmap when available: |
5586 | ||
5587 | * configure.in: Check for mmap, madvise, mprotect. | |
5588 | * config.in, configure: Regenerated. | |
5589 | ||
5590 | * libbfd.c (struct _bfd_window_internal): Define type. | |
5591 | (bfd_init_window, bfd_free_window, bfd_get_file_window): New | |
5592 | functions. | |
5593 | (ok_to_map): New static variable for debugging. | |
5594 | (_bfd_generic_get_section_contents_in_window): New function. | |
5595 | * bfd-in.h (bfd_window_internal): Declare type. | |
5596 | (bfd_window): Define type. | |
5597 | (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare. | |
5598 | * libbfd-in.h (_bfd_generic_get_section_contents_in_window): | |
5599 | Declare. | |
5600 | ||
5601 | * libaout.h (struct aoutdata): Add two window fields. | |
5602 | (obj_aout_sym_window, obj_aout_string_window): New macros. | |
5603 | * aoutx.h (some_aout_object_p): Initialize windows. | |
5604 | (aout_get_external_symbols): Get symbol data and strings in | |
5605 | windows instead of explicitly allocated buffers. | |
5606 | (slurp_symbol_table): Free window instead of memory. | |
5607 | (bfd_free_cached_info): Release windows instead of freeing storage | |
5608 | directly. | |
5609 | (aout_link_free_symbols): Ditto. | |
5610 | ||
5611 | * targets.c (bfd_target): Add new field for | |
5612 | get_section_contents_in_window. | |
5613 | (BFD_JUMP_TABLE_GENERIC): Updated. | |
5614 | * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c, | |
5615 | coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c, | |
5616 | libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new | |
5617 | macros for get_section_contents_in_window field. | |
5618 | ||
d9e771e3 FF |
5619 | Sat Nov 4 12:23:26 1995 Fred Fish <[email protected]> |
5620 | ||
5621 | * core.c: Renamed to corefile.c | |
5622 | * makefile.dos (OBJS): Change core.o to corefile.o | |
5623 | * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c | |
5624 | ||
bf917766 SG |
5625 | start-sanitize-gm |
5626 | Sat Nov 4 10:16:54 1995 Stu Grossman ([email protected]) | |
5627 | ||
5628 | * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to | |
5629 | targ_selvecs to allow debugging under Irix-5 native. | |
5630 | ||
5631 | end-sanitize-gm | |
583db7a8 ILT |
5632 | Fri Nov 3 15:54:59 1995 Ian Lance Taylor <[email protected]> |
5633 | ||
5634 | * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub | |
5635 | to o. Clobber and restore the list of new csects around the call | |
5636 | to _bfd_generic_link_add_one_symbol, in case it wants to report a | |
5637 | linker error and the linker wants to read the symbol table. Reset | |
5638 | the line number count of a real section even if it has no relocs. | |
5639 | (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag. | |
5640 | ||
5641 | * coffgen.c (_bfd_coff_read_string_table): Warn if the string size | |
5642 | is too small. | |
5643 | ||
68aed7db ILT |
5644 | Thu Nov 2 23:16:39 1995 Ian Lance Taylor <[email protected]> |
5645 | ||
18a9609c ILT |
5646 | * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about |
5647 | an undefined symbol in a shared link. | |
5648 | ||
68aed7db ILT |
5649 | * linker.c (_bfd_generic_link_add_one_symbol): Correct type of |
5650 | oldtype from bfd_link_order_type to bfd_link_hash_type. From | |
5651 | [email protected] (Philippe De Muyter). | |
5652 | ||
7f82c7e1 ILT |
5653 | Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]> |
5654 | ||
5655 | * coff-m88k.c (rtype2howto): New static function. | |
5656 | (RTYPE2HOWTO): Use it rather than a macro definition. | |
5657 | ||
5658 | * coffcode.h (coff_write_object_contents): set internal_a.magic | |
5659 | to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS). | |
5660 | ||
4c8b9746 | 5661 | * configure.in: m68*-motorola-sysv* does not use ptrace-core.o; |
7f82c7e1 ILT |
5662 | define TRAD_HEADER to new file hosts/delta68.h. |
5663 | m88*-motorola-sysv*, however, does use ptrace-core.o. | |
5664 | * hosts/delta68.h: New file. | |
5665 | ||
5666 | * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to | |
5667 | bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc. | |
5668 | ||
619c7730 KR |
5669 | Wed Nov 1 13:51:54 1995 Ken Raeburn <[email protected]> |
5670 | ||
5671 | * i386linux.c (MY(vec)): Declare before use. | |
5672 | ||
73246ff8 ILT |
5673 | Wed Nov 1 11:45:07 1995 Ian Lance Taylor <[email protected]> |
5674 | ||
e8d6d5d0 ILT |
5675 | * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents): |
5676 | Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases. | |
5677 | ||
b2193cc5 ILT |
5678 | * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the |
5679 | BFD is not of the right type. | |
5680 | (bfd_elf_get_needed_list): Likewise. | |
5681 | * i386linux.c (bfd_linux_size_dynamic_sections): Likewise. | |
5682 | * sunos.c (bfd_sunos_get_needed_list): Likewise. | |
5683 | * xcofflink.c (XCOFF_XVECP): Define. | |
5684 | (bfd_xcoff_link_record_set): Don't do anything if the BFD is not | |
5685 | of the right type. | |
5686 | (bfd_xcoff_import_symbol): Likewise. | |
5687 | (bfd_xcoff_export_symbol): Likewise. | |
5688 | (bfd_xcoff_link_count_reloc): Likewise. | |
5689 | (bfd_xcoff_record_link_assignment): Likewise. | |
5690 | (bfd_xcoff_size_dynamic_sections): Likewise. | |
5691 | ||
baabeb74 ILT |
5692 | * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol |
5693 | table index against the number of symbols for a base relative | |
5694 | reloc. | |
5695 | ||
73246ff8 ILT |
5696 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to |
5697 | static function. | |
5698 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set | |
5699 | full_aouthdr flag here... | |
5700 | (_bfd_xcoff_bfd_final_link): ...not here. | |
5701 | ||
6ab826bd FF |
5702 | Tue Oct 31 12:52:02 1995 Fred Fish <[email protected]> |
5703 | ||
5704 | * libelf.h: Rename to elf-bfd.h to avoid conflict with | |
5705 | systems that have a system <libelf.h>. | |
5706 | * Makefile.in: Globally replace libelf.h with elf-bfd.h. | |
5707 | * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c, | |
5708 | elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c, | |
5709 | elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c, | |
5710 | elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c, | |
5711 | elfxx-target.h: Include elf-bfd.h rather than libelf.h. | |
5712 | * elfxx-target.h: Change libelf.h reference to elf-bfd.h. | |
5713 | ||
999cc186 ILT |
5714 | Tue Oct 31 15:30:07 1995 David Mosberger-Tang <[email protected]> |
5715 | ||
0652d579 ILT |
5716 | * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If |
5717 | set, set BSF_WEAK in symbol. Change all callers. | |
5718 | (ecoff_get_extr): Set weakext based on BSF_WEAK. | |
5719 | (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to | |
5720 | _bfd_generic_link_add_one_symbol. | |
5721 | (ecoff_indirect_link_order): Check that the section tdata relocs | |
5722 | are not NULL before using them. | |
5723 | ||
999cc186 ILT |
5724 | * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and |
5725 | define TRAD_HEADER as hosts/alphalinux.h. | |
5726 | * configure: Rebuild. | |
5727 | * hosts/alphalinux.h: New file. | |
5728 | * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma, | |
5729 | not int. | |
5730 | ||
e6080520 ILT |
5731 | Tue Oct 31 12:34:11 1995 Ian Lance Taylor <[email protected]> |
5732 | ||
2bd0aeb9 ILT |
5733 | * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and |
5734 | C_ECOMM storage classes. | |
5735 | ||
e6080520 ILT |
5736 | * xcofflink.c (xcoff_mark_symbol): New static function, broken out |
5737 | of xcoff_mark. | |
5738 | (xcoff_mark): Call xcoff_mark_symbol. | |
5739 | (bfd_xcoff_export_symbol): Call xcoff_mark_symbol. | |
5740 | (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than | |
5741 | doing it by hand. | |
5742 | (xcoff_build_ldsyms): Build a .loader symbol for an export symbol. | |
5743 | ||
5fe14a9f ILT |
5744 | Mon Oct 30 14:53:48 1995 Ian Lance Taylor <[email protected]> |
5745 | ||
f630a0a4 ILT |
5746 | * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos |
5747 | field. | |
5748 | (xcoff_find_reloc): New static function. | |
5749 | (xcoff_link_add_symbols): Use it. | |
5750 | (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos. | |
5751 | (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't | |
5752 | relocate the value of C_DECL. | |
5753 | ||
5fe14a9f ILT |
5754 | * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT. |
5755 | ||
dff77ed7 SC |
5756 | Sat Oct 28 01:25:34 1995 steve chamberlain <[email protected]> |
5757 | ||
5758 | * cofflink.c (_bfd_coff_generic_relocate_section): Make | |
5759 | callback decide what goes in .relocs. | |
5760 | * pe[i]-i386.c (TARGET_UNDERSCORE): Define. | |
5761 | * peicode.h (pe_mkobject_hook): Only copy aouthdr if | |
5762 | there is one. | |
5763 | ||
697a8fe8 ILT |
5764 | Sat Oct 28 01:51:02 1995 Ian Lance Taylor <[email protected]> |
5765 | ||
5766 | * xcofflink.c (xcoff_link_add_symbols): Handle csects in the | |
5767 | absolute section. | |
5768 | ||
2d7de17d ILT |
5769 | Fri Oct 27 18:14:39 1995 Ian Lance Taylor <[email protected]> |
5770 | ||
5771 | * xcofflink.c: More improvements, mostly to fix handling of | |
5772 | constructors and a few other special cases. | |
5773 | * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to | |
5774 | zero, reverting yesterday's change. | |
5775 | * bfd-in.h (bfd_xcoff_link_record_set): Declare. | |
5776 | (bfd_xcoff_link_count_reloc): Declare. | |
5777 | (bfd_xcoff_record_link_assignment): Declare. | |
5778 | * bfd-in2.h: Rebuild. | |
5779 | ||
f552f751 NH |
5780 | Fri Oct 27 14:42:15 1995 Niklas Hallqvist <[email protected]> |
5781 | ||
4906b2a3 | 5782 | * PORTING, aout-arm.c, aout-encap.c, aout-target.h, |
f552f751 NH |
5783 | aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c |
5784 | i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c, | |
5785 | i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c, | |
5786 | ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c: | |
5787 | Change PAGE_SIZE to TARGET_PAGE_SIZE. | |
5788 | ||
5789 | * m68knetbsd.c: Ditto as well as add support for the m68k4k object | |
5790 | format. | |
5791 | ||
5792 | * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text | |
5793 | segments includes the a.out header. See to that the magic number | |
5794 | *always* is big-endian. | |
5795 | ||
5796 | * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and | |
5797 | m68k4k NetBSD configurations. | |
5798 | ||
5799 | * configure.in, configure: Separate i386 & mips NetBSD | |
5800 | configurations from other BSD ones. Don't assume DEC is the only | |
5801 | thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd* | |
5802 | configurations. Add support for m68k4k NetBSD object format. | |
5803 | ||
5804 | * libaout.h: Added M_68K4K_NETBSD magic. | |
6fd1f40d NH |
5805 | |
5806 | * m68k4knetbsd.c: New file. | |
f552f751 NH |
5807 | |
5808 | * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P. | |
5809 | ||
5810 | * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to | |
5811 | <machine/endian.h>. | |
5812 | ||
6fd1f40d NH |
5813 | * hosts/mipsnbsd.h: New file. |
5814 | ||
d6d44ef9 SG |
5815 | start-sanitize-gm |
5816 | Fri Oct 27 09:41:51 1995 Stu Grossman ([email protected]) | |
5817 | ||
5818 | * config.bfd: Add config stuff for mips*-*-magic* to set | |
5819 | targ_defvec to ecoff_big_vec. | |
5820 | ||
5821 | end-sanitize-gm | |
867d923d ILT |
5822 | Thu Oct 26 14:16:47 1995 Ian Lance Taylor <[email protected]> |
5823 | ||
5824 | * xcofflink.c: Numerous changes to get closer to a working XCOFF | |
5825 | linker. | |
5826 | * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr, | |
5827 | toc_section, and entry_section fields. | |
5828 | (struct xcoff_section_tdata): Remove ldrel_count field. | |
5829 | * libcoff.h: Rebuild. | |
5830 | * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data | |
5831 | fields. | |
5832 | (coff_compute_section_file_positions): If RS6000COFF_C, generate | |
5833 | full a.out header if full_aouthdr is set in xcoff_data. | |
5834 | (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc | |
5835 | based on sections stored in xcoff_data. | |
5836 | * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data | |
5837 | fields. | |
aad2c618 ILT |
5838 | (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR. |
5839 | (rs6000coff_vec): Set symbol_leading_char to '.'. | |
867d923d ILT |
5840 | * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the |
5841 | value stored in ret rather than returning a pointer value. | |
5842 | ||
6bd9ffdb MM |
5843 | Wed Oct 25 23:10:39 1995 Michael Meissner <[email protected]> |
5844 | ||
5845 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC | |
5846 | format for now. | |
5847 | ||
9d14250f JL |
5848 | Wed Oct 25 16:19:27 1995 Jeffrey A Law ([email protected]) |
5849 | ||
5850 | * som.c (som_slurp_string_table): Allocate the strings with malloc | |
5851 | since they're free'd by free_cached_info. | |
5852 | (som_slurp_symbol_table): Similarly for the symbol table. | |
5853 | ||
a2bd0529 PB |
5854 | Wed Oct 25 14:59:22 1995 Per Bothner <[email protected]> |
5855 | ||
5856 | * Makefile.in (diststuff): Don't make headers. | |
5857 | ||
28a0c103 ILT |
5858 | Wed Oct 25 11:32:54 1995 Ian Lance Taylor <[email protected]> |
5859 | ||
356cd465 ILT |
5860 | * Makefile.in: Rebuild dependencies. |
5861 | ||
1edd3a7b ILT |
5862 | * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if |
5863 | output_bfd is not SunOS. | |
5864 | (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of | |
5865 | non-SunOS input files. | |
5866 | ||
28a0c103 ILT |
5867 | * xcofflink.c: Extensive changes to support linking shared objects |
5868 | and generating a .loader section. | |
5869 | * libcoff-in.h (struct xcoff_tdata): Add import_file_id field. | |
b73322d9 ILT |
5870 | (struct xcoff_section_tdata): Add lineno_count, first_symndx, |
5871 | last_symndx, and ldrel_count fields. | |
28a0c103 ILT |
5872 | * libcoff.h: Rebuild. |
5873 | * coff-rs6000.c (xcoff_howto_table): Correct reloc names. | |
5874 | * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD | |
5875 | is set. | |
5876 | * bfd-in.h (bfd_xcoff_import_symbol): Declare. | |
5877 | (bfd_xcoff_export_symbol): Declare. | |
5878 | (bfd_xcoff_size_dynamic_sections): Declare. | |
5879 | * bfd-in2.h: Rebuild. | |
5880 | ||
aadf04f7 SS |
5881 | Tue Oct 24 17:44:20 1995 Stan Shebs <[email protected]> |
5882 | ||
5883 | * configure.in: Add xcofflink.o to pmac_xcoff_vec. | |
5884 | * configure: Rebuild. | |
5885 | * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos. | |
5886 | * coff-pmac.c: Include coff-rs6000.c instead of duplicating its | |
5887 | contents. | |
5888 | (pmac_xcoff_vec): Update to use new xcoff support. | |
5889 | * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static. | |
5890 | (xcoff_write_armap): Declare buf as unsigned char. | |
5891 | * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR. | |
5892 | ||
5893 | * mpw-make.sed: Generalize subdir_do edit. | |
5894 | ||
ddf4639b JL |
5895 | Tue Oct 24 10:25:01 1995 Jeffrey A Law ([email protected]) |
5896 | ||
5897 | * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos | |
5898 | correctly. Don't initialize asect->vma. | |
5899 | ||
e7bedf65 KR |
5900 | Fri Oct 20 13:23:48 1995 Ken Raeburn <[email protected]> |
5901 | ||
5902 | * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use | |
5903 | something a little less than the page size. | |
5904 | ||
5905 | Thu Oct 19 13:06:09 1995 Ian Lance Taylor <[email protected]> | |
5906 | ||
5907 | * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp. | |
5908 | ||
3a70e298 SC |
5909 | Wed Oct 18 16:20:08 1995 steve chamberlain <[email protected]> |
5910 | ||
5911 | * coff-i386.c (coff_i386_reloc_type_lookup): New. | |
5912 | * coffcode.h (coff_write_object_contents): If .bss is before | |
5913 | .data us that as data_start. | |
5914 | * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc | |
5915 | calc correct. | |
5916 | * peicode.h (add_data_entry): Use _cooked_size of data directory. | |
5917 | (coff_swap_outhdr_out): Hardwire in version number. | |
5918 | ||
5a2846e3 KR |
5919 | Wed Oct 18 16:50:54 1995 Ken Raeburn <[email protected]> |
5920 | ||
3c3a5268 KR |
5921 | * sunos.c (sunos_add_dynamic_symbols): Rename local variables |
5922 | major and minor to *_vno, since the former are also macros in | |
5923 | SunOS header files. Cast result of bfd_alloc to appropriate | |
5924 | type. | |
5925 | ||
5a2846e3 KR |
5926 | * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value |
5927 | before assigning to sec_data. | |
5928 | ||
0f6c885e ILT |
5929 | Wed Oct 18 13:25:17 1995 Ian Lance Taylor <[email protected]> |
5930 | ||
5931 | * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is | |
5932 | now relative to the section, not absolute. | |
5933 | * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to | |
5934 | get the file name when there is a N_SO directory name. When | |
5935 | handling stabs, remember that section->vma was added to the | |
5936 | offset. | |
5937 | ||
11fa6636 ILT |
5938 | Tue Oct 17 18:24:54 1995 Ian Lance Taylor <[email protected]> |
5939 | ||
5940 | * sunos.c (struct sunos_link_hash_table): Add needed field. | |
5941 | (sunos_link_hash_table_create): Call bfd_release, not free. | |
5942 | (sunos_link_hash_table_create): Initialize needed field. | |
5943 | (sunos_add_dynamic_symbols): Record needed objects. | |
5944 | (bfd_sunos_get_needed_list): New function. | |
5945 | * bfd-in.h (bfd_sunos_get_needed_list): Declare. | |
5946 | * bfd-in2.h: Rebuild. | |
5947 | ||
c974e19e SC |
5948 | Mon Oct 16 14:43:59 1995 steve chamberlain <[email protected]> |
5949 | ||
5950 | * libcoff-in.h (pe_data_type.in_reloc_p): New. | |
5951 | ||
22a35f0b ILT |
5952 | Mon Oct 16 10:52:50 1995 Ian Lance Taylor <[email protected]> |
5953 | ||
54406786 ILT |
5954 | * bfd-in.h (struct bfd_link_needed_list): Rename from |
5955 | bfd_elf_link_needed_list. | |
5956 | * bfd-in2.h: Rebuild. | |
5957 | * elf.c, elflink.h, libelf.h: Corresponding changes. | |
5958 | ||
dd984644 ILT |
5959 | Add start at AIX linker support; no shared libraries yet. |
5960 | * xcofflink.c: New file. | |
5961 | * configure.in (rs600coff_vec): Use xcofflink.o. | |
5962 | * configure: Rebuild. | |
5963 | * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices | |
5964 | fields. | |
5965 | (struct xcoff_section_tdata): Define. | |
5966 | (xcoff_section_data): Define macro. | |
5967 | (_bfd_xcoff_bfd_link_hash_table_create): Declare. | |
5968 | (_bfd_xcoff_bfd_link_add_symbols): Declare. | |
5969 | (_bfd_xcoff_bfd_final_link): Declare. | |
5970 | (_bfd_ppc_xcoff_relocate_section): Declare. | |
5971 | * libcoff.h: Rebuild. | |
5972 | * coff-rs6000.c: Clean up a bit. | |
5973 | (xcoff_mkobject): Default modtype to 1L, not RE. Initialize | |
5974 | cputype, csects, and debug_indices. | |
5975 | (xcoff_copy_private_bfd_data): Copy cputype. | |
5976 | (xcoff_howto_table): Rename from rs6000coff_howto_table. | |
5977 | (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto. | |
5978 | (xcoff_reloc_type_lookup): Rename from | |
5979 | rs6000coff_reloc_type_lookup. | |
5980 | (coff_relocate_section): Define. | |
5981 | (_bfd_xcoff_sizeof_headers): Define. | |
5982 | (_bfd_xcoff_bfd_get_relocated_section_contents): Define. | |
5983 | (_bfd_xcoff_bfd_relax_section): Define. | |
5984 | (_bfd_xcoff_bfd_link_split_section): Define. | |
5985 | (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not | |
5986 | coff. | |
5987 | * coffcode.h (coff_compute_section_file_positions): If AIX, | |
5988 | increment sofar by SMALL_AOUTSZ if not executable. | |
5989 | (coff_write_object_contents): If AIX, always output an a.out | |
5990 | header; if not executable, header size of SMALL_AOUTSZ. | |
5991 | * hash.c (struct bfd_strtab_hash): Add xcoff field. | |
5992 | (_bfd_stringtab_init): Initialize xcoff field. | |
5993 | (_bfd_xcoff_stringtab_init): New function. | |
5994 | (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length. | |
5995 | (_bfd_stringtab_emit): In XCOFF mode, write out length. | |
5996 | * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare. | |
5997 | * libbfd.h: Rebuild. | |
5998 | * Makefile.in: Rebuild dependencies. | |
5999 | (BFD32_BACKENDS): Add xcofflink.o. | |
6000 | (CFILES): Add xcofflink.c. | |
6001 | ||
22a35f0b ILT |
6002 | * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not |
6003 | SEC_NO_FLAGS, for .acommon section. From Peter Schauer | |
6004 | <[email protected]>. | |
6005 | ||
fb417a21 MM |
6006 | Sat Oct 14 21:36:02 1995 Michael Meissner <[email protected]> |
6007 | ||
6008 | * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c. | |
6009 | ||
6010 | Fri Oct 13 17:48:43 1995 Ken Raeburn <[email protected]> | |
6011 | ||
6012 | * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment. | |
6013 | * config.in: Regenerated. | |
6014 | ||
6015 | * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048. | |
6016 | (_bfd_chunksize): New variable. | |
6017 | (_bfd_new_bfd): Set it to getpagesize() if negative, and use it | |
6018 | for obstack chunk size. | |
6019 | * configure.in: Check for getpagesize. | |
6020 | * configure: Regenerated. | |
6021 | ||
6022 | Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]> | |
6023 | ||
6024 | * trad-core.c (rawptr): Make it a local variable of | |
6025 | ptrace_unix_core_file_p. | |
6026 | ||
b1e46369 SC |
6027 | Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]> |
6028 | ||
6029 | * coff-arm.c (in_reloc_p): New. | |
6030 | * coff-i386.c (in_reloc_p): New. | |
6031 | * coffcode.h: Allways include peicode.h if COFF_WITH_PE. | |
6032 | (coff_write_object_contents): Only set has_reloc_section | |
6033 | if PE_IMAGE. | |
6034 | * cofflink.c (_bfd_coff_generic_relocate_section): Call | |
6035 | in_reloc_p to decide if reloc should be emitted. | |
6036 | * libcoff.h (pe_data_type.in_reloc_p): New. | |
6037 | * peicode.h (pe_mkobject): Initialize in_reloc_p. | |
6038 | ||
ee9f09cd ILT |
6039 | Wed Oct 11 00:49:29 1995 Ian Lance Taylor <[email protected]> |
6040 | ||
b1e46369 SC |
6041 | * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c. |
6042 | (_bfd_coff_read_internal_relocs): Likewise. | |
6043 | * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c. | |
6044 | (_bfd_coff_read_internal_relocs): Likewise. | |
6045 | ||
ee9f09cd ILT |
6046 | * elflink.h (elf_link_add_object_symbols): Correct conditions |
6047 | under which type and size change warnings are issued. | |
6048 | ||
78b31b6b ILT |
6049 | Tue Oct 10 18:32:46 1995 Ian Lance Taylor <[email protected]> |
6050 | ||
6051 | * coffgen.c (coff_count_linenumbers): Don't count line numbers for | |
6052 | a symbol which is not in a real section. | |
6053 | (coff_write_native_symbol): Corresponding change. | |
6054 | ||
6055 | * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from | |
6056 | coff_link_hash_newfunc and make non-static. | |
6057 | (_bfd_coff_link_hash_table_init): New function, broken out of | |
6058 | _bfd_coff_link_hash_table_create. | |
6059 | (_bfd_coff_link_hash_table_create): Use it. | |
6060 | (process_embedded_commands): Make static. | |
6061 | * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare. | |
6062 | (_bfd_coff_link_hash_table_init): Declare. | |
6063 | * libcoff.h: Rebuild. | |
6064 | ||
6065 | * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype | |
6066 | field in XCOFF tdata. | |
6067 | (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef | |
6068 | U802ROMAGIC, for clarity. Try to set arch and machine correctly | |
6069 | based on cputype stored in a.out header, or in n_type of initial | |
6070 | .file symbol. | |
6071 | (coff_write_object_contents): Set cputype correctly in a.out | |
6072 | header. | |
6073 | (coff_slurp_symbol_table): Add casts to file_ptr to avoid | |
6074 | warnings. | |
6075 | * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field. | |
6076 | (coff_swap_aouthdr_out): Swap out cputype field. Don't clear | |
6077 | old resv1 field. | |
6078 | * libcoff-in.h (struct xcoff_tdata): Add cputype field. | |
6079 | * libcoff.h: Rebuild. | |
6080 | ||
6081 | * cpu-rs6000.c (rs6000_compatible): New static function. | |
6082 | (bfd_rs6000_arch): Use it. | |
6083 | * cpu-powerpc.c (powerpc_compatible): New static function. | |
6084 | (arch_info_struct): Define various flavours of PowerPC. | |
6085 | (bfd_powerpc_arch): Use powerpc_compatible. Point at | |
6086 | arch_info_struct. | |
6087 | ||
9dd7e56f FF |
6088 | Tue Oct 10 10:50:46 1995 Fred Fish <[email protected]> |
6089 | ||
78b31b6b | 6090 | * Makefile.in (FLAGS_TO_PASS): Remove BISON. |
9dd7e56f | 6091 | |
8235c112 ILT |
6092 | Tue Oct 10 01:28:29 1995 Ian Lance Taylor <[email protected]> |
6093 | ||
6094 | * elflink.h (elf_link_add_object_symbols): Don't warn about | |
6095 | changing the size or type if the old definition was weak. | |
6096 | ||
0322af0d ILT |
6097 | Mon Oct 9 11:24:08 1995 Ian Lance Taylor <[email protected]> |
6098 | ||
49488f2b ILT |
6099 | * coffcode.h (combined_entry_type): Add fix_line field. |
6100 | (coff_slurp_line_table): Warn if we try to set the lineno field of | |
6101 | a symbol twice. | |
6102 | (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and | |
6103 | C_EINCL by setting fix_line. Fix C_BSTAT symbol value. | |
6104 | * coffgen.c (coff_mangle_symbols): Handle fix_line. | |
6105 | (coff_write_symbol): Only use N_DEBUG if the symbol is in the | |
6106 | absolute section. | |
6107 | (coff_print_symbol): Print fix_value symbols in a useful fashion. | |
6108 | * libcoff.h: Rebuild. | |
6109 | ||
5f710a3a ILT |
6110 | * libcoff-in.h (struct xcoff_tdata): Define. |
6111 | (xcoff_data): Define. | |
6112 | * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union. | |
6113 | * bfd-in2.h, libcoff.h: Rebuild. | |
6114 | * coff-rs6000.c (xcoff_mkobject): New static function. | |
6115 | (coff_mkobject): Define. | |
6116 | (xcoff_copy_private_bfd_data): New static function. | |
6117 | (coff_bfd_copy_private_bfd_data): Define. | |
6118 | (rs6000coff_howto_table): Change R_TOC complain_on_overflow from | |
6119 | signed to bitfield. | |
6120 | (rs6000coff_vec): Add DYNAMIC to object_flags. | |
6121 | * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and | |
6122 | .loader sections specially. | |
6123 | (coff_new_section_hook): If RS6000COFF_C, get the .text and .data | |
6124 | section alignment from the XCOFF tdata information. | |
6125 | (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on | |
6126 | F_SHROBJ, and copy the extra a.out header information into the | |
6127 | XCOFF tdata structure. | |
6128 | (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ, | |
6129 | F_DYNLOAD and the extra a.out header information. | |
6130 | (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or | |
6131 | C_HIDEXT symbol with attached csect information. | |
6132 | * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap | |
6133 | in the o_maxdata field. | |
6134 | (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields. | |
6135 | * coffgen.c (coff_renumber_symbols): Don't move any symbol to the | |
6136 | end if BSF_NOT_AT_END is set. | |
3f2c5b2d | 6137 | |
0322af0d ILT |
6138 | * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to |
6139 | _bfd_read_ar_hdr_fn. | |
6140 | * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly. | |
6141 | * bfd-in2.h, libbfd.h: Rebuild. | |
6142 | * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr | |
6143 | return value. | |
6144 | (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise. | |
6145 | (bfd_slurp_bsd_armap_f2): Likewise. | |
6146 | (_bfd_slurp_extended_name_table): Likewise. | |
6147 | ||
3266eaff KR |
6148 | Fri Oct 6 16:18:35 1995 Ken Raeburn <[email protected]> |
6149 | ||
6150 | Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]> | |
6151 | ||
6152 | * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS | |
6153 | when the symbol table is empty. | |
6154 | ||
6155 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve | |
6156 | space for section symbols, since we don't output them either. | |
6157 | (elf_m68k_adjust_dynindx): Removed. | |
6158 | ||
6159 | * ptrace-core.c (rawptr): Make it a local variable of | |
6160 | ptrace_unix_core_file_p. | |
3266eaff | 6161 | |
249479fa MM |
6162 | Fri Oct 6 12:24:47 1995 Michael Meissner <[email protected]> |
6163 | ||
45b5d2f0 MM |
6164 | * coff-rs6000.c (xcoff_write_archive_contents): Return false, not |
6165 | NULL. | |
6166 | ||
249479fa MM |
6167 | * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and |
6168 | Mac object file formats. | |
6169 | ||
c53fac12 ILT |
6170 | Fri Oct 6 12:04:02 1995 Ian Lance Taylor <[email protected]> |
6171 | ||
4372f33f ILT |
6172 | * coffgen.c (coff_fix_symbol_name): Don't try to set up file |
6173 | auxent if there isn't one. | |
6174 | (coff_write_symbols): If there is no file auxent, use SYMNMLEN | |
6175 | rather than FILNMLEN as the maximum name length. | |
6176 | ||
0fc9ada9 ILT |
6177 | * coffcode.h (bfd_coff_backend_data): Add new field |
6178 | _bfd_coff_print_aux. | |
6179 | (bfd_coff_print_aux): New static function. | |
6180 | (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the | |
6181 | scnlen field of an XTY_LD csect aux entry. | |
6182 | (coff_print_aux): New static function. | |
6183 | (coff_slurp_symbol_table): Don't pointerize scnlen field; now done | |
6184 | in coff_pointerize_aux_hook. | |
6185 | (bfd_coff_std_swap_table): Initialize new field. | |
6186 | * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux. | |
6187 | * libcoff.h: Rebuild. | |
6188 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field. | |
6189 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6190 | ||
7860fe38 ILT |
6191 | * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG |
6192 | if there are symbols, for native AIX ld compatibility. | |
6193 | ||
c80cc833 ILT |
6194 | * coffcode.h (bfd_coff_backend_data): Add new field |
6195 | _bfd_coff_pointerize_aux_hook. | |
6196 | (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C | |
6197 | or I960, and as 0 otherwise. | |
6198 | (bfd_coff_std_swap_table): Initialize new field. | |
6199 | * libcoff.h: Rebuild. | |
6200 | * coffgen.c (coff_pointerize_aux): Change parameters to take | |
6201 | symbol pointer instead of type and class, and to take aux index. | |
6202 | Call _bfd_coff_pointerize_aux_hook if it is defined. | |
6203 | (coff_get_normalized_symtab): Always call coff_pointerize_aux. | |
6204 | * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields. | |
6205 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6206 | ||
c53fac12 ILT |
6207 | * coff-rs6000.c: Add full support for AIX archives. Rewrite old |
6208 | read-only/host-only support. | |
6209 | ||
6210 | * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be | |
6211 | BSF_LOCAL. | |
d11e6b52 ILT |
6212 | (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if |
6213 | RS6000COFF_C. | |
c53fac12 ILT |
6214 | |
6215 | * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify | |
6216 | BFD_JUMP_TABLE_ARCHIVE accordingly. | |
6217 | * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare. | |
6218 | (_bfd_compute_and_write_armap): Declare. | |
6219 | (_bfd_generic_read_ar_hdr): Declare. | |
6220 | (_bfd_read_ar_hdr): Define. | |
6221 | (_bfd_noarchive_read_ar_hdr): Define. | |
6222 | (_bfd_archive_bsd_read_ar_hdr): Define. | |
6223 | (_bfd_archive_coff_read_ar_hdr): Define. | |
6224 | * archive.c: Change all callers of _bfd_snarf_ar_hdr to call | |
6225 | _bfd_read_ar_hdr instead. | |
6226 | (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr. | |
6227 | (_bfd_compute_and_write_armap): Rename from | |
6228 | compute_and_write_armap. Make non-static. Change all callers. | |
6229 | * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather | |
6230 | than _bfd_snarf_ar_hdr. | |
6231 | * aout-target.h (MY_read_ar_hdr): Define if not defined. | |
6232 | * ieee.c (ieee_read_ar_hdr): Define. | |
6233 | * libecoff.h (_bfd_ecoff_read_ar_hdr): Define. | |
6234 | * oasys.c (oasys_read_ar_hdr): Define. | |
6235 | * som.c (som_read_ar_hdr): Define. | |
6236 | * bfd-in2.h, libbfd.h: Rebuild. | |
6237 | ||
f8e47484 SC |
6238 | Thu Oct 5 14:04:07 1995 steve chamberlain <[email protected]> |
6239 | ||
6240 | * peicode.c (coff_swap_filehdr_in): If symptr is | |
6241 | zero, there aren't any symbols, even if nsyms is set. | |
6242 | ||
2b874a2d ILT |
6243 | Thu Oct 5 11:45:02 1995 Ian Lance Taylor <[email protected]> |
6244 | ||
aca73687 ILT |
6245 | * libecoff.h (struct ecoff_backend_data): Add adjust_headers |
6246 | field. | |
6247 | * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha | |
6248 | sections, and set styp correctly for them: .got, .hash, .dynamic, | |
6249 | .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment. | |
6250 | (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section | |
6251 | types. | |
6252 | (ecoff_sort_hdrs): New static function. | |
6253 | (ecoff_compute_section_file_positions): Return boolean, not void. | |
6254 | Sort the sections by VMA before looking through them. Put the | |
6255 | first non SEC_ALLOC section on a new page. Put every SEC_ALLOC | |
6256 | section on an appropriate boundary within the page. | |
6257 | (ecoff_compute_reloc_file_positions): Check return value of | |
6258 | ecoff_compute_section_file_positions. | |
6259 | (_bfd_ecoff_set_section_contents): Likewise. | |
6260 | (_bfd_ecoff_write_object_contents): Check for various Alpha | |
6261 | section types when incrementing text_size and data_size. Call | |
6262 | adjust_headers backend function if it exists. | |
6263 | * coff-alpha.c (alpha_adjust_headers): New static function. | |
6264 | (alpha_ecoff_backend_data): Initialize adjust_headers field. | |
6265 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6266 | ||
2b874a2d ILT |
6267 | * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6. |
6268 | ||
c780e5db JL |
6269 | Wed Oct 4 18:15:02 1995 Jeff Law ([email protected]) |
6270 | ||
6271 | * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead | |
6272 | of ALTERNATE_AIX_CORE_FORMAT. | |
6273 | * configure.in (aix4): No longer need CORE_FLAGS. | |
6274 | * configure: Updated. | |
6275 | ||
2a01c351 KR |
6276 | Wed Oct 4 15:36:36 1995 Ken Raeburn <[email protected]> |
6277 | ||
6278 | NS32k changes from Ian Dall: | |
6279 | * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New | |
6280 | macros. | |
6281 | (aout_link_input_section_std, aout_link_input_section_ext, | |
6282 | aout_link_reloc_link_order): Call them instead of _bfd_* | |
6283 | versions. | |
6284 | * aout-target.h (MY_exec_header_not_counted): New macro, defaults | |
6285 | to zero. | |
6286 | (backend_data): Use it instead of hardcoded zero. | |
6287 | ||
6288 | * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro. | |
6289 | (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi. | |
6290 | ||
6291 | * ns32knetbsd.c: Include bfd.h. | |
6292 | (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros. | |
6293 | (MY_bfd_reloc_type_lookup): Declare function too. | |
6294 | * pc532-mach.c (set_sizes): Don't declare. | |
6295 | (MY_text_includes_header, MY_exec_header_not_counted): Define. | |
6296 | (backend_data, MY_backend_data): Don't define. | |
6297 | ||
6298 | * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and | |
6299 | ns32k-*-lites* like ns32k-*-netbsd*. | |
6300 | ||
6301 | * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to | |
6302 | compile on lites. | |
6303 | ||
5944d75b ILT |
6304 | Wed Oct 4 14:15:52 1995 Ian Lance Taylor <[email protected]> |
6305 | ||
6306 | * coffcode.h (coff_write_object_contents): Restore setting | |
6307 | f_timdat to 0, deleted on August 22. | |
6308 | ||
db344f82 SC |
6309 | Tue Oct 3 16:28:32 1995 steve chamberlain <[email protected]> |
6310 | ||
6311 | * coffcode.h (coff_bfd_copy_private_symbol_data, | |
6312 | coff_bfd_copy_private_section_data, | |
6313 | coff_bfd_copy_private_bfd_data): ifdef to allow overrides. | |
6314 | * peicode.h (coff_bfd_copy_private_bfd_data): New | |
6315 | (pe_bfd_copy_private_bfd_data): New. | |
6316 | (coff_swap_scnhdr_in): Swap bss size into the right place. | |
6317 | (pe_print_private_bfd_data): Add some newlines. | |
5944d75b | 6318 | |
c780e5db | 6319 | Tue Oct 3 11:53:04 1995 Jeff Law ([email protected]) |
97f1feda JL |
6320 | |
6321 | * som.c (setup_sections): Don't die if a space has no subspaces. | |
6322 | ||
3d7c42c9 ILT |
6323 | Mon Oct 2 14:08:55 1995 Ian Lance Taylor <[email protected]> |
6324 | ||
6325 | * elflink.h (elf_link_add_object_symbols): Don't let a weak | |
6326 | dynamic symbol override a common symbol. Don't change the size or | |
6327 | type if they have been set and the new symbol is not a definition. | |
6328 | Warn if the size or type changes. | |
6329 | ||
c780e5db | 6330 | Sun Oct 1 01:34:41 1995 Jeff Law ([email protected]) |
709af562 JL |
6331 | |
6332 | * som.c (som_begin_writing): Don't write the symbol table or | |
6333 | symbol strings. | |
6334 | (som_finish_writing): Write them here. Place them after the | |
6335 | subspace data, but before the relocs. | |
6336 | ||
6337 | Fri Sep 29 11:01:55 1995 Ian Lance Taylor <[email protected]> | |
6338 | ||
6339 | * sunos.c (sunos_add_one_symbol): Just pass false, not | |
6340 | info->shared_library, to sunos_create_dynamic_sections. | |
6341 | (sunos_scan_ext_relocs): Don't warn about a reloc in the .text | |
6342 | section. | |
6343 | (sunos_check_dynamic_reloc): Remove .text section assertion. | |
6344 | ||
7009e451 SS |
6345 | Thu Sep 28 18:48:47 1995 Stan Shebs <[email protected]> |
6346 | ||
6347 | * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*. | |
6348 | * configure, configure.in: Add pmac_xcoff_vec case. | |
6349 | * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. | |
6350 | * coff-pmac.c: New file, PowerMac XCOFF support. | |
6351 | * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. | |
6352 | * targets.c (pmac_xcoff_vec): Declare. | |
6353 | ||
6354 | * mpw-config.in: Various changes to be compatible with the | |
6355 | autoconf-based configury. | |
6356 | * mpw-make.sed: New file, sed commands to translate Unix | |
6357 | makefile into MPW syntax. | |
6358 | * mpw-make.in: Remove. | |
6359 | * hosts/mpw.h: Remove. | |
6360 | * bfd-in.h, bfd-in2.h: If MPW, include the file that defines | |
6361 | true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED. | |
6362 | ||
b91537be SC |
6363 | Thu Sep 28 17:06:23 1995 steve chamberlain <[email protected]> |
6364 | ||
6365 | * binary.c (binary_get_symtab): Return an empty string on error. | |
6366 | * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB. | |
6367 | ||
30360a6f KK |
6368 | Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie> |
6369 | ||
6370 | * coff-ppc.c: Reformatted according to gnu conventions | |
6371 | Removed irrelevant "if 0" code | |
6372 | ||
20d1e233 ILT |
6373 | Thu Sep 28 11:19:53 1995 Ian Lance Taylor <[email protected]> |
6374 | ||
69fd4fdd ILT |
6375 | * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak |
6376 | symbols rather than as indirect symbols. | |
6377 | (MY(slurp_symbol_table)): Don't do anything special about | |
6378 | secondary symbols. | |
6379 | ||
46b5a892 ILT |
6380 | * coffcode.h (coff_new_section_hook): Make sure that the alignment |
6381 | of .ctors and .dtors sections is no larger than 2. | |
6382 | ||
9db59230 ILT |
6383 | * sunos.c (sunos_add_one_symbol): Don't change |
6384 | bfd_link_hash_common to bfd_link_hash_new, since it may be on the | |
6385 | undef list. | |
6386 | (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the | |
6387 | dynamic symbols when creating a shared library. | |
6388 | (sunos_scan_ext_relocs): Handle relocs correctly when creating a | |
6389 | shared library. | |
6390 | (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as | |
6391 | written even if it is not defined in a regular object. | |
6392 | (sunos_write_dynamic_symbol): Use plt_offset for the address of | |
6393 | the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT | |
6394 | rather than the constant 22. | |
6395 | (sunos_check_dynamic_reloc): Handle creating a shared library. | |
6396 | (sunos_finish_dynamic_link): Set the first entry in the GOT to | |
6397 | zero when creating a shared library. | |
6398 | * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC, | |
6399 | write it out at the start of the symbol table. | |
6400 | ||
20d1e233 ILT |
6401 | * Makefile.in (BFD32_BACKENDS): Add coff-arm.o. |
6402 | ||
a11e10fe DE |
6403 | Thu Sep 28 00:58:05 1995 Doug Evans <[email protected]> |
6404 | ||
6405 | * config.bfd: Add arm-*-coff. | |
6406 | * configure.in, configure: Add armcoff_{little,big}_vec. | |
6407 | * targets.c (armcoff_{little,big}_vec): Declare. | |
6408 | (bfd_target_vector): Add armcoff_{little,big}_vec. | |
6409 | * coff-arm.c (armcoff_{little,big}_vec): Always define. | |
6410 | ||
99062cfc ILT |
6411 | Wed Sep 27 10:37:14 1995 Ian Lance Taylor <[email protected]> |
6412 | ||
6413 | * targets.c (bfd_find_target): Remove debugging code. | |
6414 | ||
deacbe0f KK |
6415 | Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie> |
6416 | ||
6417 | * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE | |
6418 | support on powerpc. | |
6419 | * Makefile.in: added *-ppc files | |
6420 | * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to | |
6421 | allow pe based .o's to be shared with other tools on ppc/NT | |
6422 | * config.bfd: added powerpc[le]-[pe|winnt] config support | |
6423 | * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec | |
6424 | * peicode.h: Added more section flags for PE on ppc | |
6425 | Added coff_swap_filehdr_out to allow peicode.h to be | |
6426 | used for non-image PE files on ppc. | |
6427 | Check for image, or not, before copying pe_opthdr | |
6428 | * targets.c: Added new bfd's | |
30360a6f KK |
6429 | * targets.c: Removed two inactive bfds that shouldn't have made it this |
6430 | far. | |
deacbe0f | 6431 | |
d22b02e0 MM |
6432 | Tue Sep 26 14:06:41 1995 Michael Meissner <[email protected]> |
6433 | ||
6434 | * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use | |
6435 | explicit values to initialize all relocs. Change all users. | |
6436 | (ppc_elf_brtaken_inner): New function to handle branch predicition | |
6437 | relocs. | |
6438 | (ppc_elf_brtaken_reloc): Ditto. | |
6439 | (ppc_elf_howto_raw): Use new functions. Make sure all unsupported | |
6440 | relocs use ppc_elf_unsupported_reloc. | |
6441 | (ppc_elf_merge_private_bfd_data): Keep track of whether an error | |
6442 | needs to be reported. | |
6443 | (ppc_elf_relocate_section): Support branch prediction relocs. | |
6444 | ||
fcf490c0 ILT |
6445 | Tue Sep 26 12:48:05 1995 Ian Lance Taylor <[email protected]> |
6446 | ||
e6cb7b41 ILT |
6447 | * bfd.c (bfd_assert): Remove \n from string passed to |
6448 | _bfd_error_handler. | |
6449 | ||
1af85fbb ILT |
6450 | * coff-i386.c: (TWO_DATA_SECS): Don't define. |
6451 | * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook. | |
6452 | (bfd_coff_make_section_hook): Don't define. | |
6453 | (coff_make_section_hook): Remove. | |
6454 | (sec_to_styp_flags): Remove TWO_DATA_SECS case. | |
6455 | (styp_to_sec_flags): Likewise. | |
6456 | (coff_write_object_contents): Likewise. | |
6457 | (bfd_coff_std_swap_table): Don't initialize make_section_hook | |
6458 | field. | |
6459 | * libcoff.h: Rebuild. | |
6460 | * coffgen.c (make_a_section_from_file): Just call | |
6461 | bfd_make_section_anyway, not bfd_make_section or | |
6462 | bfd_coff_make_section_hook. | |
6463 | * ecoff.c (_bfd_ecoff_make_section_hook): Remove. | |
6464 | * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare. | |
6465 | * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize | |
6466 | make_section_hook field. | |
6467 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
6468 | ||
fcf490c0 ILT |
6469 | * aoutx.h (translate_from_native_sym_flags): Don't try to stuff |
6470 | pointers into value field for warning and indirect symbols; just | |
6471 | leave the value field alone. | |
6472 | * linker.c (generic_link_add_symbol_list): Use next symbol for | |
6473 | warning and indirect symbols, rather than looking in symbol value. | |
6474 | * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr | |
6475 | parameter. Change all callers. Remove support for indirect | |
6476 | symbols; it didn't work anyhow. | |
6477 | (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable. | |
6478 | * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT. | |
6479 | * bfd-in2.h: Rebuild. | |
6480 | ||
cc47d19a MM |
6481 | Mon Sep 25 16:04:09 1995 Michael Meissner <[email protected]> |
6482 | ||
6483 | * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs, | |
6484 | go back to telling the tools this reloc operates on 32 bits. | |
6485 | ||
81449d47 ILT |
6486 | Mon Sep 25 11:48:02 1995 Ian Lance Taylor <[email protected]> |
6487 | ||
7a7fbffb ILT |
6488 | * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler |
6489 | rather than a direct fprintf. | |
6490 | * archive.c (_bfd_write_archive_contents): Likewise. | |
6491 | * coffcode.h (coff_slurp_symbol_table): Likewise. | |
6492 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise. | |
6493 | (ppc_elf_unsupported_reloc): Likewise. | |
6494 | (ppc_elf_relocate_section): Likewise. | |
6495 | * i386linux.c (linux_tally_symbols): Likewise. | |
6496 | (linux_finish_dynamic_link): Likewise. | |
6497 | * osf-core.c (osf_core_core_file_p): Likewise. | |
6498 | * rs6000-core.c (rs6000coff_get_section_contents): Likewise. | |
6499 | * som.c (som_sizeof_headers): Likewise. | |
6500 | * srec.c (srec_bad_byte): Likewise. | |
6501 | * bfd.c (bfd_assert): Likewise. Also change file to be const. | |
6502 | * libbfd-in.h (bfd_assert): Declare first parameter const. | |
6503 | * libbfd.h: Rebuild. | |
6504 | * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning | |
6505 | bfd_reloc_overflow is enough. | |
6506 | * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort. | |
6507 | * coff-h8500.c (rtype2howto): Likewise. | |
6508 | * coff-z8k.c (rtype2howto): Likewise. | |
6509 | * coffcode.h (dummy_reloc16_extra_cases): Likewise. | |
6510 | * elf.c (_bfd_elf_get_lineno): Likewise. | |
6511 | (_bfd_elf_no_info_to_howto): Likewise. | |
6512 | (_bfd_elf_no_info_to_howto_rel): Likewise. | |
6513 | * hp300hpux.c (convert_sym_type): Likewise. | |
6514 | (MY(swap_std_reloc_in)): Likewise. | |
6515 | * elf.c (bfd_section_from_shdr): Remove #if 0 sections. | |
6516 | ||
f1c6dd5d ILT |
6517 | * libaout.h (struct aoutdata): Add line_buf field. |
6518 | * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer | |
6519 | and filename_buffer. Instead, use a malloc buffer stored in the | |
6520 | new line_buf field. Remove length restrictions. | |
6521 | ||
f0500a41 ILT |
6522 | * coffgen.c (string_size): Remove static variable. |
6523 | (debug_string_size, debug_string_section): Likewise. | |
6524 | (coff_fix_symbol_name): Add string_size_p, debug_string_section_p, | |
6525 | and debug_string_size_p parameters. Use them instead of the | |
6526 | global variables. Change all callers. | |
6527 | (coff_write_symbol): Likewise. | |
6528 | (coff_write_alien_symbol, coff_write_native_symbol): Likewise. | |
6529 | (coff_write_symbols): Add local variables to replace removed | |
6530 | global variables. | |
6531 | ||
25b5a53d ILT |
6532 | * libcoff-in.h (struct coff_section_tdata): Add offset, i, |
6533 | function, and line_base fields. | |
6534 | * libcoff.h: Rebuild. | |
6535 | * coffgen.c (coff_find_nearest_line): Use section tdata to cache | |
6536 | information, rather than using static variables. | |
6537 | ||
641ac26a ILT |
6538 | * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC |
6539 | file. From Peter DeWolf <[email protected]>. | |
6540 | ||
81449d47 ILT |
6541 | * init.c (initialized): Remove static variable. |
6542 | (bfd_init): Don't bother setting initialized. | |
6543 | (bfd_check_init): Remove. | |
6544 | * opncls.c (_bfd_new_bfd): Don't call bfd_check_init. | |
6545 | * libbfd.h: Rebuild. | |
6546 | ||
138b9b81 PS |
6547 | Sat Sep 23 01:22:23 1995 Peter Schauer ([email protected]) |
6548 | ||
6549 | * rs6000-core.c (rs6000coff_core_p): Don't check the core file | |
6550 | size for full core dumps. Copy core file header to private data. | |
6551 | (rs6000coff_core_file_failing_command, | |
6552 | rs6000coff_core_file_failing_signal): New functions to extract | |
6553 | the file name and terminating signal from the core file. | |
6554 | * coff-rs6000.c: Use them. | |
6555 | ||
2ffbb79a ILT |
6556 | Fri Sep 22 17:44:47 1995 Ian Lance Taylor <[email protected]> |
6557 | ||
6558 | Change arch info to be const, initialized at compile time. | |
6559 | * archures.c: Reindent many functions. Change CONST to const. | |
6560 | (bfd_arch_info_type): Make arch_name const. Remove disassemble; | |
6561 | nothing set it anyhow. Make next const. | |
6562 | (bfd_arch_info_list): Remove. | |
6563 | (bfd_archures_list): Rename from archures_init_table. Change from | |
6564 | a table of function pointers to a table of bfd_arch_info_type | |
6565 | structure addresses. | |
6566 | (bfd_scan_arch): Rewrite accordingly. Return a const pointer. | |
6567 | (bfd_lookup_arch): Likewise. | |
6568 | (bfd_set_arch_info): Rewrite accordingly. Change argument to be a | |
6569 | const pointer. | |
6570 | (bfd_default_arch_struct): Make const. | |
6571 | (bfd_arch_init, bfd_arch_linkin): Remove. | |
6572 | (bfd_get_arch_info): Return a const pointer. | |
6573 | * init.c (bfd_init): Don't call bfd_arch_init. | |
6574 | * bfd.c (struct _bfd): Make arch_info const. | |
6575 | * bfd-in2.h: Rebuild. | |
6576 | * libbfd.h: Rebuild. | |
6577 | * configure.in: Put & before everything in $selarchs. | |
6578 | * configure: Rebuild. | |
6579 | * cpu-*.c: Change bfd_*_arch from a function which calls | |
6580 | bfd_arch_linkin to a const structure. | |
6581 | * ieee.c (ieee_object_p): Make arch const. | |
6582 | ||
02f85cda MM |
6583 | Fri Sep 22 16:23:18 1995 Michael Meissner <[email protected]> |
6584 | ||
6585 | * reloc.c (bfd_reloc_code_type): Add relocations to support all of | |
6586 | PowerPC V.4. | |
6587 | * bfd-in2.h: Regenerate. | |
6588 | * libbfd.h: Regenerate. | |
6589 | ||
6590 | * elf32-ppc.c (reloc_type): Update names to match current draft. | |
6591 | (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC | |
6592 | relative. Update names to current V.4 draft. | |
6593 | (ppc_elf_reloc_type_lookup): Add support for more relocations. | |
6594 | (ppc_elf_relocate_section): Rename relocations to match draft. | |
6595 | ||
dd82c578 MM |
6596 | Thu Sep 21 21:53:18 1995 Michael Meissner <[email protected]> |
6597 | ||
6598 | * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules | |
6599 | compiled with -mrelocatable-lib to be linked with either normal | |
6600 | modules or -mrelocatable modules. | |
6601 | ||
f69e888e ILT |
6602 | Wed Sep 20 12:03:26 1995 Ian Lance Taylor <[email protected]> |
6603 | ||
e18c4e8f ILT |
6604 | * coffcode.h (coff_write_object_contents): Clear the vstamp field |
6605 | in the a.out header. | |
6606 | ||
f69e888e ILT |
6607 | * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for |
6608 | a reloc against a local symbol, even if it's not a section. | |
6609 | ||
a5655244 ILT |
6610 | Tue Sep 19 17:02:26 1995 Ian Lance Taylor <[email protected]> |
6611 | ||
6612 | * targets.c (bfd_target): Remove unused align_power_min field. | |
6613 | * bfd-in2.h: Rebuild. | |
6614 | * All backends: Remove initialization of align_power_min. | |
6615 | ||
500d7394 SC |
6616 | Tue Sep 19 14:02:21 1995 steve chamberlain <[email protected]> |
6617 | ||
6618 | * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right. | |
500d7394 | 6619 | |
049df0a8 ILT |
6620 | Mon Sep 18 14:35:01 1995 Arne H. Juul <[email protected]> |
6621 | ||
6622 | * config.bfd (mips-dec-netbsd*): New target. | |
6623 | * configure.host (mips-dec-netbsd*): New host. | |
6624 | * configure.in (mips-dec-netbsd*): New native. | |
6625 | * configure: Rebuild. | |
6626 | ||
1862bbd8 ILT |
6627 | Fri Sep 15 10:24:36 1995 Ian Lance Taylor <[email protected]> |
6628 | ||
6629 | Make the COFF backend linker merge common types: | |
6630 | * cofflink.c (struct coff_debug_merge_element): Define. | |
6631 | (struct coff_debug_merge_type): Define. | |
6632 | (struct coff_debug_merge_hash_entry): Define. | |
6633 | (struct coff_debug_merge_hash_table): Define. | |
6634 | (coff_debug_merge_hash_table_init): Define. | |
6635 | (coff_debug_merge_hash_table_free): Define. | |
6636 | (coff_debug_merge_hash_lookup): Define. | |
6637 | (struct coff_final_link_info): Add debug_merge field. | |
6638 | (coff_debug_merge_hash_newfunc): New static function. | |
6639 | (_bfd_coff_final_link): Allocate and free debug_merge table. | |
6640 | (coff_link_input_bfd): Merge identical enum, struct and union | |
6641 | types. | |
6642 | ||
a208a70f ILT |
6643 | Thu Sep 14 14:53:58 1995 Ian Lance Taylor <[email protected]> |
6644 | ||
6645 | Convert i960 COFF to use COFF backend linker. | |
6646 | * coff-i960.c (coff_i960_relocate): Use a coff_section_data | |
6647 | structure to store the symbol being used. | |
6648 | (coff_i960_start_final_link): New static function. | |
6649 | (coff_i960_relocate_section): New static function. | |
6650 | (coff_i960_adjust_symndx): New static function. | |
6651 | (coff_start_final_link): Define. | |
6652 | (coff_relocate_section): Define. | |
6653 | (coff_adjust_symndx): Define. | |
6654 | * coffcode.h (bfd_coff_backend_data): Add new callback function | |
6655 | _bfd_coff_start_final_link. | |
6656 | (bfd_coff_start_final_link): Define. | |
6657 | (coff_start_final_link): Define if not defined. | |
6658 | (bfd_coff_std_swap_table): Add coff_start_final_link. | |
6659 | * cofflink.c (_bfd_coff_internal_syment_name): Make globally | |
6660 | visible. | |
6661 | (_bfd_coff_final_link): Call bfd_coff_start_final_link if the | |
6662 | function callback is not NULL. | |
6663 | * libcoff-in.h (struct coff_section_tdata): Add tdata field. | |
6664 | (_bfd_coff_internal_syment_name): Declare. | |
6665 | * libcoff.h: Rebuild. | |
6666 | * configure.in (icoff_big_vec): Add cofflink.o. | |
6667 | (icoff_little_vec): Likewise. | |
6668 | * configure: Rebuild. | |
6669 | ||
f0abedbe FF |
6670 | Wed Sep 13 17:38:23 1995 Fred Fish <[email protected]> |
6671 | ||
6672 | * Makefile.in (clean-info): Remove extraneous tab from line | |
6673 | following action. | |
6674 | ||
aa4b3dc5 ILT |
6675 | Wed Sep 13 13:27:53 1995 Ian Lance Taylor <[email protected]> |
6676 | ||
6677 | * cofflink.c (coff_link_input_bfd): Fail if a section with no | |
6678 | contents has relocs. | |
6679 | ||
4ca63811 | 6680 | Thu Sep 12 12:45:34 1995 steve chamberlain <[email protected]> |
beee31b1 SC |
6681 | |
6682 | * coffcode.h (coff_compute_section_file_positions): Keep the | |
6683 | raw size safe. | |
6684 | (coff_write_object_contents): Remember if it's a relocatable | |
6685 | file. | |
6686 | * libcoff-in.h (pe_data_type): New member 'has_reloc_section' | |
6687 | * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag | |
6688 | if relocatable file. Swap out saved raw size. | |
6689 | ||
ae115e51 ILT |
6690 | Tue Sep 12 12:14:33 1995 Ian Lance Taylor <[email protected]> |
6691 | ||
9521bac3 ILT |
6692 | * Makefile.in (do_maintainer_clean): Rename from do_realclean. |
6693 | (maintainer-clean): Rename from realclean, passing | |
6694 | maintainer-clean down to subdirectories, but leave realclean as a | |
6695 | synonym. | |
6696 | ||
4ca63811 ILT |
6697 | * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to |
6698 | warning callback. | |
6699 | ||
5aa4c3ff ILT |
6700 | * dep-in.sed: Remove config.h from generated dependencies. |
6701 | ||
396aaeb2 ILT |
6702 | * sunos.c (sunos_slurp_dynamic_symtab): New static function, |
6703 | broken out of sunos_canonicalize_dynamic_symtab. | |
6704 | (sunos_canonicalize_dynamic_symtab): Call new function | |
6705 | sunos_slurp_dynamic_symtab. | |
6706 | (sunos_add_dynamic_symbols): Add three new parameters. Return the | |
6707 | dynamic symbol table to the caller. | |
6708 | * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols | |
6709 | callback to override the symbols being read. | |
6710 | * libaout.h (struct aout_backend_data): Add three new parameters | |
6711 | to add_dynamic_symbols callback. | |
6712 | ||
ae115e51 ILT |
6713 | Extensive minor changes to avoid various gcc warnings. Also: |
6714 | * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. | |
6715 | * archures.c (bfd_arch_info_type): Change mach field from long to | |
6716 | unsigned long. | |
6717 | (bfd_lookup_arch): Change machine parameter from long to unsigned | |
6718 | long. | |
6719 | ||
b088e4b2 ILT |
6720 | Mon Sep 11 10:55:47 1995 Ian Lance Taylor <[email protected]> |
6721 | ||
6722 | * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find | |
6723 | a symbol with a non-zero plt_offset. | |
6724 | ||
1dff7902 ILT |
6725 | Fri Sep 8 11:47:24 1995 Ian Lance Taylor <[email protected]> |
6726 | ||
2b71e1e4 ILT |
6727 | * elfcode.h (align_file_position): Remove; not used. |
6728 | ||
1dff7902 ILT |
6729 | * configure.in: Only check for <sys/procfs.h> on a native system, |
6730 | and make sure it defines prstatus_t. | |
6731 | * configure: Rebuild. | |
6732 | ||
870015b1 ILT |
6733 | Thu Sep 7 12:48:01 1995 Ian Lance Taylor <[email protected]> |
6734 | ||
535c89f0 ILT |
6735 | * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test. |
6736 | ||
936b870c ILT |
6737 | * config.in: Rename from config.h.in. |
6738 | * configure.in: Call AC_CONFIG_HEADER with config.h:config.in. | |
a7873a6c | 6739 | Check for config.h:config.in when creating stamp-h. |
936b870c | 6740 | * configure: Rebuild. |
a7873a6c ILT |
6741 | * Makefile.in (stamp-h): Depend upon config.in rather than |
6742 | config.h.in. Set CONFIG_HEADERS to config.h:config.in when | |
6743 | calling config.status. | |
936b870c | 6744 | |
870015b1 ILT |
6745 | * Makefile.in (do_distclean): Remove config.h and stamp-h. |
6746 | (Makefile): Just rebuild Makefile. | |
6747 | (config.h, stamp-h): New targets. | |
6748 | * configure.in: Create stamp-h when rebuilding config.h. | |
6749 | * configure: Rebuild. | |
6750 | ||
b7577823 ILT |
6751 | Wed Sep 6 15:00:33 1995 Ian Lance Taylor <[email protected]> |
6752 | ||
6753 | * configure.in: Call AC_CONFIG_HEADER. Substitute | |
6754 | HOST_64BIT_LONG. Check that various header files exist. Check | |
6755 | that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc | |
6756 | and/or free need to be declared. Don't make a link to sysdep.h. | |
6757 | Define TRAD_HEADER for various hosts. | |
6758 | * configure: Rebuild. | |
6759 | * configure.host: Don't set my_host. Add definitions taken from | |
6760 | host header files for various entries. Remove entries which now | |
6761 | do nothing. | |
6762 | * acconfig.h: New file. | |
6763 | * config.h.in: New file, built by autoheader. | |
6764 | * sysdep.h: New file. | |
6765 | * Makefile.in (do_distclean): Don't remove sysdep.h. | |
6766 | (RECONFIG): Remove. | |
6767 | (LOCAL_H_DEPS): New variable. | |
6768 | ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and | |
6769 | $(RECONFIG). | |
6770 | ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise. | |
6771 | ($(OPTIONAL_BACKENDS)): Likewise. | |
6772 | (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than | |
6773 | looking through sysdep.h. | |
6774 | * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile. | |
6775 | (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG. | |
6776 | (fprintf_vma, sprintf_vma): Likewise. | |
6777 | (int64_type, uint64_type): Don't define. | |
6778 | * bfd-in2.h: Rebuild. | |
6779 | * archures.c, bfd.c, srec.c: Include <ctype.h>. | |
6780 | * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS. | |
6781 | * lynx-core.c: Include stuff from old hosts/lynx.h. | |
6782 | * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL), | |
6783 | rather than NO_FCNTL. | |
6784 | * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__ | |
6785 | rather than NATIVE_HPPAHPUX_COMPILER. | |
6786 | * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it | |
6787 | is defined. | |
6788 | * hosts/*.h: Remove all header files which merely include, | |
6789 | declare, and define things. Leave header files which define | |
6790 | information needed by trad-core.c. | |
6791 | ||
6792 | * aclocal.m4 (BFD_BINARY_FOPEN): Define. | |
6793 | (BFD_CC_FOR_BUILD): Define. | |
6794 | * configure.in: Use BFD_CC_FOR_BUILD. | |
6795 | * configure: Rebuild. | |
6796 | ||
7a93ebdd ILT |
6797 | Tue Sep 5 19:35:28 1995 Ian Lance Taylor <[email protected]> |
6798 | ||
4c2e4d0e ILT |
6799 | * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist. |
6800 | * configure: Rebuild. | |
6801 | ||
7a93ebdd ILT |
6802 | * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of |
6803 | a global symbol. | |
6804 | ||
866bb9e5 JM |
6805 | Tue Sep 5 12:48:26 1995 Jason Molenda ([email protected]) |
6806 | ||
6807 | * config.bfd: i386pe_ve -> i386pe_vec. | |
6808 | ||
2b79a104 ILT |
6809 | Mon Sep 4 14:02:43 1995 Ian Lance Taylor <[email protected]> |
6810 | ||
f515fb2f ILT |
6811 | * configure.host: Incorporate host Makefile fragments by setting |
6812 | shell variables. | |
6813 | * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and | |
6814 | AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a | |
6815 | value based on whether the code is being compiled by a cross | |
6816 | compiler. Don't substitute host_makefile_frag or frags. | |
6817 | * aclocal.m4: New file to define local AC_PROG_CC. | |
6818 | * configure: Rebuild. | |
6819 | * Makefile.in (INSTALL): Set to @INSTALL@. | |
6820 | (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@. | |
6821 | (INSTALL_DATA): Set to @INSTALL_DATA@. | |
6822 | (AR): Set to @AR@. | |
6823 | (CC): Define as @CC@. | |
6824 | (CFLAGS): Set to @CFLAGS@. | |
6825 | (CC_FOR_BUILD): Set to @CC_FOR_BUILD@. | |
6826 | (@host_makefile_frag@): Remove. | |
6827 | (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS) | |
6828 | after other options. | |
6829 | (config.status): Remove dependency upon @frags@. | |
6830 | * config/*.mh, config/README: Remove. | |
6831 | ||
2b79a104 ILT |
6832 | * config.bfd: Rewrite to incorporate the contents of the Makefile |
6833 | fragments by setting shell variables, rather than merely returning | |
6834 | the name of a Makefile fragment. | |
6835 | * configure.in: Use shell variables set by config.bfd rather than | |
6836 | looking at the target Makefile fragment files. Don't substitute | |
6837 | target_makefile_frag. Do substitute TDEFINES. | |
6838 | * configure: Rebuild. | |
6839 | * Makefile.in (@target_makefile_frag@): Remove. | |
6840 | (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@. | |
6841 | * config/*.mt: Remove. | |
6842 | ||
2cb159a5 KR |
6843 | Mon Sep 4 03:13:28 1995 Ken Raeburn <[email protected]> |
6844 | ||
6845 | * configure.in: Put changequote lines around "i[345]86" patterns | |
6846 | section of core file support. | |
6847 | ||
ef07871c JL |
6848 | Sun Sep 3 11:31:58 1995 Jeff Law ([email protected]) |
6849 | ||
6850 | * som.c (som_bfd_print_private_bfd_data): Define to use the | |
6851 | generic version. | |
6852 | ||
1613e075 SC |
6853 | Fri Sep 1 17:08:40 1995 steve chamberlain <[email protected]> |
6854 | ||
6855 | * peicode.h (coff_swap_aouthdr_in): Add ImageBase to | |
6856 | entry, text_start and data_start. | |
6857 | ||
a52a3ce8 ILT |
6858 | Fri Sep 1 18:06:28 1995 Ian Lance Taylor <[email protected]> |
6859 | ||
a21227ef ILT |
6860 | * Makefile.in (OFILES): Remove $(TDEPFILES). |
6861 | * config/apollo.mt (TDEPFILES): Remove. | |
6862 | * config/README: Update. | |
6863 | ||
a52a3ce8 ILT |
6864 | * configure.in: For a native configuration, set COREFILE and |
6865 | COREFLAG based on the canonical host name. | |
6866 | * configure: Rebuild. | |
6867 | * Makefile.in: Rebuild dependencies. | |
6868 | (ALL_CFLAGS): Add @COREFLAG@. | |
6869 | (OFILES): Replace $(HDEPFILES) with @COREFILE@. | |
6870 | * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file | |
6871 | support routines. Check LYNX_CORE rather than HOST_LYNX. | |
6872 | * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX. | |
6873 | * i386lynx.c: Likewise. | |
6874 | * m68klynx.c: Likewise. | |
6875 | * sparclynx.c: Likewise. | |
6876 | * rs6000-core.c: Check AIX_CORE rather than HOST_AIX. | |
6877 | * *-core.c: Comment changes. | |
6878 | * config/decstation.mh (HDEPFILES): Remove. | |
6879 | (HDEFINES): Remove -DTRAD_CORE. | |
6880 | * config/irix3.mh (RANLIB): Remove. | |
6881 | * config/irix4.mh (HDEPFILES, RANLIB): Remove. | |
6882 | (HDEFINES): Remove -DIRIX_CORE. | |
6883 | * config/riscos.mh (RANLIB, HDEPFILES): Remove. | |
6884 | (HDEFINES): Remove -DTRAD_CORE. | |
6885 | * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove. | |
6886 | * config/ultra3.mh (RANLIB): Remove. | |
6887 | * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove. | |
6888 | * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove. | |
6889 | * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove. | |
6890 | * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove. | |
6891 | * config/hppahpux.mh, config/hppaosf.mh: Remove. | |
6892 | * config/i386aix.mh, config/i386bsd.mh: Remove. | |
6893 | * config/i386linux.mh, config/i386mach3.mh: Remove. | |
6894 | * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove. | |
6895 | * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove. | |
6896 | * config/mipsmach3.mh, config/news-mips.mh: Remove. | |
6897 | * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove. | |
6898 | * config/rs600.mh, config/rs6000lynx.mh: Remove. | |
6899 | * config/solaris2.mh, config/stratus.mh: Remove. | |
6900 | * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove. | |
6901 | * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove. | |
6902 | ||
d6f672b8 ILT |
6903 | Fri Sep 1 15:18:50 1995 Kazumoto Kojima <[email protected]> |
6904 | ||
6905 | * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or | |
6906 | DT_FINI entry if the appropriate symbol is not in the hash table. | |
6907 | ||
6908 | * libelf.h (struct elf_backend_data): Add create_program_headers | |
6909 | and want_hdr_in_seg fields. | |
6910 | * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not | |
6911 | defined. | |
6912 | (elf_backend_create_program_headers): Likewise. | |
6913 | (elfNN_bed): Initialize create_program_headers and | |
6914 | want_hdr_in_seg. | |
6915 | * elf.c (get_program_header_size): Call create_program_headers | |
6916 | backend routine. | |
6917 | (map_program_segments): Check want_hdr_in_seg backend field. Call | |
6918 | create_program_headers backend routine. | |
6919 | ||
6920 | * elf.c (assign_file_positions_except_relocs): Align non allocated | |
6921 | sections when creating an executable. | |
6922 | ||
6923 | * elfcode.h (elf_swap_phdr_in): Make non static. | |
6924 | (elf_swap_phdr_out): Make non static. | |
6925 | * libelf.h (bfd_elf32_swap_phdr_in): Declare. | |
6926 | (bfd_elf32_swap_phdr_out): Declare. | |
6927 | (bfd_elf64_swap_phdr_in): Declare. | |
6928 | (bfd_elf64_swap_phdr_out): Declare. | |
6929 | ||
6930 | * ecofflink.c (ecoff_collect_shuffle): New static function. | |
6931 | (_bfd_ecoff_get_accumulated_pdr): New function. | |
6932 | (_bfd_ecoff_get_accumulated_sym): New function. | |
6933 | (_bfd_ecoff_get_accumulated_ss): New function. | |
6934 | * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare. | |
6935 | (_bfd_ecoff_get_accumulated_sym): Declare. | |
6936 | (_bfd_ecoff_get_accumulated_ss): Declare. | |
6937 | * libbfd.h: Rebuild. | |
6938 | ||
0cb70568 ILT |
6939 | Fri Sep 1 13:20:25 1995 Ian Lance Taylor <[email protected]> |
6940 | ||
d6f672b8 ILT |
6941 | * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo. |
6942 | ||
0cb70568 ILT |
6943 | * elflink.h (elf_link_add_object_symbols): Handle indirect and |
6944 | warning symbols. If any section is named .gnu.warning.XXX, treat | |
6945 | the contents as a warning to be issued if the symbol XXX is | |
6946 | referenced. | |
6947 | (elf_link_output_extsym): For an indirect or warning symbol, just | |
6948 | output the symbol it points to. | |
6949 | ||
6950 | * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error | |
6951 | if bfd_hash_allocate fails, since it will already be set. | |
6952 | (generic_link_hash_newfunc): Likewise. | |
6953 | (archive_hash_newfunc): Likewise. | |
6954 | (hash_entry_bfd): New static function. | |
6955 | (_bfd_generic_link_add_one_symbol): Pass new arguments to warning | |
6956 | callback. Allocate a new warning using the hash table newfunc. | |
6957 | Use bfd_hash_replace to update the entry in the hash table, rather | |
6958 | than assuming we can copy the fields with structure assignment. | |
6959 | ||
6960 | * hash.c (bfd_hash_replace): New function. | |
6961 | * bfd-in.h (bfd_hash_replace): Declare. | |
6962 | * bfd-in2.h: Rebuild. | |
6963 | ||
f14db880 JSC |
6964 | Fri Sep 1 08:12:50 1995 James G. Smith <[email protected]> |
6965 | ||
6966 | * config.bfd: Add mips*vr4300-*-elf* target. | |
6967 | * config/mipsbvr4300.mt: Added. | |
6968 | ||
1613e075 | 6969 | See file ChangeLog.2 |
e6d739eb | 6970 | |
41126f15 JK |
6971 | \f |
6972 | Local Variables: | |
c6c7035c | 6973 | mode: change-log |
41126f15 | 6974 | left-margin: 8 |
6ec3bb6a ILT |
6975 | fill-column: 74 |
6976 | version-control: never | |
6977 | End: |