-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChangeLog-9899
More file actions
5605 lines (4190 loc) · 202 KB
/
ChangeLog-9899
File metadata and controls
5605 lines (4190 loc) · 202 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1999-12-29 Richard Henderson <[email protected]>
* elflink.h (bfd_elf,size_dynamic_sections): Don't export all
if no dynamic sections created.
1999-12-27 Nick Clifton <[email protected]>
* peicode.h (pe_bfd_object_p): Only define for PE format
targets.
1999-12-17 Nick Clifton <[email protected]>
* coff-i386.c (i3coff_object_p): Delete.
(i386coff_vec): Replace reference to i3coff_object_p with a
reference to coff_object_p.
* coff-mcore.c (pe_object_p): Delete.
* peicode.h (pe_bfd_object_p): New function: Detect the
presence of a PE format COFF object file. Also detect and
warn about the presence of LINK6 format Image Library Format
object files.
1999-12-16 Nick Clifton <[email protected]>
* coff-arm.c (NUM_ELEM): New macro.
(NUM_RELOCS): New macro: The number of known ARM relocs.
(RTYPE2HOWTO): Return NULL if the reloc type is out of range.
(coff_arm_rtype_to_howto): Return NULL if the reloc type is out
of range.
(bfd_arm_process_before_allocation): Produce a warning message if
an out of range symbol index is encountered.
1999-12-14 Nick Clifton <[email protected]>
* elflink.h (is_global_symbol_definition): New Function: Return
true iff the symbol is being given a global definition in this
bfd.
(elf_link_is_defined_archive_symbol): Do not bother processing
symbols for an archive element that has already been included
in the link.
Use is_global_symbol_definition().
1999-12-09 Andrew Cagney <[email protected]>
* config.bfd: Add support for sparc-*-netbsdelf* and
sparc-*-netbsdaout*.
1999-12-13 Nick Clifton <[email protected]>
* elflink.h (elf_link_is_defined_archive_symbol): Check to see
if the symbol is in the common section.
1999-12-10 Nick Clifton <[email protected]>
* elflink.h (elf_link_is_defined_archive_symbol): New
function: Decide if a symbol, in an archive map is there
because it is defined in the archive element, or because it is
just another common declaration of it.
(elf_link_add_archive_symbols): Use
elf_link_is_defined_archive_symbol to decide if an archive
element contain a reference to a common symbol should be
linked in or not.
1999-12-10 Nick Clifton <[email protected]>
* elflink.h: Revert previous patch.
* targets.c: Revert previous patch.
* libbfd-in2.h: Revert previous patch.
* libbfd.h: Revert previous patch.
* elfxx-target.h: Revert previous patch.
* archive.c: Revert previous patch.
* aout-target.h: Revert previous patch.
* aout-tic30.h: Revert previous patch.
* bfd.c: Revert previous patch.
* coff-alpha.c: Revert previous patch.
* coff-rs6000.c: Revert previous patch.
* elf64-mips.c: Revert previous patch.
* ieee.c: Revert previous patch.
* libecoff.h: Revert previous patch.
* oasys.c: Revert previous patch.
* som.c: Revert previous patch.
* vms.c: Revert previous patch.
1999-12-09 Nick Clifton <[email protected]>
* elflink.h (elf_link_add_archive_symbols): Add an archive
element even if contains a symbol which is currently only
considered to be a common.
* targets.c (struct bfd_target): Add new field
_bfd_allow_commons_in_armap.
* bfd-in2.h:Regenerate.
* libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
Define.
(_bfd_archive_bsd_allow_commons_in_armap): Define.
* libbfd.h: Regenerate.
* elfxx-target.h: If using COFF archive map, override
definition of allow_commons_in_armap and replace with
bfd_false.
* archive.c (bfd_compute_and_write_armap): Do not place common
symbols into the archive map unless _bfd_allow_commons_in_armap
returns true.
* aout-target.h (MY_allow_commons_in_armap): Define.
* aout-tic30.h (MY_allow_commons_in_armap): Define.
* bfd.c (bfd_allow_commons_in_armap): Define.
* coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
* coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
* elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
* ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
* libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
* oasys.c (oasys_allow_commons_in_armap): Define.
* som.c (som_allow_commons_in_armap): Define.
* vms.c (vms_allow_commons_in_armap): Define.
1999-12-07 Jim Blandy <[email protected]>
Add support for SSE registers in ELF core files.
* elf.c (elfcore_make_note_pseudosection): New function.
(elfcore_grok_prfpreg): Use it.
(elfcore_grok_prxfpreg): New function.
(elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
1999-12-03 Ian Lance Taylor <[email protected]>
* elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
value by 4 before storing it back in the field. From
Koundinya. K <[email protected]>.
Tue Nov 30 22:41:14 1999 Jeffrey A Law ([email protected])
* archures.c (bfd_mach_am33): Define.
* bfd-in2.h: Rebuilt.
* cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
* elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
(compute_function_info): Handle additional registers saved by
movm on the am33.
(elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
(_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
1999-11-29 Jim Blandy <[email protected]>
* elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
functions.
* bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
declarations.
1999-11-27 Michael Meissner <[email protected]>
* reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
internal use within gas for alpha explicit relocations.
(BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
(BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
(BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
(BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
(BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
(BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
* elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
BFD_RELOC_ALPHA_USER_*.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
1999-11-26 Fred Fish <[email protected]>
* elf.c (elfcore_read_notes): Add prototype for static function.
(_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
(bfd_section_from_phdr): Replacement function that calls
_bfd_elf_make_section_from_phdr for generic segment types and
backend fucntion pointed to by elf_backend_section_from_phdr for
backend specific segment types.
(_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
now called by _bfd_elf_make_section_from_phdr. Note that this func
is now just a stub between the caller and bfd_section_from_phdr.
* elf-bfd.h (struct elf_backend_data): Add new function pointer
elf_backend_section_from_phdr.
(elf_backend_section_from_phdr): Add prototype.
* elfxx-target.h (elf_backend_section_from_phdr): Define default.
(elfNN_bed): Add elf_backend_section_from_phdr.
1999-11-25 Nick Clifton <[email protected]>
* coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
SEC_CODE and SEC_READONLY flags to glue sections.
* elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
SEC_CODE and SEC_READONLY flags to glue sections.
1999-11-20 Nick Clifton <[email protected]>
* coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
delta.
1999-11-19 Catherine Moore <[email protected]>
* elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
(elf_cpu32_plt_entry): Likewise.
1999-11-18 Nick Clifton <[email protected]>
* coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
for RVA relocs.
(coff_mcore_relocate_section): Initialise addend to 0.
Special case processing of RVA reloc.
1999-11-17 Richard Henderson <[email protected]>
* elf-bfd.h (struct elf_backend_data): Reorder collect and
type_change_ok; add sign_extend_vma.
* elf32-mips.c (elf_backend_sign_extend_vma): Define.
* elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
(elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
* elfxx-target.h (elf_backend_sign_extend_vma): Default.
(elfNN_bed): Follow struture changes.
1999-11-09 Ian Lance Taylor <[email protected]>
* libbfd.c (bfd_read): Check result of read against desired result
using !=, not <.
(_bfd_generic_get_section_contents): Set bfd_error if the seek is
invalid compared to the section size.
* ieee.c (ieee_slurp_debug): Get the length of the debug
information right if there is no data part.
Tue Nov 2 01:44:41 1999 Jeffrey A Law ([email protected])
* som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
1999-10-28 Ian Lance Taylor <[email protected]>
* elflink.h (elf_bfd_final_link): Make last_local signed.
1999-10-27 Ian Lance Taylor <[email protected]>
* stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
starts with a zero.
Sat Oct 23 17:36:12 1999 Andrew Cagney <[email protected]>
* archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
bfd_mach_d10v_ts3.
* cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
* bfd-in2.h: Regenerate.
1999-10-15 Andrew Haley <[email protected]>
* dwarf1.c (parse_die): Fail to parse a die if its length is zero.
Sun Oct 17 17:19:00 1999 Jeffrey A Law ([email protected])
* libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
1999-10-08 Ian Lance Taylor <[email protected]>
* elflink.h (elf_merge_symbol): When overriding a weak symbol with
a defined symbol in a shared library, clear the DEF_DYNAMIC flag
too.
Fri Oct 8 13:03:45 1999 Geoffrey Keating <[email protected]>
* elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
relocs also need the GP value.
(_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
properly. Handle sign-extension for R_MIPS_64 correctly. Correct
the GP value for R_MIPS_LITERAL relocs too. Handle
R_MIPS_64 relocs properly on big-endian MIPS.
(mips_elf_sign_extend): Behave properly with 'long long'.
(mips_elf_highest): Correct typo.
Mon Oct 4 17:49:45 1999 Nick Clifton <[email protected]>
* cpu-m32r.c (arch_info_struct): New static global.
(bfd_m32r_arch): Refer to it.
* elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
(m32r_elf_print_private_bfd_data): Ditto.
(m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
* archures.c (bfd_mach_m32rx): Define it.
* bfd-in2.h: Rebuild.
1999-09-28 Fred Fish <[email protected]>
* targets.c (cisco_core_vec): Replaced with two new vecs ...
(cisco_core_big_vec): Add new bigendian vec.
(cisco_core_little_vec): Add new little endian vec.
* cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
(crash_info_locs): Add array of possible offsets.
(MASK_ADDR): Mask to apply to crash info offset.
(crashinfo_external): Add textbase, database, bssbase and
turn into a typedef.
(cisco_core_file_validate): Renamed from cisco_core_file_p.
Many small changes to account for additional hardware versions.
Pick a reasonable size for ".reg" section. Add a ".crash"
section to allow access to crashinfo_external struct.
(cisco_core_file_p): New version of this function that
iterates over crash_info_locs, calling cisco_core_file_validate.
(cisco_core_vec): Old big endian only vec replaced with ...
(cisco_core_big_vec): Add big endian version.
(cisco_core_little_vec): Add little endian version.
* configure.in (cisco_core_vec): Split to two new vectors ...
(cisco_core_big_vec): New target vector.
(cisco_core_little_vec): New target vector.
* configure: Regenerate.
* config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
to cisco_core_big_vec in targ_selvecs.
1999-09-28 Geoffrey Keating <[email protected]>
* elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
(mips_elf_relocate_got_local): Unused, delete.
(mips_elf_relocate_global_got): Unused, delete.
1999-09-24 Fred Fish <[email protected]>
* elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
to initialize it to something meaningful. Then use it to generate
more useful segment names.
Sun Sep 19 12:16:47 1999 Jeffrey A Law ([email protected])
* som.c (NO_PCREL_MODES): Define if the system does not define
R_SHORT_PCREL_MODE.
(hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
(som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
* libhppa.h (dis_assemble_22): New function.
(bfd_hppa_insn2fmt): Handle long branch.
* libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
in PA2.0.
1999-09-17 Alan Modra <[email protected]>
* coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
(reloc_howto_type howto_table): Tidy comments and whitespace.
1999-09-17 Nick Clifton <[email protected]>
* elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
previous delta. Set sec->gc_mark instead.
Thu Sep 16 11:21:13 1999 Catherine Moore <[email protected]>
* elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
(elf_cpu32_plt_entry): Likewise.
Thu Sep 16 10:48:17 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
* elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
symbol table, then just compute a suitable value (but do not
create a __gp symbol).
* elf-hppa.h (elf_hppa_relocate_section): Allow undefined
symbols when building shared libraries.
(elf_hppa_final_link_relocate): Correct handling of PCREL
relocations against undefined symbols.
1999-09-16 Nick Clifton <[email protected]>
* elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
interworking sections as linker created so that they will not
be removed by garbage collection.
Wed Sep 15 02:31:57 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
(elf_hppa_final_link_relocate): Consistently create an absolute
address, then subtract out the value of __gp.
1999-09-14 Michael Meissner <[email protected]>
* configure.in (Canonicalization of target names): Remove adding
${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
generates $ac_config_sub with a ${CONFIG_SHELL} already.
* configure: Regenerate.
1999-09-14 Nick Clifton <[email protected]>
* elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
Mitsubishi).
Mon Sep 13 20:01:47 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_record_segment_addrs): New function.
(elf_hppa_final_link): Initialize text_segment_base and
data_segment_base.
(elf_hppa_final_link_relocate): Handle SEGREL relocations.
* elf-hppa.h (elf_hppa_final_link): Remove unused variables.
(elf_hppa_final_link_relocate): Likewise.
(elf_hppa_relocate_insn): Likewise.
(elf_hppa_relocate_section): Initialize HOWTO.
1999-09-13 Donn Terry <[email protected]>
* coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
handling to support both GNU and MS objects.
* coffcode.h (coff_write_object_contents): Don't check reloc_count
when determining whether to set F_RELFLG.
1999-09-13 Philip Blundell <[email protected]>
* elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
PC24 relocs if the target is an undefined weak symbol.
(arm_add_to_rel): Fix compiler warning.
(elf32_arm_plt0_entry): Correct comments.
1999-09-13 Alan Modra <[email protected]>
* elfcode.h (write_relocs): Check for the_bfd NULL when handling
an absolute symbol in REL relocs.
Sun Sep 12 23:47:58 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
Stub SEGREL32. Return an error for any relocation not handled.
1999-09-12 Ian Lance Taylor <[email protected]>
* cofflink.c (coff_link_add_symbols): Look for special MSVC string
constant symbols, and avoid multiple definition errors on them.
1999-09-12 Donn Terry <[email protected]>
* libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
significant bit is set.
1999-09-11 Ian Lance Taylor <[email protected]>
* coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* elfcode.h (write_relocs): Handle an absolute symbol in REL
relocs as we do for RELA relocs.
1999-09-11 Donn Terry <[email protected]>
* libpei.h (_bfd_pei_final_link_postscript): Declare.
(coff_final_link_postscript): Define.
* peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
directory entries here.
(_bfd_pei_final_link_postscript): New function.
* peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
section flags based on the section name.
* peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
get the overflow of the s_nlnno field from the s_nreloc field.
* peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
the s_nlnno overflow of the .text section into the s_nreloc
field.
* peigen.c (add_data_entry): Declare.
(pei_swap_aouthdr_out): Get image size right. Set linker version
more intuitively.
(pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
(pe_print_idata): Code cleanup, print more info, get rid of (now)
extraneous ImageBase.
(pe_print_edata): Likewise.
(pe_print_pdata): Likewise. Print exception entries.
(pe_print_reloc): Likewise. Print MIPS_JMPADDR.
(tbl): Make const, add "UNKNOWN".
(_bfd_pe_print_private_bfd_data_common): Print timestamp.
(_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
section data directory.
(_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
* libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
* peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
* peicode.h (coff_get_symbol_info): Define.
* config.bfd (i[3456]86-*-interix*): Set targ_cflags to
-DSTRICT_PE_FORMAT.
* coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
than __INTERIX.
(coff_classify_symbol): Re-revert 1999-08-08 patch if
STRICT_PE_FORMAT.
* libpei.h: New file, broken out of peicode.h.
* peigen.c: New file, broken out of peicode.h.
* peicode.h: A bunch of code moved out to libpei.h and peigen.c.
* configure.in: Add peigen.lo to list of files required for each
PE target.
* Makefile.am: Rebuild dependencies.
(BFD32_BACKENDS): Add peigen.lo.
(BFD32_BACKENDS_CFILES): Add peigen.c.
(SOURCE_HFILES): Add libpei.h.
* configure, Makefile.in: Rebuild.
* peicode.h (coff_swap_scnhdr_in): Don't check for a special
section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
instead. Don't clear the s_paddr field for an uninitialized data
section.
* coffcode.h (coff_mkobject_hook): Set timestamp field in
coff_data_type to f_timdat.
* peicode.h (pe_mkobject_hook): Likewise.
* peicode.h (coff_swap_filehdr_in): Check the NT executable magic
number if COFF_IMAGE_WITH_PE.
* coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
(coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
there is no SEC_DEBUGGING section.
* peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
IMAGE_FILE_DEBUG_STRIPPED.
* pe-i386.c (COFF_LONG_FILENAMES): Define.
(COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* pei-i386.c (COFF_LONG_FILENAMES): Define.
(COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* coffswap.h (IMAGE_BASE): Don't define.
* pei-arm.c (IMAGE_BASE): Don't define.
* pei-i386.c (IMAGE_BASE): Don't define.
* pei-mcore.c (IMAGE_BASE): Don't define.
* pei-ppc.c (IMAGE_BASE): Don't define.
* cofflink.c (_bfd_coff_link_input_bfd): When writing out a
symbol, switch on the class when determining whether to modify the
value. For PE, don't modify the value of a C_FCN symbol not named
.bf.
* libbfd-in.h (_bfd_abort): Declare.
(abort): Define.
* bfd.c (_bfd_abort): New function.
* libbfd.h: Rebuild.
* coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
special handling.
* cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
don't write out the associated line numbers.
* cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
aux entries.
* cofflink.c (coff_link_add_symbols): Don't warn about symbol type
changes when the base type is unknown.
* coffgen.c (coff_print_symbol): Fix printing of aux record for
function symbols.
* syms.c (BSF_DEBUGGING_RELOC): Define.
* coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
symbols named .bf.
* coffgen.c (fixup_symbol_value): Relocate a symbol which has
BSF_DEBUGGING_RELOC set.
* bfd-in2.h: Rebuild.
1999-09-10 Ian Lance Taylor <[email protected]>
* ecoff.c (bfd_debug_section): Update initialization for new
comdat_info field.
(_bfd_ecoff_styp_to_sec_flags): Add section parameter.
* libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
1999-09-10 H.J. Lu <[email protected]>
* coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
_bfd_filnmlen field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.
Fri Sep 10 00:35:14 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
for FPTR relocs involving local symbols.
* elf-hppa.h (elf_hppa_final_link_relocate): Get the right
value for the stub address in a call through a stub.
Install the value for a local symbol directly into the DLT
instead of generating a reloc. Correctly handle FPTR64 relocs.
* elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
(elf_hppa_remark_useless_dynamic_symbols): Similarly.
(elf_hppa_final_link): Call them.
1999-09-10 Ian Lance Taylor <[email protected]>
* elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
(elf_adjust_dynamic_symbol): ...from here.
Wed Sep 8 17:56:11 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
relocation, remove them. SECREL64->LTOFF16WF.
(elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
DIR* relocations.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
GPREL* relocations.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
Handle LTOFF_TP* relocs.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
(elf_hppa_relocate_insn): Handle PCREL* relocs.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
DIR32, DIR64 and FPTR64 relocations.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
address of the .PARISC.global section.
(elf_hppa_relocate_section): Lookup and pass the PA64 hash
table entry elf_hppa_final_link_relocate. Do not give a warning
for a reloc against an external symbol if it has a PA64 hash
table entry.
(elf_hppa_final_link_relocate): Significantly rework. Handle
DLTIND relocations. Compute the final value of the relocation
before passing the value of elf_hppa_relocate_insn.
(elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
relocation support. Handle DLTIND relocation requests just like
DLTREL relocation requests. Simplify branch handling.
1999-09-08 Ulrich Drepper <[email protected]>
* elf-hppa.h (elf_hppa_relocate_section): Catch problems with
non-allocated section as done in i386 version.
(elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
statement since this is no know relocation.
Tue Sep 7 17:25:12 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
relocs.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
DLTREL14WD relocs.
(elf_hppa_relocate_insn): Similarly.
* elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
Pass the relocate type rather than the insn format to
elf_hppa_relocate_insn.
(elf_hppa_relocate_insn): Make switch dependent on relocation type
rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
1999-09-07 Ian Lance Taylor <[email protected]>
* coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
(bfd_coff_filnmlen): Define.
(bfd_coff_std_swap_table): Initialize new field.
* coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
than FILNMLEN.
(coff_write_symbols): Likewise.
(coff_get_normalized_symtab): Likewise.
* coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
* libcoff.h: Rebuild.
1999-09-06 Donn Terry <[email protected]>
* coffcode.h (sort_by_secaddr): New static function if
COFF_IMAGE_WITH_PE.
(coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
sections by VMA when assigning target_index values. Always set
virt_size.
* libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
* coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
pe_flags field.
* libcoff.h: Rebuild.
* coffcode.h (coff_set_custom_section_alignment): Add const to
declaration to match definition.
(coff_write_object_contents): Don't set F_AR32W(R)? if
COFF_WITH_PE.
* coff-i386.c (in_reloc_p): Add declaration.
(i386coff_vec): Simplify initialization of
application_section_flags.
* coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
version. Move COFF_WITH_PE specific code to new version.
(stype_to_sec_flags): Likewise. Add section parameter.
* coffgen.c (make_a_section_from_file): Set target_index before
calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
* libcoff.h: Rebuild.
* syms.c (stt): Add some PE/PEI section names.
(bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
symbol.
(bfd_symbol_info): Check for 'w'.
* section.c (struct bfd_comdat_info): Define.
(asection): Add comdat field.
(STD_SECTION): Initialize comdat field.
(bfd_make_section_anyway): Likewise.
* bfd-in2.h: Rebuild.
1999-09-06 Andreas Schwab <[email protected]>
* elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
to version symbols.
1999-09-06 Nick Clifton <[email protected]>
* elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
bfd_realloc instead of calloc and realloc.
1999-09-04 Steve Chamberlain <[email protected]>
* cpu-pj.c: New file.
* elf32-pj.c: New file.
* config.bfd (pj*): New cpu.
(pj-*-*, pjl-*-*): New targets.
* configure.in (bfd_elf32_pj_vec): New target vector.
(bfd_elf32_pjl_vec): New target vector.
* archures.c (bfd_arch_pj): Define.
* elf.c (prep_headers): Handle bfd_arch_pj.
* reloc.c: Define BFD_RELOC_PJ_* relocations.
* targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
to target vector list.
* Makefile.am: Rebuild dependencies.
(ALL_MACHINES): Add cpu-pj.lo.
(ALL_MACHINES_CFILES): Add cpu-pj.c.
(BFD32_BACKENDS): Add elf32-pj.lo.
(BFD32_BACKENDS_CFILES): Add elf32-pj.c.
* configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1999-09-04 Ian Lance Taylor <[email protected]>
* elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
* elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
and NON_GOT_REF from weak defined symbol to real symbol.
* elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
(elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
create a COPY reloc.
* elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
(elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
don't create a COPY reloc.
1999-09-03 Ian Lance Taylor <[email protected]>
* elflink.h (elf_bfd_final_link): When counting relocations, don't
count those in sections we are not including in the link.
Thu Sep 2 17:41:20 1999 Jeffrey A Law ([email protected])
* elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
field in hpux11 shared libraries.
1999-09-02 Nick Clifton <[email protected]>
* elflink.h (elf_gc_record_vtentry): Fix memory leak.
Wed Sep 1 13:34:29 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_add_symbol_hook): New function.
(elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
(elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
1999-08-31 Alexandre Petit-Bianco <[email protected]>
* elflink.h (record_link_assignment): When possible, keep the
original type of the symbol.
Mon Aug 30 15:26:48 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
tools were configured.
* elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
1999-08-26 Mark Mitchell <[email protected]>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
GOT entries for GOT16 relocations; they're not required.
1999-08-24 Nick Clifton <[email protected]>
From a patch submitted by Roland McGrath <[email protected]>
* config.bfd (arm-*-netbsd*): New target.
* configure.in (armnetbsd_vec): New target vector.
* configure: Regenerate
* targets.c (bfd_target_vector): Add &armnetbsd_vec.
* Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
(ALL_MACHINES_CFILES): Add armnetbsd.c.
(armnetbsd.lo): New rule with deps.
* Makefile.in: Regenerate.
* armnetbsd.c: New file: Definitions specific to arm-netbsd
target.
Tue Aug 24 00:25:58 1999 Jeffrey A Law ([email protected])
* som.c (som_slurp_symbol_table): Fix typo in comment.
Fri Aug 20 17:01:23 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_fake_sections): Compute section indices
here instead of using elf_section_data...
1999-08-19 Nick Clifton <[email protected]>
* coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
relocations into the base file.
(coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
we are building a base file.
1999-08-19 Nick Clifton <[email protected]>
* elf32-arm.h (arm_add_to_rel): New function. Add a value to
a REL style reloc.
(elf32_arm_relocate_section): Use arm_add_to_rel to increment
REL relocs when performing a partial relocation.
1999-08-18 Donn Terry <[email protected]>
* cofflink.c: Move definitions of N_TMASK, et. al., out of
_bfd_coff_link_input_bfd into top level.
* coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
(RTYPE2HOWTO): Return NULL if reloc type is out of range.
(coff_i386_rtype_to_howto): Likewise.
* coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
Completely ignore symbols which are all zero.
(dummy_reloc16_estimate): Add return 0.
* cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
variable copy to name_copy to avoid shadowing outer scope
variable.
* libcoff-in.h (coff_data_type): Change raw_syment_count field
from unsigned int to unsigned long. Add timestamp field.
* libcoff.h: Rebuild.
1999-08-17 H.J. Lu <[email protected]>
* elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
macro definition.
1999-08-17 Ian Lance Taylor <[email protected]>
* elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
for special section symbols.
* elflink.h (elf_merge_symbol): If we have no old BFD, check
BSF_DYNAMIC on the section symbol to see whether the old BFD is
dynamic.
1999-08-15 Mark Mitchell <[email protected]>
* elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
coincidence of variable names between old and new code.
1999-08-12 Nick Clifton <[email protected]>
* elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
(elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
and 'addend' parameter a 'bfd_signed_vma'.
(elf32_arm_final_link_relocate): Do not involve stubs in
R_ARM_THM_PC22 relocs relative to section symbols, they are long
jumps, not function calls.
1999-08-11 Robin Farine <[email protected]>
* elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
in R_ARM_PC24 relocs.
Tue Aug 10 12:48:09 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (elf_hppa_fake_sections): New function.
* elf32-hppa.c (elf_backend_fake_sections): Define.
* elf-hppa.h (elf_hppa_final_write_processing): Update for
recent changes to the arch_info structure.
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
R_HPPA_SEGBASE and R_HPPA_SEGREL32.
* cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
list.
Tue Aug 10 00:34:29 1999 Mark P. Mitchell <[email protected]>
Ralf Baechle <[email protected]>
* elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
output DT_MIPS_GOTSYM.
(_bfd_mips_elf_finish_dynamic_sections): Use the same value as
DT_MIPS_SYMTABNO if there are no global GOT symbols.
Tue Aug 10 00:21:08 1999 Mark P. Mitchell <[email protected]>
* elf32-mips.c (mips_elf_create_dynamic_relocation): Change
prototype. Handle local symbols. Add commentary.
(mips_elf_calculate_relocation): Adjust accordingly.
(_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
relocations.
* elflink.h (elf_bfd_final_link): Tweak last change.
1999-08-09 Mark Mitchell <[email protected]>
* elflink.h (elf_link_size_reloc_section): Use the counts in the
elf-section data to allocate just the right amount of relocation
space. Don't allocate the hash space twice.
(elf_bfd_final_link): Calculate the amount of space to allocate in
each relocation section.
Mon Aug 9 17:37:30 1999 Jeffrey A Law ([email protected])
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
64bit mode, generate a section relative relocation for a 32bit
wide relocation.
(elf_hppa_is_local_label_name): New function.
* elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
shared between 32bit and 64bit port.
1999-08-09 Mark Mitchell <[email protected]>
* elf32-mips.c (elf_mips_howto_table): Fix src_mask for
R_MIPS_GOT16 and R_MIPS_CALL16.
(mips_elf_got16_entry): Use mips_elf_high to calculate the value
to use when looking for a preexisting GOT entry.
1999-08-09 Jakub Jelinek <[email protected]>
* elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
not binutils.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1999-08-09 Geoff Keating <[email protected]>
* elflink.h (elf_link_output_extsym): Don't output a weak
reference to an undefined symbol just because it was defined weak
in a shared object.
1999-08-09 Eli Zaretskii <[email protected]>
* coffgen.c (coff_find_nearest_line): When looking for file, use
last best match rather than first. If address is beyond last line
number record, don't return the last line as the correct value.
1999-08-08 Ian Lance Taylor <[email protected]>
* section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
* bfd-in2.h: Rebuild.
1999-08-08 Mark Elbrecht <[email protected]>
* libcoff-in.h (struct coff_section_alignment_entry): Define.
* coffcode.h (coff_set_custom_section_alignment): New static
function.
(coff_section_alignment_table): New static array.
(coff_new_section_hook): Use coff_set_customer_section_alignment.
* coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
* libcoff.h: Rebuild.
1999-08-08 Ian Lance Taylor <[email protected]>
* Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
MKDEP.
* Makefile.in: Rebuild.
1999-08-08 Mumit Khan <[email protected]>
* section.c (SEC_SHARED): Define.
* coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
(styp_to_sec_flags): Likewise.
* peicode.h (coff_swap_scnhdr_out): Likewise.
* bfd-in2.h: Rebuild.
1999-08-08 Ian Lance Taylor <[email protected]>
* coffcode.h (coff_classify_symbol): Comment out part of
1999-08-05 change which breaks cygwin DLLs.
* acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
* aclocal.m4, configure: Rebuild.
1999-08-06 Ian Lance Taylor <[email protected]>
* section.c (global_syms): Only initialize union field if
__STDC__.