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