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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
|
2001-02-07 Todd Vierling <tv@wasabisystems.com>
* libbfd-in.h (bfd_target_vector): Change extern array to pointer.
* libbfd.h (bfd_target_vector): Likewise.
* targets.c (bfd_target_vector): Rename to _bfd_target_vector and
make static; create pointer reference named bfd_target_vector.
(_bfd_target_vector_entries): Calculate this based on the array
typed _bfd_target_vector.
2001-02-06 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
internal symbols are not dynamic.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
2001-02-06 Nick Clifton <nickc@redhat.com>
* Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
that it will not be pulled into the list of files that make up
po/POTFILES.in.
* Makefile.in: Regenerate.
* po/bfd.pot: Regenerate.
2001-02-06 H.J. Lu <hjl@gnu.org>
* bfd/peicode.h (coff_swap_filehdr_in): Remove the e_magic
checking.
(pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
external_PEI_IMAGE_hdr.
2001-02-06 Kazu Hirata <kazu@hxi.com>
* elf-m10200.c: Fix formatting.
2001-02-04 Nick Clifton <nickc@redhat.com>
* elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
rel, it will be handled later on.
2001-02-02 Fred Fish <fnf@ninemoons.com>
* Makefile.in: Fix typo.
2001-02-01 Kazu Hirata <kazu@hxi.com>
* elf-m10300.c: Fix formatting.
2001-01-30 Alan Modra <alan@linuxcare.com.au>
* elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
(elf_backend_get_symbol_type): Define.
(elf64_hppa_object_p): Set architecture and machine from elf
header flags.
2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
* elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
before mdebug.
2001-01-26 Richard Henderson <rth@redhat.com>
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
for non-default visibility.
* elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
delete ugly macro and replace with pretty function.
2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
* coff-go32.c: Update copyright.
* coff-stgo32.c: Likewise.
* coff-go32.c (COFF_LONG_FILENAMES): Define.
* coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
* coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
* coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2001-01-25 Kazu Hirata <kazu@hxi.com>
* bfd-in2.h: Rebuild.
* libbfd.h: Likewise.
2001-01-23 H.J. Lu <hjl@gnu.org>
* bfd-in2.h: Rebuild.
2001-01-23 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
is NULL or PRIV(vms_rec) is outside of the buffer.
2001-01-23 Kazu Hirata <kazu@hxi.com>
* coff64-rs6000.c: Fix formatting.
* coff-arm.c: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
* coff-pmac.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* elf32.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-sparc.c: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
* elfxx-ia64.c: Likewise.
* aoutx.h: Fix formatting.
* bfd.c: Likewise.
* bfd-in2.h: Likewise.
* bfd-in.h: Likewise.
* cpu-i386.c: Likewise.
* cpu-m68hc11.c: Likewise.
* dwarf2.c: Likewise.
* elf64-x86-64.c: Likewise.
* format.c: Likewise.
* freebsd.h: Likewise.
* hash.c: Likewise.
* hp300hpux.c: Likewise.
* hppabsd-core.c: Likewise.
* hpux-core.c: Likewise.
2001-01-22 Bo Thorsen <bo@suse.de>
* elf64-x86-64.c: Added PIC support for X86-64.
(elf64_x86_64_link_hash_newfunc): Function added.
(elf64_x86_64_link_hash_table_create): Likewise.
(elf64_x86_64_check_relocs): Likewise.
(elf64_x86_64_gc_mark_hook): Likewise.
(elf64_x86_64_gc_sweep_hook): Likewise.
(elf64_x86_64_adjust_dynamic_symbol): Likewise.
(elf64_x86_64_size_dynamic_sections): Likewise.
(elf64_x86_64_discard_copies): Likewise.
(elf64_x86_64_finish_dynamic_symbol): Likewise.
(elf64_x86_64_finish_dynamic_sections): Likewise.
(elf64_x86_64_relocate_section): Add relocation of PIC sections.
2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* Makefile.am (install-data-local): Make use of $(DESTDIR).
* Makefile.in: Regenerate.
2001-01-21 Kazu Hirata <kazu@hxi.com>
* coff-a29k.c: Fix formatting.
2001-01-19 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_check_relocs): Report files with bad
relocation section names.
(elf_i386_relocate_section): Report files with bad relocation
section names and return false.
2001-01-17 Bo Thorsen <bo@suse.de>
* targets.c: Alphabetize list of xvecs.
2001-01-14 Alan Modra <alan@linuxcare.com.au>
* config.bfd: Add linux target variant for elfxx-hppa.
* configure.in: Recognize bfd_elf32_hppa_linux_vec and
bfd_elf64_hppa_linux_vec.
* configure: Regenerate.
* elf64-hppa.c: Include elf64-target.h again to support linux
target variant.
(elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
* elf32-hppa.c: Include elf32-target.h again to support linux
target variant.
(elf32_hppa_post_process_headers): New function.
(elf_backend_post_process_headers): Define.
* targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
bfd_elf32_hppa_linux_vec.
* elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
and data_segment_base fields.
(elf32_hppa_link_hash_table_create ): Init them.
(elf32_hppa_check_relocs): Update comments.
(hppa_record_segment_addr): New function.
(elf32_hppa_relocate_section): Call it.
(final_link_relocate): Handle R_PARISC_SEGREL32.
(elf32_hppa_final_link): New function.
(bfd_elf32_bfd_final_link): Define to call it.
(hppa_unwind_entry_compare): New function.
* cache.c (bfd_open_file): Create files in write+read mode.
* elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
SEGREL32 and numerous other relocs. Change duplicate
R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
* opncls.c (bfd_fdopenr): Add parens like the comment says around
O_ACCMODE.
* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
.plt entries for DT_INIT and DT_FINI.
(elf32_hppa_finish_dynamic_sections): Remove special handling of
DT_INIT and DT_FINI.
* elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
offsets for stub .plt access if wide mode. Check offset in range.
2001-01-13 Nick Clifton <nickc@redhat.com>
* elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
line.
* coffcode.h (coff_canonicalize_reloc): Remove spurious blank
line.
2001-01-12 Alan Modra <alan@linuxcare.com.au>
* configure.in ([bfd_elf64_x86_64_vec]): Set target64.
* configure: Regenerate.
2001-01-11 Peter Targett <peter.targett@arccores.com>
* bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
* cpu-arc.c (arch_info_struct): Add entries for variants.
(bfd_arc_arch) Set default to bfd_mach_arc_5.
(arc_get_mach) Don't assume machine names prefixed arc- before
testing.
* elf32-arc.c (arc_elf_object_p): Set machine number based on new
selections.
(arc_elf_final_write_processing) Likewise.
(ELF_MACHINE_CODE) Use EM_ARC.
2001-01-10 Nick Clifton <nickc@redhat.com>
* coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2001-01-07 Philip Blundell <philb@gnu.org>
* README: Replace `bug-gnu-utils@gnu.org' with
`bug-binutils@gnu.org'.
2001-01-04 Kazu Hirata <kazu@hxi.com>
* som.c: Fix formatting.
2001-01-03 Kazu Hirata <kazu@hxi.com>
* ecoffswap.h: Fix formatting.
* elf-bfd.h: Likewise.
* elfarm-nabi.c: Likewise.
* elfarm-oabi.c: Likewise.
* elfcode.h: Likewise.
* elfcore.h: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-target.h: Likewise.
* libbfd.c: Likewise
* linker.c: Likewise.
* lynx-core.c: Likewise.
2001-01-02 Kazu Hirata <kazu@hxi.com>
* pc532-mach.c: Fix formatting.
* pe-arm.c: Likewise.
* pe-i386.c: Likewise.
* pe-mips.c: Likewise.
* pe-ppc.c: Likewise.
* pe-sh.c: Likewise.
* pei-mips.c: Likewise.
* pei-sh.c: Likewise.
* peicode.h: Likewise.
* ppcboot.c: Likewise.
* ptrace-core.c: Likewise.
2001-01-01 Kazu Hirata <kazu@hxi.com>
* reloc.c: Fix formatting.
* riscix.c: Likewise.
* rs6000-core.c: Likewise.
* xcoff-target.h: Likewise.
2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
* elfcode.h (elf_object_p): Also restore the bfd mach field on
error, by calling bfd_default_set_arch_mach with incoming
values.
2000-12-26 Kazu Hirata <kazu@hxi.com>
* vaxnetbsd.c: Fix formatting.
* versados.c: Likewise.
* vms-gsd.c: Likewise.
* vms-hdr.c: Likewise.
* vms-misc.c: Likewise.
2000-12-25 Alexandre Oliva <aoliva@redhat.com>
* archive.c (coff_write_armap): Don't write more than symbol_count
`archive_member_file_ptr's.
2000-12-25 Kazu Hirata <kazu@hxi.com>
* vms-tir.c: Fix formatting.
2000-12-23 Kazu Hirata <kazu@hxi.com>
* vms.c: Fix formatting.
* vms.h: Likewise.
2000-12-21 Santeri Paavolainen <santtu@ssh.com>
* vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
* peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
* elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
arithmetic.
* elf32-fr30.c: Add casts to avoid (void *) arithmetic.
* coffcode.h (styp_to_sec_flags): Add empty statement after label.
2000-12-21 Richard Sandiford <rsandifo@redhat.com>
* libbfd.c (bfd_get_bits): Added
(bfd_put_bits): Likewise
* bfd-in.h: Declared the above.
* bfd-in2.h: Regenerated.
2000-12-20 Kazu Hirata <kazu@hxi.com>
* targets.c: Fix formatting.
* tekhex.c: Likewise.
* trad-core.c: Likewise.
2000-12-19 Kazu Hirata <kazu@hxi.com>
* sco5-core.c: Fix formatting.
* section.c: Likewise.
* sparclinux.c: Likewise.
* sparclynx.c: Likewise.
* sparcnetbsd.c: Likewise.
* srec.c: Likewise.
* stabs.c: Likewise.
* stab-syms.c: Likewise.
* sunos.c: Likewise.
* syms.c: Likewise.
* sysdep.h: Likewise.
2000-12-18 Nick Clifton <nickc@redhat.com>
* coff-arm.c (EXTRA_S_FLAGS): Only define if not already
defined.
* epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
* epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2000-12-18 Nick Clifton <nickc@redhat.com>
* vms-misc.c (_bfd_vms_get_record): Add default case to
file_format switch.
2000-12-15 Miloslav Trmac <mitr@volny.cz>
* elfcore.h (elf_core_file_p): Move to the start of the program
headers before attempting to read them.
2000-12-14 Kazu Hirata <kazu@hxi.com>
* peigen.c: Fix formatting.
* som.c: Likewise.
* som.h: Likewise.
2000-12-13 Kazu Hirata <kazu@hxi.com>
* peigen.c: Fix formatting.
2000-12-12 Jim Wilson <wilson@redhat.com>
* elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2000-12-08 Mark Salter <msalter@redhat.com>
* binary.c (binary_set_section_contents): Ignore sections
with zero size.
2000-12-12 Kazu Hirata <kazu@hxi.com>
* m68klinux.c: Fix formatting.
* m68knetbsd.c: Likewise.
* mipsbsd.c: Likewise.
* netbsd-core.c: Likewise.
* netbsd.h: Likewise.
* newsos3.c: Likewise.
* nlm32-alpha.c: Likewise.
* nlm32-i386.c: Likewise.
* nlm32-ppc.c: Likewise.
* nlm32-sparc.c: Likewise.
* nlmcode.h: Likewise.
* nlmswap.h: Likewise.
* nlm-target.h: Likewise.
* ns32knetbsd.c: Likewise.
2000-12-10 Fred Fish <fnf@be.com>
* elflink.h (elf_link_output_extsym): Don't complain about undefined
symbols in shared objects if allow_shlib_undefined is true.
2000-12-12 Nick Clifton <nickc@redhat.com>
* cpu-sh.c: Fix formattng.
* elf.c: Fix formattng.
* elf32-mips.c: Fix formattng.
* elf32-sh.c: Fix formattng.
* elf64-alpha.c: Fix formattng.
2000-12-09 Nick Clifton <nickc@redhat.com>
* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
dwarf2_find_line_info as last parameter to invocation of
_bfd_dwarf2_find_nearest_line.
* elf32-arm.h (elf32_arm_find_nearest_line): Pass
dwarf2_find_line_info as last parameter to invocation of
_bfd_dwarf2_find_nearest_line.
2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
* Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
(BFD_LIBS): ...to here.
(BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
(BFD_LIBS_CFILES): ...to here.
* Makefile.in: Regenerate.
* configure.in: Remove dwarf.lo from the elf shell variable.
* configure: Regenerate.
* libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
* libcoff.h: Regenerate.
* coffgen.c (coff_find_nearest_line): Call
_bfd_dwarf2_find_nearest_line.
* dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
accordingly.
(read_abbrevs): Likewise
(decode_line_info): Likewise.
(parse_comp_unit): Likewise.
(comp_unit_find_nearest_line): Likewise.
* libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
* libbfd.h: Regenerate.
* elf.c (_bfd_elf_find_nearest_line): Update call.
* elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
* dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
* coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
(sec_to_styp_flags): Use them. Handle DWARF2 sections.
(styp_to_sec_flags): Handle DWARF2 sections.
* elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
to _bfd_find_nearest_line.
* elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
call to _bfd_find_nearest_line.
2000-12-08 Kazu Hirata <kazu@hxi.com>
* coffgen.c: Fix formatting.
* elf-m10300.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i960.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-sparc.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-sparc.c: Likewise.
2000-12-07 Kazu Hirata <kazu@hxi.com>
* elf32-ppc.c: Fix formatting.
* elf64-x86-64.c: Likewise.
2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
From Ralf Baechle <ralf@gnu.org>
* elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
BFDs containing no sections or empty .text, .data or .bss sections
to be merged, regardless of their flags.
2000-12-06 Kazu Hirata <kazu@hxi.com>
* elf32-m32r.c: Fix formatting.
* elf32-m68hc11.c: Likewise.
* elf32-m68hc12.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-pj.c: Likewise.
* elf32-ppc.c: Likewise.
2000-12-05 Kazu Hirata <kazu@hxi.com>
* elf32-fr30.c: Fix formatting.
* elf32-hppa.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-i960.c: Likewise.
2000-12-03 Kazu Hirata <kazu@hxi.com>
* elf32-arm.h: Fix formatting.
* elf32-avr.c: Likewise.
* elf32-cris.c: Likewise.
* elf32-d10v.c: Likewise.
* elf32-d30v.c: Likewise.
* elf-hppa.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
2000-12-01 Chris Demetriou <cgd@sibyte.com>
* aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
bfd_mach_mips32_4k. Update FIXME comment.
* archures.c (bfd_mach_mips32): New constant.
(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
the latter, renumber it.
* bfd-in2.h (bfd_mach_mips32): New constant.
(bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
the latter, renumber it.
* cpu-mips.c (I_mips32): New constant.
(I_mips4K, I_mips32_4k): Rename the former to the latter.
(arch_info_struct): Add bfd_mach_mips32 entry, replace
bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
* elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
(elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
with E_MIPS_MACH_MIPS32_4K.
(_bfd_mips_elf_final_write_processing): Replace
bfd_mach_mips4K with bfd_mach_mips32_4k case, add
bfd_mach_mips32 case.
(_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
comparison with support for MIPS32.
(_bfd_mips_elf_print_private_bfd_data): Print ISA name for
MIPS32.
* aoutx.h (NAME(aout,machine_type)): Add cases for
bfd_mach_mips5 and bfd_mach_mips64.
* archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
* bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
* cpu_mips.c (I_mips5, I_mips64): New definitions.
(arch_info_struct): Add entries for bfd_mach_mips5 and
bfd_mach_mips64.
* elf32-mips.c (elf_mips_isa, elf_mips_mach,
_bfd_mips_elf_print_private_bfd_data): Add cases for
E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
(_bfd_mips_elf_final_write_processing): Add cases for
bfd_mach_mips5 and bfd_mach_mips64.
* bfd/aoutx.h (NAME(aout,machine_type)): Add a
bfd_mach_mips_sb1 case.
* bfd/archures.c (bfd_mach_mips_sb1): New constant.
* bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant.
* bfd/cpu-mips.c (I_sb1): New constant.
(arch_info_struct): Add entry for bfd_mach_mips_sb1.
* bfd/elf32-mips.c (elf_mips_mach): Add case for
E_MIPS_MACH_SB1.
(_bfd_mips_elf_final_write_processing): Add case for
bfd_mach_mips_sb1.
2000-12-01 Joel Sherrill <joel@OARcorp.com>
* config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
(sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
(sparc*-*-rtems*): Switched from a.out to ELF.
2000-11-30 Jan Hubicka <jh@suse.cz>
* Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
(elf64-x86-64.lo): Add dependencies.
* archures.c (DESCRIPTION): Add bfd_mach_x86_64,
bfd_mach_x86_64_intel_syntax.
* elf.c (prep_headers): Use EM_x86_64 for 64bit output.
* config.bfd (x86_64): Add.
* configure.in: Add support for bfd_elf64_x86_64_vec.
* cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
(bfd_i386_arch, i8086_ar): Link in.
* elf64-x86-64.c: New file.
* reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
* targets.c (bfd_elf64_x86_64_vec): Add.
(bfd_target_vect): Add bfd_elf64_x86_64_vec.
2000-11-30 Kazu Hirata <kazu@hxi.com>
* xcofflink.c: Fix formatting.
2000-11-28 Kazu Hirata <kazu@hxi.com>
* aoutx.h: Fix formatting.
* bfd-in.h: Likewise.
* bfd-in2.h: Likewise.
* cache.c: Likewise.
* cisco-core.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* coffswap.h: Likewise.
* corefile.c: Likewise.
* elf32-mips.c: Likewise.
2000-11-27 Kazu Hirata <kazu@hxi.com>
* aout-adobe.c: Fix formatting.
* coff64-rs6000.c: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
2000-11-27 Philip Blundell <pb@futuretv.com>
* libcoff-in.h (coff_tdata): Add `strings_written' flag.
(obj_coff_strings_written): New accessor macro for above.
* libcoff.h: Regenerate.
* cofflink.c (_bfd_coff_final_link): Say that we wrote the
strings.
* coffcode.h (coff_write_object_contents): No need to write out
the string table if it's already been done.
2000-11-22 Philip Blundell <pb@futuretv.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
weak undefined symbols.
2000-11-24 Nick Clifton <nickc@redhat.com>
* archures.c (bfd_mach_arm_5TE): Define.
(bfd_mach_arm+XScale): Define.
* bfd-in2.h: Regenerate.
* coff-arm.c (coff_arm_reloc_type_lookup): Accept
BFD_RELOC_ARM_PCREL_BLX.
* coffcode.h (coff_set_flags): Set flags for 5t, 5te and
XScale machine numbers.
* config.bfd (xscale-elf): Add target.
(xscale-coff): Add target.
* cpu-arm.c: Add xscale machine name.
Add v5t, v5te and XScale machine numbers.
2000-11-23 Kazu Hirata <kazu@hxi.com>
* aix386-core.c: Fix formatting.
2000-11-22 Jim Wilson <wilson@redhat.com>
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-21 Kazu Hirata <kazu@hxi.com>
* coff-a29k.c: Fix formatting.
* coff-h8500.c: Likewise.
* coff-i960.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-stgo32.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-w65.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-ns32k.c: Likewise.
* ecoff.c: Likewise.
* ecofflink.c: Likewise.
2000-11-21 Nick Clifton <nickc@redhat.com>
* elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
remove possibility of infinite loop.
2000-11-20 Kazu Hirata <kazu@hxi.com>
* aix386-core.c: Fix formatting.
* aout-adobe.c: Likewise.
* aout-arm.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
* aoutf1.h: Likewise.
* aoutx.h: Likewise.
* archive.c: Likewise.
* bfd-in.h: Likewise.
* bfd-in2.h: Likewise.
* bfd.c: Likewise.
* bout.c: Likewise.
2000-11-17 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
pltoff entries for DT_INIT and DT_FINI.
(elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
(elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
entries.
2000-11-16 Richard Henderson <rth@redhat.com>
* elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
(allocate_dynrel_entries): Likewise.
(elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
(set_pltoff_entry): Likewise.
(ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
(elfNN_ia64_reloc_type_lookup): Likewise.
(elfNN_ia64_install_value): Likewise.
(elfNN_ia64_relocate_section): Likewise.
* reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
(BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2000-11-16 Kazu Hirata <kazu@hxi.com>
* cpu-a29k.c: Fix formatting.
* cpu-alpha.c: Likewise.
* cpu-arm.c: Likewise.
* cpu-avr.c: Likewise.
* cpu-d10v.c: Likewise.
* cpu-h8500.c: Likewise.
* cpu-hppa.c: Likewise.
* cpu-i370.c: Likewise.
* cpu-i386.c: Likewise.
* cpu-i960.c: Likewise.
* cpu-ia64-opc.c: Likewise.
* cpu-ia64.c: Likewise.
* cpu-m32r.c: Likewise.
* cpu-m68hc11.c: Likewise.
* cpu-m68hc12.c: Likewise.
* cpu-m68k.c: Likewise.
* cpu-m88k.c: Likewise.
* cpu-mips.c: Likewise.
* cpu-ns32k.c: Likewise.
* cpu-pj.c: Likewise.
* cpu-powerpc.c: Likewise.
* cpu-sh.c: Likewise.
* cpu-sparc.c: Likewise.
* cpu-tic54x.c: Likewise.
* cpu-v850.c: Likewise.
* cpu-vax.c: Likewise.
* cpu-w65.c: Likewise.
* cpu-we32k.c: Likewise.
* cpu-z8k.c: Likewise.
* dwarf1.c: Likewise.
* dwarf2.c: Likewise.
2000-11-15 Kazu Hirata <kazu@hxi.com>
* coff-arm.c: Fix formatting.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-sh.c: Likewise.
* coff-sparc.c: Likewise.
* coff-tic30.c: Likewise.
* coff-tic54x.c: Likewise.
* coff-tic80.c: Likewise.
* coff-w65.c: Likewise.
* coff-we32k.c: Likewise.
* coff-z8k.c: Likewise.
2000-11-15 Richard Henderson <rth@redhat.com>
* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
section with the same ALLOC|LOAD flags as the source section.
2000-11-14 Jakub Jelinek <jakub@redhat.com>
* elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
by STO_ALPHA constants.
2000-11-14 Kazu Hirata <kazu@hxi.com>
* coff-pmac.c: Fix formatting.
* coff-ppc.c: Likewise.
2000-11-13 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): Also add indirect
symbols for common symbols with the default version.
2000-11-09 Philip Blundell <pb@futuretv.com>
* section.c (STD_SECTION): Set gc_mark flag.
2000-11-11 Kazu Hirata <kazu@hxi.com>
* coff-i960.c: Likewise.
* coff-m68k.c: Likewise.
* coff-m88k.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
* elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2000-11-10 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c: Fix formatting.
* coff-h8500.c: Likewise.
* coff-i386.c: Likewise.
* coff-i860.c: Likewise.
* coff-i960.c: Likewise.
* coff-ia64.c: Likewise.
2000-11-09 Kazu Hirata <kazu@hxi.com>
* archive.c: Fix formatting.
* archures.c: Likewise.
2000-11-07 Richard Henderson <rth@redhat.com>
* elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
Set it before bfd_elf64_bfd_final_link call. Use it after the call.
* section.c (bfd_set_section_contents): Call memcpy if
section->contents set and location not equal to contents plus offset.
2000-11-08 Kazu Hirata <kazu@hxi.com>
* bfd-in.h: Fix formatting.
* bfd-in2.h: Likewise.
* bfd.c: Likewise.
* binary.c: Likewise.
* bout.c: Likewise.
* coff-a29k.c: Likewise.
* coff-alpha.c: Likewise.
* coff-apollo.c: Likewise.
* coff-aux.c: Likewise.
2000-11-07 Kazu Hirata <kazu@hxi.com>
* aix386-core.c: Fix formatting.
* aoutf1.h: Likewise.
* aoutx.h: Likewise.
* archures.c: Likewise.
* armnetbsd.c: Likewise.
2000-11-07 Alan Modra <alan@linuxcare.com.au>
* coff-h8300.c (special): Adjust reloc address.
2000-11-06 Steve Ellcey <sje@cup.hp.com>
* archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
to differentiate elf32 and elf64 on ia64.
* bfd-in2.h: Regenerate.
* config.bfd: Add target for "ia64*-*-hpux*".
* configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
* configure: Regenerate.
* cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
* targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
* Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
* Makefile.in: Regnerate.
* elf64-ia64.c: Deleted.
* elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2000-11-06 Kazu Hirata <kazu@hxi.com>
* aout-adobe.c: Fix formatting.
* aout-arm.c: Likewise.
* aout-cris.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
2000-11-05 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
BFDs containing no sections to be merged, regardless of their flags.
2000-11-04 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_relocate_section): Suppress error message
if a relocation for an undefined symbol also results in an
overflow.
2000-11-06 Christopher Faylor <cgf@cygnus.com>
* config.bfd: Add support for Sun Chorus.
2000-11-05 David O'Brien <obrien@FreeBSD.org>
* configure.in: Recognize alpha-*-freebsd*.
* configure: Regenerate.
2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
* srec.c (CHUNK): Rename to DEFAULT_CHUNK.
(Chunk): New global variable set by a parameter in objcopy.c.
(S3Forced): New global variable set by a parameter in
objcopy.c.
(srec_set_section_contents): If S3Forced is true, always generate
S3 records.
(srec_write_section): Use 'Chunk' to limit maximum length of S
records.
2000-11-02 Per Lundberg <plundis@chaosdev.org>
* config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* po/bfd.pot: Regenerate.
2000-10-31 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
EF_SOFT_FLOAT if it is defined.
2000-10-27 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
attempts to mix PIC code with non-PIC, just mark the output as
being position dependent.
(elf32_arm_merge_private_bfd_data): Likewise. Print an error
message for EF_SOFT_FLOAT mismatches. Display diagnostics for
all mismatches, not just the first one.
2000-10-25 Chris Demetriou <cgd@sibyte.com>
* ieee.c (ieee_archive_p): Plug one of many possible
memory leaks in error handling.
2000-10-20 Jakub Jelinek <jakub@redhat.com>
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
elf32_sparc_object_p, elf32_sparc_final_write_processing):
Support v8plusb.
* elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
sparc64_elf_object_p): Support v9b.
* archures.c: Declare v8plusb and v9b machines.
* bfd-in2.h: Ditto.
* cpu-sparc.c: Ditto.
2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
* elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
of a GOT reloc.
* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
(SYMBOL_CALLS_LOCAL): New macro.
(ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
(ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
(ppc_elf_relocate_section): Use flag variable to determine
whether the relocation refers to a local symbol.
Test whether a PLTREL24 reloc will produce a reloc by looking
to see whether a PLT entry was made.
2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
* elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
entries that could serve as a definition for a weak symbol.
2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
From Ralf Baechle <ralf@gnu.org>
* elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
local_p. Add symbol value only for non-R_MIPS_REL32 relocations
against local symbols.
(_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2000-10-12 Alan Modra <alan@linuxcare.com.au>
* section.c (struct sec): Add kept_section.
(struct bfd_comdat_info): Remove sec, we can use above.
(STD_SECTION): Add initializer.
(bfd_make_section_anyway): Init here too.
* bfd-in2.h: Regenerate.
* elflink.h (elf_link_add_object_symbols): Remove unnecessary
zeroing of `flags'.
(elf_link_input_bfd): Set all asection->symbol->value's here, and
fudge values for discarded link-once section symbols.
* elf64-hppa.c: Include alloca-conf.h
2000-10-11 Alan Modra <alan@linuxcare.com.au>
* elf.c (swap_out_syms): Revert 2000-10-07 changes.
* ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2000-10-10 Alan Modra <alan@linuxcare.com.au>
* ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2000-10-10 Tom Rix <trix@redhat.com>
* section.c (bfd_make_section_anyway): Release newsect ptr when
newsect->symbol fails to alloc. Use bfd_release instead of free.
2000-10-09 Richard Henderson <rth@cygnus.com
* elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
(elf64_ia64_unwind_entry_compare): New.
(elf64_ia64_final_link): Sort the .IA_64.unwind section.
2000-10-07 Alan Modra <alan@linuxcare.com.au>
* elflink.h (size_dynamic_sections): Don't create various tags if
.dynstr is excluded from the link. Don't set first dynsym entry
if dynsymcount is zero.
(elf_bfd_final_link): Don't try to swap out dynamic syms if
.dynsym excluded from the link. Don't try to write any dynamic
sections excluded from the link.
* elf.c (swap_out_syms): Handle global section symbols.
2000-10-05 DJ Delorie <dj@redhat.com>
* peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
* coffcode.h (coff_set_alignment_hook): read extended reloc count
(coff_write_relocs): write extended reloc count
(coff_write_object_contents): account for extended relocs
2000-10-05 Jim Wilson <wilson@cygnus.com>
* elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
field.
* elf.c (_bfd_elf_make_section_from_shdr): Call the
elf_backend_section_flags function.
* elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
code.
(elf64_ia64_section_flags): New function containing flag conversion
code.
(elf_backend_section_flags): Define to elf64_ia64_section_flags.
* elfxx-target.h (elf_backend_section_flags): Define.
(elfNN_bed): Initialize elf_backend_section_flags field.
2000-10-02 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
_bfd_elf32_gc_record_vtable. Correct a comment.
2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
From Ralf Baechle <ralf@gnu.org>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
produces binaries with got[1] = 0x80000001 to differenciate them
for the dynamic linker from the broken binaries produced by old
versions.
2000-09-30 Petr Sorfa <petrs@sco.com>
* elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
(elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
* configure.in: Add check for pxstatus_t and lwpxstatus_t.
* configure: Regenerate.
2000-09-27 Hans-Peter Nilsson <hp@axis.com>
Define two bfd_targets for absence and presence of leading
underscore on symbols. Make sure to only link same kind.
* elf32-cris.c (cris_elf_object_p,
cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
cris_elf_merge_private_bfd_data): New.
(elf_backend_object_p, elf_backend_final_write_processing,
bfd_elf32_bfd_print_private_bfd_data,
bfd_elf32_bfd_merge_private_bfd_data): Define.
<Target vector definition>: Include elf32-target.h twice with
different macro settings:
(TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
bfd_elf32_us_cris_vec.
(TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
(elf_symbol_leading_char): First as 0, then '_'.
(INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
* config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
* configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
* configure: Regenerate.
* targets.c: Declare bfd_elf32_us_cris_vec.
* po/bfd.pot: Regenerate.
2000-09-29 Momchil Velikov <velco@fadata.bg>
* elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
R_ARM_THM_PC22 relocations.
2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
* elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2000-09-29 Momchil Velikov <velco@fadata.bg>
* elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
is has the SEC_HAS_CONTENTS flag set.
2000-09-28 Örjan Friberg <orjanf@axis.com>
Hans-Peter Nilsson <hp@axis.com>
* aout-cris.c (N_TXTADDR): Define.
2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
* som.c: Include alloca-conf.h.
* Makefile.am: "make dep-am"
* Makefile.in: Regenerate.
2000-09-27 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (plt_stub): New.
(PLT_STUB_ENTRY): Define.
(elf32_hppa_link_hash_table): Change multi_subspace to packed
boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
(elf32_hppa_link_hash_table_create): Init to suit.
(elf32_hppa_check_relocs): Set has_12bit_branch and
has_17bit_branch as appropriate.
(elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
non-local functions.
(elf32_hppa_size_dynamic_sections): Correct setting of reltext.
Add space for plt_stub as needed.
(elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
functions at plt_stub.
(elf32_hppa_finish_dynamic_sections): Write plt_stub.
(elf32_hppa_create_dynamic_sections): Leave .plt executable.
* elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
of fixed size, and if negative, disable handling of input sections
before stub section. Set up default stub group size depending
on detected branch relocs.
(hppa_build_one_stub): Use lrsel and rrsel for import stubs to
ensure different offsets from sym_value aren't rounded to
different 2k blocks. Use lrsel and rrsel for other stubs too for
consistency rather than necessity.
(elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
(final_link_relocate): Likewise.
(elf32_hppa_relocate_section): Likewise.
* elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
(_bfd_elf_hppa_gen_reloc_type): Generate them.
(elf_hppa_final_link_relocate): Handle them.
(elf_hppa_relocate_insn): Likewise.
(_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
2000-09-26 Hans-Peter Nilsson <hp@axis.com>
* elfcode.h (elf_object_p): Preserve and clear abfd section
information. Restore at error.
2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
* peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
is empty, make sure that its rva also 0. NT loader dislikes
having otherwise.
2000-09-26 Steve Ellcey <sje@cup.hp.com>
* som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
global by default.
2000-09-21 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
currently unused RELATIVE_DYNAMIC_RELOCS code.
(hppa_discard_copies): Likewise.
(elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
comments. Don't check non-code output sections for stub grouping.
2000-09-20 Alan Modra <alan@linuxcare.com.au>
* section.c (bfd_get_unique_section_name): Return NULL if
bfd_malloc fails.
2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
instruction sequence to actually work.
(elf_m68k_finish_dynamic_sections): Change the patch-in offset
accordingly.
2000-09-18 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (sh_elf_relocate_section): Use
_bfd_final_link_relocate to apply the relocation against a section
symbol, when doing relocatable links.
2000-09-18 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
to id_sec.
(stub_hash_newfunc): Here too.
(hppa_add_stub): And here.
(elf32_hppa_link_hash_table): Remove stub_section_created,
reloc_section_created, first_init_sec and first_fini_sec. Add
stub_group.
(elf32_hppa_link_hash_table_create): Init to suit.
(hppa_get_stub_entry): Add support for grouping stub sections.
(hppa_add_stub): Likewise. Remove sec_count param and init/fini
section code. Index stub vars by section->id.
(elf32_hppa_size_stubs): Likewise. Remove duplicated function
exit paths. Zap allocation of above removed vars. Refine
link-once test.
* elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
* elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
(hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
rather than pointer to bfd_link_info.
(hppa_add_stub): Likewise.
(final_link_relocate): Likewise.
2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
(elf32_hppa_size_stubs): Don't try to build stubs for discarded
link-once sections.
2000-09-16 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
ld/emulparams/shelf.sh.
2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
* bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
* bfd-in2.h: Regenerate.
2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
* bfd/elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
LITUSE relocations incorrectly if -relax is specified on the ld
command line and the displacement field of the load or store
instruction is non-zero. (Patch by paul.winalski@compaq.com)
2000-09-15 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
first_fini_sec here.
(elf32_hppa_size_stubs): Instead correctly find the first .init
and .fini section here.
2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
* elf32-hppa.c (clobber_millicode_symbols): New function.
(elf32_hppa_size_dynamic_sections): Call it.
2000-09-14 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
packed. Add plabel, plt_abs packed booleans.
(hppa_link_hash_newfunc): Init new fields.
(PLABEL_PLT_ENTRY_SIZE): Define.
(hppa_stub_name): Use size_t len vars.
(hppa_add_stub): Likewise.
(elf32_hppa_build_stubs): Likewise.
(hppa_build_one_stub): Kill some compiler warnings.
(elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
if dynamic linking. Munge the local plt offsets into
local_got_refcounts. Set h->plabel for all global PLABELs. Use
size_t len vars. Add assert for plabel addend.
(elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
(elf32_hppa_hide_symbol): New function.
(elf_backend_hide_symbol): Define.
(elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
with h->plabel set. Don't make plt entries to have dynamic syms
when they have been forced local. If plt entry is used by a
plabel, make it PLABEL_PLT_ENTRY_SIZE.
(elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
Set up .plt offsets for local syms.
(elf32_hppa_relocate_section): Initialise plt entries for local
syms. Leave weak undefined plabels zero. Make global plabel
relocs against function symbol, and leave the addend zero.
Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
(elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
relocs instead of SEGREL32 for dynamic got relocs.
(elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
(elf_backend_got_header_size): Adjust.
(elf32_hppa_set_gp): Calculate an "ideal" LTP.
* elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
(hppa_type_of_stub): Use it instead of #if 0
(hppa_discard_copies): Use it here too.
(elf32_hppa_size_dynamic_sections): And here.
* elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
(elf32_hppa_link_hash_table_create): And here.
(hppa_build_one_stub): And here. Instead keep track of stub
offset using _raw_size.
(elf32_hppa_size_stubs): Likewise.
(elf32_hppa_build_stubs): Likewise.
(hppa_size_one_stub): Likewise. Resize reloc section too.
* elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
first_fini_sec handling. Don't search for reloc section or set
hplink->reloc_section_created here.
(elf32_hppa_size_stubs): Instead search for reloc sections, and
set reloc_section_created here.
(hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
(elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
and DT_FINI.
(elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
* elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
with `hplink->root.'.
(elf32_hppa_check_relocs): Likewise.
(elf32_hppa_gc_sweep_hook): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Likewise.
(hppa_handle_PIC_calls): Likewise.
(elf32_hppa_size_dynamic_sections): Likewise.
(elf32_hppa_set_gp): Likewise.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.
(elf32_hppa_finish_dynamic_sections): Likewise.
From David Huggins-Daines <dhd@linuxcare.com>
* elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
defined weak symbols in shared links.
(final_link_relocate): Calls to defined weak symbols in shared
objects must go via import stubs, as the target might not be known
at link time.
2000-09-14 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
the original entries with EMPTY_HOWTOs, and added new ones to fill
in the gap.
(sh_elf_info_to_howto): Make sure the new gap isn't used.
(sh_elf_relocate_section): Likewise.
2000-09-13 Anders Norlander <anorland@acc.umu.se>
* cpu-mips.c (arch_info_struct): Add mips:4K
* bfd-in2.h (bfd_mach_mips4K): New define.
* archures.c: Add bfd_mach_mips4K to comment.
* elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
E_MIPS_ARCH_2 for bfd_mach_mips4K.
2000-09-13 Marco Franzen <marcof@thyron.com>
* som.c (som_write_symbol_strings): Do not used fixed buffers,
use size_t as a counter.
(som_write_space_strings): Similarly.
2000-09-12 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_relocate_pc26): New function
and prototype.
(elf32_i860_relocate_section): Invoke new function from here.
2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
static.
2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
target section name instead of dumping core when the target symbol is
undefined.
2000-09-09 Kazu Hirata <kazu@hxi.com>
* riscix.c: Remove DEFUN.
2000-09-08 Nick Clifton <nickc@redhat.com>
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
initialise flags in output bfd if the input bfd is the default
architecture with the default flags.
2000-09-08 Kazu Hirata <kazu@hxi.com>
* archive.c: Fix formatting.
* coff-arm.c: Likewise.
* doc/chew.c: Likewise.
2000-09-08 Alan Modra <alan@linuxcare.com.au>
* section.c (bfd_get_unique_section_name): Put a dot before the
numeric suffix.
2000-09-07 Kazu Hirata <kazu@hxi.com>
* doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
* elf.c: Fix formatting.
2000-09-07 Alexandre Oliva <aoliva@redhat.com>
* config.bfd (sh-*-linux*): Added.
* configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
* targets.c: Declare them.
* elf32-sh-lin.c: New file.
* Makefile.am: Compile it.
* elf32-sh.c: Don't override defines from elf32-sh-lin.c.
* configure, Makefile.in: Rebuilt.
2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
* xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
pseduo-section when determining where the TOC ends.
* coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
output x_tvndx as it is only two bytes wide.
* coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
reloc is 26 or 32 bits wide.
* coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
for relocs that don't change anything. Also look at the full
6 bits of bitsize.
2000-09-06 Philip Blundell <philb@gnu.org>
* config.bfd (arm*-*-uclinux*): New target.
2000-09-06 Alexandre Oliva <aoliva@redhat.com>
* configure: Rebuilt with new libtool.m4.
2000-09-06 Alan Modra <alan@linuxcare.com.au>
* section.c (bfd_get_unique_section_name): Avoid c++ reserved
word for variable name.
* bfd-in2.h: Regenerate.
2000-09-05 Nick Clifton <nickc@redhat.com>
* config.in: Regenerate.
* libbfd.h: Regenerate.
* po/bfd.pot: Regenerate.
* doc/bfdint.texi: Remove CVS date string - it foils compares with
local versions.
2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
* cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
2000-09-05 Alan Modra <alan@linuxcare.com.au>
Shared library and PIC support.
* elf32-hppa.c (PLT_ENTRY_SIZE): New.
(GOT_ENTRY_SIZE): New.
(ELF_DYNAMIC_INTERPRETER): New.
(STUB_SUFFIX): Define.
(LONG_BRANCH_PIC_IN_SHLIB): Define.
(RELATIVE_DYNAMIC_RELOCS): Define.
(enum elf32_hppa_stub_type): New.
(struct elf32_hppa_stub_hash_entry): Rename offset to
stub_offset. Add a number of new fields.
(struct elf32_hppa_link_hash_entry): New.
(struct elf32_hppa_link_hash_table): Add numerous fields. Remove
global_value.
(elf32_hppa_hash_table): Rename to hppa_link_hash_table.
(elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
(elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
new fields.
(hppa_link_hash_newfunc): New function.
(elf32_hppa_link_hash_table_create): Use above function. Init new
fields.
(elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
instead of addend, and remove sym_name from args. Don't use
symbol name for local syms, instead use sym index.
(elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
stub type rather than size. Pass in hash and handle import stub
case. Also pass in reloc instead of offset so we can calculate
PCREL22F and PCREL12F branches properly.
(elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
import and export stubs too.
(elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
import and export stub sizing.
(elf32_hppa_check_relocs): New function.
(elf32_hppa_adjust_dynamic_symbol): New function.
(hppa_discard_copies): New function.
(elf32_hppa_size_dynamic_sections): New function.
(elf_backend_size_dynamic_sections): Define.
(elf32_hppa_finish_dynamic_symbol): New function.
(elf_backend_finish_dynamic_symbol): Define.
(elf32_hppa_size_stubs): Stash params in link hash table, and move
some local vars into the link hash table too. For shared links,
trundle over function syms, generating export stubs. Handle
PCREL22F branches. Break out stub creation code from here..
(hppa_add_stub): .. to here. New function.
(elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
call the bfd linker. Use elf_gp to record global pointer.
Calculate a value from sections if $global$ is missing.
(bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
(elf32_hppa_gc_mark_hook): New function.
(elf_backend_gc_mark_hook): Define.
(elf32_hppa_gc_sweep_hook): New function.
(elf_backend_gc_sweep_hook): Define.
(elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
Add rel to args, and remove howto, input_bfd, offset, addend,
sym_name as we can recalculate these locally. Handle calls to
dynamic objects, extra PIC relocs, PCREL22F branches. Change
handling of undefined weak syms. Check that stubs are in range.
Only look for import stubs on PCREL17F and PCREL22F relocs. Add
message on hitting a DPREL21L reloc that needs fixing. Subtract
off PC for PCREL14F. Break out code that does a stub lookup from
here..
(hppa_get_stub_entry): ..to here. New function.
(elf32_hppa_relocate_insn): Merge into final_link_relocate.
(elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
relocs, etc. etc.
(elf32_hppa_finish_dynamic_sections): New function.
(elf_backend_finish_dynamic_sections): Define.
(elf_backend_final_write_processing) Define.
(hppa_handle_PIC_calls): New function.
(elf32_hppa_build_stubs): Call it. Pass link_info to
hppa_build_one_stub.
(elf32_hppa_create_dynamic_sections): New function
to create .plt and .got then set .plt flags correctly.
(elf_backend_create_dynamic_sections): Define.
(elf32_hppa_object_p): New function.
(elf_backend_object_p): Define.
(elf32_hppa_elf_get_symbol_type): New function.
(elf_backend_get_symbol_type): Define.
(elf_backend_can_gc_sections): Define.
(elf_backend_want_got_plt): Define.
(elf_backend_plt_alignment): Set to 2.
(elf_backend_plt_readonly): Define.
(elf_backend_want_plt_sym): Define.
(elf_backend_got_header_size): Reserve one entry.
* elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
(elf32_hppa_size_stubs): Pass in multi_subspace.
(elf32_hppa_set_gp): Declare.
* section.c (SEC_HAS_GOT_REF): Define new flag for asection.
(bfd_get_unique_section_name): New function.
* bfd_in2.h: Regenerate.
* elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
(elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
comment.
From David Huggins-Daines <dhd@linuxcare.com>
* elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
(elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
(elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
been updated in finish_dynamic_symbol before modifying function
symbol.
* elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
eight entries. Replace NULL with bfd_elf_generic_reloc. Add
R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
(_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
comments. Handle format == 12 for R_HPPA_PCREL_CALL.
(elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
(elf_hppa_relocate_insn): Likewise. Reformat some comments.
(elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
From David Huggins-Daines <dhd@linuxcare.com>
* elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
style of local labels as well.
2000-09-03 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
references to undefined symbols in debugging sections.
2000-09-02 H.J. Lu <hjl@gnu.org>
* reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
section.
2000-09-02 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
(elf32_i860_is_local_label_name): New function and prototype.
2000-09-02 Nick Clifton <nickc@redhat.com>
* configure.in: Increase version number to 2.10.91.
* configure: Regenerate.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* po/bfd.pot: Regenerate.
2000-09-02 Daniel Berlin <dberlin@redhat.com>
* elf.c (_bfd_elf_make_section_from_shdr): Add
.gnu.linkobce.wi. to the list of debug section names.
2000-09-02 Nick Clifton <nickc@redhat.com>
* dwarf2.c (find_debug_info): New function: Locate a section
containing dwarf2 debug information.
(bfd_dwarf2_find_nearest_line): Find all sections containing
debug information and include them in the stash.
2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
(sh_reloc_map): Add new relocs.
(sh_elf_check_relocs, sh_elf_link_hash_newfunc,
sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
functions.
(ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
(elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
elf_sh_plt_entry_be, elf_sh_plt_entry_le,
elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
New array constants.
(elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
New variables.
(elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
elf_sh_plt_reloc_offset): Define.
(elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
elf_sh_link_hash_table): New structs.
(sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
(sh_elf_relocate_section, sh_elf_check_relocs): Handle new
relocation types.
(elf_backend_create_dynamic_sections,
bfd_elf32_bfd_link_hash_table_create,
elf_backend_adjust_dynamic_symbol,
elf_backend_size_dynamic_sections,
elf_backend_finish_dynamic_symbol,
elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
elf_backend_plt_readonly, elf_backend_want_plt_sym,
elf_backend_got_header_size, elf_backend_plt_header_size):
Define.
* reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
New relocs.
* bfd-in2.h, libbfd.h: Rebuilt.
2000-09-01 Alan Modra <alan@linuxcare.com.au>
* elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
change.
2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
* elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
not initialized, set them to indicate the SH1 instruction set.
2000-08-31 Alexandre Oliva <aoliva@redhat.com>
* acinclude.m4: Include libtool and gettext macros from the
top level.
* aclocal.m4, configure: Rebuilt.
2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c: Eliminate references to __sparcv9 macro; replace with
autoconf variables HAVE_PSINFO32_T etc.
* configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
* config.in: Ditto.
* acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
* aclocal.m4: Ditto.
* configure: Regenerate.
2000-08-27 Alan Modra <alan@linuxcare.com.au>
* elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
for any shared link, not just shared -Bsymbolic.
(elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
any shared link, and pass link info to it.
(elf_i386_size_dynamic_sections): Update comment.
(elf_i386_discard_copies): Modify to discard relocs for symbols
that have been forced local.
(elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
that have been forced local.
2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
* elflink.h (elf_link_add_object_symbols): Allow common
symbols to have an alignment of 1 if explicitly requested, and
not overridden by other definitions.
2000-08-22 Doug Kwan <dkwan@transmeta.com>
* coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
* coffcode.h (coff_set_flags): Add detection of w65 architecture.
2000-08-22 H.J. Lu <hjl@gnu.org>
* elf-bfd.h (elf_link_hash_table): Add runpath.
* bfd-in.h (bfd_elf_get_runpath_list): New prototype.
* bfd-in2.h: Rebuilt.
* elf.c (_bfd_elf_link_hash_table_init): Initialize the
"runpath" field to NULL.
(bfd_elf_get_runpath_list): New function.
* elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
DT_RUNPATH entries.
2000-08-22 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
explicitly. Improve validation of r_type.
2000-08-21 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
dynamic allocated content space. Add a comment to remind us that
one day this ought to be fixed.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
2000-08-21 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
field with the newly relocated value instead of adding it to the
existing immediate field.
(elf32_i860_relocate_splitn): Likewise.
(elf32_i860_relocate_highadj): Likewise.
2000-08-16 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
was previously just a stub).
2000-08-16 Alexandre Oliva <aoliva@redhat.com>
* elflink.c (_bfd_elf_create_got_section): Don't abort().
Formatting fixes.
(_bfd_elf_create_dynamic_sections): Likewise.
2000-08-16 Andrew Macleod <amacleod@cygnus.com>
* elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
for undefined symbols to be the beginning of the section.
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
four extra entries at the beginning of the .rela.plt section.
(sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
section to account for the four reserved entries in the .plt section.
2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
to the list of NOPs we recognize after a branch-and-link.
Use the ori NOP when one is needed.
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
for large archives.
2000-08-14 Jim Wilson <wilson@cygnus.com>
* elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
(elf64_ia64_print_private_bfd_data): Likewise. Also handle
EF_IA_64_ABSOLUTE.
2000-08-11 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
2000-08-10 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_relocate_section): New function.
(i860_final_link_relocate): New function.
(elf32_i860_relocate_splitn): New function.
(elf32_i860_relocate_pc16): New function.
(elf32_i860_relocate_highadj): New function.
(elf32_i860_howto): Minor adjustments to some relocations.
(elf_info_to_howto_rel): Define.
(elf_backend_relocate_section): Define.
2000-08-10 Nick Clifton <nickc@cygnus.com>
* elf32-arm.h: Fix formatting.
2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
* elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
2000-08-08 Jason Eckhardt <jle@cygnus.com>
* elf32-i860.c (elf32_i860_howto_table): Updated some fields.
2000-08-07 Kazu Hirata <kazu@hxi.com>
* ieee.c (ieee_write_debug_part): Rewrite a comment.
* elf64-ia64.c: Fix a typo.
2000-08-05 Jason Eckhardt <jle@cygnus.com>
* elf32-i860 (elf32_i860_howto_table): New structure.
(lookup_howto): New function.
(elf32_i860_reloc_type_lookup): New function.
(elf32_i860_info_to_howto_rela): New function.
(elf_code_to_howto_index): New structure.
(elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
(bfd_elf32_bfd_reloc_type_lookup): Re-define as
elf32_i860_reloc_type_lookup.
2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
* som.c (struct fixup_format): Constify `format'.
(som_hppa_howto_table): Use SOM_HOWTO macro.
(try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
(som_bfd_reloc_type_lookup): Likewise.
(compare_subspaces): Remove unused `count1', `count2'.
(som_begin_writing): Remove unused `total_reloc_size'.
(som_bfd_derive_misc_symbol_info): Decorate unused parameter.
(som_print_symbol, som_bfd_is_local_label_name): Likewise.
(som_set_reloc_info): Constify `cp'. Remove unused `addend'.
(som_find_nearest_line): Decorate unused parameter(s).
(som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
(som_bfd_link_split_section): Likewise.
2000-08-03 Nick Clifton <nickc@cygnus.com>
* section.c: Restore backed out code.
* elf.c: Restore backed out code.
(copy_private_bfd_data): Fix bug preventing stipped dynamic
binaries from working.
* bfd-in2.h: Regenerate.
2000-08-03 H.J. Lu <hjl@gnu.org>
* section.c: Back out the change made by Nick Clifton
<nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
binaries.
* bfd-in2.h: Likewise.
* elf.c: Likewise.
2000-08-03 Alexandre Oliva <aoliva@redhat.com>
* elf32-sh.c (sh_elf_reloc_loop): Warning removal.
2000-07-31 Jason Eckhardt <jle@cygnus.com>
* reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
* bfd-in2.h, libbfd.h: Regenerate.
2000-07-31 Nick Clifton <nickc@cygnus.com>
* section.c (struct sec): Add new boolean field 'segment_mark'.
(STD_SECTION): Initialise new field to zero.
* bfd-in2.h: Regenerate.
* elf.c (copy_private_bfd_data): Reorganise section to segment
mapping to cope with moved sections requiring new segments,
and overlapping segments.
(SEGMENT_END): New macro: Return the end address of a segment.
(IS_CONTAINED_BY_VMA): New macro: Determine if a segment
contains a section by comparing their VMA addresses.
(IS_CONTAINED_BY_LMA): New macro: Determine if a segment
contains a section by comparing their LMA addresses.
(INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
section should be included in a segment.
(SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
follows another in memory.
(SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
segments overlap.
2000-07-22 Jason Eckhardt <jle@cygnus.com>
* cpu-i860.c: Added comments.
* elf32-i860.c (TARGET_LITTLE_SYM): Defined to
bfd_elf32_i860_little_vec.
(TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
(ELF_MAXPAGESIZE): Changed to 4096.
* targets.c (bfd_elf32_i860_little_vec): Declaration of
new target.
(bfd_target_vector): Added bfd_elf32_i860_little_vec.
* config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
config for little endian elf32 i860.
(targ_defvec): Define for the new config above
as "bfd_elf32_i860_little_vec".
(targ_selvecs): Define for the new config above
as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
* configure.in (bfd_elf32_i860_little_vec): Added recognition
of new target vec.
* configure: Regenerated.
2000-07-27 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_merge_symbol): Take one more argument,
dt_needed, to indicate if the symbol comes from a DT_NEEDED
entry. Don't overide the existing weak definition if dt_needed
is true.
(elf_link_add_object_symbols): Pass dt_needed to
elf_merge_symbol ().
2000-07-27 Nick Clifton <nickc@cygnus.com>
* elflink.h (elf_link_size_reloc_section): Zeroes the section's
allocated contents.
2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
* configure.host (*-*-aix*): AIX has 'long long' always.
* coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
(xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
(xcoff_write_archive_contents_big): Don't update the offset
of the symbol table, xcoff_write_armap will do it.
2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
of dynobj for SGI_COMPAT checks.
2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
* bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
* bfd-in2.h: Regenerate.
2000-07-21 Nick Clifton <nickc@cygnus.com>
* elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
range symbol indices in relocs and issue an error message.
2000-07-20 H.J. Lu <hjl@gnu.org>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
info->new_dtags when setting DT_FLAGS_1. It will only be set
by the new linker options. It shouldn't break anything.
2000-07-20 H.J. Lu <hjl@gnu.org>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
only if info->new_dtags is true.
2000-07-20 H.J. Lu <hjl@gnu.org>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
2000-07-20 Hans-Peter Nilsson <hp@axis.com>
* Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
(ALL_MACHINES_CFILES): Add cpu-cris.c.
(BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
(BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
(cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
* Makefile.in: Rebuild.
* aclocal.m4: Rebuild.
* aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
* archures.c (enum bfd_architecture): Add bfd_arch_cris.
(bfd_cris_arch): Declare.
(bfd_archures_list): Add bfd_cris_arch.
* bfd-in2.h: Rebuild.
* config.bfd: (cris-*-*): New target.
* configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
* configure: Rebuild.
* elf.c (prep_headers): Add bfd_arch_cris.
* libbfd.h: Rebuild.
* libaout.h (enum machine_type): Add M_CRIS.
* reloc.c: Add CRIS relocations.
* targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
(bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
* cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
* po/POTFILES.in, po/bfd.pot: Regenerate.
2000-07-19 H.J. Lu <hjl@gnu.org>
* elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
DF_TEXTREL if DT_TEXTREL is set.
* elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
* elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
* elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
* elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
* elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
* elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
DT_RPATH is set.
Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
2000-07-19 H.J. Lu <hjl@gnu.org>
* bfd-in.h (bfd_elf_set_dt_needed_soname): New.
* bfd-in2.h: Rebuild.
* elf-bfd.h (elf_obj_tdata): Add dt_soname.
(elf_dt_soname): New.
* elf.c (bfd_elf_set_dt_needed_soname): New.
* elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
entry if the shared object loaded by DT_NEEDED is used to
resolve the reference in a regular object.
2000-07-19 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
DT_DEPAUDIT and DT_AUDIT as strings.
2000-07-19 Nick Clifton <nickc@cygnus.com>
* format.c: Fix formatting.
2000-07-19 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
2000-07-19 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
DT_FLAGS_1, DT_USED and DT_CHECKSUM.
2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
* elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
renamed functions from here...
(assign_section_numbers): Use renamed functions.
(prep_headers): Use renamed functions.
* bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
* bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
* bfd-in2.h: Regenerate.
2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
parenthesis in if statement.
2000-07-17 Koundinya K <kk@ddeorg.soft.net>
Enable the support for Traditional MIPS.
* elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
return ict_none appropriately for traditional mips targets.
(STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
(STUB_MOVE): Conditionalize for traditonal mips.
(STUB_LI16): Likewise.
(_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
room for RTPROC header.
(_bfd_mips_elf_modify_segment_map): For a normal mips executable set
the permission for the PT_DYNAMIC as read, write and execute.
(mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
for traditonal mips.
(_bfd_mips_elf_create_dynamic_sections): Add the symbol
_DYNAMIC_LINKING for traditonal mips.
(_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
in case of traditonal mips.
(_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
entry is required. For a function if PLT is not required then set the
corresponding hash table entry to 0.
(_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
traditonal mips.
(_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
shared object set the value to 0.
(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
_DYNAMIC_LINKING for traditonal mips.
(_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
for traditonal mips.
2000-07-15 H.J. Lu <hjl@gnu.org>
* aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
* libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
out a structure that is BFD_IN_MEMORY.
2000-07-11 Alan Modra <alan@linuxcare.com.au>
* elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
bfd pointer. Print section id instead of bfd pointer for local
syms. Prefix addend with `+' for global syms as well as local.
Correct calculation of name component lengths.
(elf64_hppa_check_relocs): Update call to get_dyn_name.
From David Huggins-Daines <dhd@linuxcare.com>
* elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
* elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
(elf64_hppa_modify_segment_map): Likewise.
2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
* elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
addresses to be "naturally" sign extended. Return -1 if unknown.
* bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
* bfd-in2.h: Regenerate.
2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
* ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
and ECOF_SIGNED_64 to list ways to extract an offset.
(ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
Update.
* elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
* elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
* elfcode.h (elf_object_p): Use bfd_set_start_address and not
bfd_get_start_address.
(elf_swap_ehdr_in): Sign extend e_entry when applicable.
(elf_swap_ehdr_out): Ditto.
2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
* archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
compatibility with older binutils.
2000-07-10 Alan Modra <alan@linuxcare.com.au>
* section.c (bfd_make_section_anyway): Start section_id at 0x10.
(STD_SECTION): Avoid negative ids, instead use 0 to 3.
From Ryan Bradetich <rbradetich@uswest.net>
* dwarf1.c (parse_die): Cure signed/unsigned char warnings.
(parse_line_table): Ditto.
(_bfd_dwarf1_find_nearest_line): Ditto.
* syms.c (cmpindexentry): Remove extra `*' from params.
2000-07-09 Koundinya K <kk@ddeorg.soft.net>
* elf32-mips.c (sort_dynamic_relocs): New Function.
(_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
via qsort to sort the dynamic relocations in increasing r_symndx
value.
2000-07-09 Alan Modra <alan@linuxcare.com.au>
* elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
ATTRIBUTE_UNUSED to unused args.
(get_opd): Likewise.
(get_plt): Likewise.
(get_dlt): Likewise.
(get_stub): Likewise.
(elf64_hppa_adjust_dynamic_symbol): Likewise.
(elf64_hppa_link_output_symbol_hook): Likewise.
(elf64_hppa_check_relocs): Delete unused var.
(elf64_hppa_size_dynamic_sections): Likewise.
(elf64_hppa_finalize_opd): Likewise.
(elf64_hppa_finalize_dynreloc): Likewise.
(elf64_hppa_modify_segment_map): Likewise.
(elf64_hppa_finish_dynamic_sections): Likewise.
* elf-hppa.h (elf_hppa_final_write_processing): Add
ATTRIBUTE_UNUSED to unused args.
(elf_hppa_final_link_relocate): Likewise.
(elf_hppa_record_segment_addrs): Add paretheses.
(elf_hppa_relocate_section): Constify dyn_name.
From David Huggins-Daines <dhd@linuxcare.com>
* config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
rearrange case statement so that it gets preferred to 32-bit ones.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
asection->id instead of address of asection structure.
(elf32_hppa_size_stubs): Likewise.
* elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
for .init* and .fini*.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
and addends used in stub names to 32 bits.
(elf32_hppa_size_stubs): Likewise.
* elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
not bfd_put_64. Fix minor comment typo and formatting.
Changes to create multiple linker stubs, positioned immediately
before the section where they are required.
* elf32-hppa.c: Don't include hppa_stubs.h.
(elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
(elf32_hppa_stub_hash_table): Delete.
(elf32_hppa_link_hash_entry): Delete.
(elf32_hppa_link_hash_table): Use plain bfd_hash_table for
stub_hash_table, and store the struct here rather than a pointer.
Delete output_symbol_count. Add offset array. Change
global_value to a bfd_vma.
(elf32_hppa_stub_hash_lookup): Use table instead of table->root.
(elf32_hppa_stub_hash_traverse): Delete.
(elf32_hppa_name_of_stub): Delete.
(elf32_hppa_link_hash_lookup): Delete.
(elf32_hppa_link_hash_traverse): Delete.
(elf32_hppa_stub_hash_table_init): Delete.
(elf32_hppa_size_of_stub): Pass input section and offset rather
than location and calculate location here. Don't pass name as all
stubs are now the same size.
(elf32_hppa_stub_hash_newfunc): Init new fields.
(elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
too.
(elf32_hppa_bfd_final_link_relocate): Cast enums to int before
comparing against ints. Rewrite stub handling code.
(elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
Case enums to int before comparing against ints. Remove
bfd_reloc_dangerous case.
(elf32_hppa_build_one_stub): Rewrite.
(elf32_hppa_size_one_stub): New function.
(elf32_hppa_build_stubs): Rewrite.
(elf32_hppa_size_stubs): Pass in linker call-back functions.
Rewrite stub-handling specific code.
* elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
* elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
* hppa_stubs.h: Delete.
* Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
(elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
* Makefile.in: Regenerate.
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
e_nlrsel.
* libhppa.h (hppa_field_adjust): Correct e_nsel case.
* elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
and section name for bfd_reloc_notsupported error message.
(elf32_hppa_bfd_final_link_relocate): Print reasons for returning
bfd_reloc_notsupported.
(elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
undefined weak symbols for all relocs.
(elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
offsets are relative to one past the delay slot.
(elf32_hppa_size_stubs): Account for reloc addend when calculating
branch destination. Put addend into stub name too.
(elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
adjust by 8 when deciding whether a linker stub is needed. Put
addend into stub name as for above.
* elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
various args and vars.
(elf32_hppa_bfd_final_link_relocate): Here too.
(elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
inner block var to avoid shadowing.
* elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
unsigned.
* elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
* elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
(elf_hppa_fake_sections): Rename local var to avoid shadowing.
* libhppa.h: Change practically all unsigned ints to plain ints.
Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
prototypes.
From Ryan Bradetich <rbradetich@uswest.net>
* libhppa.h (hppa_opcode_type): New enum to replace #define's.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
suit above.
From David Huggins-Daines <dhd@linuxcare.com>
* elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
to the new OP_* ones.
* elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
error exit. Bail out earlier on plabel relocs that we aren't
interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
string, and then don't free our copy.
(elf32_hppa_build_one_stub): Make insn unsigned int.
* libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
available with BL, not BE and BLE.
* elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
code for elf arg relocs.
(elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
argument with elf_link_hash_entry h. Handle undefined weak
symbols. Move $global$ lookup from here...
(elf32_hppa_relocate_section): ...to here. Return correct error
message for non-handled relocs.
(elf32_hppa_size_of_stub): Correctly test branch range. Previous
wrong test was -0x3ffff to +0x40000.
* elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
Handle them as such.
(elf_hppa_relocate_insn): Fix a typo.
* libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
assemble_17, assemble_21): Delete.
Supply defines for all 64 possible opcodes.
(bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
formats. Handle COMICLR.
(hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
-10, -16, 16, 22.
* elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
(elf32_hppa_bfd_final_link_relocate): Major rewrite.
(elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
to suit.
(elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
the local syms - did this code get deleted accidentally? Ignore
undefined and undefweak syms.
* elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
block. Use it instead of elf64_hppa_hash_table (info).
(elf_hppa_final_link_relocate): Use hppa_info instead of
elf64_hppa_hash_table (info).
* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
(hppa_rebuild_insn): Mask immediate bits here instead.
* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2000-07-08 Alan Modra <alan@linuxcare.com.au>
* section.c (struct sec): Add id field. Tidy comment formatting.
(bfd_make_section_anyway): Set id.
(STD_SECTION): Init id too.
Change CONST to const throughout.
* archures.c (bfd_arch_info): Tidy comment.
(bfd_arch_list): Change a CONST to const.
* libbfd-in.h: Tidy comments and replace CONST with const.
* elf-bfd.h: Likewise.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
* libcoff.h: Regenerate.
2000-07-07 DJ Delorie <dj@redhat.com>
* archive.c (_bfd_write_archive_contents): Add an informative
comment.
2000-07-06 Kazu Hirata <kazu@hxi.com>
* srec.c: Fix formatting.
2000-06-05 DJ Delorie <dj@redhat.com>
* MAINTAINERS: new
2000-07-04 Alexandre Oliva <aoliva@redhat.com>
* coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
value of PC-relative offsets.
2000-07-03 Jim Wilson <wilson@cygnus.com>
* elf64-alpha.c (alpha_elf_size_info): New.
(elf_backend_size_info): Define to alpha_elf_size_info.
* elfcode.h (elf_size_info): Change hash bucket size to 4.
2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
* elf32-mips.c: Include elf32-target.h again for the traditional
MIPS targets.
2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
* elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
(avr_info_to_howto_rela): Likewise.
(elf32_avr_gc_mark_hook): Likewise.
(elf32_avr_gc_sweep_hook): Likewise.
(elf32_avr_relocate_section): Likewise.
2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
* cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
an external symbol for a non-shared, non-relocatable link.
2000-07-03 Nick Clifton <nickc@redhat.com>
* cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
is an external symbol.
(IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
external symbol.
2000-07-03 Kazu Hirata <kazu@hxi.com>
* reloc16.c: Fix formatting.
2000-07-01 Koundinya K <kk@ddeorg.soft.net>
* config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
to add a new target for traditional mips i.e
bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
* configure.in: Likewise.
* configure: Rebuild.
* targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
bfd_target_vector.
(bfd_elf32_tradlittlemips_vec): Likewise.
* elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
to see that elfNN_bed does not get redefined even if the target file
is included twice for a chip. See elf32-mips.c.
2000-07-01 Alan Modra <alan@linuxcare.com.au>
* Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
(CLEANFILES): Add DEPA.
* Makefile.in: Regenerate.
2000-06-30 DJ Delorie <dj@cygnus.com>
* peicode.h (coff_swap_filehdr_in): can't use e_magic because we
can't assume the PE header is at 0x80.
2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
* syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
* go32stub.h: Update stub.
2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
* archures.c (bfd_mach_avr5): Define.
* bfd-in2.h (bfd_mach_avr5): Define.
* cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
bfd_mach_avr5, add bfd_mach_avr4. Update comments.
(compatible): Update comment. Add missing test.
* elf32-avr.c (avr_final_link_relocate): Support 8K wrap
for avr2 and avr4. Simplify 8K wrap code.
(bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
(elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
2000-06-26 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c: Fix formatting.
* cpu-h8300.c: Likewise.
2000-06-24 Alexandre Oliva <aoliva@redhat.com>
* elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
for local symbols whose names are unknown.
2000-06-22 Alan Modra <alan@linuxcare.com.au>
* Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
find one.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
2000-06-20 H.J. Lu <hjl@gnu.org>
* Makefile.am: Rebuild dependency.
* Makefile.in: Rebuild.
2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Map to the new function.
2000-06-20 Alan Modra <alan@linuxcare.com.au>
* archive.c (normalize): Correct pointer comparison when checking
for backslashes.
(bfd_bsd_truncate_arname): Likewise.
(bfd_gnu_truncate_arname): Likewise.
2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
* elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
sections elf_{text,data}_{section,symbol}.
* elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
(_bfd_mips_elf_hide_symbol): New function.
(elf_backend_hide_symbol): Map to the new function.
(_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
definitions of mips_elf_{text,data}_{section,symbol}.
(mips_elf_local_relocation_p): Try to find the direct symbol
based on new check_forced argument.
(mips_elf_calculate_relocation): Use new version of
mips_elf_local_relocation_p.
(mips_elf_relocate_section): Likewise.
(_bfd_mips_elf_relocate_section): Likewise.
(mips_elf_sort_hash_table): Only assert that have enough GOT
space.
(mips_elf_got16_entry): Match all 32 bits to the existing GOT
entry if the relocation based on the new external argument.
(mips_elf_create_dynamic_relocation): Assert that we have a
section contents allocated where we can swap out the dynamic
relocations.
(mips_elf_calculate_relocation): Find the real hash-table entry
correctly by using h->root.root.type. Only create a dynamic
relocation entry if the symbol is defined in a shared library.
Create an external GOT entry for the GOT16 relocation if the
symbol was forced local.
(_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
dynamic index if the symbol was forced local.
2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* elf32-mips.c: Fix typos in comments.
2000-06-19 Mark Kettenis <kettenis@gnu.org>
* rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
CORE_VERSION_1.
2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
* Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
* Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
* configure.in (bfd_elf32_m68hc12_vec): Recognize.
(bfd_elf32_m68hc11_vec): Likewise.
* config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
Supports 68hc11 & 68hc12 at the same time.
* targets.c (bfd_elf32_m68hc12_vec): Declare and put in
bfd_target_vector.
(bfd_elf32_m68hc11_vec): Likewise.
* elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
* archures.c (bfd_m68hc12_arch): Define and register in global list
(bfd_m68hc11_arch): Likewise.
* reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
BFD_RELOC_M68HC11_3B): Define.
* cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
* cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
* elf_bfd.h (struct elf_backend_data): Add info argument to
elf_backend_hide_symbol.
(_bfd_elf_link_hash_hide_symbol): Likewise.
* elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
* elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
* elflink.h (elf_link_add_object_symbols): Likewise.
(elf_link_assign_sym_version): Likewise.
2000-06-18 H.J. Lu <hjl@gnu.org>
* coff-i386.c (coff_i386_reloc): Don't return in case of
output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
Compensate PE relocations when linking with non-PE object
files to generate a non-PE executable.
2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
* elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
GOT entries if we're doing a static link or -Bsymbolic link.
2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
* elflink.h (elf_link_adjust_relocs): Check for and call backend
specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
available.
(elf_link_output_relocs): Likewise.
(elf_reloc_link_order): Likewise.
2000-06-16 Nicholas Duffek <nsd@redhat.com>
* archures.c (enum bfd_architecture): #define constants for
PowerPc and RS6000 machine numbers.
* bfd-in2.h: Regenerate.
* coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
and RS6000 machine numbers using #defined constants from
archures.c.
* cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
machine numbers using #defined constants from archures.c. Add
entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
64-bit words in 620 entry.
* cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
RSC, and RS2.
(bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
2000-06-16 Nicholas Duffek <nsd@cygnus.com>
* coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
* libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
* libcoff.h (struct xcoff_tdata): Define xcoff64 field.
2000-06-16 Nicholas Duffek <nsd@redhat.com>
* bfd-in.h (bfd_family_coff): Define.
* bfd-in2.h: Regenerate.
* coffgen.c (coff_count_linenumbers, coff_symbol_from,
coff_find_nearest_line): Check COFFness using bfd_family_coff()
instead of bfd_target_coff_flavour.
* cofflink.c (_bfd_coff_final_link): Likewise.
* cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
exclude XCOFF files.
* reloc.c (bfd_perform_relocation, bfd_install_relocation):
Likewise.
* targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
* xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
* xcofflink.c (XCOFF_XVECP): Delete.
(bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
bfd_xcoff_record_link_assignment,
bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
check for bfd_target_xcoff_flavour.
2000-06-16 Nicholas Duffek <nsd@redhat.com>
* rs6000-core.c: Support 64-bit core files, support pre-4.3 core
files on AIX 4.3.
(read_hdr): New function.
(rs6000coff_core_p): Store mstsave or __context64 struct instead
of trying to extract individual registers. Set abfd->arch_info
to match the architecture that created the core file.
(rs6000coff_get_section_contents): Delete.
* xcoff-target.h (rs6000coff_get_section_contents): Delete.
2000-06-14 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
is NULL.
2000-06-13 H.J. Lu <hjl@gnu.org>
* configure: Regenerate.
2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
* peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
armpei_little_vec.
2000-06-08 David O'Brien <obrien@FreeBSD.org>
* configure.in (VERSION): Update to show this is the CVS mainline.
2000-06-07 Alan Modra <alan@linuxcare.com.au>
* elf32-d10v.c: Include elf/d10v.h
(enum reloc_type): Delete.
* elf32-d30v.c: Include elf/d30v.h
(enum reloc_type): Delete.
* Makefile.am: Run "make dep-am" to regenerate dependencies.
* Makefile.in: Regenerate.
* elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
(elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
move HOWTOs into elf_howto_table.
(R_386_standard, R_386_ext_offset): Define.
(R_386_ext, R_386_vt_offset, R_386_vt): Define.
(elf_i386_reloc_type_lookup): Modify calculation of index into
elf_howto_table since we've removed the padding.
(elf_i386_info_to_howto_rel): Likewise.
(elf_i386_relocate_section): Likewise.
2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
2000-06-05 H.J. Lu <hjl@gnu.org>
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
an error when seeing an undefined symbol with hidden/internal
attribute. It is handled in *_relocate_section ().
2000-06-05 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_fix_symbol_flags): Follow the link for the
indirect symbol for the ELF_LINK_NON_ELF bit.
(elf_link_output_extsym): Don't output the indirect symbol even
if the ELF_LINK_NON_ELF bit is set.
2000-06-01 J.T. Conklin <jtc@redback.com>
* config.bfd (i[3456]86-*-netbsdelf*): New target.
(i[3456]86-*-netbsdaout*): New target.
(i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
(i[3456]86-*-openbsd*): Likewise.
2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
* trad-core.c: From hpux-core.c, include <dirent.h> or
<sys/ndir.h> when possible.
2000-05-31 Nick Clifton <nickc@cygnus.com>
* opintl.h (_(String)): Explain why dgettext is used instead
of gettext.
2000-05-31 Ulrich Drepper <drepper@redhat.com>
* elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
definitions. We must not assume they are sorted in the file
according to their index numbers.
2000-05-31 Alan Modra <alan@linuxcare.com.au>
* elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
R_PARISC_DIR17F are for absolute branches; Handle them as such.
2000-05-30 Nick Clifton <nickc@cygnus.com>
* cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
80960CA, 80960MC as valid machine names.
2000-05-30 H.J. Lu <hjl@gnu.org>
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
visibility bits if the symbol is undefined. Correctly handle
weak undefined symbols with hidden and internal attributes.
* elflink.h (elf_link_add_object_symbols): Always turn the
symbol into local if it has the hidden or internal attribute.
2000-05-29 Philip Blundell <philb@gnu.org>
* ppcboot.c: Add packed attribute if compiling with GCC.
2000-05-29 Anatoly Vorobey <mellon@pobox.com>
* elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
elfcore_grok_psinfo): Add code to allow debugging a 32-bit
corefile on a 64-bit (Sparc Solaris) host. Also clean up
a few old comments.
2000-05-26 Alan Modra <alan@linuxcare.com.au>
* Makefile.am: Update dependencies with "make dep-am"
* Makefile.in: Regenerate.
* sysdep.h (gettext, dgettext, dcgettext, textdomain,
bindtextdomain): Replace defines with those from intl/libgettext.h
to quieten gcc warnings.
2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
* aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
* archive.c (normalize, bfd_bsd_truncate_arname,
bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
file names with backslashes.
* cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
before opening it.
* sysdep.h: Include filenames.h.
2000-05-26 Alan Modra <alan@linuxcare.com.au>
* opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
2000-05-26 Jakub Jelinek <jakub@redhat.com>
* elf64-sparc.c (sparc64_elf_relax_section): New.
(sparc64_elf_relocate_section): Optimize tail call into branch always
if possible.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
(elf32_sparc_relax_section): New.
2000-05-26 Jakub Jelinek <jakub@redhat.com>
* elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
Remove unusued variables.
(sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
(sparc64_elf_merge_private_bfd_data): Fix shared library case from
previous fix, so that shared libs really don't influence targets
extension mask and memory model.
2000-05-23 H.J. Lu <hjl@gnu.org>
* elf64-alpha.c (elf64_alpha_relocate_section): Check
h->root.other not h->other.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2000-05-23 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_relocate_section): Don't allow the
undefined symbol with the non-default visibility attributes.
* elf-hppa.h (elf_hppa_relocate_section): Likewise.
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2000-05-22 Richard Henderson <rth@cygnus.com>
* elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
PCREL22, PCREL64I. Zero size of special relocs.
(elf64_ia64_reloc_type_lookup): Likewise.
(USE_BRL, oor_brl, oor_ip): New.
(elf64_ia64_relax_section): New.
(elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
(elf64_ia64_install_value): Likewise, plus PCREL21BI.
(elf64_ia64_relocate_section): Likewise.
(bfd_elf64_bfd_relax_section): New.
* reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
(BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
* bfd-in2.h, libbfd.h: Regenerate.
2000-05-22 Nick Clifton <nickc@cygnus.com>
* configure.in : Add peigen.lo to MIPS PE targets.
* configure: Regenerate.
2000-05-22 Momchil Velikov <velco@fadata.bg>
* libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
only if it is known for both input and output bfds. Separate
error message strings as in some languages, it may be necessary
to change more than one place in the string to change between
'big' and 'little'.
* elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
endianess checks, call _bfd_generic_verify_endian_match() instead.
* elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
* elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
* elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
endianess before checking bfd flavours.
2000-05-22 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_output_extsym): Clear the visibility
field for symbols not defined locally.
2000-05-18 Alan Modra <alan@linuxcare.com.au>
* libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
(hppa_rebuild_insn): Mask immediate bits here instead.
* elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
2000-05-18 Momchil Velikov <velco@fadata.bg>
* elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
relocs for an executable, ensure that they are virtual addresses.
2000-05-18 Jeffrey A Law (law@cygnus.com)
* config.bfd (hppa*64*-*-hpux11*): New target triplet.
2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
Rick Gorton <gorton@scrugs.lkg.dec.com>
* elflink.h: Add emitrelocations support: when enabled, relocation
information and relocation sections are put into final output
executables. If the emitrelocations flag is set, do the following:
(elf_bfd_final_link): Emit relocation sections.
(elf_link_input_bfd): Compute relocation section contents.
(elf_gc_sections): Don't clean relocation sections.
2000-05-16 Catherine Moore <clm@cygnus.com>
* som.c (som_decode_symclass): Recognize weak symbols.
2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
* peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
read idata section only from dataoff.
(pe_print_edata): Correctly check for valid eat_member.
2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
* elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
2000-05-14 Philip Blundell <philb@gnu.org>
* config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
2000-05-12 Alan Modra <alan@linuxcare.com.au>
* targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
* peigen.c (pe_print_idata): Look for .idata section and print
info even if data directory has zero entries. Read idata section
starting from dataoff, and adjust all data offsets to suit. Cast
all bfd_vma vars to unsigned long before passing to fprintf.
* peigen.c (pe_print_edata): Similarly, look for .edata section
and print info even if data directory has zero entries. Cast
all bfd_vma vars to unsigned long before passing to fprintf.
From Szabolcs Szakacsits <szaka@F-Secure.com>
* peigen.c (pe_print_idata): Use bfd_section_size rather than data
directory size which may be bogus.
* peigen.c (pe_print_edata): Similarly.
2000-05-09 Alan Modra <alan@linuxcare.com.au>
* elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
section is empty.
(copy_private_bfd_data): Allow for space possibly taken up by elf
headers when calculating segment physical address from lma.
2000-05-08 Alan Modra <alan@linuxcare.com.au>
* versados.c (versados_scan): Init stringlen and pass_2_done.
* trad-core.c (trad_unix_core_file_p): Return
bfd_error_wrong_format rather than bfd_error_file_truncated.
* peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
add_data_entry. DataDirectory virtual address is relative.
(pe_print_idata): Account for relative DataDirectory virtual
addresses. Don't trash datasize inside POWERPC_LE_PE code.
(pe_print_edata): Similarly.
From Szabolcs Szakacsits <szaka@F-Secure.com>
* peigen.c (dir_names): Add Delay Import Directory.
(pe_print_idata): Always search for bfd section containing
idata address rather than looking up section name. Print this
section name rather than .idata.
(pe_print_edata): Similarly. Also print some fields as %08lx.
(_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
Win32Version.
2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
* xcoff.h: Rename to xcoff-target.h
* Makefile.am: Change all instances of xcoff.h to xcoff-target.h
* coff-rs6000.c: Ditto.
* coff64-rs6000.c: Ditto.
* coff-pmac.c: Ditto.
* Makefile.in: Regenerate.
2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
* coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
Change U802TOC64MAGIC to U803XTOCMAGIC.
2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
* bfd-in.h: Prototype bfd_elf_get_arch_size.
* bfd-in2.h: Prototype bfd_elf_get_arch_size.
2000-05-04 Alan Modra <alan@linuxcare.com.au>
* libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
* elflink.h (elf_link_add_object_symbols): Reset dynindx for
hidden and internal symbols.
(elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
visibility.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
assign a PLT or GOT entry to symbols with hidden and
internal visibility.
2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
* bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
the .bss section.
* bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
2000-05-02 H.J. Lu <hjl@gnu.org>
* elf.c (prep_headers): Use ELFOSABI_NONE instead of
ELFOSABI_SYSV.
2000-05-02 Alan Modra <alan@linuxcare.com.au>
* targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
* Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
dependencies.
* Makefile.in: Regenerate.
2000-05-01 Jim Wilson <wilson@cygnus.com>
* Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
(BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
(BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
(BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
* Makefile.in: Rebuild.
2000-05-02 Alan Modra <alan@linuxcare.com.au>
* config.bfd: Re-enable elf32-hppa. It now compiles, even if it
doesn't work very well.
* elf-hppa.h (elf_hppa_internal_shdr): Define.
(elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
Set hdr->s_type to 1 if ARCH_SIZE == 32.
(_bfd_elf_hppa_gen_reloc_type): Add prototype.
(elf_hppa_info_to_howto): Likewise.
(elf_hppa_info_to_howto_rel): Likewise.
(elf_hppa_reloc_type_lookup): Likewise.
(elf_hppa_is_local_label_name): Likewise.
(elf_hppa_fake_sections): Likewise.
(elf_hppa_final_write_processing): Likewise.
(elf_hppa_howto_table): Fully initialise all entries.
(_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
(elf_hppa_info_to_howto): Likewise.
(elf_hppa_info_to_howto_rel): Likewise.
(elf_hppa_reloc_type_lookup): Likewise.
(elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
elf_hppa_unmark_useless_dynamic_symbols,
elf_hppa_remark_useless_dynamic_symbols,
elf_hppa_record_segment_addrs, elf_hppa_final_link,
elf_hppa_relocate_section, elf_hppa_final_link_relocate,
elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
elf32-hppa.c mess is cleaned up.
(elf_hppa_final_link_relocate): Make insn and r_type unsigned
int. Delete r_field. In case R_PARISC_PCREL21L, don't set
r_field then call hppa_field_adjust inline func with variable
r_field arg, instead call hppa_field_adjust with fixed arg.
In case R_PARISC_PCREL22F, don't set r_field.
(elf_hppa_relocate_insn): Change args and return type to unsigned
int. Call re_assemble_* funcs to do the work.
* elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
sign extending.
* libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
extending.
(sign_extend): Mask first before sign extending.
(low_sign_extend): Rewrite without condition expression.
(ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
(assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
assemble_17, assemble_21, sign_unext, low_sign_unext): Return
result as function return value rather than through pointer arg.
Accept unsigned int args, and return unsigned int.
(re_assemble_3): New. Combines function of dis_assemble_3 with
re-assembly of opcode and immediate.
(re_assemble_12): Likewise.
(re_assemble_16): Likewise.
(re_assemble_17): Likewise.
(re_assemble_21): Likewise.
(re_assemble_22): Likewise.
(hppa_field_adjust): Rewrite and document, paying attention to
size of types and signed/unsigned issues.
(get_opcode): Shift before masking.
(FDLW): Rename to FLDW.
(bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
(hppa_rebuild_insn): Change args and return value to unsigned
int. Make use of re_assemble_*. Correct case 11.
* dep-in.sed: Handle ../opcodes/.
* Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
elf64-hppa.h, hppa_stubs.h, xcoff.h.
(BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
elfarm-nabi.lo dependencies outside of auto-dependency area.
Regenerate dependencies.
* Makefile.in: Regenerate.
* configure.in (TRAD_HEADER): Test non-null before
AC_DEFINE_UNQUOTED.
* configure: Regenerate.
* reloc.c: Fix mis-spelling in comment.
2000-05-01 Alan Modra <alan@linuxcare.com.au>
* coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
* vms.c (vms_openr_next_archived_file): Return NULL.
2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
* coffcode.h Copy changes mistakenly done to libcoff.h in
4/24/2000 patch.
2000-04-29 Andreas Jaeger <aj@suse.de>
* libbfd-in.h: Correctly check GCC version.
* bfd-in.h: Likewise.
* libhppa.h: Likewise.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
* Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
coffdu-rs6000.{lo,c}.
(coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
on xcoff.h
* Makefile.in: Regenerate.
* xcoff.h: New file.
* coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
* coff-rs6000.c: Move all declarations and defines that are
common to the xcoff backends into xcoff.h
* coff64-rs6000.c: Ditto,
2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
* coff-mips.c (mips_ecoff_backend_data): Add initialization of
_bfd_coff_force_symnames in strings and
_bfd_coff_debug_string_prefix_length to their default values.
* coff-sh.c: (bfd_coff_small_swap_table): Ditto.
2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
* coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
_bfd_coff_force_symnames in strings and
_bfd_coff_debug_string_prefix_length to their default values.
2000-04-27 Alan Modra <alan@linuxcare.com.au>
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
Check local_got_refcounts before dereferencing.
* elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
before deciding we don't need R_PPC_PLT32 relocation.
(ppc_elf_gc_sweep_hook): Check local_got_refcounts before
dereferencing.
* elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
* elf32-i386.c (elf_i386_check_relocs): Reference count .got and
.plt entries.
(elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
(elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
(elf_i386_relocate_section): Allow for .plt to go missing.
(elf_i386_finish_dynamic_symbol): Use same test to decide if we
can use a relative reloc for got as elf_i386_relocate_section.
(bfd_elf32_bfd_final_link): Define to use gc form of final link.
2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
* config.bfd: Remove extraneous bfd_powerpc_64_arch.
2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
* Makefile.am (coff64-rs6000.lo): New rule.
* Makefile.in: Regenerate.
* coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
xcoff_is_local_label_name, xcoff_rtype2howto,
xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
(NO_COFF_SYMBOLS): Define.
(xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
internally.
(MINUS_ONE): New macro.
(xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
relocation.
(coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
coff_SWAP_aux_out): Map to the new functions.
* coff64-rs6000.c: New file.
* libcoff.h (bfd_coff_backend_data): Add new fields
_bfd_coff_force_symnames_in_strings and
_bfd_coff_debug_string_prefix_length.
(bfd_coff_force_symnames_in_strings,
bfd_coff_debug_string_prefix_length): New macros for above fields.
* coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
of using coff_swap_sym_in directly.
(FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
(coff_set_flags) Set magic for XCOFF64.
(coff_compute_section_file_positions): Add symbol name length to
string section length if bfd_coff_debug_string_prefix_length is
true.
(coff_write_object_contents): Don't do reloc overflow for XCOFF64.
(coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
using coff_swap_lineno_in directly.
(bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
and _bfd_coff_debug_string_prefix_length fields.
* coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
symbol names into strings table when
bfd_coff_force_symnames_in_strings is true.
* coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
SET_RELOC_VADDR): New macros.
(coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
(coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
code.
(coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
changes within RS6000COFF_C specific code.
(coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
* reloc.c (bfd_perform_relocation, bfd_install_relocation):
Extend existing hack on target name.
* xcofflink.c (XCOFF_XVECP): Extend existing hack on
target name.
* coff-tic54x.c (ticof): Keep up to date with new fields
in bfd_coff_backend_data.
* config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
targ_selvecs to include rs6000coff64_vec for rs6000.
* configure.in: Add rs6000coff64_vec case.
* cpu-powerpc.c: New bfd_arch_info_type.
2000-04-24 Jeffrey A Law (law@cygnus.com)
* config.bfd: Only disable elf32-hppa vectors, not all of the
BSD and OSF configuration support. Provide (disabled) clauses
for PA64 support.
* configure.in: Add clause for PA64 support.
* configure: Rebuilt.
* targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
(bfd_elf64_hppa_vec): Declare.
* Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
(BFD64_BACKENDS_CFILES): Add elf64-hppa.c
(elf64-hppa.lo): Add dependencies.
* Makefile.in: Rebuilt.
* elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
2000-04-24 Jason Eckhardt <jle@cygnus.com>
* libhppa.h (dis_assemble_16): New function.
(pa_arch): Added pa20w element.
2000-04-24 Ulrich Drepper <drepper@cygnus.com>
* elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
bfd_elf64_slurp_reloc_table.
* elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
definitions to get external names.
(elf_write_relocs): Renamed from write_relocs and make global.
(elf_slurp_reloc_table): Make global.
(_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
* archive.c (hpux_uid_gid_encode): New function.
(bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
defined and the ID is greater than 99999.
(bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
special uid/gid fields into 32 bit values.
2000-04-21 Matthew Green <mrg@cygnus.com>
* config.bfd: Add NetBSD/sparc64 support.
Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
David Mosberger <davidm@hpl.hp.com>
Timothy Wall <twall@cygnus.com>
Jim Wilson <wilson@cygnus.com>
* Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
(ALL_MACHINES_CFILES): Add cpu-ia64.c.
(BFD64_BACKENDS): Add elf64-ia64.lo.
(BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
(cpu-ia64.lo, elf64-ia64.lo): New rules.
* Makefile.in: Rebuild.
* archures.c (enum bfd_architecture): Add bfd_arch_ia64.
(bfd_ia64_arch): Declare.
(bfd_archures_list): Add bfd_ia64_arch.
* bfd-in2.h: Rebuild.
* config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
* configure: Rebuild.
* configure.host: (ia64-*-linux*): New host.
* configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
* elf.c (prep_headers): Add bfd_arch_ia64.
* libbfd.h: Rebuild.
* reloc.c: Add IA-64 relocations.
* targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
Declare.
(bfd_target_vect): Add bfd_elf64_ia64_little_vec.
* cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
2000-04-21 Richard Henderson <rth@cygnus.com>
* elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
contents when performing a partial link.
(bfd_elf_d30v_reloc_21): Likewise.
2000-04-20 H.J. Lu <hjl@gnu.org>
* elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
patch to symbols defined by a shared object.
* elf32-ppc.c (ppc_elf_relocate_section): Similarly.
2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
K&R compiler fixes.
* dwarf2.c (concat_filename): Avoid string literal concatenation.
* ieee.c (ieee_get_symtab): Don't initialise union in struct.
Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
* Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
(BFD64_BACKENDS_CFILES): Mention coff-ia64.c
(coff-ia64.lo): Add dependency.
* Makefile.in: Regenerate.
* coff-ia64.c: New file.
* efi-app-ia32.c: Ditto.
* efi-app-ia64.c: Ditto.
* coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
(coff_set_flags): Ditto.
(coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
* config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
* configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
* configure: Regenerate.
* libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
(PUT_OPTHDR_IMAGE_BASE): Ditto.
(GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
(PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
(GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
(PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
(GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
(PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
(GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
(PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
(GET_PDATA_ENTRY): Ditto.
* peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
data_start. Use above macros to read fields that are 64 bit wide for
COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
(_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
FileAlignment and SectionAlignment to minimum alignment if they
are zero.
(_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
(_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
Use above macros to write fields that are 64 bit wide for
COFF_WITH_PEP64.
(pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5*4 otherwise. This should be right for IA-32 and IA-64, but may
be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
begin address, end address, and unwind info address only. Use
GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
print addresses.
(tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
HIGH3ADJ relocation names.
(_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
* targets.c: Declare bfd_efi_app_ia32_vec and
bfd_efi_app_ia64_vec.
(bfd_target_vector): Mention bfd_efi_app_ia32_vec and
bfd_efi_app_ia64_vec.
2000-04-17 Timothy Wall <twall@cygnus.com>
* bfd-in2.h: Add prototypes for tic54x load page access.
* bfd-in.h: Regenerate.
* coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
in customized _set_arch_mach function.
* coffcode.h (coff_set_alignment_hook): Set section load page if
the appropriate macro is defined.
(write_object_contents): Read section load page.
2000-04-13 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.h: Update copyright date.
* elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
* elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
* elf32-d30v.c (MAX32): Don't use LL suffix.
(MIN32): Define in terms of MAX32.
(bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
* coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
expression.
* peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
2000-04-12 Alan Modra <alan@linuxcare.com.au>
* dep-in.sed: Match space before file name, not after.
* Makefile.am: Regenerate dependencies.
* Makefile.in: Regenerate.
* reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
case, allow address wrap-around stupidly removed 2000-03-17. Sign
extend without an if statement.
2000-04-11 Alan Modra <alan@linuxcare.com.au>
* coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
signed quantites.
* elf32-mips.c (gprel16_with_gp): Likewise.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
here using -0x40000, not (int)0xfffc0000.
(elf32_hppa_size_of_stub): Likewise.
2000-04-11 Timothy Wall <twall@cygnus.com>
* coff-tic54x.c: Now builds with all targets.
* Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
* Makefile.in: Regenerate.
* coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
unitialized variable.
Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
--enable-build-warnings option.
* Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
* Makefile.in, configure: Re-generate.
2000-04-07 Nick Clifton <nickc@cygnus.com>
* reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
BFD_RELOC_THUMB_PCREL_BLX.
* elf32-arm.h (elf32_arm_final_link_relocate): Handle
R_ARM_XPC25 and R_ARM_THM_PC22.
* elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
R_ARM_XPC25 and R_ARM_THM_XPC22.
(elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
R_ARM_[XPC25|THM_XPC22].
* elfarm-oabi.c: Define OLD_ARM_ABI and change include from
elf/arm-oabi.h to elf/arm.h
* Makefile.am: Fix dependency for elfarm-oabi.c
* Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elfcore.h (elf_core_file_p): preserve value of tdata at entry,
and restore it on failure. Release newly allocated tdata on
failure.
Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
* dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
(decode_line_info): Set it. Report error if unit->line_offset is
equal to or larger than it.
2000-04-07 Timothy Wall <twall@cygnus.com>
* targets.c: Added vecs for tic54x.
* reloc.c: Added relocs for tic54x.
* libbfd.h: Regenerated.
* configure: Add TI COFF vecs for tic54x.
* configure.in: Ditto.
* config.bfd (targ_cpu): Recognize new tic54x target.
* coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
* bfd-in2.h: Add tic54x target and relocations.
* Makefile.am, Makefile.in: Add tic54x target.
* archures.c (bfd_archures_list): Add tic54x target.
* coff-tic54x.c: New.
* cpu-tic54x.c: New.
2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elfcore.h (elf_core_file_p): call backend_object_p which
thereby gets an opportunity to update the arch/machine type.
2000-04-06 Timothy Wall <twall@cygnus.com>
* coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
class. Handle SEC_CLINK and SEC_BLOCK flags.
* section.c: Add SEC_CLINK and SEC_BLOCK flags.
* bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
2000-04-06 Nick Clifton <nickc@cygnus.com>
* elf32-arm.h (elf32_arm_set_private_flags): Only check for
EF_INTERWORK if this is an unknown EABI.
(elf32_arm_merge_private_bfd_data): Check EABI version
numbers. Only check EF_xxx flags if the EABI version number
is unknown.
(elf32_arm_check_private_bfd_data): Only check EF_xxx flags
if the EABI version number is unknown.
(elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
if the EABI version number is unknown.
Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
* reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
BFD_RELOC_SH_LOOP_END.
* elf32-sh.c (sh_elf_howto_tab): Change special_func to
sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
(sh_elf_reloc_loop): New function.
(sh_elf_reloc): No need to test for always-to-be-ignored relocs
any more.
(sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
(sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
* bfd-in2.h, libbfd.h: Regenerate.
2000-04-04 Alan Modra <alan@linuxcare.com.au>
* po/bfd.pot: Regenerate.
* Makefile.am: Remove extraneous mkdep comment.
(MKDEP): Use gcc -MM rather than mkdep.
(DEP): Quote when passing vars to sub-make. Add warning
message to end.
(DEP1): Rewrite for "gcc -MM".
(CLEANFILES): Add DEP2.
Update dependencies.
* Makefile.in: Regenerate.
2000-04-03 Kevin Buettner <kevinb@redhat.com>
* configure.in: Added corefile support for AIX 4.3. In particular,
AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
compiling rs6000-core.c.
* configure: Regenerated.
2000-04-03 H.J. Lu <hjl@gnu.org>
* cache.c (bfd_open_file): Unlink the output file only if
it has non-zero size.
2000-04-01 Ken Block USG <block@zk3.dec.com>
* elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
relative relocations for non-loaded sections in shared objects.
(elf64_alpha_check_relocs): Similarly.
Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
* aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
BFD_RELOC_16 to switch for extended relocs.
(MY_swap_ext_reloc_in): New.
(MY_swap_ext_reloc_out): New.
(NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
than NAME(aout,swap_ext_reloc_in) for extended relocs.
(NAME(aout,squirt_out_relocs)): Similarly use
MY_swap_ext_reloc_out.
(aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
2000-04-03 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
the R_PCRWORD_B case.
2000-03-31 Thomas de Lellis <tdel@wrs.com>
* srec.c : Set CHUNK size to 16 bytes to prevent download failures
on some targets.
* ihex.c : Ditto.
Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
* elf32-m32r.c (m32r_elf_generic_reloc): new function. All
HOWTO references to bfd_elf_generic_reloc, that have
partial_inplace == true, now use the new function. The function
is based on the recent rewrite of m32r_elf_lo16_reloc(), and
extends its fixes to the R_M32R_{16,24,32} relocs.
The new logic in m32r_elf_lo16_reloc() has been removed, and
it instead calls the new routine to obtain that functionality.
2000-03-27 Alan Modra <alan@linuxcare.com.au>
* elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
elf32_avr_check_relocs, avr_final_link_relocate,
elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
elf32_avr_object_p): Add prototypes.
(elf32_avr_gc_mark_hook): Add default for h->root.type.
(bfd_elf_avr_final_write_processing): Make static.
2000-03-27 Denis Chertykov <denisc@overta.ru>
* cpu-avr.c: New file. BFD support routines for AVR architecture.
* archures.c (bfd_architecture): Add AVR architecture.
(bfd_archures_list): Add reference to AVR architecture info.
* elf.c (prep_headers): Handle bfd_arch_avr.
* reloc.c: Add various AVR relocation enums.
* targets.c (bfd_elf32_avr_vec): Declare and add to target vector
list.
* Makefile.am: Add support for AVR elf.
* configure.in: Likewise.
* config.bfd: Likewise.
* Makefile.in: Regenerate.
* configure: This too.
* bfd-in2.h: And this.
* libbfd.h: And this.
2000-03-24 H.J. Lu <hjl@gnu.org>
* elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
(elf64_alpha_find_reloc_at_ofs): Likewise.
2000-03-17 Alan Modra <alan@linuxcare.com.au>
* reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
flag an overflow if the bitfield is outside -2**n to 2**n-1. The
allowable range used to be -2**(n-1) to 2**n-1.
* reloc.c (_bfd_relocate_contents): Same here. Also replace
"boolean overflow" with "bfd_reloc_status_type flag".
2000-03-14 Doug Evans <dje@casey.transmeta.com>
* elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
2000-03-14 Kazu Hirata <kazu@hxi.com>
* reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
of shrinks properly, including the last reloc.
2000-03-13 Kazu Hirata <kazu@hxi.com>
* coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
check for R_MOVL2.
2000-03-11 Alan Modra <alan@linuxcare.com.au>
* ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
a format mismatch rather than an "error" from bfd_read such as
bfd_error_file_truncated.
2000-03-10 Geoff Keating <geoffk@cygnus.com>
* elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
sign-extension and big-endian compensation for
R_MIPS_64 even in ld -r.
2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
* elf32-mips.c (mips_elf_next_relocation): Rename from
mips_elf_next_lo16_relocation, and generalize to look
for any relocation type.
(elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
(elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
(elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
(elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
(elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
(elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
(bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
(mips_rtype_to_howto): Likewise.
(mips_elf_calculate_relocation): Handle new relocs.
(_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
are paired. The addend for R_MIPS_GNU_REL16_S2
is shifted right two bits.
2000-03-10 Alan Modra <alan@linuxcare.com.au>
* reloc.c (bfd_perform_relocation): Undo emacs formatting of
comment, and ensure it doesn't happen again.
(bfd_install_relocation): Same here.
(_bfd_relocate_contents): Don't bother assigning unused signmask
shift result. Fix typos in comments.
Remove trailing whitespace throughout file.
2000-03-07 Doug Evans <dje@casey.transmeta.com>
* reloc.c (reloc_howto_struct): Fix partial_inplace comment.
* bfd-in2.h: Rebuild.
2000-03-06 Nick Clifton <nickc@cygnus.com>
* peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
sym_ptr_ptr fields.
(SIZEOF_ILF_SYM_PTR_TABLE): Define.
(SIZEOF_ILF_STRINGS): Redefine.
(pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
relative reloc, as opposed to a section relative reloc.
(pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
not C_LABEL.
Add length of symbol's prefix to string pointer.
Store a pointer to the symbol in the symbol pointer table.
(pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
Initialise the symbol pointer table.
Store the hint in the Hint/Name table.
Make the jump reloc be symbol realtive, not section relative.
Create an import symbol for imported code.
2000-03-06 Catherine Moore <clm@cygnus.com>
* elf.c (swap_out_syms): Check for null type_ptr.
2000-03-01 Hans-Peter Nilsson <hp@axis.com>
* aout-target.h (MY(write_object_contents)): Remove unused
and unusable "#if CHOOSE_RELOC_SIZE".
* pc532-mach.c (MY(write_object_contents)): Ditto.
* netbsd.h (MY(write_object_contents)): Ditto.
* hp300hpux.c (MY(write_object_contents)): Ditto.
* freebsd.h (MY(write_object_contents)): Ditto.
* aout-tic30.c (tic30_aout_write_object_contents): Ditto.
2000-02-29 H.J. Lu <hjl@gnu.org>
* peicode.h (jtab): Make it static.
* coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
defined and COFF_IMAGE_WITH_PE is not defined.
(_bfd_sh_align_load_span): Defined as sh_align_load_span if
COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
2000-03-01 Nick Clifton <nickc@cygnus.com>
* coff-arm.c (bfd_arm_process_before_allocation): Make
'symndx' signed to prevent compile time warning.
* coff-mcore.c: Remove unused prototype for pe_object_p.
* coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
functions that are not used when COFF_IMAGE_WITH_PE is
defined.
(struct sh_opcode): Change type of 'flags' field to unsigned
long so that it can hold the USESAS flag.
* coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
* elf-m10300.c (mn10300_elf_relax_section): Initialise
'sym_sec'.
* elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
parameters.
Remove unusued variables and code.
(elf_backend_add_symbol_hook): Fix prototype.
* elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
'srelgot'.
* elf32-mcore.c (mcore_elf_relocate_section): Initialise
'oldinst'.
* elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
parameters.
Remove unusued variables and code.
(elf_backend_add_symbol_hook): Fix prototype.
* elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
* elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
to unused function parameter.
* pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
parameters.
Use EMPTY_HOWTO to initialise empty howto slots.
Remove unused variables.
* peicode.h (pe_ILF_build_a_bfd): Initialise id6.
2000-03-01 H.J. Lu <hjl@gnu.org>
* aoutx.h (aout_link_input_section_std): Pass "true" to
the undefined_symbol callback.
(aout_link_input_section_ext): Likewise.
* bout.c (get_value): Likewise.
* coff-a29k.c (coff_a29k_relocate_section): Likewise.
* coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
Likewise.
(alpha_relocate_section): Likewise.
* coff-arm.c (coff_arm_relocate_section): Likewise.
* coff-i960.c (coff_i960_relocate_section): Likewise.
* coff-mcore.c (coff_mcore_relocate_section): Likewise.
* coff-mips.c (mips_relocate_section): Likewise.
* coff-ppc.c (coff_ppc_relocate_section): Likewise.
* coff-sh.c (sh_relocate_section): Likewise.
* coff-tic80.c (coff_tic80_relocate_section): Likewise.
* cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
* elflink.h (elf_link_output_extsym): Likewise.
* pe-mips.c (coff_pe_mips_relocate_section): Likewise.
* reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
* reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
* elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
undefined_symbol callback when building shared library with
-Bsymbolic and undefined symbols are allowed. Otherwise, pass
"true".
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
(elf32_mips_get_relocated_section_content): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2000-02-28 Nick Clifton <nickc@cygnus.com>
* Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
* Makefile.in: Regenerate.
* configure.in: Add support for mips and sh pe vectors.
* configure: regenerate.
* config.bfd: Add support for arm-wince, mips-pe and sh-pe
targets.
* targets.c: Add mips and sh pe vectors.
* libpei.h (coff_final_link_postscript): Only define if not
already defined.
* coffcode.h: Add support for WinCE magic numbers.
* peigen.c (pe_print_reloc): Update comment and rearrange
appending of newline character.
* peicode.h: Add support for Image Library Format.
(pe_ILF_vars): Structure containing data used by ILF code.
(pe_ILF_make_a_section): New function. Create a section based
on ILF data.
(pe_ILF_make_a_reloc): New function. Create a reloc based on
ILF data.
(pe_ILF_make_a_symbol): New function. Create a symbol based
on ILF data.
(pe_ILF_save_relocs): New function. Store the relocs created
by pe_ILF_make_a_reloc in a section.
(pe_ILF_build_a_bfd): New function. Create a BFD describing
an ILF object.
(pe_ILF_object_p): New function. Return a bfd_target pointer
for an ILF object.
(pe_bfd_object_p): If an ILF object is detected call
pe_ILF_object_p on it.
* coff-arm.c: Add support for WinCE relocs which are different
from normal ARM COFF relocs.
* pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
* coff-sh.c: Add support for sh-pe target.
* pe-sh.c: New file. Support code for sh-pe target.
* pei-sh.c: New file. Support code for sh-pe target.
* pe-mips.c: New file. Support code for mips-pe target.
* pei-mips.c: New file. Support code for mips-pe target.
2000-02-27 Jakub Jelinek <jakub@redhat.com>
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
architecture if the object causing the bump is dynamic.
* elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
and also don't it for memory ordering.
(sparc64_elf_write_relocs): Take src_rela out of the loop.
2000-02-27 Ian Lance Taylor <ian@zembu.com>
* dwarf2.c (read_abbrevs): Use _raw_size directly rather than
calling bfd_get_section_size_before_reloc.
(decode_line_info): Likewise.
(_bfd_dwarf2_find_nearest_line): Likewise.
2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
* Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
name of the libtool directory.
* Makefile.in: Rebuild.
Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
* som.c (SOM_HOWTO): Define.
(som_hppa_howto_table): Use it.
2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* config.bfd: Enable 64 bit support for GNU/Linux/sparc.
* config.bfd: Enable 64 bit support for Solaris7+/sparc.
2000-02-24 Catherine Moore <clm@cygnus.com>
* som.c (som_misc_symbol_info): Add field
secondary_def.
(som_bfd_derive_misc_symbol_info): Initialize
secondary_def.
(som_build_and_write_symbol_table): Keep track
of secondary_def field.
(som_slurp_symbol_table): Set BSF_WEAK symbol flag
if secondary_def field is set.
(som_bfd_ar_write_symbol_stuff): Initialize
secondary_def.
2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
* dwarf2.c (read_address): Read 16-bits addresses.
(parse_comp_unit): Accept addr_size == 2.
2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
* bfd-in.h: Update copyright date.
2000-02-23 Linas Vepstas <linas@linas.org>
* cpu-i370.c: New file.
* elf32-i370.c: New file.
* archures.c (enum bfd_architecture): Add bfd_arch_i370.
(bfd_i370_arch): New.
(bfd_archures_list): Add bfd_i370_arch.
* elf.c (prep_headers): Add bfd_arch_i370.
* Makefile.am: Add support for IBM 370 elf.
* config.bfd: Likewise.
* configure.in: Likewise.
* libbfd.h (bfd_reloc_code_real_names): Likewise.
* reloc.c (bfd_reloc_code_type): Likewise.
* targets.c: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
* bfd-in2.h: Regenerate.
2000-02-22 Ian Lance Taylor <ian@zembu.com>
* elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
invalid relocation types, and change them to R_386_NONE.
2000-02-22 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): If a version symbol is
not defined, don't add a second ELF_VER_CHR.
* elflink.h (elf_bfd_final_link): Call output_extsym for global
symbols converted to local symbols even when stripping all
symbols.
(elf_link_output_extsym): Process global symbols converted to
local symbols even if they are being stripped.
2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
* archures.c (bfd_octets_per_byte): Return unsigned int.
(bfd_arch_mach_octets_per_byte): Ditto.
* libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
comparison warning.
* section.c (bfd_get_section_size_before_reloc): Quell signed
vs. unsigned comparison warning.
(bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
* trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
change. What was I thinking?
* bfd-in2.h: Regenerate.
* elflink.h (elf_gc_sweep): Skip non-elf input bfds.
(elf_gc_sections): Same here.
(elf_gc_common_finalize_got_offsets): And here.
2000-02-21 Ian Lance Taylor <ian@zembu.com>
ELF HPPA doesn't work at present; remove it until it does.
* config.bfd: Comment out setting targ_defvec to
bfd_elf32_hppa_vec.
* Makefile.am: Rebuild dependencies.
(BFD32_BACKENDS): Remove elf32-hppa.lo.
(BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
(SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
* Makefile.in: Rebuild.
* targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
2000-02-18 Geoff Keating <geoffk@cygnus.com>
* coffcode.h (coff_set_arch_mach_hook): Use free(), because there
is no bfd_free(). Revert bfd_free part of previous change.
2000-02-18 Geoff Keating <geoffk@cygnus.com>
* coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
arrays.
(coff_compute_section_file_positions): Use bfd_free to pair
bfd_malloc.
(coff_write_object_contents): Likewise.
* coff-rs6000.c (xcoff_howto_table_16): New variable.
(xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
2000-02-18 Ulrich Drepper <drepper@cygnus.com>
* coff-rs6000.c (XCOFFARMAGBIG): New macro.
(xcoff_ar_file_hdr_big): New structure.
(SIZEOF_AR_FILE_HDR_BIG): New macro.
(xcoff_ar_hdr_big): New structure.
(SIZEOF_AR_HDR_BIG): New macro.
(xcoff_big_format_p): New macro.
(xcoff_ardata_big): New macro.
(arch_xhdr_big): New macro.
(xcoff_slurp_armap): Handle large archives.
(xcoff_archive_p): Detect large archives.
(xcoff_read_ar_hdr): Handle large archives.
(xcoff_openr_next_archived_file): Handle large archives.
(xcoff_generic_stat_arch_elt): Handle large archives.
(xcoff_write_armap_old): Rename from xcoff_write_armap.
(xcoff_write_armap_big): New function.
(xcoff_write_armap): New function, dispatch to _old or _big.
(xcoff_write_archive_contents_old): Rename from
xcoff_write_archive_contents.
(xcoff_write_archive_contents_big): New function.
(xcoff_write_archive_contents): New function, dispatch to _old or
_big.
2000-02-18 Richard Henderson <rth@cygnus.com>
* elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
and hide_symbol members.
(elf_link_hash_copy_indirect): Remove.
(elf_link_hash_hide_symbol): Remove.
(struct elf_backend_data): Add elf_backend_copy_indirect_symbol
and elf_backend_hide_symbol.
(_bfd_elf_link_hash_copy_indirect): Declare.
(_bfd_elf_link_hash_hide_symbol): Declare.
* elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
(_bfd_elf_link_hash_hide_symbol): Likewise.
(_bfd_elf_link_hash_table_init): Don't init killed members.
* elflink.h (elf_link_add_object_symbols): Use the bed function
pointers not elf_link_hash_{copy_indirect,hide_symbol}.
(elf_link_assign_sym_version): Likewise.
* elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
(elf_backend_hide_symbol): Likewise.
(elfNN_bed): Update for new members.
2000-02-17 Kevin Buettner <kevinb@redhat.com>
* rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
STACK_END_ADDR): Define for new core file format.
(LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
for handling the vagaries of the various core file structures used
by AIX over the years.
(rs6000coff_core_p, rs6000coff_core_file_matches_executable,
Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
core_dumpx structure.
Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
* archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
(bfd_mach_sh3_dsp): Likewise.
(bfd_mach_sh4): Reinstate.
(bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
* bfd-in2.h: Regenerate.
* coff-sh.c (struct sh_opcode): flags is no longer short.
(USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
(sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
(sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
(sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
(sh_opcodes): No longer const.
(sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
(sh_insn_uses_reg): Check for USESAS and USESR8.
(sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
(_bfd_sh_align_load_span): Return early for SH4.
Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
Take into account that field b of a parallel processing insn
could be mistaken for a separate insn.
* cpu-sh.c (arch_info_struct): New array elements for
sh2, sh-dsp and sh3-dsp.
Reinstate element for sh4.
(SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
(SH4_NEXT): Reinstate.
(SH3_NEXT, SH3E_NEXT): Adjust.
* elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
* elf32-sh.c (sh_elf_set_private_flags): New function.
(sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
(sh_elf_merge_private_data): New function.
(elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
(bfd_elf32_bfd_copy_private_bfd_data): Define.
(bfd_elf32_bfd_merge_private_bfd_data): Change to
sh_elf_merge_private_data.
2000-02-13 Richard Henderson <rth@cygnus.com>
* elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
hide_symbol members.
(elf_link_hash_copy_indirect): New.
(elf_link_hash_hide_symbol): New.
* elflink.h (elf_link_add_object_symbols): Break out copy from
indirect new new symbol to elf.c.
(elf_link_assign_sym_version): Break out privatization of
non-exported symbol to elf.c.
* elf.c (_bfd_elf_link_hash_copy_indirect): New.
(_bfd_elf_link_hash_hide_symbol): New.
(_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
2000-02-13 Ian Lance Taylor <ian@zembu.com>
* section.c (_bfd_strip_section_from_output): Add info parameter.
If it passed as non-NULL, use it to check whether any input BFD
has an input section which uses this output section. Change all
callers.
* bfd-in2.h: Rebuild.
* bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
1999-11-29.
* bfd-in2.h: Rebuild.
2000-02-10 Timothy Wall <twall@cygnus.com>
* coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
allow final modifications of swapped-in symbol.
(coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
* coffcode.h (coff_write_relocs): Use macro
SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
symbol index should be set to -1.
Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
* coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
* (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
* (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
sh_insns_uses_or_sets_freg): New functions.
* (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
* (sh_insns_conflict): Use new functions and new macros to
detect conflicts when two instructions both set same integer registers,
both set same fp register, and both set special register.
2000-02-09 Timothy Wall <twall@cygnus.com>
* coffgen.c (coff_real_object_p): Set arch/mach info prior to
swapping in sections, so that the swapping routines have access to
the arch/mach info.
2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
* coff-go32.c: Update comment. Update copyright.
2000-01-27 Thomas de Lellis <tdel@windriver.com>
* syms.c (bfd_decode_symclass)
Two new class characters were added - 'V' and 'v'. The
meaning of 'W' is now restricted to just weak non-object
symbols. This allows differentiation between, for example,
weak functions vs weak objects. nm for example now dumps:
'W' = weak global
'w' = weak unresolved
'V' = weak global object
'v' = weak unresolved object
(bfd_is_undefined_symclass): New function. Return true if the
given symbol class represents and undefined/unresolved symbol.
(bfd_symbol_info): Use bfd_is_undefined_symclass to check for
unresolved symbols.
* bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
* elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
STT_ARM_16BIT flag set, but it is not attached to a data object
return STT_ARM_16BIT so that it will be treated as code by the
disassembler.
2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
* coff-i386.c (i3coff_object_p): Remove prototype.
Update copyright.
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
to name. Update copyright.
* trad-core.c (trad_unix_core_file_p): Cast core_regsec
assignment to avoid warning. Update copyright.
2000-01-24 Robert Lipe (robertl@sco.com)
* coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
instead of using GNU C extension.
2000-01-21 Nick Clifton <nickc@cygnus.com>
* libbfd.c (bfd_read): Do not attempt to get a negativly sized
amount from a bfd_in_memory structure.
(bfd_seek): Do not allow seeks past the end of a bfd_in_memory
structure.
2000-01-14 Nick Clifton <nickc@cygnus.com>
* linker.c (default_indirect_link_order): oops - fix incorrectly
applied patch from Tim Wall.
2000-01-13 Timothy Wall (twall@tiac.net>
* coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
= scnhsz, filhsz, relsz, aoutsz, etc)
* coffswap.h: Ditto.
2000-01-13 Nick Clifton <nickc@cygnus.com>
* elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
interwork thumb to arm stub.
2000-01-13 Timothy Wall (twall@tiac.net>
* archures.c (bfd_octets_per_byte): New function: Return
target byte size.
(bfd_arch_mach_octets_per_byte): New function: Return target
byte size.
* section.c: Distinguish between octets and bytes for usage of
_cooked_size, _raw_size, and output_offset. Clarify
description of bfd_set_section_contents.
* bfd-in2.h: Regenerate.
* coffgen.c: Indicate that the offset parameter is in bytes, not
octets.
* cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
where appropriate to get the octet offset when calling
bfd_set_section_contents.
(bfd_coff_reloc_link_order): Ditto.
* linker.c (bfd_generic_reloc_link_order): Ditto.
(_bfd_default_link_order): Ditto.
* reloc.c (bfd_perform_relocation): Distinguish between octets
and bytes. Use octets when indexing into octet data; use bytes
when calculating target addresses.
(bfd_install_relocation): Ditto.
* srec.c (srec_write_section): Ditto.
2000-01-13 Nick Clifton <nickc@cygnus.com>
* coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
3 to 2. This allows 4 byte sized sections, which is necessary for
dlltool to build functioning DLLs.
2000-01-10 Philip Blundell <pb@futuretv.com>
* config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
(arm*-*-conix*): New target.
2000-01-10 Egor Duda <deo@logos-m.ru>
* config.bfd: Include elf32_i386 vector to target list for cygwin
and mingw.
* config.in: Undefine HAVE_WIN32_PSTATUS_T.
* configure.in: Test for structure win32_pstatus_t in
<sys/procfs.h>
* configure: Regenerate.
* elf.c (elfcore_grok_win32pstatus): New function: process
win32_pstatus_t notes in elf core file.
(elfcore_grok_note): Detect win32_pstatus notes.
2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
visibility.
* elflink.h (elf_link_add_object_symbols): Combine visibilities.
* elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
For older changes see ChangeLog-9899
Local Variables:
mode: change-log
left-margin: 8
fill-column: 74
version-control: never
End:
|