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
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
|
2000-06-18 Nick Clifton <nickc@redhat.com>
* ar.c (print_contents): Improve verbose message.
2000-06-15 H.J. Lu <hjl@gnu.org>
* dyn-string.c: Removed. Not needed with dyn-string.c in
libiberty.
* dyn-string.h: Likewise.
* Makefile.am: Remove references to dyn-string.c and
dyn-string.h. Rebuild dependency.
* Makefile.in: Rebuild.
2000-06-15 H.J. Lu <hjl@gnu.org>
* binutils.texi: Put a warning on copying relocatable object
files between two different formats.
2000-06-13 DJ Delorie <dj@cygnus.com>
* rcparse.y (control): ICON controls take an id as the first
parameter, not an optional string. Also, call new convenience
function that takes res_id's.
* resrc.c (define_control): missing text means zero-length string,
not zero ID.
(define_icon_control): New.
* windres.h: declare define_icon_control.
2000-06-13 H.J. Lu <hjl@gnu.org>
* configure: Regenerate.
2000-06-08 David O'Brien <obrien@FreeBSD.org>
* configure.in (VERSION): Update to show this is the CVS mainline.
2000-06-02 David O'Brien <obrien@FreeBSD.org>
* strings.c (isgraphic): Interpret <TAB> as a printable character,
analogous to <SPACE>.
2000-05-30 Alan Modra <alan@linuxcare.com.au>
* objdump.c (display_target_list): Use bfd_close_all_done, not
bfd_close to fix crash caused by 2000-05-24 change.
2000-05-25 DJ Delorie <dj@cygnus.com>
* resrc.c (close_input_stream): zero out cpp_pipe after closing it.
2000-05-26 Alan Modra <alan@linuxcare.com.au>
* Makefile.am: Update dependencies with "make dep-am"
* Makefile.in: Regenerate.
2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
* ar.c: Include filenames.h.
(normalize) [HAVE_DOS_BASED_FILE_SYSTEM]: Support backslashes
and drive letters in file names.
(main): Support backslashes and drive letters in argv[0]. Drop
the .exe suffix, if any, in argv[0] if is_ranlib is negative. Use
FILENAME_CMP instead of strcmp to compare file names.
(open_inarch) [__GO32__]: Don't ifdef errno != ENOENT test for
DJGPP v2.
(do_quick_append) [__GO32__]: Ditto.
(get_pos_bfd, delete_members, move_members, replace_members):
Compare file names with FILENAME_CMP.
* bucomm.c: Include filenames.h.
(make_tempname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support mixed
forward/backward slashes and drive letters in file names.
* ieee.c (ieee_start_compilation_unit, ieee_add_bb11): Support
mixed forward/backward slashes and drive letters in file names.
* strings.c (O_BINARY, setmode, SET_BINARY): Define.
(main) [SET_BINARY]: Use SET_BINARY to switch stdin into binary
mode.
* objcopy.c: Include filenames.h.
(main) [HAVE_DOS_BASED_FILE_SYSTEM]: Drop the .exe suffix
before comparing to "strip".
Use FILENAME_CMP to compare file names.
* arsup.c: Include filenames.h.
(map_over_list, ar_delete, ar_replace, ar_extract): Use
FILENAME_CMP to compare file names.
(ar_open): Prepend "tmp-" instead of appending "-tmp", to create
the temporary file name.
* configure.in: Check for setmode.
* configure: Regenerate.
2000-05-24 Alan Modra <alan@linuxcare.com.au>
* objdump.c (display_target_list): Close the bfd.
(display_info_table): Likewise.
2000-05-14 H.J. Lu (hjl@gnu.org)
* objcopy.c (filter_symbols): Don't strip global symbols in
relocatable object files.
2000-05-14 Alan Modra <alan@linuxcare.com.au>
* size.c (usage): Associate short options with corresponding long
option to give a clue as to their function.
2000-05-14 Philippe De Muyter <phdm@macqel.be>
* size.c (main): Accept and ignore `-f' option.
2000-05-13 Alan Modra <alan@linuxcare.com.au>
* bucomm.h (gettext, dgettext, dcgettext, textdomain,
bindtextdomain): Replace defines with those from intl/libgettext.h
to quieten gcc warnings.
2000-05-12 H.J. Lu <hjl@gnu.org>
* nlmconv.c (temp_filename): Removed.
* nlmconv.c (link_inputs): Use make_temp_file () instead of
choose_temp_base ().
* objdump.c (display_target_list): Likewise.
(display_info_table): Likewise.
2000-05-08 Alan Modra <alan@linuxcare.com.au>
* objcopy.c (setup_section): Add const and gettext calls for err.
2000-05-02 H.J. Lu <hjl@gnu.org>
* readelf.c (get_osabi_name): Handle ELFOSABI_NONE instead of
ELFOSABI_SYSV. Also handle ELFOSABI_NETBSD, ELFOSABI_HURD,
ELFOSABI_SOLARIS, ELFOSABI_MONTEREY, ELFOSABI_IRIX,
ELFOSABI_FREEBSD, ELFOSABI_TRU64, ELFOSABI_MODESTO
and ELFOSABI_OPENBSD.
2000-05-02 Kazu Hirata <kazu@hxi.com>
* coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
* srconv.c: Likewise.
* sysdump.c: Likewise.
Sun Apr 23 14:23:26 2000 Denis Chertykov <denisc@overta.ru>
* readelf.c (guess_is_rela): AVR uses RELA relocations.
(get_machine_name): machine name for EM_AVR added.
Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
David Mosberger <davidm@hpl.hp.com>
* Makefile.am (readelf.o): Add elf/ia64.h.
* Makefile.in: Rebuild.
* readelf.c: Include elf/ia64.h.
(guess_is_rela, dump_relocations): Handle EM_IA_64.
2000-04-17 Timothy Wall <twall@cygnus.com>
* objdump.c (disassemble_data): Set octets per byte *after*
resolving arch/mach for binary files.
2000-04-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* arlex.l: Add directives to increase lex buffer size.
* objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are
already included by bucomm.h.
2000-04-10 Philippe De Muyter <phdm@macqel.be>
* readelf (dynamic_segment_mips_val): Call `sprintf', not
`strftime' since strftime is not available on all systems.
(process_mips_specific): Ditto.
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-06 Alan Modra <alan@linuxcare.com.au>
* addr2line.c: Update copyright.
* objcopy.1: Likewise, and title.
* strings.1: Likewise.
* version.c (print_version): Add 2000.
* rddbg.c (read_section_stabs_debugging_info): Don't use
bfd_size_type for strx to avoid printf problems if BFD64.
* bucomm.c: (report): Remove `static'.
Move inclusion of stdarg.h/vararg.h from here.
* bucomm.h: To here.
(CONST): Change all occurences to const.
(report): Declare it.
(bfd_fatal): Add ATTRIBUTE_NORETURN.
(fatal): Add ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN.
(non_fatal): Add ATTRIBUTE_PRINTF_1.
* ar.c (main): Use fatal or non_fatal instead of fprintf.
Correct a typo in an error message.
(do_quick_append): Use non_fatal instead of fprintf.
(move_members): Use fatal instead of fprintf, exit.
* coffdump.c (main): Same here.
* dlltool.c (display): Delete.
(warn): Delete.
(inform): Use `report' instead of `display'.
(rvaafter): Remove trailing \n from fatal error msg.
(rvabefore): Ditto.
(asm_prefix): Ditto.
(yyerror): Replace `warn' with `non_fatal', and remove \n.
(def_name): Likewise.
(run): Likewise.
(scan_all_symbols): Likewise.
(gen_lib_file): Likewise.
(def_library): Likewise. Remove extra program_name too.
(run): Remove \n from inform strings.
(scan_drectve_symbols): Likewise.
(add_excludes): Likewise.
(scan_open_obj_file): Likewise.
(gen_exp_file): Likewise.
(gen_lib_file): Likewise.
(process_duplicates): Likewise.
* Makefile.am (dllwrap_SOURCES): Add version.c.
* dllwrap.c (program_version): Delete.
(print_version): Delete.
(display): Always print trailing \n.
(warn): New.
(delete_temp_files): Use warn instead of fprintf. Use gettext.
(run): Here too.
(main): And here.
(usage): gettext'ify.
(long_options): Add missing initialisers.
* nlmconv.c (main): Use fatal/non_fatal instead of fprintf.
(select_output_format): Likewise.
(powerpc_mangle_relocs): Likewise.
(link_inputs): Likewise.
* nm.c (set_print_radix): Use fatal instead of fprintf, exit.
(set_output_format): Likewise.
(main): Use non_fatal instead of fprintf.
(display_rel_file): Likewise.
* objdump.c (slurp_symtab): Use non_fatal instead of fprintf.
(slurp_dynamic_symtab): Same here.
(disassemble_data): And here.
(read_section_stabs): And here.
(read_section_stabs): And here.
(dump_bfd): And here.
(main): And here.
(objdump_sprintf): Use fatal instead of fprintf, exit.
(disassemble_data): Same here.
* rdcoff.c (parse_coff_type): Use non_fatal instead of fprintf.
(parse_coff_struct_type): Same here.
(parse_coff_enum_type): And here.
(parse_coff): And here.
* rddbg.c (read_debugging_info): And here.
* size.c (main): And here.
* windres.c (format_from_name): And here.
* wrstabs.c (stab_write_symbol): Here too.
(write_stabs_in_sections_debugging_info): And here.
(stab_int_type): And here.
(stab_struct_field): And here.
(stab_typdef): And here.
* rescoff.c (read_coff_rsrc): Use fatal instead of fprintf, exit.
* srconv.c (main): Same here.
* strings.c (main): And here.
(integer_arg): And here.
* sysdump.c (main): And here.
2000-04-06 Timothy Wall <twall@cygnus.com>
* objdump.c (dump_section_header): Print CLINK and BLOCK flags.
2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
* readelf.c (decode_location_expression): Loop through multiple
operations.
(read_and_display_attr): Pass in length.
* readelf.c (read_and_display_attr): Add CU offset to references.
(display_debug_info): Pass it in.
2000-04-06 Nick Clifton <nickc@cygnus.com>
* readelf.c (decode_ARM_machine_flags): New function.
(get_machine_flags): Call decode_ARM_machine_flags for ARM
targets.
(get_machine_name): Catch EM_AVR
2000-04-05 Alan Modra <alan@linuxcare.com.au>
* binutils.texi: Remove optional `=' from long options that have
an `=' in the argument.
* objcopy.1: Here too. Remove extra space on discard-all.
* binutils.texi (objcopy): Mention --redefine-sym.
* objcopy.1: Here too.
* NEWS: And here.
* objcopy.c (parse_flags): Split off flag names from error message
gettext as they are not translated.
(copy_main): Similarly split off option name for --add-section,
--set-section-flags, --change-section-vma, --change-section-lma
error messages.
Some white space changes.
from Matthew Benjamin <matt@linuxbox.nu>
* objcopy.c (struct redefine_node): New.
(redefine_sym_list): New.
(redefine_list_append): New.
(lookup_sym_redefinition): New.
(OPTION_REDEFINE_SYM): New.
(copy_options): Add --redefine-sym option.
(copy_usage): Mention it.
(filter_symbols): Rename symbols on redefine_sym_list.
(copy_object): Call filter_symbols if redefine_sym_list != NULL.
(copy_main): Handle OPTION_REDEFINE_SYM.
2000-04-04 H.J. Lu <hjl@gnu.org>
* readelf.c (process_symbol_table): Correctly read in symbol
versioning information.
2000-04-04 Alan Modra <alan@linuxcare.com.au>
* po/binutils.pot: Regenerate.
* addr2line.c (usage): Restore translated part of bug string.
* ar.c (usage): Likewise.
* nlmconv.c (show_usage): Likewise.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage): Likewise.
(strip_usage): Likewise.
* objdump.c (usage): Likewise.
* readelf.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
* windres.c (usage): Likewise.
* Makefile.am (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-04 H.J. Lu <hjl@gnu.org>
* Makefile.am (GENERATED_HFILES): Add rcparse.h
(arparse.h): Depend on arparse.c
(defparse.h, nlmheader.h, rcparse.h, sysinfo.h): Similarly.
2000-04-03 H.J. Lu (hjl@gnu.org)
* size.c (usage): Use REPORT_BUGS_TO.
2000-04-03 Alan Modra <alan@linuxcare.com.au>
* bucomm.h: #include "bin-bugs.h"
* addr2line.c (usage): Use REPORT_BUGS_TO.
* ar.c (usage): Likewise.
* nlmconv.c (show_usage): Likewise.
* nm.c (usage): Likewise.
(OPTION_TARGET): Define.
(long_options): Use OPTION_TARGET rather than 200.
(main): Likewise.
* objcopy.c (copy_usage): Use REPORT_BUGS_TO.
(strip_usage): Likewise.
* objdump.c (usage): Likewise.
* readelf.c (usage): Likewise.
* strings.c (usage): Likewise.
* windres.c (usage): Likewise.
2000-03-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
* readelf.c: Include sys/types.h before sys/stat.h for ultrix.
2000-03-27 Nick Clifton <nickc@cygnus.com>
* rddbg.c (read_section_stabs_debugging_info): Catch out of range
string offsets in corrupt stabs entries.
2000-03-27 Alan Modra <alan@linuxcare.com.au>
* readelf.c: Include elf/avr.h
(dump_relocations): Add EM_AVR case.
2000-03-09 Tim Waugh <twaugh@redhat.com>
* strings.1: Correct '-bytes' to '--bytes'.
2000-03-08 H.J. Lu <hjl@gnu.org>
* Makefile.am (install-exec-local): Depend on
install-binPROGRAMS for parallel make.
* Makefile.in: Regenerated.
2000-02-27 Ian Lance Taylor <ian@zembu.com>
From Brad Lucier <lucier@math.purdue.edu>:
* readelf.c (process_dynamic_segment): Add cast to make sure
argument to %* is int.
2000-02-25 H.J. Lu <hjl@gnu.org>
* configure.in (AC_SEARCH_LIBS): Pass m, not -lm.
2000-02-24 Nick Clifton <nickc@cygnus.com>
* configure.in: Add arm-wince, mips-pe and sh-pe targets.
* configure: Regenerate.
* dlltoolc.: Add support for sh-pe and mips-pe targets.
* rescoff.c: Add support for sh-pe and mips-pe targets.
2000-02-23 H.J. Lu <hjl@gnu.org>
* readelf.c (get_osabi_name): Handle ELFOSABI_LINUX.
2000-02-22 Nick Clifton <nickc@cygnus.com>
* readelf.c (process_symbol_table): Remove use of ELF_ST_OTHER.
2000-02-22 Ian Lance Taylor <ian@zembu.com>
From Brad Lucier <lucier@math.purdue.edu>:
* readelf.c (process_version_sections): Add casts to make sure
argument to %* is an int.
(process_mips_specific): Add casts to make printf arguments match
format.
2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
* objdump.c (dump_section_header): Change `opb' to unsigned.
(find_symbol_for_address): Same here.
(disassemble_data): And here. Change `addr_offset',
`stop_offset', `nextstop_offset' to unsigned long.
(dump_data): Change opb to unsigned.
2000-02-18 Frank Ch. Eigler <fche@redhat.com>
* resrc.c: Remove unmatched #if for cygwin.
2000-02-14 Fernando Nasser <fnasser@totem.to.cygnus.com>
* binutils.texi: Document the change of flavor name from atpcs-special
to special-atpcs to prevent name conflict in gdb.
2000-02-08 Timothy Wall <twall@redhat.com>
* objdump.c (show_line): Fix bug preventing printing of the very
first line (line zero) of a file when interlisting source and
assembly. Added option to print entire context from start of file
when the first line from that file is encountered.
2000-02-03 Timothy Wall <twall@redhat.com>
* binutils/objdump.c (dump_section_header, find_symbol_for_address,
show_line, disassemble_bytes, disassemble_data, dump_data):
distinguish between octets and bytes.
2000-01-27 Thomas de Lellis <tdel@windriver.com>
* nm.c (print_symbol_info_bsd): Use bfd_is_undefined_symclass to
check to unresolved symbols.
(print_symbol_info_sysv): Ditto.
(print_symbol_info_posix): Ditto.
* binutils.texi: Document new 'V' symclass flag for nm.
2000-01-27 Nick Clifton <nickc@redhat.com>
* binutils.texi (objdump): Document new ARM specific
disassembler options.
* objdump.c (usage): Call disassembler_usage().
2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
* readelf.c (get_dynamic_flags): Return buff.
(process_dynamic_segment): Don't pass error strings to printf
as format arg.
(read_and_display_attr): Use lx and ld to print longs.
(process_corefile_note_segment): Cast bfd_vma to unsigned long
before printing.
Update copyright.
2000-01-17 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_osabi_name): Recognise ELFOSABI_ARM.
2000-01-15 Alan Modra <alan@spri.levels.unisa.edu.au>
* debug.c (debug_name_type): Return DEBUG_TYPE_NULL rather than
false.
(debug_tag_type): Here too.
* ieee.c (ieee_builtin_type): And here.
* stabs.c (parse_stab_type, parse_stab_array_type): And here.
2000-01-13 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_machine_name): Change EM_S370 to return "IBM
System/370".
2000-01-11 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_dynamic_type): Remove DT_ENCODING.
2000-01-10 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_note_type): Display NT_WIN32PSTATUS notes.
2000-01-07 Mumit Khan <khan@xraylith.wisc.edu>
* windres.c (long_options): Add --use-temp-file and
--no-use-temp-file options.
(usage): Document.
(main): Handle.
* windres.h: Update read_rc_file prototype.
* resrc.c (cpp_temp_file): New static variable.
(istream_type): New static variable.
(close_pipe): Delete function.
(run_cmd): New static function.
(open_input_stream): New static function.
(close_input_stream): New static function.
(look_for_default): Handle DOS directory separator. Use
open_input_stream instead of popen.
(read_rc_file): Likewise.
* binutils.texi: Document --use-temp-file, --no-use-temp-file
options.
2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (create_compat_implib): New variable.
(gen_exp_file): Use.
(make_one_lib_file): Use.
(long_options): Add --compat-implib option.
(usage): Handle.
(main): Handle.
* dllwrap.c (enum target_type): Rename MINGW32_TARGET to MINGW_TARGET.
(main): Use. Don't look for "32" in cygwin and mingw target names.
2000-01-03 Nick Clifton <nickc@cygnus.com>
* binutils.texi: Document new, ARM specific disassembler
command line switch "-M force-thumb".
1999-12-28 Nick Clifton <nickc@cygnus.com>
* readelf.c: Update with new constants added by Oct 4, 1999
ELF ABI draft.
(guess_is_rela): Add new machine codes, but leave
rel type undetermined.
(get_machine_name): Add new machine codes.
(get_section_type_name): Add new section types.
(get_elf_section_flags): New funciton: Decode section flags.
(process_section_headers): Call get_elf_section_flags() in
order to decode flags in section header.
(get_dynamic_flags): New function: Decode dynamic section
flags.
(process_dynamic_section): Display flags (if present).
(get_symbol_type): Add STT_COMMON.
(get_symbol_visibility): New function: Decode a symbol's
visibility.
(process_symbol_table): Call get_symbol_visibility().
(get_note_type): Add NT_PRXFPREGS.
1999-12-26 Ian Lance Taylor <ian@zembu.com>
* strings.c (main): Correct handling of numeric argument.
1999-12-23 Andrew Haley <aph@cygnus.com>
* dlltool.c (mtable): mcore how_jtab_roff is 4 bytes into the
jtab; was 8.
1999-12-17 Nick Clifton <nickc@cygnus.com>
* dlltool.c (mtable): Stop compile time warnings about missing
initialisers.
(yyerror): Stop compile time warnings about unused paramater.
(INIT_SEC_DATA): New macro: initialise an entry in the secdata
array.
(secdata): Stop ccompile time warnings about uninitialised
fields.
(dtab): Stop compile time warnings about unused parameter.
(long_options): Stop compile time warning about missing
initialiser.
1999-12-10 Nick Clifton <nickc@cygnus.com>
* readelf.c (print_vma): Support native 64bit ELF systems.
1999-12-09 Nick Clifton <nickc@cygnus.com>
* dlltool.c (mtable): Add epoc-arm specific entry.
Make default arm entry pass -mpacs-26 to assembler.
(flush_page): Do not mangle null entries.
1999-12-07 H . J . Lu hjl@valinux.com
* readelf.c: Fix compile time warnings. Support more than 999
symbols.
1999-12-03 Nick Clifton <nickc@cygnus.com>
* readelf.c (enum print_mode): New type.
(print_vma): New function.
(dump_relocations): Use print_vma to display bfd_vma values.
(process_file_header): Use print_vma to display bfd_vma values.
(process_program_headers): Use print_vma to display bfd_vma values.
(process_section_headers): Use print_vma to display bfd_vma values.
(dynamic_segment_parisc_val): Use print_vma to display bfd_vma values.
(process_dynamic_segment): Use print_vma to display bfd_vma values.
(process_symbol_table): Use print_vma to display bfd_vma values.
(process_mips_specific): Use print_vma to display bfd_vma values.
1999-11-25 Fred Fish <fnf@cygnus.com>
* readelf.c (process_note): Change arg from Elf_External_Note
to Elf32_Internal_Note, which also turns the function body
into little more than a call to printf.
(process_corefile_note_segment): Substantially rewritten
to properly handle case where target and host are different
endianness, handle note sections with padding, and add some
cruft to handle notes with unterminated name data.
1999-11-22 Nick Clifton <nickc@cygnus.com>
* objcopy.c (copy_usage): Reformat.
(strip_usage): Reformat.
1999-11-21 Nick Clifton <nickc@cygnus.com>
* objdump.c (usage): Overhaul output: One line per switch.
Textual description of each switch. Distinguish between
optional switches and required switches.
(long_options): Add 'g', 'G' and 'z' short options.
(main): Distinguish between optional switches and required
switches.
* binutils.texi: Add -g -G and -z short options for
--debugging, --stabs and --disassemble-zeroes.
1999-11-03 Nick Clifton <nickc@cygnus.com>
* dlltool.c (flush_page): Clip short values to prevent warnings
from the assembler.
Change default mcore machine name to 'mcore-le' and rename
big-endian version to 'mcore-be'.
1999-10-27 Fred Fish <fnf@cygnus.com>
* objdump.c (display_bfd): Break into two functions. The
actual dumping code moves to dump_bfd. If bfd is not
unambiguously recognized as a bfd_object, attempt to dump
it as a bfd_core.
(dump_bfd): New function.
1999-10-26 Nick Clifton <nickc@cygnus.com>
* dlltool.c (assemble_file): Remove spurious test of exp_name.
1999-10-22 Nick Clifton <nickc@cygnus.com>
* dlltool.c (struct mac): Add new field 'how_default_as_switches'.
(mtable): Initialise new field. Some machines have a non empty
string for this field.
(HOW_BFD_TARGET): Undefine and replace with...
(HOW_BFD_READ_TARGET): New macro: bfd target to use when opening a
file for reading. This is set to 0 so that any recognisable bfd
format can be read.
(HOW_BFD_WRITE_TARGET): New macro: bfd target to use when opening
a file for writing. This is set to the target machine type.
(ASM_SWITCHES): New macro: default switches to use when assembling
a file.
(assemble_file): New function: Assemble a source file into a
destination object file.
(gen_exp_file): Use assemble_file to create the exp file.
(make_one_lib_file): Use assemble_file to create the lib file.
Open output file use HOW_BFD_WRITE_TARGET and input files using
HOW_BFD_READ_TARGET.
(make_head): Use assemble_file to create the head file.
(make_tail): Use assemble_file to create the tail file.
(gen_lib_file): Open output file use HOW_BFD_WRITE_TARGET.
1999-10-15 Ian Lance Taylor <ian@zembu.com>
* ar.c (normalize): Fix full_pathname code.
1999-10-08 Ben Elliston <bje@cygnus.com>
* binutils.texi: Some rewording and clarifications.
1999-09-15 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (dynamic_segment_parisc_val): Print 0 for DLD_FLAGS if
the value is zero.
(process_symbol_table): Don't print histogram if hash table is empty.
1999-09-15 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (get_parisc_dynamic_type): Handle DT_HP_GST_* values.
1999-09-02 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (get_symbol_type): Add support for HPUX and PARISC
specific symbol types.
* readelf.c: Add HPUX and PARISC extensions to dynamic and program
header table printing.
* readelf.c (get_machine_flags): Add handling of PARISC.
1999-09-29 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (scan_drectve_symbols): Handle type tags in exported
symbols.
(scan_filtered_symbols): Likewise.
1999-09-19 Ian Lance Taylor <ian@zembu.com>
* resrc.c (write_rc_rcdata): Fix local variable shadowing
problem. If RCDATA_BUFFER data can be read as strings, modify
code to print the strings as comments.
* resres.c: Add casts to avoid warnings.
(write_res_data, read_res_data): Don't put the program name in the
error message; fatal already puts it there.
1999-09-14 Michael Meissner <meissner@cygnus.com>
* configure.in (Canonicalization of target names): Remove adding
${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
generates $ac_config_sub with a ${CONFIG_SHELL} already.
* configure: Regenerate.
1999-09-12 Ian Lance Taylor <ian@zembu.com>
* ar.c (main): Clear output_file if we don't change the archive.
(delete_members, replace_members): Likewise.
1999-09-12 Donn Terry <donn@interix.com>
* objdump.c (dump_headers): If wide_output, print Flags header.
* objdump.c (dump_section_header): Print any comdat information.
* objcopy.c (parse_flags): Handle "noload", "debug", and "share".
* binutils.texi, objcopy.1: Document new flags.
* ar.c (counted_name_mode): New static variable.
(counted_name_counter): New static variable.
(map_over_members): Handle counted mode.
(usage): Mention N modifier.
(main): Handle N modifier.
(delete_members): Handle counted mode.
* binutils.texi, ar.1: Document N modifier.
* ar.c (print_contents): Change printing of member name for
POSIX.2 conformance.
* ar.c (output_filename): Make const.
(open_inarch): If creating a new empty archive, set
output_filename.
1999-09-12 Ian Lance Taylor <ian@zembu.com>
* ar.c (full_pathname): New static variable.
(map_over_members): Call normalize on command line parameter.
(usage): Mention P modifier.
(normalize): If full_pathname is true, don't do anything.
(main): Accept P modifier.
(delete_members): Call normalize on command line parameter.
* binutils.texi, ar.1: Document P modifier.
1999-09-09 Andreas Schwab <schwab@suse.de>
* binutils.texi: Add info dir entries for all programs described
here. Fix arguments of @var to not contain punctuation.
1999-09-06 Donn Terry <donn@interix.com>
* nm.c (print_symbol_info_bsd): Check for 'w' as well as 'U'.
(print_symbol_info_sysv): Likewise.
(print_symbol_info_posix): Likewise.
1999-09-04 Steve Chamberlain <sac@pobox.com>
* readelf.c: Include "elf/pj.h".
(dump_relocations): Handle EM_PJ.
(get_machine_name): Likewise.
(get_machine_flags): Likewise.
1999-08-31 Scott Bambrough <scottb@netwinder.org>
* readelf.c (get_note_type): New function: Decode the e_type
value of a note.
(process_note): New function: Display the contents of a core note.
(process_corefile_note_segment): New function.
(process_corefile_note_segments): New function.
(process_corefile_contents): New function.
(process_file): Add call to process_corefile_contents.
(parse_args): Add parsing of -n/--notes command line switch.
(usage): Document new command line switch.
* binutils.texi: Documemnt new command line switch to readelf.
1999-08-31 Ian Lance Taylor <ian@zembu.com>
* binutils.texi (Bug Reporting): Clarify that large files should
not be sent to bug-gnu-utils.
1999-08-28 Stephane Carrez <stcarrez@worldnet.fr>
* readelf.c (process_extended_line_op): New parameter pointer_size,
read the address according to pointer_size.
(debug_line_pointer_size): New global to indicate the
size of address in .debug_line section.
(debug_displays, prescan_debug_info): Prescan the .debug_info section
to record the size of address in `debug_line_pointer_size'.
(process_section_contents): Before dumping any section, execute
the pre-scan operation defined for some debug sections.
1999-08-27 Jim Wilson <wilson@cygnus.com>
* readelf.c (display_debug_lines): Use i-1 not i in standard_opcodes
access.
(display_debug_aranges): New local excess. Use for calculating padding
and add that into ranges. Break from loop only if length is also 0.
1999-08-27 Jim Wilson <wilson@cygnus.com>
* readelf.c (display_debug_lines, case DW_LNS_const_add_pc): Multiply
adv by info.li_min_insn_length.
1999-08-26 Jakub Jelinek <jj@ultra.linux.cz>
* readelf.c (get_sparc64_dynamic_type): New function.
(get_dynamic_type): Use it.
1999-08-26 Jim Wilson <wilson@cygnus.com>
* readelf.c (display_debug_lines, case default): Change second line
setting adv to use = not +=.
1999-08-19 Nick Clifton <nickc@cygnus.com>
* dlltool.c: Added more examples to the comment at the start.
1999-08-18 Nick Clifton <nickc@cygnus.com>
* dlltool.c (make_head): Only emit interworking directive if
necessary.
Thu Jul 15 22:44:21 1999 Hans-Peter Nilsson <hp@bitrange.com>
* readelf.c (process_abbrev_section): Handle standard-conforming
single zero at the end of the section.
1999-08-09 Ian Lance Taylor <ian@zembu.com>
* objdump.c (exit_status): New static variable.
(nonfatal): New static function.
(disassemble_data): Set exit_status on error.
(read_section_stabs): Likewise.
(display_bfd): Likewise. Call nonfatal rather than bfd_nonfatal.
(display_file): Call nonfatal rather than bfd_nonfatal.
(display_target_list, display_info_table): Likewise.
(main): Return exit_status rather than 0.
1999-08-08 Ian Lance Taylor <ian@zembu.com>
* objdump.c (dump_section_header): Update for renaming of
SEC_SHORT to SEC_SMALL_DATA. Print SEC_SHARED flag.
From Eli Zaretskii <eliz@gnu.org>:
* binutils.texi: Document cxxfilt as MS-DOS name for c++filt.
* configure.in: Define and substitute DEMANGLER_NAME.
* Makefile.am (DEMANGLER_PROG): Set to cxxfilt.
(man_MANS): Use DEMANGLER_NAME rather than DEMANGLER_PROG.
(bin_PROGRAMS): Remove $(DEMANGLER_PROG).
(noinst_PROGRAMS): Add $(DEMANGLER_PROG).
(cxxfilt_SOURCES): Rename from c__filt_SOURCES.
(cxxfilt_LDADD): Rename from c__filt_LDADD.
($(DEMANGLER_NAME).1): Rename from $(DEMANGLER_PROG).1. Use
DEMANGLER_NAME rather than DEMANGLER_PROG in substitution.
(MOSTLYCLEANFILES): Use DEMANGLER_NAME rather than
DEMANGLER_PROG.
(install-exec-local): When installing noinst_PROGRAMS, change
cxxfilt to $(DEMANGLER_NAME).
* configure, Makefile.in: Rebuild.
* Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
MKDEP.
* Makefile.in: Rebuild.
1999-08-05 Donn Terry <donn@interix.com>
* Makefile.am (YACC): If bison is not in the source tree, use
@YACC@ rather than bison -y.
(LEX): If flex is not in the source tree, use @LEX@ rather than
flex.
* configure.in: Build dlltool for i[3-6]86-*-interix.
* Makefile.in, configure: Rebuild.
1999-07-21 Ian Lance Taylor <ian@zembu.com>
From Mark Elbrecht:
* configure.bat: Remove; obsolete.
1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
* readelf.c (get_machine_flags): Print EF_SPARC_SUN_US3.
1999-07-15 Ian Lance Taylor <ian@zembu.com>
* configure.in: Bump version number to 2.9.5.
* configure: Rebuild.
1999-07-14 Richard Henderson <rth@cygnus.com>
* objdump.c (dump_section_header): Print SEC_SHORT.
1999-07-11 Ian Lance Taylor <ian@zembu.com>
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Add variable initializations. Add casts.
* objdump.c (disassemble_bytes): Change j to bfd_vma.
* readelf.c (process_syminfo): Change i to unsigned int.
(display_debug_info): Change abbrev_number to unsigned long.
(process_mips_specific): Change fcnt to size_t.
1999-07-09 Nick Clifton <nickc@cygnus.com>
* readelf.c: Only support decoding 64bit ELF files if the compiler
supports a 64 bit data type.
Add -I equivalent for --histogram.
Add -A command-line option to display architecture specific information.
1999-07-08 Jakub Jelinek <jj@ultra.linux.cz>
* readelf.c (guess_is_rela): Sparcv9 and v8plus use rela.
(dump_relocations): Use ELF64_R_TYPE_ID for Sparc, for R_SPARC_OLO10
print the secondary addend.
(get_machine_flags): Print Sparc machine flags.
(get_symbol_type): Print STT_REGISTER.
1999-07-08 Ian Lance Taylor <ian@zembu.com>
* stabs.c (parse_stab_type): Fix handling of template names with
template parameters containing `::'.
(stab_demangle_type): Handle a qualified name in a pointer to
member.
1999-06-23 Ian Lance Taylor <ian@zembu.com>
* Makefile.am (dlltool_SOURCES): Add dyn-string.c.
* Makefile.in: Rebuild.
1999-06-23 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
* dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
* dllwrap.c (look_for_prog): Likewise.
* resrc.c (look_for_default): Likewise.
* configure, config.in: Rebuild.
1999-06-22 Ian Lance Taylor <ian@zembu.com>
Based on patches from Mumit Khan <khan@xraylith.wisc.EDU>:
* configure.in: Define EXECUTABLE_SUFFIX.
* dlltool.c: Include "dyn-string.h". Include <stdarg.h> based on
ANSI_PROTOTYPES, not __STDC__.
(outfile): Remove.
(gen_exp_file): Change uses of outfile to use alloca.
(make_one_lib_file, make_head, make_tail): Likewise.
(gen_lib_file): Likewise.
(look_for_prog): New static function.
(deduce_name): Rewrite to use look_for_prog.
(mcore_elf_gen_out_file): Use dyn_string_t rather than outfile.
* dllwrap.c: Don't include <stdio.h>, <errno.h>, <string.h>,
<stdlib.h>, or <unistd.h>. Include <sys/stat.h> and either
<stdarg.h> or <varargs.h>.
(driver_name): Initialize to NULL, not "gcc".
(dlltool_name): Initialize to NULL, not "dlltool".
(display, inform, look_for_prog, deduce_name): New static
functions.
(usage): Mention -mno-cygwin.
(OPTION_MNO_CYGWIN): Define.
(main): Handle -mno-cygwin. Deduce driver_name and dlltool_name.
* resrc.c (look_for_default): Make static. Remove unused local
path. Check using EXECUTABLE_SUFFIX.
(read_rc_file): Allocate enough space to hold EXECUTABLE_SUFFIX.
* Makefile.am: Rebuild dependencies.
(dllwrap_LDADD): Add $(INTLLIBS).
* configure, Makefile.in, config.in: Rebuild.
Mon Jun 21 16:49:11 1999 Jeffrey A Law (law@cygnus.com)
* readelf.c (dump_relocations): Use elf_hppa_reloc_type instead of
elf32_hppa_reloc_type.
1999-06-17 Nick Clifton <nickc@cygnus.com>
* dlltool.c (mcore_elf_gen_out_file): Link object files with the
.exp file, not the .lib file.
Fri Jun 18 20:17:51 1999 Mumit Khan <khan@xraylith.wisc.edu>
* deflex.l: Accept single-character symbol names.
1999-06-16 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_symbol_type): Detect ARM symbols typed as Thumb
functions.
1999-06-14 Nick Clifton <nickc@cygnus.com>
* objdump.c (disassembler_options): New variable.
(usage): Document new -M/--disassembler-options option.
(long_options): Add --disassembler-options.
(disassemble_data): Initialise disassembler_options field of
disassembler_info structure.
(main): Add parsing of -M option.
* binutils.texi: Document new command line switch to objdump.
* NEWS: Describe new command line switch to objdump.
Mon Jun 14 10:27:54 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* binutils.texi: Fix typos.
1999-06-13 Ian Lance Taylor <ian@zembu.com>
* objdump.c (disassemble_bytes): If the disassembler returns an
error, print out anything it may have printed to the buffer. From
H.J. Lu <hjl@gnu.org>.
* defparse.y (explist): Remove separate expline to eliminate
shift/reduce conflict.
From Kai-Uwe Rommel <rommel@ars.de>:
* defparse.y: Add tokens NONSHARED, SINGLE, MULTIPLE,
INITINSTANCE, INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
(command): Add option_list after LIBRARY.
(attr): Accept and ignore NONSHARED, SINGLE, and MULTIPLE.
(option_list, option): New nonterminals.
* deflex.l: Recognize NONSHARED, SINGLE, MULTIPLE, INITINSTANCE,
INITGLOBAL, TERMINSTANCE, and TERMGLOBAL.
1999-06-12 Ian Lance Taylor <ian@zembu.com>
* ar.c (O_BINARY): Define as 0 if not defined.
(ranlib_touch): Open file with O_BINARY.
* rename.c (O_BINARY): Define as 0 if not defined.
(simple_copy): Open files with O_BINARY.
Based on patch from H. Peter Anvin <hpa@transmeta.com>:
* objcopy.c (struct section_list): Add copy field.
(sections_copied): New static variable.
(copy_options): Add "only-section".
(copy_usage): Mention -j and --only-section.
(find_section_list): Initialize copy field.
(is_strip_section): Check for copying sections.
(copy_object): Check sections_copied when calling filter_symbols.
(setup_section): Check for copying sections.
(copy_section): Likewise.
(copy_main): Handle -j/--only-section.
* binutils.texi, objcopy.1: Document -j/--only-section.
* configure.in: If frexp is not available, check in -lm.
* configure: Rebuild.
* readelf.c (get_elf_class): Use correct printf format for type.
(get_data_encoding): Likewise.
(get_osabi_name): Likewise.
(process_file_header): Don't pass an extra argument to printf.
(process_dynamic_segment): Cast dynamic_size to long before
printing.
(decode_location_expression): Cast byte_get to long before
printing.
Wed Jun 9 11:40:16 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* readelf.c (dump_section): Cast values from byte_get to
[unsigned] long for printing, in case it is wider than long.
(display_block): Likewise.
(read_and_display_attr): Likewise.
(decode_location_expression): Likewise. Don't depend on
evaluation order.
Mon Jun 7 12:14:57 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* windres.c (usage): Fix typo.
1999-06-04 Nick Clifton <nickc@cygnus.com>
* readelf.c: Use 64bit wide fields in internal strcutures even if
targetting a 32bit architecture.
(dump_relocations): Take a new parameter - the number of symbols
in the symbol table.
1999-06-04 Nick Clifton <nickc@cygnus.com>
* readelf.c: Add support for 64bit ELF files.
1999-06-03 Nick Clifton <nickc@cygnus.com>
* dlltool.c (mcore_elf_gen_out_file): Use constants for temporary
file names.
Wed Jun 2 12:34:36 1999 Richard Henderson <rth@cygnus.com>
* dlltool.c (gen_exp_file): Revert 19990411 change.
Mon May 31 09:56:22 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* readelf.c (process_relocs): Determine type of reloc from
DT_PLTREL and from section type.
1999-05-29 Nick Clifton <nickc@cygnus.com>
* readelf.c (get_elf_class): Display unknown class number.
(get_data_encoding): Display unknown encoding number.
(get_osabi_name): Display unknown ABI number.
(process_file_header): Display unknown version number.
1999-05-29 Nick Clifton <nickc@cygnus.com>
* readelf.c (dump_relocations): Fix typo.
1999-05-28 Nick Clifton <nickc@cygnus.com>
* readelf.c (dump_relocations): Add extra parameter: is_rela to
specify the kind of relocations to be dumped. Call guess_is_rela
if this parameter has a value of UNKNOWN.
(guess_is_rela): New function: Guess the kind of reloc being used
baced on the machine number.
(process_relocs): Determine type of reloc before calling
dump_relocations.
1999-05-28 Ian Lance Taylor <ian@zembu.com>
* readelf.c: Include "elf/i960.h".
(dump_relocations): Handle EM_960.
Thu May 27 11:58:33 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* objcopy.c (copy_archive): Preserve dates of archive members if
requested.
* readelf.c (dump_relocations): Always print the addend on RELA
systems even if there is no symbol.
(process_program_headers): Reset dynamic_size before looping
through the program headers.
(process_version_sections): Cast sh_offset to unsigned long for
printing in case bfd_vma is wider.
(process_symbol_table): Use get_symbol_index_type when printing
st_shndx.
1999-05-17 DJ Delorie <dj@cygnus.com>
* windres.c: add verbose option
(main): process verbose option
* resrc.c (look_for_default): new. Look for the default
preprocessor in a given location.
(read_rc_file): for foo/bar-windres, look for foo/bar-gcc,
foo/gcc (in case of foo/windres), and then gcc (the old default).
1999-05-16 Nick Clifton <nickc@cygnus.com>
* dlltool.c (deduce_name): New function: Deduce name of program to
run.
(mcore_elf_out_file): New variable: Name of mcore-elf output file.
(mcore_elf_linker): New variable: Name of linker to use.
(mcore_elf_linker_flags): New variable: Linker flags to pass.
(scan_obj_file): Cache filenames if necessary.
(usage): Document new command line options.
(main): Support new command line options: -M (generate an
mcore-elf output file) -L (name of linker to use) -F (flags to
pass to linker).
(mcore_elf_cache_filename): Store a filename in a cache.
(mcore_elf_gen_out_file): New function: Generate an output file
per the mcore-elf spec.
1999-05-15 Nick Clifton <nickc@cygnus.com>
* configure.in (BUILD_MISC): Build dlltool for mcore
* configure: Regenerate.
* dlltool.c: Update example in comment.
(DLLTOOL_MCORE): Define.
(DLLTOOL_MCORE_ELF): Define.
(DRECTVE_SECTION_NAME): Define.
(mcore_be_jtab, mcore_le_jtab): Binary for performing an mcore
jump to address.
(mtable): Add entries for mcore variants.
(rvaafter, rvabefore, asm_prefix): Add mcore suppport.
(scan_drectve_symbols): Use DRECTVE_SECTION_NAME.
(make_head, make_tail): Cope if file cannot be created.
(usage): Improve layout.
1999-05-13 DJ Delorie <dj@cygnus.com>
* rclex.l: add code to suppress certain output from cpp, replace
all returns with MAYBE_RETURN
(MAYBE_RETURN): new, implement the suppression by returning
IGNORED_TOKEN as needed.
(cpp_line): remember which file we're in, mark data from included
*.h files for suppression.
* rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
1999-05-10 DJ Delorie <dj@cygnus.com>
* windres.c (quot): Quote shell metacharacters in a string
(main): quote parameters to cpp that might have metacharacters in
them. Allow -D as an alias for --define to allow for sharing make
macros with gcc.
* objdump.c (dump_reloc_set): don't core if howto->name is NULL
* Makefile.am: Give rescoff.c a cpu-specific -D so it can set
the correct BFD.
* Makefile.in: ditto
* rescoff.c (write_coff_file): Set the correct BFD
1999-05-06 Ian Lance Taylor <ian@zembu.com>
* rename.c (smart_rename): Fix test of whether file exists.
1999-05-06 Nick Clifton <nickc@cygnus.com>
* objdump.c (disassemble_data): Set display_endian based on target
endianism.
1999-05-05 Catherine Moore <clm@cygnus.com>
* dlltool.c (interwork): Remove.
(arm_interwork_jtab): Use bx insn.
(thumb_jtab): Likewise.
(MARM_INTERWORK): New machine type.
(rvaafter): Handle it.
(rvabefore) Likewise.
(asm_prefix): Likewise.
(gen_exp_type): Check machine type instead of
interwork flag.
(make_one_lib_file): Likewise.
(make_head): Likewise.
(make_tail): Likewise.
(usage): Update machine types.
(main): Remove -interwork support.
1999-05-05 Catherine Moore <clm@cygnus.com>
* readelf.c (get_machine_flags): Check for EF_CPU32.
(get_data_encoding): Fix typo.
1999-04-26 Tom Tromey <tromey@cygnus.com>
* aclocal.m4, configure: Updated for new version of libtool.
1999-04-18 Ian Lance Taylor <ian@zembu.com>
* stabs.c (parse_stab_range_type): Correct parenthesization in
BFD64 case.
* readelf.c (get_section_type_name): Use correct types in printf
formats.
(process_relocs): Likewise.
(process_dynamic_segment): Likewise.
(process_symbol_table): Likewise.
(process_mips_specific): Likewise.
Tue Apr 13 21:22:00 1999 Catherine Moore <clm@cygnus.com>
* dlltool.c (make_one_lib_file): Mark thumb functions as
C_THUMBEXTFUNC.
1999-04-11 Richard Henderson <rth@cygnus.com>
* bucomm.h (environ): Declare it, if needed.
(alloca) [C_ALLOCA]: Don't use gcc's builtin or <alloca.h>.
* configure.in (environ): Detect declaration.
* nm.c (main): Don't declare environ.
* configure, config.in: Rebuild.
* dlltool.c (gen_exp_file): Pad out the .reloc section to a
32-byte boundary with dummy relocations, to make the BeOS loader
happy. Patch from Bob Manson <manson@charmed.cygnus.com>.
1999-04-08 Tom Tromey <tromey@cygnus.com>
* binutils.texi (c++filt): Updated for -j/--java, and hp/edg
formats.
1999-04-08 Nick Clifton <nickc@cygnus.com>
* readelf.c: Add ability to decode new constants found in April 25
1998 Draft of System V ABI spec.
1999-04-06 Ian Lance Taylor <ian@zembu.com>
* bucomm.h (LC_MESSAGES): Never define.
* addr2line.c (main): Don't pass LC_MESSAGES to setlocale if the
system does not define it.
* ar.c (main): Likewise.
* coffdump.c (main): Likewise.
* dlltool.c (main): Likewise.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* size.c (main): Likewise.
* srconv.c (main): Likewise.
* strings.c (main): Likewise.
* sysdump.c (main): Likewise.
* windres.c (main): Likewise.
* readelf.c (main): Call locale setting functions.
1999-04-05 Nick Clifton <nickc@cygnus.com>
* readelf.c (decode_location_expression): Fix DW_OP_const8{s|u}
decodes.
1999-04-04 Ian Lance Taylor <ian@zembu.com>
* rename.c: New file, copied out of objcopy.c with a few changes.
* bucomm.h (set_times, smart_rename): Declare.
* ar.c: Don't include <utime.h>.
(extract_file): Call set_times rather than utime.
(write_archive): Call smart_rename rather than unlink and rename.
* objcopy.c: Don't include <utime.h>.
(simple_copy, smart_rename, set_times): Move to rename.c.
(strip_main): Update smart_rename call for new parameter.
(copy_main): Likewise.
* Makefile.am: Rebuild dependencies.
(CFILES): Add rename.c.
(objcopy_SOURCES, strip_new_SOURCES): Add rename.c.
(ar_SOURCES, ranlib_SOURCES): Add rename.c.
* Makefile.in: Rebuild.
* Makefile.am: Rebuild dependencies.
(EXTRA_PROGRAMS): Remove backslash which troubles current version
of automake.
* Makefile.in: Rebuild.
* dllwrap.c (main): Expect correct type in format string.
* resres.c: Include "bfd.h", "bucomm.h", "libiberty.h", and
<time.h>. Don't include <stdio.h> and <errno.h>.
(write_res_file): Remove unused locals e and i.
(read_resource_entry): Remove unused locals rtype and n.
(read_unistring): Remove unused local n.
1999-04-03 Ian Lance Taylor <ian@zembu.com>
* arparse.y: Declare yylex.
* objdump.c (disassemble_bytes): Initialize bytes. Add comment
for incorrect use of bytes.
* readelf.c: Change many formats to avoid warnings.
1999-04-01 Nick Clifton <nickc@cygnus.com>
* readelf.c (reset_state_machine): New function. Resets the
registers of the source line number state machine.
(process_extended_line_op): Use state machine.
(display_debug_lines): Use state machine. Handle multiple line
number blocks within the same section.
1999-03-29 Jason Merrill <jason@yorick.cygnus.com>
* readelf.c (process_extended_line_op): end_sequence also resets
the line number.
(display_debug_lines): advance_line takes a signed operand.
(read_and_display_attr): Print refs as <%x>, addresses as %#x,
others as %d. Handle other location expression attributes.
(display_debug_info): Handle nesting. Always print the offset.
1999-03-23 Ian Lance Taylor <ian@zembu.com>
* objcopy.c (filter_symbols): When checking whether to keep a
symbol, check the BFD section symbol for a symbol with
BSF_SECTION_SYM set.
1999-03-10 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_dynamic_segment): Print new Solaris dynamic
section entries. Correct printing of DT_POSFLAG_1 and DT_FLAGS_1.
1999-03-10 Nick Clifton <nickc@cygnus.com>
* readelf.c (request_dump): New function.
Removed arbitary limit on the number of sections that can be
dumped.
Wed Mar 10 15:10:14 1999 Stan Cox <scox@cygnus.com>
* dlltool.c (make_one_lib_file): Use %05d to output the stub name so
order in the import library is preserved.
1999-02-19 Nick Clifton <nickc@cygnus.com>
* readelf.c: Fix compile time warings.
1999-02-17 DJ Delorie <dj@cygnus.com>
* resbin.c (res_to_bin_versioninfo): Instead of entering a value
length of zero in a version info string, enter the appropriate
length.
Tue Feb 16 16:00:33 1999 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Require autoconf 2.13. Change AM_PROG_INSTALL to
AC_PROG_INSTALL. Add comments for AC_DEFINE calls.
* acconfig.h: Remove.
* aclocal.m4: Rebuild.
* configure: Rebuild.
* Makefile.in: Rebuild.
* config.in: Rebuild.
1999-02-02 Nick Clifton <nickc@cygnus.com>
* readelf.c (read_and_display_attr): Add display of basic type
encodings.
(display_debug_aranges): New function: Display the contents of a
.debug_aranges section.
(display_debug_info): Dump tags found after compunit entry.
* binutils.texi: Fixed bug in readelf documentation.
Mon Feb 1 12:38:01 1999 Catherine Moore <clm@cygnus.com>
* readelf.c (dump_relocations): Handle EM_ARM as REL.
1999-01-29 Nick Clifton <nickc@cygnus.com>
* readelf.c (process_symbol_table): Do not produce a histogram of
bucket chains if none were found.
1999-01-27 Nick Clifton <nickc@cygnus.com>
* version.c: Add 1999 copyright.
* binutils.texi (readelf): Document new command line options
--debug-dump and --histogram.
* readelf.c: Add ability to display contents of some or all of the
Dwarf2 debug sections. {Work only partially completed}.
(display_debug_section): New function.
(display_debug_info): New function.
(display_debug_not_supported): New function.
(display_debug_line): New function.
(display_debug_abbrev): New function.
(process_abbrev_section): New function.
(read_leb128): New function.
(process_extended_line_op): New function.
(get_TAG_name): New function.
(get_AT_name): New function.
(get_FORM_name): New function.
(free_abbrevs): New function.
(add_abbrev): New function.
(add_abbrev_attr): New function.
(read_and_display_attr): New function.
(display_block): New function.
Thu Jan 14 23:36:11 1999 Jeffrey A Law (law@cygnus.com)
* coffdump.c (xcalloc): Remove, in libiberty now.
* srconv.c (xcalloc): Likewise.
* sysdump.c (xcalloc): Likewise.
1999-01-14 Nick Clifton <nickc@cygnus.com>
* readelf.c (process_section_headers): Omit trailing space at end
of section header contents line.
Wed Dec 16 17:20:05 1998 Doug Evans <devans@canuck.cygnus.com>
* aclocal.m4: Regenerate.
Mon Dec 14 12:55:36 1998 Jim Wilson <wilson@cygnus.com>
* dllwrap.c: Include bfd.h and bucomm.h. Move getopt.h include
after libiberty.h include.
Tue Dec 8 16:29:43 1998 Ian Lance Taylor <ian@cygnus.com>
* objdump.1: Fix typo (-d to -D). From Nokubi Hirotaka
<hnokubi@yyy.or.jp>.
Sun Dec 6 13:28:09 1998 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (SFILE): Add size field.
(objdump_sprintf): Merge both versions into one. Increase buffer
size as needed to avoid overflow.
(disassemble_bytes): Change buf from 1000 bytes to 50. Change
initialization and use of sfile to match changes to
objdump_sprintf.
* strip.1: Fix typo (-V to -v). From Issei Hirayama
<iss@mail.wbs.or.jp>.
1998-12-03 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_dynamic_segment): Improve output format for
various DT_* values.
1998-12-02 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_mips_specific): Print .conflict section
content.
* readelf.c (process_mips_specific): Print l_flags in liblist in
textual form.
1998-11-30 Nick Clifton <nickc@cygnus.com>
* ar.c (extract_file): Add some paranoia checks for negatively
sized files.
Tue Nov 24 09:39:24 1998 Nick Clifton <nickc@cygnus.com>
* stabs.c (DIR_SEPARATOR): Define as '\\' if WIN32 is defined.
Tue Nov 17 10:25:26 1998 Nick Clifton <nickc@cygnus.com>
* Makefile.in: Regenerate.
Mon Nov 16 19:17:23 1998 Dave Brolley <brolley@cygnus.com>
* po/binutils.pot: Regenerate.
Mon Nov 16 10:18:53 1998 Nick Clifton <nickc@cygnus.com>
* Makefile.am: Regernated dependencies.
* aclocal.m4: Regenerated.
* configure: Regenerated.
Sat Nov 14 14:50:56 1998 Ian Lance Taylor <ian@cygnus.com>
* debug.c (debug_name_type): Correct return type from false to
DEBUG_TYPE_NULL.
Sat Nov 14 14:48:21 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* objdump.c (disassemble_data): Skip over relocs below start
address.
Tue Nov 10 15:31:52 1998 Nick Clifton <nickc@cygnus.com>
* Makefile.am: Add dependency of readelf.c on elf/fr30.h
* Makefile.in: Regenerate.
Wed Nov 4 16:25:55 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: Add support for the FR30.
Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: detect cygwin* instead of cygwin32*
* configure: regenerate
Fri Oct 30 15:14:49 1998 Geoffrey Noer <noer@cygnus.com>
* dllwrap.c: change all references to cygwin32_ to cygwin_,
change Cygwin target def to CYGWIN.
Wed Oct 28 10:31:19 1998 Nick Clifton <nickc@cygnus.com>
* objdump.c (disassemble_data): Replace 'unsigned long' with
'bfd_vma'.
Tue Oct 27 14:39:00 1998 Nick Clifton <nickc@cygnus.com>
* objdump.c (disassemble_bytes): Applied this patch from Philip
Blundell <pb@nexus.co.uk>: Make address variables unsigned to
avoid problems when disassembling code at high-bit-set addresses.
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (strhash): New function.
(main): Use it to supply image base if not supplied by user.
(program_version): Up to 0.2.4.
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (add_stdcall_alias): New global.
(long_options): Add --add-stdcall-alias option.
(main): Handle it.
(scan_drectve_symbols): Add alias if --add-stdcall-alias is
specified.
(scan_filtered_symbols): Likewise.
(gen_def_file): Output alias for stdcall syms if appropriate.
* binutils.texi (dlltool): Document --add-stdcall-alias option.
* dllwrap.c (long_options): Add --add-stdcall-alias option.
(main): Handle it.
* defparse.y (opt_name): Allow "." in name.
* dlltool.c (def_name): Set dll_name from NAME entry in def file.
(def_library): Set dll_name from LIBRARY entry in def file.
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (long_options): --implib synonym for --output-lib.
(main): Pass --export-all to dlltool only if specified.
(program_version): Up to 0.2.3.
Mon Oct 26 14:07:59 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dllwrap.c (mybasename): New function.
(main): Run dlltool to create export definition file and import
library file if necessary.
Change exp_file_name so that it's based on the dll name.
Sun Oct 25 10:37:45 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (scan_all_symbols): Fix patch error.
Fri Oct 16 22:56:20 1998 Felix Lee <flee@cygnus.com>
* nm.c (display_rel_file): fix "no symbols" messages.
* objdump.c (slurp_symtab): ditto.
* po/POTFILES.in, po/binutils.pot: rebuilt
Mon Oct 12 14:28:03 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c (dump_relocations): Rename field from Value to Info to
match name of field in ELF structures.
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: call AC_EXEEXT instead of AM_EXEEXT and
AM_CYGWIN32.
* aclocal.m4: remove local AM_EXEEXT/AM_CYGWIN32 macros.
* configure: regenerate
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
From Mumit Khan <khan@xraylith.wisc.edu>:
* dlltool.c (scan_all_symbols): Don't re-export symbols exported
by other DLLs.
Thu Oct 8 15:33:08 1998 Geoffrey Noer <noer@cygnus.com>
* Makefile.am (BUILD_DLLWRAP): Add.
(BUILD_DLLWRAP, DLLWRAP_PROG): Add.
(bin_PROGRAMS): Add dllwrap.
* Makefile.in: regenerate with automake
From Mumit Khan <khan@xraylith.wisc.edu>:
* dllwrap.c: New file from dllhelpers v0.2.1.
(print_version): New function.
(long_options): Add --version.
(main): Handle.
* dyn-string.h, dyn-string.c: New files from egcs-1.1/gcc.
* configure.in (BUILD_DLLWRAP): Add.
* configure: Regenerate.
Tue Oct 6 18:20:10 1998 Geoffrey Noer <noer@cygnus.com>
* Makefile.am (windres_SOURCES): Add resres.c.
(windres_OBJECTS): Add resres.o.
* Makefile.in: regenerate with automake
From Anders Norlander <anorland@hem2.passagen.se>.
* resres.c: New file. Implementation of read_res_file and
write_res_file functions for windres.
* rcparse.y: Handle CONTROL's with named classes.
* resbin.c: Bug in res_to_bin_dialog and bin_to_res_dialog
when dialog is extended: The version and signature fields should
be reversed (despite what the docs say). Id is 32 bits long in
extended dialogs.
* resrc.c (write_rc_dialog): properly print controls with named
classes.
* windres.c (read_res_file, write_res_file): Remove stubs.
* resres.c (write_res): Rename RT_ACCELERATORS to RT_ACCELERATOR.
Sun Oct 4 20:34:42 1998 Ian Lance Taylor <ian@cygnus.com>
From Nokubi Hirotaka <hnokubi@yyy.or.jp>:
* objcopy.1: Fix typo in --remove-leading-char docs.
* objdump.1: Fix formatting in --stabs docs.
Sat Sep 19 23:33:56 1998 Ian Lance Taylor <ian@cygnus.com>
* rcparse.y (memflags_move): Correct recursion.
1998-09-10 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_symbol_table): Print in histogram how many
symbols are covered by the current chain length.
Sun Sep 6 16:15:47 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c (process_section_contents): Do not try to dump empty
sections.
Sat Sep 5 19:17:10 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (scan_all_symbols): Don't re-export symbols exported
by other DLLs.
1998-09-02 14:50 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_dynamic_segment): Print DT_* value only if
do_dynamic.
(do_histogram): New variable.
(options): New long option histogram. Set do_histogram if this
option is used.
(usage): Document --histogram.
(parse_args): Handle 0 return value from getopt_long. Enable
do_histogram for -a.
(process_symbol_table): Read hash table also if only do_histogram.
Add code to print hash table histogram.
1998-08-25 16:45 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_dynamic_segment): Read syminfo section if
available.
(process_syminfo): New function. Print syminfo information.
(process_file): Call process_syminfo and free syminfo data at the end.
Wed Aug 19 16:19:51 1998 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (usage): Add file parameter. Change all callers.
(main): Don't treat '?' as a special case in getopt return.
* binutils.texi (dlltool): Document new options. Add some uses of
@var.
Wed Aug 19 16:19:07 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c (gen_def_file): Plug memory leak. Don't print
demangled name if it is NULL.
Support for exporting all symbols to an output export def file:
* dlltool.c ({export_all_symbols, no_default_excludes,
no_default_excludes, excludes}): New file static variables.
(struct string_list): Type to hold list of symbols to exclude.
(scan_drectve_symbols): Renamed from scan_open_obj_file.
(scan_filtered_symbols): New static function.
(add_excludes): New static function.
(match_exclude): New static function.
(set_default_excludes): New static function.
(filter_symbols): New static function.
(scan_all_symbols): New static function.
(scan_open_obj_file): New static function.
(usage): Document new options.
(long_options): Add new options.
(main): Handle new options.
1998-07-31 21:24 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_program_headers): Print p_offset value with
six hex digits.
(dynamic_segment_mips_val): Add support for DT_MIPS_FLAGS,
DT_MIPS_IVERSION, and DT_MIPS_TIME_STAMP.
(process_mips_specific): Also print seconds of time stamp.
Fri Jul 31 10:04:23 1998 Catherine Moore <clm@cygnus.com>
* readelf.c (dump_relocations): EM_ARM uses rela relocs.
1998-07-30 16:25 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (get_dynamic_type): Don't used gettext on the names.
Add new DT_* values from Solaris. Don't print nuemric value in
case of an unknown entry.
(process_dynamic_segment): Handle new DT_* entries. Print numeric
values in decimal, not hex.
Fri Jul 24 16:28:57 1998 Jeff Holcomb <jeffh@cygnus.com>
* readelf.c (get_dynamic_type): Remove empty default from switch
statement.
Fri Jul 24 16:28:12 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (install-exec-local): Don't remove the file before
checking whether $(bindir) == $(tooldir)/bin. From Maciej
W. Rozycki <macro@ds2.pg.gda.pl>.
* Makefile.in: Rebuild.
Fri Jul 24 09:38:59 1998 Nick Clifton <nickc@cygnus.com>
* objcopy.c: Removed spurious inclusion of elf/internal.h and
elf-bfd.h.
1998-07-22 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Consistantly use elf_ prefix for *_reloc_type
functions.
Wed Jul 22 16:29:12 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c (dump_relocations): Add dumps of HPPA and ARC
relocations.
(process_relocs): Do not abort if no string table can be found.
1998-07-22 14:58 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Remove definition of functions to return relocation
symbol strings. They now get implicitly defined when include the
system specific ELF header.
1998-07-22 13:51 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Before include system specific ELF header define
START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS. For now
used for ppc, mips, and mn10300.
Wed Jul 22 10:26:32 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c (dump_relocations): Display number of unrecognised
relocations.
1998-07-21 13:13 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Use symbolic names of relocation entries for the various
architectures. Correct more layout details.
Print names of MIPS specific section types. Print Alpha, ARM, and
MIPS relocation type names.
1998-07-20 Vladimir N. Makarov <vmakarov@cygnus.com>
* objcopy.c (filter_symbols): Add code for strip all symbols case.
(copy_objects): Strip all case is now processed also through
filter_symbols. No marking symbols used in relocations when strip
all symbols case.
(copy_section): When strip all symbols case, remove relocations
which are not in keep strip specific list.
(strip_main): Remove guard `strip_specific_list == NULL' for
setting up strip all symbols by default.
Mon Jul 20 12:51:16 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* addr2line.c (find_address_in_section): Only consider a section
if the pc value is completely contained within it.
(translate_addresses): Don't crash if functionname or filename are
null.
1998-07-20 07:45 Ulrich Drepper <drepper@cygnus.com>
* readelf.c (process_symbol_table): Fix little alignment problem
in printed table header.
1998-07-20 07:14 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Correct reading of .dynamic section.
(dynamic_section): Now a global variable.
(process_mips_fpe_exception, process_mips_specific,
process_arch_specific): New functions.
(get_file_header): Call process_arch_specific.
1998-07-19 15:15 Ulrich Drepper <drepper@cygnus.com>
* readelf.c: Fix several versioning related bugs. Produce nicer
output.
Add support for processor specific information on MIPS.
Fri Jul 10 15:57:58 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: Switch prototypes from unsigned short to unsigned
int.
Fri Jul 10 16:17:50 1998 Ian Lance Taylor <ian@cygnus.com>
From Christian Holland <CHolland@de.lucent.com>:
* ieee.c (parse_ieee): Initialize info.global_vars and
info.global_types.
(parse_ieee_atn): Ignore register lifetime information reportedly
emitted by MRI compiler.
Thu Jul 9 13:08:01 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (MAINTAINERCLEANFILES): Define.
* Makefile.in: Rebuild.
Tue Jul 7 21:48:54 1998 Jeffrey A Law (law@cygnus.com)
* readelf.c (byte_get): Use PARAMS in prototype.
(error): Make it work with non-ANSI compilers.
(warn): Likewise.
(get_ver_flags): Don't use an ANSI prototype in the definition.
Tue Jul 7 13:26:13 1998 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (filter_bytes): Set size correctly if the size of the
section is not an even multiple of the interleave. Based on patch
from Brion Stone <Brion.Stone@attws.com>.
Thu Jul 2 14:01:34 1998 Klaus Kaempf <kkaempf@rmi.de>
* configure.com: Add vax/vms support.
* makefile.vms-in: Renamed from makefile.vms. Add substitutions
now done by configure.com.
Wed Jul 1 20:43:52 1998 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (parse_stab_range_type): Handle 4 and 8 byte signed
integers with real upper bounds. Handle a lower bound one larger
than the upper bound as a signed integer. Handle 8 byte signed
integers.
(stab_demangle_template): Optionally return the demangled name of
the template.
(stab_demangle_qualified): Treat a template name as a tagged
type.
(stab_demangle_fund_type): Likewise.
Wed Jul 1 16:29:50 1998 Nick Clifton <nickc@cygnus.com>
* objcopy.c: Minor formatting improvements.
* readelf.c: Minor output formatting improvement.
Wed Jul 1 14:23:48 1998 Ian Lance Taylor <ian@cygnus.com>
* rclex.l: Add casts and change types to avoid warnings.
* rcparse.y: Likewise.
* resbin.c: Likewise.
* rescoff.c: Likewise.
* resrc.c: Likewise.
* Makefile.am: Rebuild dependencies.
(HFILES): Remove readelf.h.
* Makefile.in: Rebuild.
Based on patches from Andrew Kozin
<Andrew.Kozin@p14.f960.n5020.z2.fidonet.org>:
* winduni.h: New file, from windres.h.
* winduni.c: New file, from windres.c.
* windres.c: Move Unicode functions into winduni.c.
* windres.h: Move Unicode declarations into winduni.h. Include
winduni.h.
(RT_ACCELERATOR): Rename from RT_ACCELERATORS to match Windows
macro. Change all uses.
(RT_PLUGPLAY, RT_VXD): Correct values.
* Makefile.am (HFILES): Add windres.h.
(CFILES): Add winduni.c.
(windres_SOURCES): Add winduni.c.
Mon Jun 29 17:01:21 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: Use BFD Internal and External Elf structures.
* readelf.h: Removed - no longer needed.
* Makefile.in: Remove readelf.c's dependency upon readelf.h.
1998-06-26 Vladimir N. Makarov <vmakarov@cygnus.com>
* objcopy.c (strip_main): keep_specific_list == NULL as additional
condition to set up strip all symbols by default.
(copy_archive): don't change archive when error in object files of
the archive.
Wed Jun 24 17:53:47 1998 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (parse_number): Sign extend negative values correctly if
bfd_vma is larger than unsigned long.
Tue Jun 23 14:55:05 1998 Mike Stump <mrs@wrs.com>
* Makefile.am (install-exec-local): Don't let EXEEXT interfere
with the program transform name.
* Makefile.in: Rebuild.
Tue Jun 23 11:08:53 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: Rewrite to use fopen/fread ratehr than mmap.
Add --section-headers command line switch, which is an alias for
--sections.
Incorporate improvemnts made by Andreas Schwab
<schwab@issan.informatik.uni-dortmund.de> including output
formatting and version info display.
* binutils.texi: Document --section-headers switch to readelf.
Mon Jun 22 18:28:19 1998 Ian Lance Taylor <ian@cygnus.com>
* readelf.c: Include bfd.h and bucomm.h before system header
files.
(parse_args): Change type of c from char to int.
Sun Jun 14 14:26:28 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c (usage): Write to stdout, not stderr.
Fri Jun 12 13:33:51 1998 Tom Tromey <tromey@cygnus.com>
* po/Make-in (all-yes): Depend on .pot file if maintainer mode
enabled.
($(PACKAGE).pot): Unconditionally depend on POTFILES.
Fri Jun 12 16:06:15 1998 Michael Meissner <meissner@cygnus.com>
* readelf.c (get_ppc_rel_type): New PowerPC support.
(dump_relocations): PowerPC uses RELA relocations.
(get_machine_name): Spell PowerPC correctly.
(get_file_type): Change unsigned short parameter to unsigned.
(get_machine_name): Ditto.
(get_machine_data): Return whether big endian or little endian.
(get_machine_flags): Interpret PowerPC, M32R, and MIPS flags.
(process_elf_header): Print endian-ess. Convert all numeric
formats to long or unsigned long. Print out machine specific flag
bits.
(process_section_headers): Increase name by 3 columns and decrease
type by the same so that .gcc_except_table fits in the space.
* readelf.h: Include elf/ppc.h, elf/mips.h, and elf/m32r.h to get
machine specific flag bits.
Thu Jun 11 17:54:26 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: Remove extraneous #includes. Fix warnings produced
by -Wall when compiling under Linux.
* Makefile.am (readelf_LDADD): Add $(LIBIBERTY).
Thu Jun 11 18:30:20 1998 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (struct stab_handle): Add self_crossref field.
(parse_stab_string): If a tag is a cross reference to itself,
don't define it in the tags list.
(parse_stab_type): Set info->self_crossref.
* debug.c (struct debug_type_real_list): Define.
(debug_get_real_type): Add list parameter. Change all callers.
Check for circularity to avoid crashing when it occurs.
Thu Jun 11 14:48:32 1998 Nick Clifton <nickc@cygnus.com>
* readelf.c: New file: Display contents of ELF format file.
* readelf.h: New file: Header file for readelf.c
* Makefile.am: Add rules to build readelf.
* Makefile.in: Rebuilt.
* binutils.texi: Document readelf.
* NEWS: Mention inclusion of readelf into binutils.
* po/POTFILES.in; Rebuilt.
Fri Jun 5 18:43:40 1998 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (setup_section): Adjust the section size if copy_byte
is >= 0.
(copy_section): Do not call bfd_set_section_size.
Thu Jun 4 09:12:27 1998 Nick Clifton <nickc@cygnus.com>
* objcopy.c (copy_usage): Add missing \n\ from help description.
Wed Jun 3 19:31:33 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (YACC): Correct bison -L option.
* Makefile.in: Rebuild.
* binutils.texi, objdump.1: Document -p/--private-headers.
Wed Jun 3 12:09:40 1998 Nick Clifton <nickc@cygnus.com>
* objcopy.c: Add new command line options: --change-section-lma
and --change-section-vma. Rename old command line option
--adjust-section-vma to --change-section-address. Rename
--adjust-vma to --change-addresses and --adjust-start to
--change-start. Provide aliases to support the old versions of
these command line options.
Change the names of macros and enum elements to upper case to
match the GNU coding standard.
Replace calls to fprintf (stderr,...) with calls to fatal () or
non_fatal () as appropriate.
* objcopy.1: Document command line option changes.
* binutils.texi: Document command line option changes.
* bucomm.h: New exported funtion from bucomm.c: non_fatal().
* bucomm.c (non_fatal): New exported function. Just like fatal()
except that it returns rather than calling xexit().
(bfd_check_format_matches): Call fatal() rather than bfd_fatal().
(check_matching_formats): Fix C formating.
(parse_vma): Call fatal().
Mon Jun 1 18:26:40 1998 Ian Lance Taylor <ian@cygnus.com>
From Yuli Barcohen <yuli.barcohen@telrad.co.il>:
* debug.c (debug_type_samep): Avoid endless loops comparing
function and method parameter types.
Fri May 22 14:02:42 1998 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (dump_iat): Comment out; not used.
(display): Rename from tell. Change all callers.
Thu May 14 14:00:56 1998 Nick Clifton <nickc@cygnus.com>
* dlltool.c: Add support for Thumb DLLs. Add support for
interworking between ARM and Thumb programs and DLLs. Tidy the
code.
* binutils.texi: Document dlltool.
* configure: Build dlltool for thumb-pe targets.
* version.c (print_version): Include 1998 in copyright strings.
* stabs.c (parse_stab): Support Win32 style directory separators.
Sun May 10 22:34:44 1998 Jeffrey A Law (law@cygnus.com)
* po/Make-in (install-info): New target.
Fri May 8 10:33:13 1998 Nick Clifton <nickc@cygnus.com>
* ar.c (usage): Extend information provided about command line
options.
Wed May 6 15:28:51 1998 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Run dec c with /nodebug. Pass CC value when
calling make.
Tue May 5 15:19:00 1998 Nick Clifton <nickc@cygnus.com>
* configure: Build dlltool for thumb-pe target.
* configure.in: Build dlltool for thumb-pe target.
Sun May 3 22:04:49 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (EXTRA_PROGRAMS): Change $(SRCONV_PROG) to sysconf
sysdump coffdump to avoid extra $(EXEEXT).
* Makefile.in: Rebuild.
Wed Apr 29 22:22:55 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: Stop appending EXEEXT to the end of
SRCONV_PROG (wrong because that variable may contain multiple
programs)
* Makefile.am: instead, add EXEEXTs to each SRCONV_PROG
program
* Makefile.in: regenerate
* configure: regenerate
Tue Apr 28 19:14:34 1998 Tom Tromey <tromey@cygnus.com>
* addr2line.c (main): Conditionally call setlocale.
* windres.c (main): Likewise.
* sysdump.c (main): Likewise.
* strings.c (main): Likewise.
* srconv.c (main): Likewise.
* size.c (main): Likewise.
* objdump.c (main): Likewise.
* objcopy.c (main): Likewise.
* nm.c (main): Likewise.
* nlmconv.c (main): Likewise.
* dlltool.c (main): Likewise.
* coffdump.c (main): Likewise.
* ar.c (main): Likewise.
* bucomm.h: Include <locale.h> if HAVE_LOCALE_H.
(LC_MESSAGES): Now can be defined even when ENABLE_NLS.
Tue Apr 28 10:33:07 1998 Bill Moyer <ttk@cygnus.com>
Add support for IMPORTS:
* defparse.y (impline): Add IMPORTS syntaxes.
* dlltool.c (ifunctype, iheadtype): New typedefs.
(import_list): New static variable.
(append_import): New static function.
(def_import): Add an entry to import_list.
(generate_idata_ofile): New static function.
(gen_exp_file): Call generate_idata_ofile.
* dlltool.h (def_import): Update declaration.
Mon Apr 27 16:39:22 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Change version number to 2.9.4
* configure: Rebuild.
Wed Apr 22 16:00:35 1998 Tom Tromey <tromey@cygnus.com>
* po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
Wed Apr 22 00:33:56 1998 Tom Tromey <tromey@scribbles.cygnus.com>
* Makefile.am (INCLUDES): Search intl dirs for headers; define
LOCALEDIR.
* addr2line.c (main): Call setlocale, bindtextdomain, textdomain.
* ar.c (main): Likewise.
* coffdump.c (main): Likewise.
* dlltool.c (main): Likewise.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* size.c (main): Likewise.
* srconv.c (main): Likewise.
* strings.c (main): Likewise.
* sysdump.c (main): Likewise.
* windres.c (main): Likewise.
Tue Apr 21 22:13:08 1998 Tom Tromey <tromey@scribbles.cygnus.com>
* Many files: Added gettext invocations around user-visible
strings.
* bucomm.h: Added gettext-related includes and defines.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
po/Makefile. Use AM_PROG_LEX.
* Makefile.am (SUBDIRS): New macro.
(POTFILES): Likewise.
(po/POTFILES.in): New target.
(LDADD): Added INTLLIBS.
(objdump_LDADD): Likewise.
(c__filt_LDADD): Likewise.
(ar_LDADD): Likewise.
(ranlib_LDADD): Likewise.
(dlltool_LDADD): Likewise.
(windres_LDADD): Likewise.
* po/Make-in, po/POTFILES.in, po/binutils.pot: New files.
Tue Apr 21 16:07:18 1998 Stanislav Brabec <utx@k332.feld.cvut.cz>
* objcopy.c (preserve_dates): New file static variable.
(smart_rename): If preserve_dates, call set_times when copying.
(strip_main): Remove preserve_dates local variable.
(copy_main): Likewise.
Tue Apr 7 15:41:15 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (DISTSTUFF): Add defparse.h, defparse.c, rclex.c,
rcparse.h, and rcparse.c
* Makefile.in: Rebuild.
Mon Apr 6 16:24:35 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (PROGS): Move $(ADDR2LINE_PROG) to end, so that
Makefile.in doesn't have an empty continuation line.
(bin_PROGRAMS): Likewise.
* Makefile.in: Rebuild.
Fri Apr 3 14:48:42 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (DISTCLEANFILES): Add site.exp and site.bak.
(MOSTLYCLEANFILES): Add binutils.log, binutils.sum, and abcdefgh*.
(mostlyclean-local): New target.
* Makefile.in: Rebuild.
Wed Apr 1 15:54:16 1998 Ian Lance Taylor <ian@cygnus.com>
From Zack Weinberg <zack@rabi.phys.columbia.edu> and H.J. Lu
<hjl@gnu.org>:
* ar.c (usage): Mention S modifier.
(main): Add S modifier.
* ar.1, binutils.texi: Document S modifier.
Wed Apr 1 13:11:23 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* binutils.texi: Use @itemx for a secondary item in a table.
Tue Mar 31 18:44:13 1998 Ian Lance Taylor <ian@cygnus.com>
* dep-in.sed: Add rule to remove @OBJDIR@.
* Makefile.am (dep.sed): Substitute for @OBJDIR@.
* Makefile.in: Rebuild.
Mon Mar 30 12:47:18 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Set version to 2.9.1.
* configure: Rebuild.
* Branched binutils 2.9.
* Makefile.am (DISTCLEANFILES): Remove defparse.h, arparse.h,
rcparse.h, and nlmheader.h.
* Makefile.in: Rebuild.
Sat Mar 28 17:39:27 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (MOSTLYCLEANFILES): Define.
* Makefile.in: Rebuild.
Fix some gcc -Wall warnings:
* nlmconv.c (main): Add casts to avoid warnings.
(alpha_mangle_relocs): Likewise.
* objdump.c (dump_section_stabs): Likewise.
* size.c (print_sysv_format): Likewise.
* srcconv.c (wr_ob): Likewise.
* wrstabs.c (stab_modify_type): Likewise.
(stab_variable): Likewise.
* nlmconv.c (main): Initialize variables to avoid warnings.
* nm.c (sort_symbols_by_size): Likewise.
* objdump.c (disassemble_bytes): Likewise.
* wrstabs.c (stab_end_class_type): Likewise.
* coffgrok.c (do_sections_p2): Change j to unsigned int.
(do_lines): Change l to unsigned int.
* nlmheader.y (yylex): Change i to unsigned int.
* nm.c (print_symbol): Change j to long.
* size.c (lprint_number): Comment out.
* srconv.c (wr_ob): Change i to bfd_size_type.
* sysdump.c (unit_info_list): Comment out.
(object_body_list, program_structure, debug_list): Likewise.
* sysinfo.y (yyerror): Return value.
Thu Mar 26 17:06:51 1998 Richard Henderson <rth@cygnus.com>
* defparse.y (explist): Allow epsilon.
Suggestion from Jonathan-Harris@psion.com.
Thu Mar 26 16:59:09 1998 Richard Henderson <rth@cygnus.com>
* coffgrok.c (do_sections_p1): Use the section's lma instead of vma
for the benefit of prom loaders.
Wed Mar 25 13:05:39 1998 Ian Lance Taylor <ian@cygnus.com>
Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (DISTSTUFF): New variable.
(diststuff): New target.
(DISTCLEANFILES): New variable.
* Makefile.in: Rebuild.
Tue Mar 24 19:33:08 1998 Ian Lance Taylor <ian@cygnus.com>
* rclex.l: Accept { and } as synonyms for BEGIN and END.
Fri Mar 20 19:18:08 1998 Ian Lance Taylor <ian@cygnus.com>
* aclocal.m4, configure: Rebuild with libtool 1.2.
Tue Feb 24 13:07:50 1998 Doug Evans <devans@canuck.cygnus.com>
* objdump.c (disassemble_data): Delete "++place" after call to
find_symbol_for_address. Set disasm_info.symbols to array of
symbols at the current address.
Wed Feb 18 23:39:46 1998 Richard Henderson <rth@cygnus.com>
* Makefile.am (install-exec-local): Install properly when ln
fails or tooldir == prefix.
Tue Feb 17 18:40:55 1998 Richard Henderson <rth@cygnus.com>
* objcopy.c (compare_section_lma): Rename from _vma.
(copy_object): Gap fill based on LMA not VMA.
* binutils.texi: Update and clarify.
* objcopy.1: Likewise.
Tue Feb 17 20:34:11 1998 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (gen_exp_file): Generate _imp__%s as well as __imp_%s,
for Microsoft compatibility.
(make_one_lib_file): Likewise.
* dlltool.c (make_one_lib_file): Don't add 1 to hint.
Fri Feb 13 16:37:44 1998 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (AUTOMAKE_OPTIONS): Define.
* configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
Thu Feb 12 14:13:46 1998 Ian Lance Taylor <ian@cygnus.com>
* deflex.l: Accept '?' in symbol names, for VC++ mangled names.
From Mikey <jeffdb@netzone.com>.
* addr2line.c (usage): Update bug-gnu-utils address.
* ar.c (usage): Likewise.
* nlmconv.c (show_usage): Likewise.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage): Likewise.
(strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
* windres.c (usage): Likewise.
* binutils.texi (Bug Reporting): Likewise.
Sat Feb 7 15:36:24 1998 Ian Lance Taylor <ian@cygnus.com>
* configure, aclocal.m4: Rebuild with new libtool.
Thu Feb 5 12:21:13 1998 Ian Lance Taylor <ian@cygnus.com>
* configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
Fri Jan 30 19:16:28 1998 Doug Evans <devans@canuck.cygnus.com>
* Makefile.am (CC_FOR_TARGET,nlmcomv.o): Change program_transform_name
to transform.
* Makefile.in: Regenerate.
Thu Jan 29 16:24:04 1998 Mumit Khan <khan@xraylith.wisc.edu>
* dlltool.c: Define exit status macros for _WIN32 but not
__CYGWIN32__.
(gen_lib_file): Check for exit status of unlink.
* resrc.c: Define popen and pclose if _WIN32 but not
__CYGWIN32__.
Wed Jan 28 17:45:46 1998 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Remove vfork check.
* nlmconv.c: Never include vfork.h.
* aclocal.m4, configure, Makefile.in, config.in: Rebuild.
Wed Jan 28 17:43:02 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
* objcopy.c (copy_archive): Only pass one argument to mkdir if
_WIN32 but not __CYGWIN32__.
(smart_rename): Add code for _WIN32 (not __CYGWIN32__), to cope
with different rename behaviour and lack of chown.
* configure.in: Check for mingw32 when deciding whether to build
dlltool.
* dlltool.c: Never include vfork.h.
(run): Use pexecute rather than vfork.
(gen_lib_file): Check for errors from bfd_set_archive_head and
bfd_close. Close all the BFDs in the archive before deleting the
temporary files.
Thu Jan 22 16:22:55 1998 Fred Fish <fnf@cygnus.com>
* objdump.c (disassemble_bytes): Add flag INSN_HAS_RELOC to tell
disassembly function there is a reloc on this line.
Wed Jan 14 15:29:43 1998 Richard Henderson <rth@cygnus.com>
* srconv.c (sh, h8300): Delete variables.
(addrsize, toolname, rnames): New variables.
(writeINT): Use addrsize.
(wr_un): Use toolname.
(wr_hd): Set up addrsize et al properly for h8300[hs].
(walk_tree_symbol): Zero dsy. Use rnames.
(wr_un, wr_hd, wr_ob, wr_du): Use proper bfd access macros.
* sysdump.c (sh, h8300): Delete variables.
(addrsize): New variable.
(getINT): Use it.
(getone): Initialize it.
(getBITS): Range check on MAX.
Mon Dec 29 16:58:05 1997 Ian Lance Taylor <ian@cygnus.com>
From Matthew Bellantoni <matthew@chrysalis.com>:
* ar.c (get_pos_bfd): Add default_posname parameter. Change all
callers.
(replace_members): Default to replacing in the same position.
Mon Dec 22 11:27:22 1997 Ian Lance Taylor <ian@cygnus.com>
* rclex.l: Don't permit a comma in a STRING.
* rcparse.y (acc_entry): Warn if an inappropriate modifier is used
with a non VIRTKEY.
(acc_event): For a control character, set VIRTKEY, and force the
character to uppercase.
(acc_options): Don't require a comma separator.
Tue Dec 9 13:25:42 1997 Michael Meissner <meissner@cygnus.com>
* size.c (size_number): New function to provide size of field.
({l,r}print_number): For octal and hex fields, print field using
'0' and '0x' suffixes. Do not include following tab.
(sysv_internal_sizer): Size section name, section size, and vma
address fields.
(sysv_internal_printer): Use calculated sizes for the columns.
(print_sysv_format): Size columns before printing.
(print_berkeley_format): Print tabs between numbers now that
{l,r}print_number doesn't. Print fields right justified.
Mon Dec 8 11:22:04 1997 Nick Clifton <nickc@cygnus.com>
* objdump.c (objdump_print_addr_with_sym): Remove call to
disasm_symaddr() as this function no longer exists.
Tue Dec 2 10:23:50 1997 Nick Clifton <nickc@cygnus.com>
* objdump.c (objdump_print_addr_with_sym): Call disasm_symaddr()
to allow backend to know which symbol has just been displayed.
Tue Dec 2 13:06:46 1997 Ian Lance Taylor <ian@cygnus.com>
* windres.h (ESCAPE_*): Define standard escape sequences.
* rclex.l (handle_quotes): Handle standard escape sequences. Warn
about an unrecognized escape character.
* windres.c (unicode_print): Print standard escape sequences.
* rcparse.y (acc_event): Initialize $$.next.
* resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
MENUITEM_ENDMENU in the menu item flags.
(bin_to_res_accelerators): Allocate a structure (the old code
never worked).
(res_to_bin_accelerator): Correct the test for setting ACC_LAST.
(res_to_bin_dialog): Save the extended style rather than saving
the style twice. Remove useless shadowing length variable. Set
the length of control data correctly.
* resrc.c (write_rc_dialog): Don't print the class or menu if the
string length is zero.
Mon Nov 24 18:52:43 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* stabs.c (parse_stab_argtypes): Don't try to parse the name of a
destructor as mangled argument types.
Mon Nov 10 17:51:41 1997 Gavin Koch <gavin@cygnus.com>
* addr2line.c (translate_addresses): Use bfd_scan_vma rather
than strtol to scan addresses.
Sun Nov 9 11:01:31 1997 Jeffrey A Law (law@cygnus.com)
* Makefile.am (bin_PROGRAMS): Don't use line continuations here.
Tue Nov 4 11:56:14 1997 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (copy_section): Don't crash if there is no particular
information for a section.
Mon Nov 3 12:36:19 1997 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (parse_flags): Make flag check case insensitive.
Check for `contents' flag. Give an error for unrecognized flags.
(copy_section): If the contents flag was set for a section that
had no contents, zero out the new contents.
* binutils.texi (objcopy): Document contents section flag.
Sun Nov 2 14:49:56 1997 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c: Move new struct and variable definitions to top of
file. Remove obsolete add_strip_symbol and is_strip_symbol
declarations. Add prototype declarations for add_specific_symbol
and is_specified_symbol.
Mon Oct 20 15:31:43 1997 Klaus K"ampf <kkaempf@progis.de>
* configure.com (HAVE_SBRK): Undefine.
Tue Oct 14 16:14:35 1997 Nick Clifton <nickc@cygnus.com>
* objdump.c (objdump_symbol_at_address): New function. Returns
true if a symbol can be found at the address passed in.
(disassemble_data): Set the symbol_at_address_func field to point
to objdump_symbol_at_address.
Fri Oct 10 14:13:09 1997 Richard Henderson <rth@cygnus.com>
* objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
than "privatize". Update all references.
Thu Oct 9 15:57:29 1997 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi (strip): Remove duplicate --target. From Marty
Leisner <leisner@sdsp.mc.xerox.com>.
* nm.c (lineno_cache_bfd): New file static variable.
(lineno_cache_rel_bfd): New file static variable.
(display_archive): Clear lineno_cache_bfd and lineno_cache_rel_bfd
when closing a BFD.
(display_file): Likewise.
(print_symbol): Use lineno_cache_bfd and lineno_cache_rel_bfd
instead of cache_bfd and cache_rel_bfd. Make seccount static, and
only set it when setting relocs.
Wed Oct 8 21:19:11 1997 Richard Henderson <rth@cygnus.com>
* objcopy.c (keep_specific_list, privatize_specific_list,
weaken_specific_list): New variables.
(keep_symbols): Removed.
(add_specific_symbol): New function from the carcas of
add_strip_symbol. Takes a list as an argument.
(is_specified_symbol): Likewise from is_strip_symbol.
(filter_symbols): Honor the new privatize and weaken lists.
Optimize bfd_asymbol_name handling.
(copy_object, copy_options, copy_usage): Add privatize-symbol &
weaken-symbol options.
* objcopy.1, binutils.texi: Update docs.
Sun Oct 5 09:05:44 1997 Frank Ch. Eigler <fche@cygnus.com>
* objdump.c (disassemble_data): Make "--prefix-addresses"
disassembly adjust to mixed-length instructions.
(objdump_print_addr_with_sym): Add "0x" prefix for hexadecimal
symbol-offsets in disassembly.
Fri Oct 3 12:04:25 1997 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (set_times): New static function, replacing
make_same_dates.
(strip_main): If preserve_dates, stat the input file before
copying it, and call set_times afterward.
(copy_main): Likewise.
* wrstabs.c (write_stabs_in_sections_debugging_info): Cast p to
char * when calling strcpy and strlen.
Wed Sep 24 11:34:05 1997 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi (ar cmdline): Document that q now works like r.
From Marty Leisner <leisner@sdsp.mc.xerox.com>.
* binutils.texi (size): The object file argument is optional.
From Marty Leisner <leisner@sdsp.mc.xerox.com>.
* aclocal.m4: Rebuild with new libtool.
* configure: Rebuild.
Tue Aug 26 17:48:34 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (EXEEXT_FOR_BUILD): New variable. Use it in all
references to the sysinfo program.
* configure.in: Rebuild with new bfd/acinclude.m4.
* Makefile.in: Rebuild.
Fri Aug 8 15:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
* windres.c: Include <time.h>.
(define_resource): Set a timestamp for the resource.
Wed Aug 6 13:37:58 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Define TARGET in header file.
* acconfig.h (TARGET): Add #undef.
* Makefile.am (version.o, bucomm.o): Remove special targets.
* bucomm.c (target): Remove.
* nm.c (program_name): Don't declare.
(target): Make static.
* size.c (target): Make static.
* configure, config.in, Makefile.in: Rebuild.
Tue Aug 5 00:01:41 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (check-DEJAGNU): Export r.
(.dep1): Use $(INCLUDES) rather than $(ALL_CFLAGS).
* Makefile.in: Rebuild.
* nlmheader.y: Use VERSIONK rather than VERSION.
* Makefile.am (STRIP_PROG): Change from strip.new to strip-new.
(NM_PROG): Change from nm.new to nm-new.
(TOOL_PROGS, install-exec-local): Adjust accordingly.
* Makefile.in: Rebuild.
Mon Aug 4 11:47:31 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Remove AC_ARG_PROGRAM; it's invoked by
AM_INIT_AUTOMAKE.
* configure: Rebuild.
* Makefile.am (install-exec-local): Create $(tooldir)/bin before
trying to install anything into it.
* Makefile.in: Rebuild.
* Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
(install-exec-local): When handling $(noinst_PROGRAMS), only use
$(EXEEXT) on the installed file. When handling $(TOOL_PROGS),
handle $(EXEEXT) correctly.
* configure.in: Add an explicit $(EXEEXT) when substituting for
the name of a program to build.
* Makefile.in, configure: Rebuild.
* aclocal.m4, configure, Makefile.in: Rebuild with new automake
patches.
* deflex.l, defparse.y: Use VERSIONK rather than VERSION.
* rclex.l, rcparse.y: Likewise.
* Makefile.am (windres_SOURCES): Add $(BULIBS).
* Makefile.in: Rebuild.
Fri Aug 1 13:08:39 1997 Ian Lance Taylor <ian@cygnus.com>
* acinclude.m4: Include bfd/acinclude.m4, not bfd/acmacros.m4.
* aclocal.m4, configure: Rebuild with new libtool.
Thu Jul 31 11:51:35 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
shared library handling; now handled by libtool. Replace
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove
stamp-h handling in AC_OUTPUT.
* acconfig.h: Mention PACKAGE and VERSION.
* stamp-h.in: New file.
* Makefile.in: Now built with automake.
* aclocal.m4: Now built with aclocal.
* config.in, configure: Rebuild.
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* rcparse.y (dialog): Default menu and class to be named.
(styles): If FONT is seen, set DS_SETFONT in dialog style.
* resbin.c (res_to_bin_dialog): Correct computation of font
information length.
Wed Jul 30 11:21:06 1997 Ian Lance Taylor <ian@cygnus.com>
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* resbin.c (res_to_bin_menu): Correct computation of menu
vs. menuex length.
* resrc.c (define_stringtable): Add 1 to resource ID.
Tue Jul 29 11:06:03 1997 Ian Lance Taylor <ian@cygnus.com>
* resbin.c (bin_to_res_string): Correct adjustment of data and
length. From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>.
Tue Jul 22 18:01:23 1997 Ian Lance Taylor <ian@cygnus.com>
* nlmconv.c (link_inputs): Call libiberty pexecute function.
(pexecute) [multiple versions]: Remove.
Tue Jul 22 16:19:34 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* bucomm.c (make_tempname): If we might be using a DOS filesystem,
check for a backslash as well as a slash.
Thu Jun 26 13:53:17 1997 Ian Lance Taylor <ian@cygnus.com>
* windres.c (main): Quit if we didn't get any resources.
(usage): Fix --yydebug usage message.
* rescoff.c (write_coff_file): Don't free the relocation array
until after we've closed the BFD.
(read_coff_rsrc): Quit rather than try to read standard input.
(write_coff_file): Quit rather than try to write to standard
output.
* rcparse.y: Add a couple of missing semicolons (accepted by bison
but not byacc).
* binutils.texi: Document windres.
Wed Jun 25 20:57:06 1997 Ian Lance Taylor <ian@cygnus.com>
* resbin.c: New file.
* rclex.l, rcparse.y, rescoff.c, resrc.c, windres.c, windres.h:
Numerous fixes and improvements.
* Makefile.in: Rebuild dependencies.
(CFILES): Add resbin.c.
(WINDRES_OBJS): Add resbin.o.
Sun Jun 22 17:29:41 1997 Ian Lance Taylor <ian@cygnus.com>
First stab at Windows resource compiler:
* windres.h: New file.
* windres.c: New file.
* resrc.c: New file.
* rcparse.y: New file.
* rclex.l: New file.
* rescoff.c: New file.
* configure.in: Define and substitute BUILD_WINDRES.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
(WINDRES_PROG): New variable.
(PROGS): Add @BUILD_WINDRES@.
(HFILES): Add dlltool.h and windres.h.
(CFILES): Add windres.c and resrc.c.
(GENERATED_CFILES): Add rcparse.c and rclex.c.
(WINDRES_OBJS): New variable.
$(WINDRES_PROG): New target.
(rcparse.c, rcparse.h, rclex.c): New targets.
Thu Jun 12 12:27:51 1997 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (export_type): Add data field.
(def_exports): Add data parameter. Change all callers.
(dump_def_info): Print data field.
(gen_def_file): Likewise.
(make_one_lib_file): Handle data field by not emitting simple
label and not emitting anything in SEC_TEXT.
(dtab): Print data field.
(process_duplicates): Merge data field.
* dlltool.h (def_exports): Update declaration.
* defparse.y (expline): Accept opt_DATA. Pass it to def_exports.
(opt_DATA): New non-terminal.
Wed Jun 11 17:15:47 1997 Ian Lance Taylor <ian@cygnus.com>
* dlltool.h: New file.
* deflex.l: Include dlltool.h and libiberty.h. Don't declare
strdup. Use xstrdup rather than strdup.
* defparse.y: Include bfd.h, bucomm.h, and dlltool.h.
* dlltool.c: Include dlltool.h and time.h. Make a lot of
variables and functions static. Make a lot of char * variables
and parameters const. Add declarations for static functions. Do
some reindenting. Hide more PowerPC stuff inside DLLTOOL_PPC.
Wed Jun 11 12:05:52 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* ar.c (bfd_special_undocumented_glue): Add const.
Mon May 12 22:09:35 1997 Bob Manson <manson@charmed.cygnus.com>
* Makefile.in (check): Pass CC_FOR_TARGET and CFLAGS_FOR_TARGET
to runtest.
Mon May 12 13:14:22 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Don't clear OPCODES when --enable-commonbfdlib is
used on HP/UX.
* configure: Rebuild.
Fri Apr 25 14:22:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* Makefile.in (maintainer-clean realclean): Change *.info*
to binutils.info* to save sysroff.info.
Tue Apr 15 13:42:22 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon installdirs. Use $(program_transform_name)
directly, rather than using $(INSTALL_XFORM) and
$(INSTALL_XFORM1).
(installdirs): New target.
(install-info): Run mkinstalldirs.
Mon Apr 14 11:52:39 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (INSTALL): Change install.sh to install-sh.
From Thomas Graichen <graichen@rzpd.de>:
* Makefile.in: Always use $(SHELL) when running move-if-change.
* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
* configure: Rebuild.
Fri Apr 4 13:28:02 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Add AC_FUNC_ALLOCA.
* configure, config.in: Rebuild.
* bucomm.h: Add alloca handling, copied from gas/as.h.
* dlltool.c: Add #pragma alloca for AIX to start of file.
* nlmconv.c: Likewise.
* Makefile.in (distclean): Remove site.exp and site.bak. Remove
everything that clean removes.
Thu Apr 3 13:18:39 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (VERSION): Set to 2.8.1.
* Branched binutils 2.8.
Tue Apr 1 16:21:44 1997 Klaus Kaempf <kkaempf@progis.de>
* configure.com: New file.
* config.h-vms: Remove file.
* makefile.vms: Update for new configure scheme.
Mon Mar 31 15:30:43 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* objcopy.c (make_same_dates): Use statbuf, not buf, if not
HAVE_GOOD_UTIME_H.
Fri Mar 28 17:57:53 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* Makefile.in ($(OBJDUMP_PROG)): Don't link against BFDLIB twice.
* configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set,
set OPCODES to empty.
* configure: Rebuild.
Thu Mar 27 16:03:02 1997 Ian Lance Taylor <ian@cygnus.com>
Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
* objcopy.c: Include <utime.h> or <sys/time.h>.
(strip_options): Add "preserve-dates".
(copy_options): Likewise.
(copy_usage): Mention -p and --preserve-dates.
(strip_usage): Likewise.
(make_same_dates): New static function.
(strip_main): Handle -p.
(copy_main): Likewise.
* binutils.texi, strip.1, objcopy.1: Document new option.
addr2line.c contributed by Ulrich Lauther
<Ulrich.Lauther@zfe.siemens.de>:
* addr2line.c: New file.
* Makefile.in: Rebuild dependencies.
(ADDR2LINE_PROG): New variable.
(MANPAGES): Add addr2line.
(PROGS): Add $(ADDR2LINE_PROG).
(CFILES): Add addr2line.c.
($(ADDR2LINE_PROG)): New target.
* binutils.texi: Document addr2line.
* addr2line.1: New file.
* version.c (print_version): Update copyright date.
Mon Mar 24 10:52:45 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_data): Don't exit if a file cannot be
disassembled, instead just return.
Thu Mar 20 21:16:51 1997 Jeffrey A Law (law@cygnus.com)
* size.c (usage): Make definition match its prototype.
(display_bfd, lprint_number, rprint_number): Likewise.
(print_berkeley_format, sysv_internal_printer): Likewise.
(print_sysv_format): Likewise.
* nm.c (set_print_radix, set_output_format): Likewise.
* objcopy.c (filter_bytes): Likewise.
Tue Mar 18 16:39:55 1997 H.J. Lu <hjl@lucon.org>
* Many files: Add function prototypes.
* ar.c (mri_emul, get_pos_bfd): Make static.
* arlex.l: Include "libiberty.h". Don't declare strdup. Use
xstrdup rather than strdup.
* arparse.y (yyerror): Make argument const. Correct typo.
* arsup.c (strdup): Don't declare.
(ar_save): Use xstrdup rather than strdup.
* filemode.c: Include "bucomm.h".
* nm.c (usage): Make static.
(print_symname): Make format and name const.
* objcopy.c (cat): Remove.
(copy_archive): Make output_target const. Use concat, not cat.
(copy_file, simple_copy, smart_rename): Make arguments const.
* objdump.c (read_section_stabs): Likewise.
(print_section_stabs): Likewise.
(display_target_tables): Don't declare getenv.
* strings.c (strings_object_file): Change file to const.
(print_strings): Change filename to const.
* Makefile.in: Rebuild dependencies.
Tue Mar 18 11:37:24 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Add BFD_NEED_DECLARATION(getenv).
* acconfig.h: Add NEED_DECLARATION_GETENV.
* bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV.
* configure, config.in: Rebuild.
* nlmconv.c (getenv): Don't declare.
* Makefile.in: Rebuild dependencies.
Sat Mar 15 15:35:56 1997 Ian Lance Taylor <ian@cygnus.com>
Based on patches from Jamie Lokier <jamie@rebellion.co.uk>:
* objdump.c: Include "demangle.h".
(do_demangle): New static variable.
(usage): Mention -C/--demangle.
(long_options): Add "demangle".
(objdump_print_symname): New static function.
(objdump_print_addr_with_sym): Use objdump_print_symname.
(disassemble_bytes): Likewise.
(dump_reloc_set): Likewise.
(dump_symbols): Demangle symbol name.
(main): Handle -C.
* binutils.texi, objdump.1: Document -C/--demangle.
* objdump.c (usage): Mention --no-show-raw-insn.
(long_options): Add "no-show-raw-insn".
(disassemble_bytes): Handle --no-show-raw-insn.
* binutils.texi, objdump.1: Document --no-show-raw-insn.
Wed Mar 12 11:42:00 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rddbg.c (free_saved_stabs): Set the strings to NULL after being
freed.
Fri Feb 28 17:18:45 1997 Ian Lance Taylor <ian@cygnus.com>
* bucomm.c (set_default_bfd_target): New function.
* bucomm.h (set_default_bfd_target): Declare.
* ar.c (main): Call set_default_bfd_target.
* nlmconv.c (main): Likewise.
* nm.c (main): Likewise.
* objcopy.c (main): Likewise.
* objdump.c (main): Likewise.
* size.c (main): Likewise.
* strings.c (main): Likewise.
* Makefile.in (bucomm.o): New target, to define TARGET.
Tue Feb 25 21:28:38 1997 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (adjust_section_vma): New static variable.
(usage): Mention --adjust-section-vma.
(OPTION_ADJUST_VMA): Define.
(long_options): Add "addjust-vma".
(display_bfd): If adjust_section_vma is not 0, add it to all the
section addresses.
(main): Handle OPTION_ADJUST_VMA.
* binutils.texi, objdump.1: Document --adjust-vma.
Fri Feb 14 18:46:47 1997 Ian Lance Taylor <ian@cygnus.com>
* nm.c (print_symbol): Cache the BFD as well as the symbols and
relocs, and don't try to use the symbols or relocs with a
different BFD.
Thu Feb 13 21:34:43 1997 Klaus Kaempf (kkaempf@progis.de)
* config.h-vms: sbrk() is provided on openVMS/Alpha.
* makefile.vms: allow compiling with current gcc snapshot.
Thu Feb 13 20:14:40 1997 Ian Lance Taylor <ian@cygnus.com>
* arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
than malloc.
Wed Feb 12 16:12:02 1997 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_data): Correct VMA argument to
find_symbol_for_address. Improve handling of code with no symbol
followed by code with a symbol.
Wed Feb 12 12:16:47 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_bytes): Make output of raw instructions
work better for non-standard values of bytes_per_chunk and
bytes_per_line.
Thu Feb 6 14:14:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* objdump.c (disassemble_bytes): Added code to allow some control
over the way raw instructions are displayed.
Thu Feb 6 12:36:03 1997 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (struct bincl_file): Add next_stack field.
(push_bincl): Put the new file on both bincl_list and
bincl_stack. Clear the file_types field.
(pop_bincl): Use the next_stack field when popping the stack.
Don't put the file on bincl_list.
(find_excl): Include the file name when warning about an unfound
N_EXCL.
* debug.c (debug_type_samep): Don't crash if we are passed NULL.
Thu Feb 6 11:54:24 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* objcopy.1: Add missing space after .B.
Fri Jan 31 10:33:07 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_data): Initialize `aux.require_sec'.
Wed Jan 29 13:21:21 1997 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (objdump_print_value): Add skip_zeroes parameter.
Change all callers.
(objdump_print_addr_with_sym): Likewise. Call objdump_print_value
to print address.
(objdump_print_addr): New static function.
(objdump_print_address): Just call objdump_print_addr.
(disassemble_bytes): Print real address, not function offset.
Skip a certain number of leading zeroes.
* objdump.c (disassemble_zeroes): New static variable.
(usage): Mention --disassemble-zeroes.
(long_options): Add "disassemble-zeroes".
(disassemble_bytes): Check disassemble_zeroes.
Tue Jan 28 16:47:26 1997 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_bytes): Don't skip zeroes if the
disassembler has told us that we are in a branch delay slot.
Mon Jan 20 14:24:04 1997 Ian Lance Taylor <ian@cygnus.com>
* size.c (berkeley_sum): Rewrite. Skip sections which are not
SEC_ALLOC. Count SEC_READONLY sections as text.
Tue Jan 14 15:14:14 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (maintainer-clean realclean): Remove *.info*, not
just *.info. From H.J. Lu <hjl@lucon.org>.
Tue Dec 31 15:42:54 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
Fri Dec 27 11:19:26 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Work around bug in AC_FUNC_VFORK in autoconf 2.12.
* configure: Rebuild.
Thu Dec 19 13:11:20 1996 Ian Lance Taylor <ian@cygnus.com>
Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
* objcopy.c (OPTION_WEAKEN): Define.
(copy_options): Add "weaken".
(copy_usage): Mention --weaken.
(weaken): New static variable.
(filter_symbols): Handle weaken.
(copy_object): Call filter_symbols if weaken.
(copy_main): Handle OPTION_WEAKEN.
* binutils.texi, objcopy.1: Document --weaken.
Wed Dec 18 22:49:13 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Use NewFolderRecursive for installation.
Sat Dec 7 10:17:25 1996 Jeffrey A Law (law@cygnus.com)
* Makefile.in (install): Add "else true" clause to cater to
broken "make" on some systems.
Fri Dec 6 17:21:41 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (parse_ieee_bb): Always initialize namcopy to avoid gcc
warning about uninitialized variable.
(ieee_read_cxx_class): Likewise, for pf.
(ieee_enum_type): Likewise, for i.
Tue Nov 26 17:01:25 1996 Ian Lance Taylor <ian@cygnus.com>
* wrstabs.c (stab_array_type): Add casts when printing
bfd_signed_vma values.
* configure: Rebuild with autoconf 2.12.
Mon Nov 25 16:53:18 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_data): Don't crash if there is no
symbol.
Fri Nov 22 17:29:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* ar.c (open_inarch): Don't call bfd_openr with a null name.
Fri Nov 1 12:08:13 1996 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi: Add section on reporting bugs.
Thu Oct 31 18:20:53 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (struct stab_handle): Add bincl_list field.
(parse_stab): Pass value to push_bincl. Call find_excl for
N_EXCL.
(struct bincl_file): Add hash, file and file_types fields.
(push_bincl): Add hash parameter. Save it in the new hash field.
Save the file number in the new file field.
(pop_bincl): Put the bincl_file on bincl_list, rather than freeing
it. Save the file types in the new file_types field.
(find_excl): New static function.
* ieee.c (ieee_lineno): Don't compare line number addresses to
info->highaddr (undo part of October 28 patch).
Tue Oct 29 16:40:22 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (objdump_print_value): Don't print the empty string
for zero.
Mon Oct 28 16:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (struct stab_handle): Add function_end field.
(start_stab): Initialize function_end.
(finish_stab): Pass info->function_end to debug_end_function.
(parse_stab): If info->function_end is set, use it as the address
which ends a function.
* ieee.c (ieee_array_type): Remember the correct size.
* ieee.c (ieee_finish_compilation_unit): Permit coalescing ranges
that are up to 0x1000 bytes apart, not just 64.
(ieee_add_bb11_blocks): Don't bother to emit a BB11 that is less
than 0x100 bytes.
(ieee_lineno): Only emit line numbers that are less than
info->highaddr.
Fri Oct 25 12:12:17 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (struct ieee_defined_enum): Add defined field.
(ieee_enum_type): If the enum tag has been seen before but not
defined, reuse the same type index, and define it.
(ieee_tag_type): If this enum has not been defined, add an
undefined entry to the list of enums.
* objdump.c (disassemble_bytes): Let the disassembler override the
number of bytes printed on a line.
Thu Oct 24 16:42:10 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (prefix_addresses): New static variable.
(long_options): Add "prefix-addresses".
(compare_symbols): Sort BSF_FUNCTION symbols before other
symbols.
(find_symbol_for_address): New static function, broken out of
objdump_print_address.
(objdump_print_addr_with_sym): New static function, broken out of
objdump_print_address.
(objdump_print_address): Call new functions.
(disassemble_bytes): New static function, broken out of
disassemble_data. Change disassembly format, unless
prefix_addresses is set.
(disassemble_data): Call disassemble_bytes. Unless
prefix_addresses is set, disassemble in chunks headed by a
symbol.
* binutils.texi, objdump.1: Document --prefix-addresses.
* rddbg.c (read_section_stabs_debugging_info): Preserve the
backslash when concatenating multiple stabs strings.
Thu Oct 10 11:36:31 1996 Doug Evans <dje@canuck.cygnus.com>
* dlltool.c (scan_open_obj_file): Fix loop exit test.
Add missing parameter to def_exports.
Tue Oct 8 12:06:17 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (LEX_OPTIONS): Set to empty string. -I -Cem is the
default for flex, and is not recognized by lex.
Thu Oct 3 17:41:23 1996 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi (Target Selection): Document that you can now
specify targets using configuration triplets.
* ar.c (usage): Declare. Make sure all callers pass an argument.
Thu Oct 3 15:39:42 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
* Makefile.in (clean): Remove config.log.
Wed Oct 2 15:49:16 1996 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Bump version date.
Tue Oct 1 15:00:59 1996 Ian Lance Taylor <ian@cygnus.com>
* version.c (print_version): New function.
* bucomm.h (print_version): Declare.
* ar.c (program_version): Don't declare.
(do_show_version): Remove.
(usage): Add help parameter. Print bug report address.
(main): Set is_ranlib at start. Check for --help and --version.
Call print_version, not do_show_version.
* nlmconv.c (program_version): Don't declare.
(main): Call print_version.
(show_usage): Print bug report address.
* nm.c (program_version, print_version): Don't declare.
(usage): Print bug report address.
(main): Call print_version.
* objcopy.c (program_version): Don't declare.
(copy_usage): Print bug report address.
(strip_usage): Likewise.
(strip_main): Call print_version.
(copy_main): Likewise.
* objdump.c (program_version): Don't declare.
(usage): Print bug report address.
(main): Call print_version.
* size.c (program_version): Don't declare.
(usage): Print bug report address.
(main): Call print_version.
* strings.c (program_version): Don't declare.
(main): Call print_version.
(usage): Print bug report address.
* Makefile.in: Update dependencies.
Thu Sep 19 14:53:15 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: Revert Monday's reflocalp patch, and apply this patch
instead:
(write_ieee_debugging_info): Write a dummy type at the end of the
global type block.
Mon Sep 16 15:30:54 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (struct ieee_write_type): Add reflocalp field.
(ieee_pointer_type): Set reflocalp after pushing type.
(ieee_function_type): If reflocalp is set, make this type local.
(ieee_range_type, ieee_array_type, ieee_set_type): Likewise.
(ieee_const_type, ieee_volatile_type): Likewise.
(ieee_struct_field, ieee_class_baseclass): Likewise.
* ieee.c (struct ieee_info): Add global_types field.
(parse_ieee_bb): When starting a BB1, initialize the types field
to the global_types field.
(parse_ieee_be): When ending a BB2, copy the types field to the
global_types field.
Fri Sep 13 17:32:21 1996 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (change_leading_char): New static variable.
(OPTION_CHANGE_LEADING_CHAR): Define.
(copy_options): Add "change-leading-char".
(copy_usage): Mention --change-leading-char.
(filter_symbols): Add obfd parameter. Change all callers.
Implement change_leading_char.
(copy_object): Call filter_symbols if change_leading_char.
(copy_main): Handle OPTION_CHANGE_LEADING_CHAR.
* binutils.texi, objcopy.1: Document --change-leading-char.
Tue Sep 3 14:05:29 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (ieee_enum_type): Don't check index into a NULL names
array.
* nm.c (sort_symbols_by_size): Always initialize next.
* rdcoff.c (parse_coff_type): Warn about an incomprehensible
type rather than crashing.
* rddbg.c (read_symbol_stabs_debugging_info): Initialize f.
* stabs.c (parse_stab_members): Set context in all cases.
Thu Aug 29 16:56:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
* configure: Regenerate.
Thu Aug 29 11:29:20 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (L_tmpnam): Never define.
(display_target_list): Use choose_temp_base instead of tmpnam.
(display_info_table): Likewise.
Tue Aug 27 18:15:01 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (parse_stab): An N_FUN symbol with an empty string
indicates the end of a function.
Thu Aug 22 17:08:00 1996 Ian Lance Taylor <ian@cygnus.com>
* wrstabs.c (struct string_hash_entry): Add next field.
(struct stab_write_handle): Change strings to a pointer to
string_hash_entry. Add last_strings field. Remove strings_alloc
field.
(string_hash_newfunc): Initialize next field.
(stab_write_symbol): Copy string into hash table rather than into
buffer. Keep a list of hash table entries.
(write_stabs_in_sections_debugging_info): Initialize last_string.
Copy strings from list of hash table entries in memory.
(stab_modify_type): If the entry on the stack is a definition,
make a new definition rather than failing an assert.
(stab_array_type): The size is only zero if high is strictly less
than low.
* ieee.c (struct ieee_info): Add saw_filename field.
(parse_ieee): Initialize saw_filename.
(parse_ieee_bb): Set saw_filename for a BB1 or BB2. In a BB1,
discard the current variables and types. In a BB10, if no
filename has been seen, call debug_set_filename.
(parse_ieee_ty): In case 'g', the type is optional.
* prdbg.c (pr_fix_visibility): Don't abort on
DEBUG_VISIBILITY_IGNORE.
* debug.c (debug_name_type): Correct error message.
* configure.in: Substitute HLDENV.
* configure: Rebuild.
* Makefile.in (HLDENV): New variable. Use it whenever linking a
program.
Thu Aug 15 19:30:41 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Add symbolic doublequotes around the version
number.
Thu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Add better support for DEC C compilation.
Add new macros as in Makefile.in.
Wed Aug 7 14:27:33 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* bucomm.h (strstr): Declare if NEED_DECLARATION_STRSTR.
(sbrk): Declare if HAVE_SBRK and NEED_DECLARATION_SBRK.
* prdbg.c (pr_end_struct_type): Avoid using a string constant in
assert, for the benefit of broken assert macros.
Fri Jul 26 14:06:50 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_data): Set disasm_info.flavour from
abfd.
Tue Jul 23 13:59:54 1996 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (secdata): In non DLLTOOL_PPC case, change alignment
of .text section to 2.
Mon Jul 22 08:46:15 1996 Stu Grossman (grossman@lisa.cygnus.com)
* objdump.c (dump_section_stabs): Fix test for stabs sections
ending with numbers. This fixes a problem with .stab being
confused with .stab.index.
Wed Jul 10 13:32:28 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (stab_demangle_fund_type): Return a void * for a
template, rather than simply aborting.
Mon Jul 8 15:28:05 1996 Ian Lance Taylor <ian@cygnus.com>
* ar.c (open_inarch): Add file parameter. Change all callers. If
this is a newly created archive, set the target based on the
file.
* arsup.h (open_inarch): Update declaration.
Thu Jul 4 12:00:55 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (VERSION): Set to cygnus-2.7.1.
* Released binutils 2.7.
* rdcoff.c (parse_coff): Get address to pass to debug_end_function
from function size, not value of .ef symbol. From Ning
Mosberger-Tang <ning@AZStarNet.com>.
Sat Jun 29 21:18:09 1996 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (strip_main): Add -o option, and handle it.
(strip_usage): Mention -o.
* binutils.texi, strip.1: Mention -o.
Mon Jun 24 17:19:02 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf set values.
(docdir): Removed.
* configure.in (AC_PREREQ): Autoconf 2.5 or higher.
Mon Jun 24 11:59:13 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (endian): New static variable.
(usage): Mention -EB/-EL/--endian.
(long_options): Add "endian".
(disassemble_data): If endianness was specified, replace
abfd->xvec with a copy of itself with the given endianness.
(main): Handle -EB/-EL/--endian.
* binutils.texi, objdump.1: Mention -EB/-EL/--endian.
* objdump.c: Make most variables and functions static.
* configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries.
* configure: Rebuild with autoconf 2.10.
Sun Jun 23 14:47:36 1996 Kim Knuttila <krk@cygnus.com>
* dlltool.c (secdata): Changed .rdata to .reldata so .reloc will work.
(make_one_lib_file): Removed cruft. (#if 1)
Wed Jun 19 14:46:38 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (stabs): Change from struct internal_nlist * to
bfd_byte *.
(print_section_stabs): Fetch stabs information directly, rather
than assuming that struct internal_nlist is the right size.
* binutils.texi: Document change to binary format: file position
based on load address, not section VMA.
* bucomm.h: Define SEEK_SET, SEEK_CUR, and SEEK_END if they are
not already defined.
Tue Jun 18 18:25:00 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (DISTSTUFF): Add deflex.c.
Tue Jun 18 15:03:44 1996 Klaus Kaempf <kkaempf@progis.de>
* config.h-vms, makefile.vms: New files.
Mon Jun 17 09:47:31 1996 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (make_one_lib_file): Use BFD_RELOC_RVA rather than
BFD_RELOC_32 in IDATA7.
Wed Jun 12 11:52:06 1996 Ian Lance Taylor <ian@cygnus.com>
* nm.c (struct get_relocs_info): Define.
(line_numbers): New static variable.
(long_options): Add "line-numbers".
(usage): Mention -l and --line-numbers.
(main): Handle -l.
(print_symbol): Print line numbers if requested.
(get_relocs): New static function.
* binutils.texi, nm.1: Document -l/--line-numbers.
Tue Jun 11 20:12:15 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (dump_reloc_set): Add sec parameter. Change all
callers. If with_line_numbers is set, display line numbers of
relocation entries.
* binutils.texi, objdump.1: Document -l with -r.
Mon Jun 10 23:42:59 1996 Ian Lance Taylor <ian@cygnus.com>
* ar.c (open_inarch): Report BFD error message if an archive can
not be recognized. List matching formats if the file is
ambiguously recognized.
(ranlib_touch): Likewise.
Thu Jun 6 13:56:14 1996 Ian Lance Taylor <ian@cygnus.com>
* README: Add notes on how to build if you don't have ar.
* Makefile.in: Remove old incorrect setting of CC.
Tue Jun 4 10:52:49 1996 Tom Tromey <tromey@csk3.cygnus.com>
* Makefile.in (install): Don't check to see if tooldir exists.
Make $(tooldir) and $(tooldir)/bin.
Mon Jun 3 17:40:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* strings.c (main): Make main an int function, not void.
Fri May 31 13:59:24 1996 Ian Lance Taylor <ian@cygnus.com>
* nm.c (filter_symbols): Check for BSF_WEAK as well as
BSF_GLOBAL.
* objcopy.c (filter_symbols): Likewise.
Wed May 8 16:57:20 1996 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (copy_object): Make clear that it is only a warning
when the output file can not represent the architecture.
Fri May 3 11:30:17 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_data): Don't refer to bytes past the end
of data.
Wed Apr 24 14:10:21 1996 Ian Lance Taylor <ian@cygnus.com>
* rddbg.c (read_symbol_stabs_debugging_info): Move call to
free_saved_stabs outside the loop over the symbols.
Tue Apr 23 12:56:11 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (compare_symbols): Sort symbols whose names start with
`.' after other symbols. If no other decision can be made, sort
symbols by name.
Thu Apr 18 16:02:11 1996 Ian Lance Taylor <ian@cygnus.com>
* dep-in.sed: Substitute $(BFDDIR) for @BFDDIR@.
* Makefile.in: Rebuild dependencies.
(dep.sed): Substitute $(BFDDIR) for @BFDDIR@.
Tue Apr 16 13:50:22 1996 Ian Lance Taylor <ian@cygnus.com>
* rdcoff.c: New file.
* rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour
and no stabs were found.
* budbg.h (parse_coff): Declare.
* Makefile.in: Rebuild dependencies.
(CFILES): Add rdcoff.c.
(DEBUG_OBJS): Add rdcoff.o.
Mon Apr 15 15:55:01 1996 Doug Evans <dje@canuck.cygnus.com>
* nlmconv.c (choose_temp_base{,_try}): Delete, in libiberty now.
(link_inputs): Update call to choose_temp_base.
Mon Apr 8 14:40:05 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Permit --enable-shared to specify a list of
directories.
* configure: Rebuild.
Fri Mar 29 16:11:33 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (dump_section_header): Print the SEC_LINK_ONCE flag
and the SEC_LINK_DUPLICATES field.
Fri Mar 29 11:35:55 1996 J.T. Conklin (jtc@lisa.cygnus.com)
* nlmconv.1: Changed to be recognized by catman -w on Solaris.
Thu Mar 28 14:17:02 1996 Ian Lance Taylor <ian@cygnus.com>
* wrstabs.c (stab_enum_type): Set buf before using it.
Fri Mar 22 15:49:08 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (struct stab_handle): Add field abfd.
(start_stab): Add abfd parameter.
(parse_stab_string): Skip the symbol leading char when searching
for the value of a global symbol.
* budbg.h (start_stab): Update declaration.
* rddbg.c (read_section_stabs_debugging_info): Pass abfd to
start_stab.
(read_symbol_stabs_debugging_info): Likewise.
Thu Mar 21 12:40:48 1996 Ian Lance Taylor <ian@cygnus.com>
* wrstabs.c (stab_function_type): Output an empty typedef for an
unused argument, rather than making up a meaningless name.
(stab_variable): Use N_RSYM for a DEBUG_REGISTER variable.
* ieee.c (struct ieee_info): Add global_vars field.
(parse_ieee_be): When ending the global typedef block, copy the
variables into info->global_vars.
(parse_ieee_atn): Don't require an NN record for a pmisc ATN.
(ieee_read_reference): Search the global variables after the local
variables.
Wed Mar 20 18:08:19 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* objdump.c (disassemble_data): Make sure sym_name is always set.
(dump_section_header): Always put a space after the section name.
(dump_bfd_header): Terminate output with newline.
Wed Mar 20 16:35:20 1996 Ian Lance Taylor <ian@cygnus.com>
* wrstabs.c: New file.
* budbg.h (write_stabs_in_sections_debugging_info): Declare.
* objcopy.c (write_debugging_info): For COFF or ELF, output stabs
in sections.
* Makefile.in: Rebuild dependencies.
(CFILES): Add wrstabs.c.
(WRITE_DEBUG_OBJS): New variable.
($(OBJCOPY_PROG)): Use $(WRITE_DEBUG_OBJS), not $(DEBUG_OBJS).
($(STRIP_PROG)): Likewise.
* stabs.c (parse_stab_members): Make type stub detection more like
gdb.
* ieee.c (struct ieee_handle): Add fields complex_float_index and
complex_double_index.
(ieee_complex_type): Cache type index in complex_float_index and
complex_double_index, depending upon size. Set size on type stack
to size * 2.
* ieee.c (ieee_empty_type): Use builtin_unknown, not 0.
(ieee_void_type): Use builtin_void, not 1.
* ieee.c (parse_ieee_ty): Handle 'V' type code.
(parse_ieee_atn): Don't require two numbers for type 10.
* ieee.c (parse_ieee_be): Add one to offset at end of function or
block.
* ieee.c (struct ieee_block): Add field skip.
(parse_ieee_bb): Don't call debug_record_function for __XRYCPP
function, and set skip field.
(parse_ieee_be): Don't call debug_end_function if skip is set.
* debug.c (struct debug_handle): Add fields current_write_lineno
and current_write_lineno_index.
(debug_write): Initialize current_write_lineno and
current_write_lineno_index for each unit. Call
debug_write_linenos rather than writing out the line numbers
directly.
(debug_write_function): Call debug_write_linenos.
(debug_write_block): Likewise.
(debug_write_linenos): New static function.
* debug.c (debug_write_type): For DEBUG_KIND_FUNCTION, push return
type before arguments.
Mon Mar 18 18:05:33 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Add AC_FUNC_VFORK.
* configure, config.in: Rebuild.
* dlltool.c, nlmconv.c: Include <vfork.h> if HAVE_VFORK_H is
defined.
* stabs.c (parse_stab_range_type): A complex type is defined as a
subrange of itself with the high bound zero.
* ieee.c (ieee_complex_type): Don't crash on sizes of 12 or 16.
Tue Mar 12 12:09:43 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (ieee_write_undefined_tag): Switch to global_types even
if it is not empty.
(ieee_tag_type): For an enum, look through info->enums.
* configure: Rebuild with autoconf 2.8.
* debug.c (debug_type_samep): Don't loop endlessly in
DEBUG_KIND_ENUM case. From Eric Baur <ecb@nexen.com>.
Mon Mar 11 12:35:03 1996 Ian Lance Taylor <ian@cygnus.com>
* rddbg.c (read_section_stabs_debugging_info): Call save_stab for
each stab entry, call stab_context on an error, and call
free_saved_stabs before rturning.
(read_symbol_stabs_debugging_info): Likewise.
(SAVE_STABS_COUNT): Define.
(struct saved_stab): Define.
(saved_stabs, saved_stabs_index): New static variables.
(save_stab, stab_context, free_saved_stabs): New static functios.
* objdump.c (stab_name): Remove.
(struct stab_print): Remove.
(stab_print): Remove.
(dump_stabs): Don't initialize stab_name.
(print_section_stabs): Call bfd_get_stab_name rather than using
the stab_name array.
Tue Feb 27 19:52:01 1996 Ian Lance Taylor <ian@cygnus.com>
* prdbg.c (pr_int_constant): Initialize info correctly.
(pr_float_constant): Likewise.
Mon Feb 26 18:11:37 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Update to handle shared library support.
Sat Feb 24 11:21:49 1996 Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in ($(OBJDUMP_PROG)): Search $(BFDLIB) before
$(OPCODES).
Thu Feb 15 12:44:45 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Don't tamper with LDFLAGS. Call AC_PROG_CC before
configure.host.
* configure: Rebuild.
* configure.in: Substitute RPATH_ENVVAR.
* configure: Rebuild.
* Makefile.in (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
* objcopy.c (smart_rename): Rather than doing chmod then chown, do
chmod without setuid, then chown, then chmod with setuid.
Wed Feb 14 16:46:42 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
* arsup.c (map_over_list): Reindent. Don't assume that the
function does not delete the BFD.
(ar_addlib_doer): Don't set prev->next if prev is NULL.
Wed Feb 14 15:12:17 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (ieee_regno_to_genreg): Convert register numbers for m68k
and i960.
(ieee_genreg_to_regno): Likewise.
Mon Feb 12 14:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: Extensive changes to write code to put types in the
global type block when possible, to output ranges for all memory
occupied by the module, and to improve efficiency.
* debug.c (struct debug_handle): Remove class_mark field. Add
id_list and compare_list fields.
(struct debug_class_id): Define.
(struct debug_type_compare_list): Define.
(debug_write): Initialize info->id_list
(debug_write_name): Remove reference to info->class_mark.
(debug_write_type): Get id for all structs and classes. Simplify
test for whether struct has already been written.
(debug_write_class_type): Get id for all classes. Simplify test
for whether class has already been written.
(debug_write_block): Don't write out blocks other than the top
level block if they have no local variables.
(debug_set_class_id): New static function.
(debug_type_samep): New static function.
(debug_class_type_samep): New static function.
* prdbg.c (pr_start_struct_type): Always print id.
(pr_start_class_type): Likewise.
(pr_tag_type): Likewise.
* stabs.c (struct stab_handle): Add syms and symcount fields.
(start_stab): Add syms and symcount parameters. Change all
callers.
(parse_stab_string): Look up global variables in the symbol table
to get the right value.
* budbg.h (start_stab): Update declaration.
* rddbg.c (read_section_stabs_debugging_info): Add syms and
symcount parameters. Change all callers.
* stabs.c (parse_stab_array_type): If the index type is 0, use
int.
Wed Feb 7 14:17:45 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c (ieee_start_compilation_unit): Clear modified and
modified_alloc fields of info.
* configure.in: Check for --enable-shared. Substitute new
variables BFDLIB and OPCODES.
* configure: Rebuild.
* Makefile.in (BFDLIB): Set to @BFDLIB@.
(OPCODES): Set to @OPCODES@.
Mon Feb 5 16:18:42 1996 Ian Lance Taylor <ian@cygnus.com>
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in (HLDFLAGS): New substitution.
* configure: Rebuild.
* Makefile.in (HLDFLAGS): New variable. Make all links use
$(HLDFLAGS) before $(CFLAGS) and $(LDFLAGS).
(BFDLIB_DEP): New variable. Replace all occurrences of $(BFD) as
a dependency with $(BFDLIB_DEP). Remove $(BFD) as a dependency if
there is also a dependency on $(ADDL_DEPS).
(BFDLIB): Rename from BFD; change all uses; set to -L../bfd -lbfd.
(OPCODES_DEP): New variable. Replace all occurrends of $(OPCODES)
as a dependency with $(OPCODES_DEP).
(OPCODES): Set to -L../opcodes -lopcodes.
(ADDL_DEPS): New variable. Replace all occurrences of
$(ADDL_LIBS) as a dependency with $(ADDL_DEPS).
(check): Set LD_LIBRARY_PATH in the environment.
(config.status): Depend upon BFD configure.host and config.bfd.
Fri Feb 2 17:02:59 1996 Doug Evans <dje@charmed.cygnus.com>
* objdump.c: #include stdarg.h or varargs.h.
(objdump_print_value): Change FILE* arg to struct disassemble_info*.
All callers updated. Use fprintf_func.
(objdump_print_address): Consistently use fprintf_func.
(objdump_sprintf): New function.
(disassemble_data): Print insn into a buffer, print raw insn ourselves,
then print insn mnemonic.
Fri Feb 2 16:48:55 1996 Ian Lance Taylor <ian@cygnus.com>
* configure: Regenerate.
Thu Feb 1 09:38:18 1996 Steve Chamberlain <sac@slash.cygnus.com>
* configure.in (i[3-6]86-*-win32): Becomes i[3-6]86-*-cygwin32.
(powerpc*-*-cygwin32): New.
* configure: Regenerated.
Wed Jan 31 13:22:03 1996 Richard Henderson <rth@tamu.edu>
* Makefile.in (distclean): Remove $(DEMANGLER_PROG).1.
Mon Jan 29 17:36:29 1996 Ian Lance Taylor <ian@cygnus.com>
Based on patches from H J Lu <hjl@zoom.com>:
* objcopy.c (remove_leading_char): New static variable.
(OPTION_REMOVE_LEADING_CHAR): Define.
(copy_usage): Mention --remove-leading-char.
(filter_symbols): If remove_leading_char, and the first character
of a global symbol matches the symbol leading char of the BFD,
remove the first character.
(copy_object): Filter the symbols if remove_leading_char is set.
(copy_main): Handle --remove-leading-char.
* binutils.texi, objcopy.1: Document --remove-leading-char.
Sat Jan 27 15:40:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* objdump.c (fprintf): Add prototype to avoid compiler warning on
SunOS.
Fri Jan 26 11:53:42 1996 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi (nm): Improve documentation on symbol types.
(objdump): Reference the stabs manual from the discussion of the
--stabs option.
Thu Jan 25 11:21:46 1996 Raymond Jou <rjou@mexican.cygnus.com>
* mpw-make.sed: Add a "stamps" target.
Thu Jan 25 13:51:44 1996 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (dump_headers, dump_section_header): Change objdump -h
output to be simpler and to include section file offsets.
Wed Jan 24 12:06:05 1996 Ian Lance Taylor <ian@cygnus.com>
* stabs.c (parse_stab_members): Don't adjust voffset.
* ieee.c (ieee_read_cxx_class): Don't multiply voffset by 4.
(struct ieee_write_type): Add name field.
(struct ieee_type_class): Remove name field. Change all uses to
use new name field in type instead.
(struct ieee_name_type): Likewise.
(ieee_start_struct_type): Initialize name field of type.
(ieee_start_class_type): Don't initialize classdef entry of tag.
(ieee_class_method_var): Don't adjust voffset.
(ieee_end_class_type): Likewise.
(ieee_tag_type): Initialize new name field of type.
(ieee_typdef): Set name after copying in type information.
* debug.c (VOFFSET_STATIC_METHOD): Define as -1, not 1.
* ieee.c (struct ieee_modified_type): Define.
(struct ieee_handle): Add modified and modified_alloc fields.
(ieee_get_modified_info): New static function.
(ieee_pointer_type): Cache type index.
(ieee_const_type): Likewise.
(ieee_volatile_type): Likewise.
* ieee.c (ieee_define_named_type): When creating a tag for an
anonymous struct, copy the name into memory.
(ieee_tag_type): Likewise.
* debug.c (debug_write_type): Only check and set id field for an
unnamed object.
(debug_write_class_type): Likewise.
* ieee.c: Various changes to write out types for functions and
references, and to not write out unnecessary function types.
* ieee.c (struct ieee_var): Remove variable field. Add kind
field, and define some enum constants for it.
(parse_ieee_ty): Set kind field of variable for 'x' and 'X' types.
(parse_ieee_atn): Make an indirect slot for an external variable,
although we otherwise don't record it. Set kind field rather than
variable field of pvar.
(ieee_read_cxx_class): Try to get the type of a static member.
(ieee_read_reference): Check kind field rather than variable
field.
Tue Jan 23 15:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: Various changes to handle reading C++ reference type
information.
* debug.h (enum debug_var_kind): Add DEBUG_VAR_ILLEGAL.
(enum debug_parm_kind): Add DEBUG_PARM_ILLEGAL.
* debug.c (debug_get_parameter_types): Handle DEBUG_KIND_FUNCTION.
* ieee.c: Various changes to write out definitions of C++ classes.
* debug.c (debug_append_filename): Remove.
* debug.h (debug_append_filename): Don't declare.
* stabs.c (struct stab_handle): Remove last_type field. Add
so_string and so_value fields.
(finish_stab): Call stab_emit_pending_vars before calling
debug_end_function. Don't warn about pending variables.
(parse_stab): Accumulate N_SO strings until a non N_SO symbol is
seen, rather than calling debug_append_filename. Call
stab_emit_pending_vars before calling debug_end_function. Don't
set info->last_type.
Tue Jan 23 09:53:54 1996 Doug Evans <dje@charmed.cygnus.com>
* objdump.c (disassemble_data): Handle unknown endianness.
Pass fprintf to INIT_DISASSEMBLE_INFO.
Mon Jan 22 16:46:43 1996 Doug Evans <dje@charmed.cygnus.com>
Add new option --show-raw-insn.
* objdump.c (show_raw_insn): New global.
(usage): Update.
(long_options): Update.
(disassemble_data): Set disasm_info.flags if --show-raw-insn.
* objdump.c (disassemble_data): Set new arch,mach,endian fields in
disasm_info.
Mon Jan 22 19:29:36 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: Extensive changes to pass a single info argument around
in the reading routines, rather than several arguments. Add code
to read C++ debugging records.
* debug.h (debug_get_type_size): Declare.
(debug_get_field_name): Declare.
(debug_get_field_bitpos): Declare.
(debug_get_field_bitsize): Declare.
(debug_get_field_visibility): Declare.
(debug_get_field_physname): Declare.
* debug.c (debug_get_real_type): Handle DEBUG_KIND_TAGGED.
(debug_get_type_size): New function.
(debug_get_field_name): New function.
(debug_get_field_bitpos): New function.
(debug_get_field_bitsize): New function.
(debug_get_field_visibility): New function.
(debug_get_field_physname): New function.
(debug_write_type): Make sure we pass the real kind, not INDIRECT,
to tag_type. Pass the name recursively for INDIRECT.
Fri Jan 19 12:31:57 1996 Ian Lance Taylor <ian@cygnus.com>
* debug.h (struct debug_write_fns): Remove ellipsis_type. Add int
and boolean parameters to function_type. Add boolean parameter to
method_type.
(debug_make_ellipsis_type): Don't declare.
(debug_make_function_type): Add debug_type * and boolean
parameters. Change all callers.
(debug_make_method_type): Add boolean parameter. Change all
callers.
(debug_get_parameter_types): Add boolean * parameter. Change all
callers.
(debug_get_target_type): Declare.
* debug.c (struct debug_function_type): Add fields arg_types and
varargs.
(struct debug_method_type): Add field varargs.
(debug_ellipsis_type, ELLIPSIS_P): Remove.
(debug_make_ellipsis_type): Remove.
(debug_make_function_type): Add arg_types and varargs parameters.
(debug_make_method_type): Add varargs parameter.
(debug_get_parameter_types): Add pvarargs parameter.
(debug_get_target_type): New function.
(debug_write_type): In case DEBUG_KIND_FUNCTION, push argument
types and pass count to function_type. In DEBUG_KIND_METHOD, use
a signed int for the count, don't call ellipsis_type, and pass
varargs to method_type.
* stabs.c (struct stab_demangle_info): Add varargs field.
(stab_demangle_argtypes): Add pvarargs parameter. Change all
callers.
(stab_demangle_args): Likewise.
(stab_demangle_type): In case 'F', pick up argument types.
* prdbg.c (pr_ellipsis_type): Remove.
(pr_function_type): Add argcount and varargs parameters.
(pr_method_type): Add varargs parameter.
* ieee.c (ieee_ellipsis_type): Remove.
(ieee_function_type): Add argcount and varargs parameters.
(ieee_method_type): Add varargs parameter. Remove most of
function body, and just call ieee_function_type.
* stabs.c: Include "demangle.h". Added several new static
functions not listed below to demangle argument types; they are
all called via stab_demangle_argtypes.
(finish_stab): If the kind of an undefined tag is
DEBUG_KIND_ILLEGAL, use DEBUG_KIND_STRUCT instead. Warn if there
are any pending variable.
(parse_stab): Don't close the function when the block depth goes
to zero. Pass value to debug_end_function.
(parse_stab_string): In case 'T', pass the name to
parse_stab_type.
(parse_stab_type): In case 'x', use stab_find_tagged_type. In
case '#', handle functions with variable numbers of arguments.
(parse_stab_struct_type): Add tagname parameter. Change all
callers.
(parse_stab_members): Add tagname and typenums parameters. Change
all callers. If the type of a method is a stub, call
parse_stab_argtypes to demangle the argument types and get the
physical name of the function.
(parse_stab_argtypes): New static function.
(stab_record_variable): For a DEBUG_GLOBAL or DEBUG_STATIC
variable, call debug_record_variable immediately.
(stab_find_tagged_type): New static function.
* debug.h (enum debug_type_kind): Add DEBUG_KIND_ILLEGAL.
(struct debug_write_fns): Add field ellipsis_type. Add id
parameter to start_struct_type, start_class_type, and tag_type.
(debug_make_ellipsis_type): Declare.
(debug_find_named_type): Declare.
(debug_get_type_kind): Declare.
(debug_get_return_type): Declare.
(debug_get_parameter_types): Declare.
(debug_get_fields): Declare.
(debug_get_field_type): Declare.
* debug.c (struct debug_handle): Add fields class_id and base_id.
(struct debug_class_type): Add field id.
(struct debug_method_variant): Rename argtypes to physname.
Change all uses.
(debug_ellipsis_type): New static variable.
(ELLIPSIS_P): New macro.
(debug_make_ellipsis_type): New function.
(debug_make_method_variant): Rename argtypes to physname.
(debug_make_static_method_variant): Likewise.
(debug_name_type): Always put types in the global namespace.
(debug_find_named_type): New function.
(debug_find_tagged_type): Treat DEBUG_KIND_ILLEGAL specially,
rather than DEBUG_KIND_VOID.
(debug_get_real_type): New static function.
(debug_get_type_kind): New function.
(debug_get_return_type): New function.
(debug_get_parameter_types): New function.
(debug_get_fields): New function.
(debug_get_field_type): New function.
(debug_write): Initialize base_id.
(debug_write_type): Pass new id argument to tag_type. Handle
DEBUG_KIND_ILLEGAL. Use id for DEBUG_KIND_STRUCT and
DEBUG_KIND_UNION. Handle ellipsis for method arguments.
(debug_write_class_type): Don't dereference kclass if it is NULL.
Use id.
* prdbg.c (pr_fns): Add pr_ellipsis_type.
(pr_ellipsis_type): New static function.
(pr_pointer_type): If this is a pointer to an array, parenthesize
it correctly.
(pr_start_struct_type): Add id parameter.
(pr_start_class_type): Likewise.
(pr_tag_type): Likewise.
(pr_fix_visibility): Add the visibility to the top of the stack,
not the second element on the stack.
(pr_struct_field): Pop the stack before calling pr_fix_visibility.
(pr_class_static_member): Likewise.
(pr_class_start_method): Don't push a type, just set the method
name in the type on the top of the stack.
(pr_class_end_method): Don't pop the stack.
(pr_class_method_variant): Rename argtypes parameter to physname.
Append const and volatile rather than prepending them. Add a
space after the physname.
(pr_class_static_method_variant): Likewise.
* ieee.c (ieee_fns): Add ieee_ellipsis_type.
(ieee_define_named_type): Use DEBUG_KIND_ILLEGAL rather than
DEBUG_KIND_VOID.
(write_ieee_debugging_info): Likewise.
(ieee_typdef): Likewise.
(ieee_ellipsis_type): New static function.
(ieee_start_struct_type): Add id parameter.
(ieee_start_class_type): Likewise.
(ieee_tag_type): Likewise.
(ieee_class_method_variant): Rename name to physname.
(ieee_class_static_method_variant): Likewise.
* Makefile.in (DEBUG_OBJS): Remove prdbg.o.
($(OBJDUMP_PROG)): Depend upon, and link against, prdbg.o.
Thu Jan 18 17:35:06 1996 Kim Knuttila <krk@cygnus.com>
* dlltool.c (make_tail): Changed the order of the sections to avoid
an alignment problem.
Wed Jan 17 14:23:00 1996 J.T. Conklin <jtc@rtl.cygnus.com>
* srconv.c (wr_du): Set du.stackfrmt to 0.
(wr_un, wr_sc): Emit all sections, even those with 0 size.
Tue Jan 16 16:15:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
* srconv.c (wr_hd): Space size within segment was being
stored in segment identifier field.
Tue Jan 16 12:07:25 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-config.in (BUILD_NLMCONV, BUILD_SRCONV, SYSINFO_PROG,
BUILD_DLLTOOL): Put definitions for these into makefile when
configuring, instead of always clearing in mpw-make.sed.
* mpw-make.sed: Edit out any host_alias or target_alias settings,
fix pathname to BFD internal include files, remove dependency
calculation rules.
Thu Jan 11 17:31:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* objdump.c (dump_section_header): Add new section flags
SEC_{EXCLUDE,SORT_ENTRIES}.
Thu Jan 11 11:45:34 1996 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (filter_symbols): NULL terminate the output symbols.
(copy_object): Allocate space for a possible extra NULL pointer.
* debug.c (debug_make_undefined_tagged_type): Make sure we are
given a kind of type we can handle.
(debug_write_type): Handle undefined enums and structs.
(debug_write_class_type): Handle undefined classes.
* prdbg.c (pr_enum_type): Handle an undefined enum.
* ieee.c (ieee_enum_type): Likewise.
Wed Jan 10 15:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in: Updated dependencies.
(ALLOCA, MALLOC): Remove variables.
(ADDL_LIBS): Remove $(MALLOC) from definition.
* alloca.c, gmalloc.c: Remove.
Mon Jan 8 18:02:29 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: Add global function write_ieee_debugging_info and a
bunch of static functions and structs used to write out IEEE
debugging information.
* budbg.h (write_ieee_debugging_info): Declare.
* ieee.c (struct ieee_type): Add pslot field.
(enum builtin_types): Define.
(ieee_builtin_type): For a pointer, return a pointer to the named
type. Use enum values rather than numbers.
(ieee_alloc_type): New static function.
(ieee_read_type_index): Use ieee_alloc_type.
(parse_ieee_bb): Likewise.
(parse_ieee_ty): Likewise. Use ieee_builtin_type for array range,
rather than making a new integer type. Store the new type in the
slot, if there is one.
(parse_ieee_atn): Treat ATN10 as defining a register variable.
(ieee_regno_to_genreg): Rename from ieee_regno_to_gen. Change all
callers.
(ieee_genreg_to_regno): New static function.
* stabs.c (parse_stab_type): Add new typename parameter. Change
all callers.
(parse_stab_range_type): Add new typename parameter. Change all
callers.
* debug.h (struct debug_write_fns): Add tag parameter to
enum_type, start_struct_type, and start_class_type.
* debug.c (debug_write_type): Pass any tag name to
start_struct_type, debug_write_class_type, and enum_type. If
DEBUG_KIND_TAGGED, pass the name in the recursive call.
(debug_write_class_type): Accept a new tag parameter, and pass it
to start_class_type.
* prdbg.c (pop_type): Don't remove '+' character.
(pr_enum_type): Accept and use tag parameter.
(pr_start_struct_type): Likewise.
(pr_start_class_type): Likewise.
(pr_class_baseclass): Adjust algorithm used to find where to put
the baseclass name.
(pr_tag): Don't bother to insert the tag name.
* objcopy.c: Include budbg.h.
(convert_debugging): New static variable.
(OPTION_DEBUGGING): Define.
(copy_options): Add "debugging".
(copy_usage): Mention --debugging.
(is_strip_section): Skip debugging sections if convert_debugging.
(setup_section, copy_section): Likewise.
(filter_symbols): Skip debugging symbols if convert_debugging.
(copy_object): If convert_debugging, read and write debugging
information.
(write_debugging_info): New static function.
(copy_main): Handle --debugging.
* Makefile.in (DEBUG_OBJS): New variable.
($(OBJCOPY_PROG)): Depend upon and link against $(DEBUG_OBJS).
($(STRIP_PROG)): Likewise.
(OBJDUMP_OBJS): Remove variable.
($(OBJDUMP_PROG)): Use objdump.o $(DEBUG_OBJS) rather than
$(OBJDUMP_OBJS).
* binutils.texi, objcopy.1: Document --debugging.
Thu Jan 4 16:31:21 1996 Ian Lance Taylor <ian@cygnus.com>
* ieee.c: New file with code to read IEEE debugging information.
* budbg.h (parse_ieee): Declare.
* rddbg.c (read_debugging_info): Handle IEEE flavour files.
(read_ieee_debugging_info): New static function.
* Makefile.in: Rebuild dependencies.
(CFILES): Add ieee.c.
(OBJDUMP_OBJS): Add ieee.o.
* bucomm.h (xrealloc): Change type of first parameter from char *
to PTR.
Tue Jan 2 17:44:07 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in: Add targets to automatically rebuild dependencies.
Remove targets which just listed dependencies of .o files.
(DEP): New variable.
(HFILES, GENERATED_HFILES): New variables.
(CFILES, GENERATED_CFILES): New variables.
(underscore.c): Don't do anything, just depend upon stamp-under.
(stamp-under): New target; do what underscore.c used to do.
(nlmconv.o): Depend upon sym.h and ecoff.h.
(.dep, .dep1, dep.sed, dep, dep-in): New targets.
(stage1, stage2, stage3, against, comparison): Remove.
(de-stage1, de-stage2, de-stage3): Remove.
(clean, distclean): Remove stamp-under and dep.sed.
* dep-in.sed: New file.
Implement generic debugging support. Implement a stabs reader and
a generic printer.
* budbg.h, debug.c, debug.h, prdbg.c, rddbg.c, stabs.c: New files.
* objdump.c: Include "debug.h" and "budbg.h".
(dump_debugging): New global variable.
(usage): Mention --debugging.
(long_options): Add "debugging".
(display_bfd): Handle --debugging.
* Makefile.in (OBJDUMP_OBJS): New variable.
($(OBJDUMP_PROG)): Use $(OBJDUMP_OBJS).
* binutils.texi, objdump.1: Document --debugging.
Sat Dec 30 09:59:51 1995 Jeffrey A Law (law@cygnus.com)
* nm.c ( long_options): Add "--defined-only" option.
(usage): Update for new "--defined-only" option.
(filter_symbols): Handle "--defined-only".
Fri Dec 29 16:04:56 1995 Ian Lance Taylor <ian@cygnus.com>
* arparse.y: Include "bucomm.h", not <sysdep.h>.
* nlmheader.y: Don't include "sysdep.h".
Tue Dec 26 18:23:18 1995 Ian Lance Taylor <ian@cygnus.com>
* nm.c (print_symdef_entry): Check return value of
bfd_get_elt_at_index.
Sat Dec 23 11:03:16 1995 Michael Meissner <meissner@tiktok.cgynsu.com>
* configure.in (DLLTOOL_DEFS): Build dlltool for PowerPC if target
is powerpc*-*-win* in addition to powerpc*-*-*pe*.
Fri Dec 15 16:30:57 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (endian_string): New static function.
(display_target_list): Use it.
* nlmconv.c (main): Use new bfd_big_endian macro.
Fri Dec 15 07:51:34 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (fill_ordinals): Start from 1 if no other instructions
given.
Tue Dec 12 12:05:21 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (clean): Remove $(DEMANGLER_PROG).1. From Ronald
F. Guilmette <rfg@monkeys.com>.
Mon Dec 11 14:33:05 1995 Stan Shebs <shebs@andros.cygnus.com>
* mac-binutils.r: Fix copyright and version strings.
* Makefile.in (version): Remove, no longer used.
Fri Dec 1 14:41:56 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed (install, install-only): Edit in Mac-specific
install procedure.
Thu Nov 30 20:26:02 1995 Kim Knuttila <krk@cygnus.com>
* dlltool.c (ppc_jtab): The binary glue for PowerPC dll linkage,
including the return instruction.
sinfo: added a preferred alignment field.
(secdata): section data for the PowerPC version.
(make_one_lib_file): More symbols, More sections (pdata, rdata)
(make_tail): Use idata$6 instead of idata$7 for ppc. Also added a
NULL idata$3 descriptor (temporary).
Tue Nov 28 17:23:44 1995 Doug Evans <dje@canuck.cygnus.com>
* dlltool.c (fill_ordinals): Don't reference d_export_vec if
there are no exported functions.
Mon Nov 27 13:05:59 1995 Ian Lance Taylor <ian@cygnus.com>
* configure: Regenerate with autoconf 2.7.
Wed Nov 22 13:17:15 1995 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c (fill_ordinals): Start assigning ordinals at 1.
* Makefile.in (EXPECT): Use $$r, not $${rootme}.
(check): Set r, not rootme.
Tue Nov 21 18:04:09 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Use BFD_NEED_DECLARATION.
* acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
* configure, config.in: Rebuild with autoconf 2.6.
Fri Nov 17 10:34:37 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (CC_FOR_TARGET): Use @host@ and @target@, not
$(host_canonical) and $(target_canonical).
Thu Nov 16 03:39:20 1995 Ken Raeburn <raeburn@cygnus.com>
Version 2.6 released.
* Makefile.in (VERSION): Update to 2.6.
Wed Nov 15 12:14:17 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (CC_FOR_TARGET): Define.
(check): Pass CC and CFLAGS to runtest.
* nm.c (display_rel_file): Don't require a DYNAMIC object when
dumping the dynamic symbol table.
* objdump.c (compare_symbols): Sort global symbols before local
symbols before debugging symbols.
(objdump_print_address): Don't futz around looking for a global
symbol with the same value.
Tue Nov 14 17:19:11 1995 Ian Lance Taylor <ian@cygnus.com>
* dlltool.c: Use FOPEN_* macros rather than "r" or "w".
* dlltool.c (fill_ordinals): Correct memset call.
Sun Nov 12 12:56:05 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed (DEMANGLER_PROG): Edit out attempts to do anything
with the man page.
Fri Nov 10 11:41:22 1995 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (setup_section): Copy the section lma independently of
the vma.
Wed Nov 8 11:33:00 1995 Ian Lance Taylor <ian@cygnus.com>
* arsup.c (ar_open): Cast malloc return value.
Tue Nov 7 09:01:26 1995 Kim Knuttila <krk@cygnus.com>
* configure.in, configure (DLLTOOL_DEFS): Added ppc target.
* dlltool.c (MPPC): Added basic PPC definitions.
Tue Nov 7 14:02:57 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Don't treat rs6000-*-lynx* specially.
* configure: Rebuild.
* config/rslynx: Remove.
* Makefile.in: Remove @target_makefile_fragment@.
Mon Nov 6 15:00:50 1995 Ian Lance Taylor <ian@cygnus.com>
* bucomm.h: Include <sys/types.h>.
* ar.c: Don't include <sys/types.h> or <stdio.h>.
* bucomm.c, dlltool.c, nlmconv.c, objcopy.c, objdump.c: Likewise.
Fri Nov 3 12:38:09 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c: Include <sys/types.h>.
Permit user to override DEMANGLER_PROG from command line. From
Manfred Hollstein <manfred@lts.sel.alcatel.de>.
* Makefile.in ($(DEMANGLER_PROG)): Depend upon
$(DEMANGLER_PROG).1.
(install): Don't depend upon $(DEMANGLER_PROG).1. Only install
$(DEMANGLER_PROG).1 if $(DEMANGLER_PROG) is not empty.
Wed Nov 1 15:04:57 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* Makefile.in (syslex.o): add -I$(srcdir) if compiling in a
separate directory.
Mon Oct 30 14:24:18 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (objdump_print_value): New static function.
(objdump_print_address): Use it. If we need the right section for
the symbol, and we can't find it, print an offset from the section
rather than using a symbol from some other section.
Thu Oct 26 10:23:14 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (no_idata4, no_idata5): New.
(arm_jtab): Use correct encoding of jump instruction.
(usage, main, make_head, make_tail): Act on no_idata4, no_idata5.
Wed Oct 25 12:10:07 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Edit paths to generated y.tab.[ch] files.
Fri Oct 20 18:40:34 1995 Ian Lance Taylor <ian@cygnus.com>
* binutils.texi: Change --with-targets to --enable-targets.
Thu Oct 19 17:47:41 1995 Fred Fish <fnf@cygnus.com>
* Makefile.in: Remove extraneous tab on otherwise empty line,
which confuses many non-GNU versions of "make".
Wed Oct 18 16:31:58 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (i386_jtab, arm_jtab): New
(gen_lib_file): Rewritten to use bfd.
Fri Oct 13 16:10:07 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* Makefile.in (install): Don't give error message if dlltool
wasn't built.
Fri Oct 13 11:04:37 1995 steve chamberlain <sac@slash.cygnus.com>
* deflex.l: Allow quoting of IDs.
* defparse.y (%union): string deleted.
(command): DESCRIPTION takes ID.
* dlltool.c (gen_def_file): Quote outgoing name if
necessary. Preserve NONAME.
(gen_lib_file): Run ranlib.
(workout_prefix): Deleted.
(main, usage, long_options): Add --as, --ranlib, --ar options.
Wed Oct 11 13:36:13 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (mtable): HOW_ALIGN_LONG, new.
(d_ord): Deleted.
(d_low_ord, d_high_ord, d_named_funcs): New.
(gen_exp_file): Create noname entries correctly.
(gen_lib_file): Dump exports alphabetically.
(process_duplicates): Count nonamed functions.
(fill_ordinals): Keep track of highest ord too.
(mangle_defs): Create alphabetically ordered list of names.
Tue Oct 10 09:39:09 1995 steve chamberlain <sac@slash.cygnus.com>
* Makefile.in (TOOL_PROGS): Include DLLTOOL_PROG.
Mon Oct 9 13:06:31 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (add_underscore): New.
(xlate): Use new name.
(main, usage): Update.
Fri Oct 6 14:08:51 1995 Ken Raeburn <raeburn@cygnus.com>
* sysinfo.y: Eliminate unused terminals "[" and "]" and unused
nonterminal "name". One s/r conflict remains.
Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* nm.c (print_symname): Don't try to demangle an empty
name.
* objdump.c (slurp_symtab): Reset symcount if there are
no symbols.
(slurp_dynamic_symtab): Likewise, for dynsymcount.
(disassemble_data): Fix memory leak: free sorted_syms when done.
(display_bfd): Likewise, for syms and dynsyms.
(dump_relocs): Don't print header before possibly generating an
error message.
(dump_dynamic_relocs): Likewise.
* ar.1, nm.1, objdump.1, size.1, strings.1, strip.1: Fix typos and
formatting bugs.
Fri Oct 6 12:00:25 1995 Ian Lance Taylor <ian@cygnus.com>
* ar.c (do_quick_append): Comment out.
(replace_members): Add quick argument.
(main): Don't call do_quick_append.
(open_inarch): Don't call quick_append to create an empty archive.
Instead call bfd_openw/bfd_set_format/bfd_close.
Thu Oct 5 20:53:08 1995 Ken Raeburn <raeburn@cygnus.com>
* bucomm.c: Always include time.h.
Thu Oct 5 17:25:21 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (compare_symbols): Sort gnu_compiled and gcc2_compiled
symbols after other symbols with the same value. Likewise for
symbols which look like file names.
(objdump_print_address): Always chose the first reasonable symbol
with a given value.
Tue Oct 3 22:38:55 1995 Ian Lance Taylor <ian@cygnus.com>
* arsup.c (ar_save): Use rename, not unlink/link/unlink.
Mon Oct 2 12:10:25 1995 Ian Lance Taylor <ian@cygnus.com>
* strings.c (main): Exit with zero status if no files are given
and standard input is read.
Thu Sep 28 20:03:07 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-config.in: Calculate underscore and put into makefile
fragment, generate config.h.
* mpw-make.sed: New file, sed commands to edit Unix makefile
into MPW syntax.
* mpw-make.in: Remove.
* mac-binutils.r: New file, Mac resources.
Thu Sep 28 15:49:00 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c: (gen_exp_file): Always emit a .reloc section if
relocatable.
(imp_name_lab): New.
(gen_def_file): New.
(gen_lib_file): Use imp_name_lab.
(main): Initialize imp_name_lab.
Mon Sep 25 12:05:34 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Call AC_HEADER_SYS_WAIT.
* configure: Rebuild.
* config.in: Rebuild.
* dlltool.c: Include "libiberty.h" and "bucomm.h". Don't include
<stdio.h>, <stdlib.h>, or <string.h>. Don't include <wait.h>.
Include <sys/types.h>. Use HAVE_SYS_WAIT_H to control whether to
include <sys/wait.h> or define the wait macros by hand. Don't
declare xmalloc.
(gen_lib_file): Don't assume that sprintf returns the number of
characters; use strlen instead.
Fri Sep 22 17:16:41 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (disassemble_data): Don't use the old BFD based
disassembler interface. Make info a const pointer.
Wed Sep 13 18:33:44 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (start_address): New variable.
(stop_address): New variable.
(usage): Mention --start-address and --stop-address.
(OPTION_START_ADDRESS, OPTION_STOP_ADDRESS): Define.
(long_options): Add "start-address" and "stop-address".
(disassemble_data): Handle start_address and stop_address.
(dump_data, dump_reloc_set): Likewise.
(main): Don't set seenflag for -l. Handle OPTION_START_ADDRESS
and OPTION_STOP_ADDRESS.
* objcopy.c (parse_vma): Move to bucomm.c.
* bucomm.c (parse_vma): New function, moved in from objcopy.c.
* bucomm.h (parse_vma): Declare.
* binutils.texi, objdump.1: Document new objdump options.
Tue Sep 12 12:37:39 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (maintainer-clean): New target.
* ar.c (replace_members): Don't call write_archive if nothing
changed.
* objdump.c (disassemble_data): Add casts to avoid gcc warnings.
Thu Sep 7 12:12:17 1995 Ian Lance Taylor <ian@cygnus.com>
* config.in: Rename from config.h.in.
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
Check for config.h:config.in when creating stamp-h.
* configure: Rebuild.
* Makefile.in (stamp-h): Depend upon config.in rather than
config.h.in. Set CONFIG_HEADERS to config.h:config.in when
calling config.status.
* Makefile.in (distclean): Remove config.h, stamp-h, and
config.log.
* nm.c (value_format): Initialize based on BFD64 and
BFD_HOST_64BIT_LONG.
(print_radix): New static variable.
(set_print_radix): Set print_radix. Adjust changes to
value_format.
(print_value): New static function, to print 64 bit octal and
decimal values correctly.
(print_symbol_info_bsd): Check BFD64, not BFD_HOST_64_BIT. Use
print_value.
(print_symbol_info_sysv): Use print_value.
(print_symbol_info_posix): Likewise.
Wed Sep 6 15:02:55 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (*.o): Remove incorrect dependencies on
$(BFDDIR)/hosts/std-host.h.
* Makefile.in (INSTALL_DATA): Add -m 644.
(INSTALL_XFORM1): Likewise.
(CC_FOR_BUILD): Set to @CC_FOR_BUILD@ rather than $(CC).
(mostlyclean): Remove config.log.
(distclean): Remove config.cache.
* configure.in: Call BFD_CC_FOR_BUILD and BFD_BINARY_FOPEN.
* configure: Rebuild.
Tue Sep 5 20:22:42 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Rewrite to use autoconf.
* aclocal.m4: New file.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* Makefile.in: Various changes for new configure script. Also:
(PROGS): Remove $(SYSINFO_PROG).
(ALL_CFLAGS): Remove $(TDEFINES).
(version.o): Use $(ALL_CFLAGS).
(cplus-dem.o, dlltool.o, nlmconv.o): Likewise.
(sysdump.o): Depend upon bucomm.h and config.h.
(srconv.o, arsup.o, strings.o): Depend upon config.h.
(filemode.o): Don't depend upon ../bfd/sysdep.h.
(bucomm.o): Depend upon config.h, not ../bfd/sysdep.h.
(size.o, objdump.o, nm.o, ar.o, objcopy.o): Likewise.
(nlmheader.o, nlmconv.o): Likewise.
(distclean): Don't remove sysdep.h.
* bucomm.h: Include "ansidecl.h", <stdio.h>, and "config.h".
Include "fopen-same.h" or "fopen-bin.h", based on
USE_BINARY_FOPEN. Include <errno.h>, and declare errno if it is
not a macro. Include <unistd.h>, <string.h>, <strings.h>,
<stdlib.h>, and <fcntl.h> if they are present. Declare strchr,
strrchr, and strstr if no string header file exists. Include
<sys/file.h> if it exists and <fcntl.h> does not. Define
O_RDONLY and O_RDWR if necessary.
* ar.c: Don't include "sysdep.h". Do include <sys/types.h> and
<sys/stat.h>. Use HAVE_GOOD_UTIME_H rather than POSIX_UTIME. Use
HAVE_UTIMES rather than !USE_UTIME. Don't include <errno.h>, and
don't declare errno.
* arsup.c: Don't include <sysdep.h>.
* bucomm.c: Don't include "sysdep.h". Include <stdio.h>,
<sys/types.h>, and <sys/stat.h>. Include <time.h> if it defines
time_t. Define time_t if necessary.
* coffdump.c: Don't include "sysdep.h".
* coffgrok.c, filemode.c, nlmconv.c, size.c: Likewise.
* srconv.c, strings.c: Likewise.
* nm.c: Don't include "sysdep.h". Don't try to define HAVE_SBRK.
* objcopy.c: Don't include "sysdep.h". Include <sys/types.h> and
<sys/stat.h>.
(simple_copy): Use creat rather than assuming that O_CREAT is
defined.
* objdump.c: Don't include "sysdep.h". Use
NEED_DECLARATION_PRINTF rather than !FPRINTF_ALREADY_DECLARED.
* sysdump.c: Include "bfd.h" and "bucomm.h". Don't include
"sysdep.h" or <stdlib.h>.
(dump_symbol_info): Rename from symbol_info. Change all callers.
Mon Sep 4 14:30:00 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in (host_makefile_frag): Don't set. Substitute for
@CC@, @CFLAGS@, @HDEFINES@ and @LDFLAGS@ in Makefile.
* Makefile.in (AR_FLAGS): Set to rc rather than qv.
(CC): Define as @CC@.
(CFLAGS): Set to @CFLAGS@.
(LDFLAGS): Define as @LDFLAGS@.
(ALL_CFLAGS): Use @HDEFINES@ rather than $(HDEFINES).
* configure.in: Don't bother to call config.bfd for each target.
Just call it for the default target, and use the shell variable to
decide whether underscores are used.
Thu Aug 31 19:21:48 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* configure.in: match i[3-6]86-*-win32, not just i386-*-win32.
Thu Aug 31 16:30:22 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (add_indirect): New.
(asm_prefix): New
(gen_exp_file): Timestamp should be 0. Insert prefix when
needed. New code for indirection.
(gen_lib_file): Timestamp should be 0. Insert prefix
when needed.
(usage): Document --add-indirect.
(main): Cope with new option.
* objdump.c (dump_private_headers): New.
(usage): Document new option.
(long_option): Add private-headers.
(dump_bfd_private_header): New.
(main): Cope with new option.
Thu Aug 31 04:09:16 1995 Doug Evans <dje@canuck.cygnus.com>
* dlltool.c (run): Add missing 3rd arg to waitpid.
Wed Aug 30 11:02:11 1995 steve chamberlain <sac@slash.cygnus.com>
* Makefile.in (TOOL_PROGS): Include dlltool if needed.
Tue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (rva): Deleted.
(rvaafter, rva_before): Use new assembler pseudo.
(flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
(gen_exp_file): Don't generate .edata if no need.
(gen_lib_file): Don't make timestamp.
Put _iname in idata$7.
(workout_prefix): Fix memory initialization bug.
(usage): Tidy up, delete many single char options.
(main): rva option is gone.
Mon Aug 21 18:41:28 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (options): image-base is a synonym for rva.
(gen_lib_file): Put dll name into ibase$7.
Sun Aug 20 09:59:00 1995 steve chamberlain <sac@slash.cygnus.com>
Modified to generate archives and objects rather than .s files.
* dlltool.c (run) New function.
(gen_exp_file, gen_lib_file): Use run.
(workout_prefix): New.
(usage): Document new options.
(main): Parse new options.
Wed Aug 16 16:26:52 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (gen_exp_file): Fix RVA handling.
(rva_s, rva_n): Delete.
Fri Aug 11 18:27:18 1995 Ian Lance Taylor <ian@cygnus.com>
* nm.c (main): Ignore -e.
Thu Aug 10 17:35:00 1995 Ken Raeburn <raeburn@cygnus.com>
* Makefile.in (config.texi): New target. Write out a setting for
texinfo variable VERSION.
(binutils.dvi, binutils.info): Depend on it.
* binutils.texi: Include it, and reference @value{VERSION} instead
of explicitly specifying 2.2(!).
Thu Aug 10 16:07:53 1995 Ian Lance Taylor <ian@cygnus.com>
* coffgrok.c (do_type): Handle array dimensions the same way gdb
does.
Tue Aug 8 17:10:42 1995 steve chamberlain <sac@slash.cygnus.com>
* dlltool.c (mtable): New fields.
(ASM_RVA_BEFORE, ASM_RVA_AFTER): New.
(flush_page): Use new macros.
Sat Aug 5 00:16:37 1995 Jeff Law (law@snake.cs.utah.edu)
* objcopy.c (mark_symbols_used_in_relocations): Handle sections
with no relocations.
* coffgrok.c (do_sections_p1): Likewise.
Mon Jul 31 12:51:06 1995 Ian Lance Taylor <ian@cygnus.com>
* strings.c (print_strings): For compatibility with existing
strings programs, print strings which are not terminated with a
null byte or a newline.
* binutils.texi, strings.1: Update documentation accordingly.
* ar.c (replace_members): For compatibility with existing ar
programs, permit users to add the same file multiple times.
Tue Jul 25 11:21:53 1995 Ian Lance Taylor <ian@cygnus.com>
* strings.c (DATA_FLAGS): Remove SEC_DATA.
(main): If no file names are given, scan standard input.
* binutils.texi, strings.1: strings now scans non-data sections by
default.
Mon Jul 24 13:52:28 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* srconv.c (wr_hd): Set afl field to 4 for bfd_arch_sh.
(writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
for the sh.
* sysdump.c (fillup): Return size - 1, the last byte is a checksum
and shouldn't be counted.
* sysroff.info (hd): Changed segment identifier from a byte to a 1
bit field. The sysroff 2.0-01 specification seems to be in error
here. Reduce width of following "spare" field from 4 to 3 bits.
(rl): Changed order and width of first 4 bitfields to correspond
to sysroff specification.
(dln_head, dln_inside, dln_tail): Removed.
Tue Jul 18 23:00:03 1995 Fred Fish <fnf@cygnus.com>
* nm.c (sort_symbols_by_size): Enclose expression being casted
in parens so result is casted, not just first operand. Can't
do pointer arithmetic on void* pointers.
Fri Jul 14 13:42:42 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* sysdump.c (dh): Changed format of output to be 16 hex digits
followed by 16 ascii characters, similar to Emacs' hexl-mode,
to make it easier to read.
(xcalloc): fix typo.
Thu Jul 13 15:27:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* srconv.c (wr_tr): Write out handcrafted tr block.
(walk_tree_symbol): Use evallen and evalue instead of
vallen & value because of corresponding changes in
sysroff.info.
* sysdump.c (sysroff_swap_tr_in, sysroff_print_tr_out): New
functions.
* sysroff.info (tr): the tr block is a special case --- a block
without contents --- which can't be handled by generated code.
(den, dpp): only first byte is present for DENend, DPPend.
(dsy): describe a conditional portion of block, rename some fields.
(dps): describe a conditional portion of block.
(dfl): removed.
* sysinfo.y (yyerror): write error message to standard error.
Thu Jul 13 10:43:59 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (DISTSTUFF): Add arparse.h and sysinfo.h.
(mostlyclean): Remove y.output.
(clean): Remove sysroff, sysroff.c, sysroff.h, and sysinfo.
* nlmconv.c (powerpc_mangle_relocs): Cast memset arg to size_t.
* objcopy.c (copy_object): Likewise.
* nm.c (HAVE_SBRK): Define execpt on amigados and WINDOWS_NT.
(struct size_sym): Define.
(show_stats): New static variable.
(long_options): Add undocumented option "stats".
(main): Print memory stats if requested.
(sort_bfd, sort_dynamic, sort_x, sort_y): New static variables.
(numeric_forward): Use minisymbols rather than asymbols.
(non_numeric_forward): Likewise.
(size_forward1): Rename from size_forward. Use minisymbols.
(size_forward2): New static function.
(sort_symbols_by_size): Take new arguments dynamic, size, and
symsizep. Use minisymbols. Don't store the size back in the
symbol; store in a newly allocate struct size_sym array.
(display_rel_file): Read minisymbols rather than asymbols. Set
sort_* variables. Call print_size_symbols if sorting by size.
(filter_symbols): Take new arguments dynamic and size. Use
minisymbols.
(print_symbols): Likewise. Call print_symbol for actual printing.
(print_size_symbols): New static function.
(print_symbol): New static function.
Wed Jul 12 10:43:05 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (dump_section_stabs): Only print each stabs section
once.
(compare_relocs): Make it clear to gcc that this always returns a
value.
Wed Jul 12 10:40:23 1995 H.J. Lu <hjl@nynexst.com>
* objcopy.c (simple_copy): Preserve errno on failure.
(smart_rename): Print error mesage if simple_copy fails.
Tue Jul 11 13:10:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* sysdump.c: re-indented file.
(module): read blocks sequentially instead of trying to parse
them, as that would require changing the parser recognize the
difference between a DPSstart and DPSend block.
(getone): Add break's between switch blocks as appropriate.
(object_body_list): parse blocks according to sysroff spec.
Mon Jul 10 12:37:25 1995 J.T. Conklin <jtc@poseidon.cygnus.com>
* sysroff.info: re-indented file, prior formatting was confusing
because it was indentation did not reflect nesting of conditional
records. Change "space size within segment" record in hd record
from bit to byte.
* sysinfo.y (cond_it_field): Use xcalloc instead of calloc.
* srconv.c (wr_cs): Reformatted cs header array, tag each byte
with a comment describing the field.
(wr_unit_info): Use SEEK_SET macro instead of constant 0.
(main): Use FOPEN_WB macro instead of literal "wb".
* sysroff.info: Remove fdl (dfl) field from cs block. Compare
ptr->type with ED_TYPE_CONST instead of constant 2 in ed block.
Tue Jul 4 14:48:42 1995 Ian Lance Taylor <ian@cygnus.com>
* nm.c (size_forward): Check yf against yn, not xn.
* objcopy.c (copy_archive): Record all output BFD's, and close
them before unlinking them and removing the temporary directory,
to avoid NFS problems.
* ar.c (replace_members): In verbose messages, use 'r' when
replacing a member, and 'a' when adding one.
* ar.c (ar_truncate): New static variable.
(normalize): Change return type to const char *. Add abfd
argument. Change all callers. If ar_truncate, chop the filename
to abfd->ar_max_namelen.
(main): For the 'f' modifier, set ar_truncate to true. Don't
change quick_append to replace if ar_truncate is true.
(do_quick_append): If ar_truncate, set BFD_TRADITIONAL_FORMAT.
(write_archive): Likewise.
* binutils.texi, ar.1: Document 'f' modifier.
* objcopy.c (enum strip_action): Define strip_unneeded.
(OPTION_STRIP_UNNEEDED): Define.
(strip_options): Add "strip-unneeded".
(copy_options): Likewise.
(copy_usage): Mention --strip-unneeded.
(strip_usage): Likewise.
(is_strip_section): Strip debugging sections if strip_unneeded.
(filter_symbols): If strip_unneeded, only keep BSF_KEEP symbols.
(copy_object): If strip_all, discard symbols without checking
discard_locals.
(copy_object): Call filter_symbols if strip_unneeded.
(setup_section): Strip debugging sections if strip_unneeded.
(copy_section): Likewise.
(strip_main): Handle OPTION_STRIP_UNNEEDED.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document --strip-unneeded.
Mon Jul 3 14:16:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
* configure.in (i386-*-win32): New configuration.
* dlltool.c (killat, xlate, usage, long_options, main):
Understand and cope with -k option.
Sat Jul 1 12:25:15 1995 Fred Fish <fnf@cygnus.com>
* ar.c: (extract_file): Change "#if POSIX_UTIME" to
"#ifdef POSIX_UTIME" to match other tests of POSIX_UTIME
and avoid lossage when POSIX_UTIME is not defined at all.
Wed Jun 28 17:51:24 1995 Steve Chamberlain <sac@slash.cygnus.com>
* ar.c: (print_contents.c, extract_file, do_quick_append):
Malloc buffers rather than allocate on stack (so it works
on NT).
* deflex.l: Names can have an @ in them.
* dlltool.c: Loads of stuff. Can now generate .imp files which
work with NT .dlls.
Thu Jun 22 19:10:50 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.in (demangle.c.o): Remove.
(arparse.h): Depend on arparse.c instead of arparse.y.
Wed Jun 21 17:32:45 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* Makefile.in (DISTSTUFF): Don't include info here.
(diststuff): Include it here.
(realclean): Remove *.info.
* objdump.c (compare_relocs): If relocation entries have the same
address, keep them in file order.
Mon Jun 19 09:06:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
* dlltool.c: Change names of generated files. .*.s-> -*.s
* objdump.c (dump_section_stabs): Check for names
which are supersets of selected names.
Wed Jun 14 19:43:52 1995 Doug Evans <dje@canuck.cygnus.com>
* dlltool.c (mtable, ARM jump): Must redirect via pc offsetable ptr.
Wed Jun 14 13:27:22 1995 Steve Chamberlain <sac@slash.cygnus.com>
* deflex.l, defparse.y, dlltool.c: New files.
* Makefile.in, configure.in: Support for them.
Mon Jun 12 11:27:54 1995 Steve Chamberlain <sac@slash.cygnus.com>
* sysdump.c: Include sysdep.h
(main): Open input with FOPEN_RB.
Fri Jun 9 17:26:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* objdump.c (wide_output): New flag variable.
(usage): Print new -w, --wide options.
(long_options): Add --wide support.
(dump_section_header): If --wide, don't print a newline between
the section's first line and the flags.
(objdump_print_address): Use unsigned comparisons for the binary
search, not signed.
(disassemble_data): If --wide, don't put a \n between the
disassembly output and relocation information.
(main): Support -w option being the same as --wide.
Thu Jun 1 17:09:27 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
Sat May 6 08:52:24 1995 H.J. Lu (hjl@nynexst.com)
* objcopy.c (smart_rename): make it smarter, clean up
if rename () fails.
Tue May 30 14:24:15 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* Makefile.in: Delete lines with lots of #### because four or more
indicate a point for makefile fragment substitution.
Tue May 9 17:17:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.in: Don't build nlmconv on PowerPC eabi any more, it
is not needed.
Thu Apr 27 20:21:24 1995 Doug Evans <dje@canuck.cygnus.com>
* Makefile.in (EXPECT): Define.
(RUNTEST): Use one in source tree if present.
(check): Set `rootme' for $(EXPECT).
Wed Apr 26 18:26:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
* srconv.c (main): Add support for -n option which disables
prescan of common symbols.
(wr_ob): If reading past the end of a section, fill with zeros.
Tue Apr 25 19:14:37 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* objdump.c (dump_section_header): Display load address after
virtual memory (run-time) address.
Wed Apr 19 09:44:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
* Makefile.in (cplus-dem.o): Pass -DVERSION='"$(VERSION)"' to the
compile.
(DEMANGLER_PROG): No longer uses version.o.
Mon Apr 10 13:29:49 1995 Stan Shebs <shebs@andros.cygnus.com>
Merge in support for Mac MPW as a host.
(Old change descriptions retained for informational value.)
* mpw-config.in (TDEFINES): Define as empty in makefile frag.
* mpw-config.in: Create mk.tmp, define ARCHDEFS in it.
* mpw-config.in: New file, MPW configure fragment for binutils.
* mpw-make.in (install-only): New target.
(install): Also depend on install-only.
* mpw-make.in (cplusfilt): Renamed from c++filt.
(INCLUDES): Add more paths.
* mpw-make.in: New file, MPW makefile fragment for binutils.
(Normally automatically generated from Makefile.in.)
Mon Mar 27 11:52:57 1995 Ian Lance Taylor <ian@cygnus.com>
* ar.c (write_archive): Call make_tempname to get output file
name, rather than using a fixed name based on the input file.
* objcopy.c (make_tempname): Copy from here...
* bucomm.c (make_tempname): ...to here, and make global.
* bucomm.h (make_tempname): Declare.
Fri Mar 24 11:47:42 1995 Ian Lance Taylor <ian@cygnus.com>
* strings.c: Include "bfd.h" before other headers. Include
"sysdep.h".
* bucomm.c (print_arelt_descr): Cast st_uid and st_gid to long,
and print them with %ld.
Fri Mar 10 13:09:42 1995 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (strip_options): Add --keep-symbol.
(copy_options): Likewise.
(copy_usage): Mention --keep-symbol and -K.
(strip_usage): Likewise.
(keep_symbols): New static variable.
(is_strip_symbol): Adjust the return value according to
keep_symbols.
(strip_main): Handle -K. For -N, check that -K was not given.
(copy_main): Likewise.
* binutils.texi, objcopy.1, strip.1: Document -K.
Mon Mar 6 13:33:47 1995 Stan Shebs <shebs@andros.cygnus.com>
* objcopy.c (copy_archive): Check result of mkdir.
(copy_main): Cast an xmalloc result.
* objdump.c (usage): Break long format string into shorter ones.
Mon Mar 6 13:46:12 1995 Ian Lance Taylor <ian@cygnus.com>
* bucomm.c (list_supported_targets): New function.
* bucomm.h (list_supported_targets): Declare.
* ar.c (usage): Call list_supported_targets.
* nm.c (usage): Likewise.
* objcopy.c (copy_usage, strip_usage): Likewise.
* objdump.c (usage): Likewise.
* size.c (usage): Likewise.
* strings.c (usage): Likewise.
Tue Feb 28 15:13:58 1995 Ian Lance Taylor <ian@cygnus.com>
* bucomm.c (print_arelt_descr): Cast st_size to long before
passing it to fprintf.
Fri Feb 17 13:36:45 1995 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (struct section_list): Add fields remove, set_flags,
and flags. Change adjust from boolean to enum.
(remove_sections): Remove static variable.
(sections_removed): New static variable.
(copy_options): Add --set-section-flags.
(copy_usage): Mention --set-section-flags.
(parse_flags): New static function.
(find_section_list): New static function.
(is_strip_symbol): Change return type from int to boolean.
(is_strip_section): New static function.
(filter_symbols): Call is_strip_section.
(copy_object): When adding sections, check for specified flags or
VMA. Call filter_symbols if any sections are being removed.
(setup_section): Use find_section_list function rather than
looking through remove_sections and adjust_sections. Handle
--set-section-flags.
(copy_section): Use find_section_list rather than looking through
remove_sections.
(strip_main): Use find_section_list instead of adding items to
sections_removed.
(copy_main): Use find_section_list instead of adding items to
sections_removed and adjust_sections. Handle --set-section-flags.
* binutils.texi, objcopy.1: Document --set-section-flags.
Tue Feb 14 18:03:03 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (with_source_code): New global variable.
(usage): Mention -S/--source.
(long_options): Add --source.
(prev_functionname, prev_line): New static variables.
(struct print_file_list): Define.
(print_files): New static variable.
(skip_to_line, show_line): New static functions.
(disassemble_data): Call show_line to handle -l and -S.
(main): Handle -S.
* binutils.texi, objdump.1: Document -S/--source.
Thu Feb 9 16:11:53 1995 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (copy_usage): Rename parameter to avoid shadowing.
(strip_usage): Likewise.
* objcopy.c (struct section_add): Define.
(add_sections): New static variable.
(copy_options): Accept --add-section.
(copy_usage): Mention --add-section.
(copy_object): Add sections from the add_sections list.
(copy_main): Handle --add-section.
* binutils.texi, objcopy.1: Document --add-section.
Wed Feb 1 15:04:57 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* objdump.c (disassemble_data): Pass section offset, not absolute
address, to bfd_find_nearest_line.
* nlmconv.c (powerpc_mangle_relocs): Don't use const with
reloc_howto_type.
Thu Jan 26 18:50:06 1995 Ian Lance Taylor <ian@cygnus.com>
* objdump.c (compare_symbols): Use bfd_asymbol_value (VAR) rather
than VAR->value.
(objdump_print_address): Likewise.
(disassemble_data): Don't change the symbol values. It can
confuse bfd_canonicalize_reloc.
Thu Jan 26 12:03:56 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.in: Add support for powerpc-*-ebai.
Wed Jan 18 10:02:12 1995 Steve Chamberlain <sac@splat>
* coffdump.c: Include sysdep.h.
(dump_coff_type): Handle coff_secdef_type.
* coffgrok.c : Include sysdep.h.
* srconv.c: Include libiberty.h
(absolute_p, dty_start, dty_end, dump_tree_structure): Remove.
Wed Jan 18 12:24:14 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
* coffdump.c (dump_coff_scope): Cast pointer to unsigned long for
printf.
* coffgrok.c: Include bucomm.h. Don't declare xmalloc.
(push_scope): Declare type of parameter link.
* size.c: Include libiberty.h.
* srconv.c: Include bucomm.h.
(find_base): Declare at top of file.
(wr_hd): Add default case to architecture switch.
(wr_dps_start): Declare type of parameter nest.
(wr_du): Comment out variables used only in commented out blocks.
(wr_dus): Remove unused variable i.
(wr_sc): Remove unused variables myinfo, low, and high.
* strings.c: Include libiberty.h.
* sysdump.c: Include <ctype.h>.
Tue Dec 20 19:13:44 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* ar.c (main): Ignore 'f' modifier used on HP/UX 9.
Thu Dec 15 17:34:12 1994 Stan Shebs <shebs@andros.cygnus.com>
* ar.c, nm.c, objcopy.c, objdump.c: Include progress.h.
* ar.c, nm.c, objcopy.c, objdump.c (main): Add START_PROGRESS
and END_PROGRESS.
* ar.c (map_over_members, open_inarch): Call PROGRESS.
* nm.c (main, display_archive, filter_symbols, print_symbols):
Call PROGRESS.
* objcopy.c (copy_usage): Break up long usage string.
Wed Dec 14 15:51:56 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
* objcopy.c (copy_object): Don't bother setting status after
nonfatal() "call", because it won't return.
Fri Dec 9 00:22:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (powerpc_mangle_relocs): Don't switch a reloc to use
the section symbol if the symbol is undefined.
Thu Dec 8 14:45:50 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
* objcopy.c (add_strip_symbol): Cast return value of xmalloc.
Wed Nov 30 11:05:43 1994 Ian Lance Taylor <ian@rtl.cygnus.com>
* ar.c (replace_members): Pass current->filename to normalize when
checking for duplicates, because the filename of a newly added
file will not have been normalized yet.
Thu Nov 17 15:00:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* ar.c (main): Don't call do_quick_append if any of the archive
names are longer than 14 characters.
* objcopy.c (main): Fix is_strip test. From
pirker@eiunix.tuwien.ac.at (Martin Pirker).
Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>
* objcopy.c (add_strip_symbol): New function, adds a name to an
explicit list of symbols to strip.
(is_strip_symbol): New function, reports whether the name argument
is in the explicit list.
(filter_symbols): Check against is_strip_symbol above all.
(strip_main): Recognize -N option. If used, don't default to
strip_all.
(copy_main): Recognize -N option.
(strip_usage): Document -N and --strip-symbol options.
(copy_usage): Ditto.
* objcopy.1, strip.1, binutils.texi: Document -N and
--strip-symbol options.
Tue Nov 8 13:12:54 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* objdump.c (display_target_list, display_info_table): Pass an
array to tmparg, rather than NULL, since some systems can't handle
NULL.
* objcopy.c (copy_archive): Keep a list of the names of the
temporary files we created. Close each input BFD after we open
its successor.
Mon Nov 7 15:48:39 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
* Makefile.in (VERSION): Bump to 2.5.3.
Thu Nov 3 19:04:34 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
* Makefile.in (install-info): Install info files from whatever
directory they were found in.
Patch from DJ Delorie:
* configure.bat: do c++filt -> cxxfilt right
* sysinfo.y: Include system header files early, so any potential
declaration of abort() occurs before its use.
* strings.c (strings_file): Try opening the file in binary mode
first.
Wed Nov 2 15:44:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* ar.c (main): Treat ar qs like ar rs.
Tue Oct 25 16:19:25 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* objcopy.c (gap_fill): Explicitly initialize, for clarity.
(pad_to_set, pad_to): New static variables.
(copy_options): Accept --pad-to.
(copy_usage): Mention --pad-to.
(copy_object): Support --pad-to.
(compare_section_vma): Sort non loadable sections to the front.
Sort sections with the same VMA by size.
(copy_main): Handle --pad-to.
* binutils.texi, objcopy.1: Document --pad-to.
Thu Oct 20 13:51:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objcopy.c (gap_fill_set, gap_fill): New static variables.
(copy_options): Accept --gap-fill.
(copy_usage): Mention --gap-fill.
(copy_object): Support --gap-fill.
(get_sections, compare_section_vma): New static functions.
(copy_main): Handle --gap-fill.
* binutils.texi, objcopy.1: Document --gap-fill.
Wed Oct 19 14:09:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* Makefile.in (check): Add a dummy else clause to the if
statement.
* objcopy.c (copy_object): Revert yesterday's change.
* binutils.texi, objcopy.1: Remove special mention of --set-start
and `binary' output format.
Tue Oct 18 11:12:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* objcopy.c (copy_object): If the output file format is `binary',
and the start address was not set using --set-start, default the
start address to zero. This hack is because the `binary' output
file format uses the start address to set the virtual address of
the first byte in the file.
* binutils.texi, objcopy.1: Add some notes on generating S-records
and binary files.
* nm.c (print_symdef_entry): Call print_symname to print the
symbol name, so that --demangle works.
* Makefile.in (mostlyclean): Remove tmpdir.
* objcopy.c (struct section_list): Add fields used, adjust, val.
(adjust_start, set_start_set, set_start): New static variables.
(adjust_section_vma, adjust_sections): New static variables.
(copy_options): Add --adjust-start, --adjust-vma,
--adjust-section-vma, --adjust-warnings, --no-adjust-warnings,
--set-start.
(parse_vma): New static function.
(copy_usage): Mention new options.
(copy_object): Handle --set-start and --adjust-start.
(setup_section): Correct type of last argument to PTR. Set used
field if section is removed. Handle --adjust-vma and
--adjust-section-vma.
(copy_section): Correct type of last argument to PTR.
(mark_symbols_used_in_relocations): Likewise.
(strip_main): Clear used field when handling -R.
(copy_main): Handle new options.
* binutils.texi (objcopy): Document new options.
* objcopy.1: Document new options.
Fri Oct 14 14:38:13 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* configure.in (configdirs): Remove definition--testsuite is no
longer configured.
* Makefile.in (testsuite): Remove target.
(site.exp): New target.
(check): Rewrite.
(clean, distclean): Don't recur into testsuite directory.
Thu Oct 13 19:24:09 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
* Makefile.in (VERSION): Updated to 2.5.
* Version 2.5 released.
Tue Oct 11 15:26:42 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* Makefile.in (sysdump.o): Depends upon sysroff.c.
Mon Oct 10 13:50:30 1994 J.T. Conklin (jtc@rtl.cygnus.com)
* nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
ctor/dtor tables needed by C++ programs are built.
Sun Oct 9 18:04:00 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
* Makefile.in (srconv.o): Add dependence on sysroff.c.
Tue Oct 4 12:19:51 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* configure.in: Use ${config_shell} when running config.bfd.
* Makefile.in (sysroff.h): Split target away from sysroff.c.
(srconv.o, sysdump.o): New targets.
(srconv, sysdump): Don't depend upon sysroff.c.
Wed Sep 28 13:04:34 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* Makefile.in (arparse.c): Don't ignore errors from mv.
(sysinfo.c): Likewise. Also, depend upon arparse.c, to prevent a
parallel make from trying to build both arparse.c and sysinfo.c
simultaneously.
(nlmheader.c): Similar change.
(arparse.h): Separate target from arparse.c, so that a parallel
make does not try to build both at once. Depend upon arparse.c.
(sysinfo.h): Similar change.
* objdump.c (disassemble_data): Pass the reloc buffer to free, not
the pointer used to loop over the relocs.
Sat Sep 24 16:16:57 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (disassemble_data): Cast result of xmalloc.
Wed Sep 21 19:30:35 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c (sorted_syms, sorted_symcount): New global variables.
(objdump_print_address): Use sorted_syms and sorted_symcount
instead of syms and symcount.
(disassemble_data): Don't bother to get the relocs before looping
over the sections. Before filtering and sorting the symbol table,
copy it into sorted_syms.
Fri Sep 16 11:27:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c (struct objdump_disasm_info): Add field require_sec.
(objdump_print_address): If aux->require_sec, require that the
symbol be in aux->sec even if HAS_RELOC is not set. If we can't
find a smaller symbol in the right section, look for a larger one.
(disassemble_data): Set aux.require_sec around the
objdump_print_address call for the instruction address.
Thu Sep 15 21:43:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ar.c: Call xexit rather than exit.
(output_filename, output_file, output_bfd): New static variables.
(remove_output): New static function.
(main): Call xatexit (remove_output). Call xexit rather than
returning.
(extract_file): Set output_filename and output_file while output
file is open.
(write_archive): Likewise, but use output_bfd, not output_file.
* arsup.c: Include libiberty.h. Call xexit rather than exit.
* bucomm.c: Likewise.
* objdump.c (disassemble_all): New global variable.
(usage): Document --disassemble-all.
(long_options): Add disassemble-all as a synonym for -D.
(compare_symbols): Make pointers const.
(compare_relocs): New static function.
(disassemble_data): Rename disassemble to disassemble_fn to avoid
shadowing. If dump_reloc_info, print relocs along with
disassembly. Skip sections which are not SEC_CODE unless
disassemble_all or only is set.
(display_bfd): Don't call dump_relocs if disassemble is set.
(main): Accept and handle -D.
* binutils.texi: Document -D/--disassemble-all.
* objdump.1: Likewise.
Wed Sep 14 12:19:07 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c (disassemble_data): Initialize prevline to 0. Make
prev_function non const. Copy functionname into an malloc buffer
when setting prev_function, instead of assuming that the string
will last forever.
* nm.c: Include libiberty.h.
(sort_by_size): New static variable.
(long_options): Add --size-sort.
(usage): Mention --size-sort.
(numeric_forward): Make static. Change from void * to PTR.
(numeric_reverse): Likewise.
(non_numeric_forward, non_numeric_reverse): Likewise.
(sorters): Change declaration from void * to PTR.
(size_forward, sort_symbol_by_size): New static functions.
(display_rel_file): Handle sort_by_size.
(filter_symbols): If sort_by_size, discard absolute and undefined
symbols.
* binutils.texi (nm): Document --size-sort.
* nm.1: Document --size-sort.
Tue Sep 13 21:06:06 1994 Jeff Law (law@snake.cs.utah.edu)
* objcopy.c (copy_main): Initialize input_filename and
output_filename to NULL.
Tue Sep 13 14:17:24 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* Makefile.in (version.o): Depend upon Makefile, so that version.o
gets rebuilt when make variable VERSION is changed.
* objdump.c (dump_section_header): Print the SEC_NEVER_LOAD flag.
Wed Aug 24 12:40:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* configure.in: Change i[34]86 to i[345]86.
Tue Aug 23 11:00:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* ar.c (ranlib_touch): Don't update the archive map if there isn't
one.
Mon Aug 22 16:02:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* ar.c: Include libiberty.h.
(inarch): Remove variable.
(map_over_members): Make static. Add arch argument, and use it
instead of inarch. Change all callers.
(main): Treat --version as -v. Accept -t argument. Accept any
number of archive arguments. Catch and use open_inarch return
value, rather than using inarch.
(open_inarch): Return newly opened BFD, rather than using inarch.
(do_quick_append): Make archive_filename const.
(write_archive): Add iarch argument, and use it instead of inarch.
Change all callers.
(delete_members, move_members, replace_members): Likewise.
(ranlib_only): Don't exit on success. Catch and use open_inarch
return value.
(ranlib_touch): New function.
* arsup.h (map_over_members): Don't declare.
(ar_end, ar_extract): Declare.
(open_inarch): Change return value in declaration to bfd *.
* arsup.c (map_over_list): Make static. Always pass two arguments
to function. Add arch argument, and use it instead of inarch.
Change all callers.
(ar_directory_doer): Make static. Add ignored second argument.
Change all callers.
(ar_directory): Use open_inarch return value rather than inarch.
(ar_addlib_doer): Make static.
(ar_addlib): Use open_inarch return value rather than inarch.
(ar_extract): Remove unused local variable abfd.
Thu Aug 11 14:55:57 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
Add support for removing named sections to objcopy and strip.
* objcopy.c (struct section_list): Define.
(remove_sections): New static variable.
(strip_options, copy_options): Add remove-section.
(copy_usage, strip_usage): Mention -R and --remove-section.
(setup_section): If section is in remove_sections list, ignore it.
(copy_section): Likewise.
(strip_main, copy_main): Handle -R.
* binutils.texi, objcopy.1, strip.1: Document new options.
Wed Aug 10 10:19:55 1994 Stan Shebs (shebs@andros.cygnus.com)
* nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
so as not to conflict with the symvalue typedef in bfd.h.
Mon Aug 1 13:19:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* nlmheader.y: Per current NetWare docs, accept a revision number
of 0 and treat a revision number greater than 26 as 0.
Mon Jul 25 12:58:36 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c (objdump_print_address): Correct handling of end of
symbols when looking for next symbol with a different value.
Fri Jul 22 16:48:34 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* nm.c (numeric_forward): Treat undefined symbols as "less than"
defined symbols with zero values. If numeric values are equal, or
both symbols are undefined, sort alphabetically. Don't assume
that the difference of two bfd_vma values will truncate to "int"
and still have the same sign.
(numeric_reverse): Call numeric_forward and negate the result.
(print_symbol_info_bsd): For undefined symbols, print leading
spaces equivalent to the width of a printed bfd_vma, rather than
assuming that 8 will look right.
Fri Jul 22 10:36:50 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* coffgrok.c (doit): Zero all fields of new structure.
* srconv.c (sysroff_swap_*_out): Remove redundant trailing arg.
* sysinfo.y: Generate sysroff_swap_*_out without requiring extra
arg.
Fri Jul 22 10:09:53 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
* nlmheader.y: Make "stack" and "stacksize" synonyms in the lexer
rather than the parser.
Thu Jul 21 10:25:09 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* config/mh-alphaosf, config/mh-apollo68v, config/mh-delta88:
Remove; obsolete.
Sat Jul 16 22:34:39 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c (slurp_dynamic_symtab): Try to get the dynamic symbols
even if the bfd is not marked DYNAMIC. ELF executables are not
marked DYNAMIC, but do have dynamic symbols.
Fri Jul 15 01:41:35 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* coffgrok.c (do_where): Make data with no type 'int'.
(do_define): Keep info on source file of a symbol.
* coffgrok.h (coff_symbol): New field.
* srconv.c (PROGRAM_VERSION): Now 1.3
(wr_rl): Use external ref number for symbol.
(wr_dus): Only keep one source file per debug unit.
(wr_dln): Always emit line numbers for first source file,
(wr_globals): Emit globals in the du of their owning source file.
Mon Jul 11 15:59:03 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
* nlmheader.y: Null terminate var_hdr->threadName.
Fri Jul 8 17:33:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
in $(srcdir), as they will be for FSF releases.
Wed Jul 6 01:13:14 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (setup_sections): Preserve existing section flags when
copying in flags from a new section.
Tue Jul 5 15:56:01 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objcopy.c: Include libiberty.h.
(copy_file): If output_target is NULL, set it to the target of the
input file.
Wed Jun 29 17:17:14 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
* nlmconv.c (link_inputs): Fixed memory allocation bug.
Thu Jun 23 12:52:46 1994 David J. Mackenzie (djm@rtl.cygnus.com)
* configure.in: Change --with-targets to --enable-targets.
Tue Jun 21 12:53:21 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* Makefile.in (sysinfo): Does not depend upon $(ADDL_LIBS).
* nlmconv.c (powerpc_build_stubs): Don't generate the PowerPC
NetWare custom header; no longer needed.
(powerpc_mangle_relocs): Convert relocs against the uninitialized
data section into relocs against the data section.
* configure.in: Set nlmconv_defs to -DNLMCONV_cputype for all the
netware targets. Write it into Makefile as NLMCONV_DEFS.
* Makefile.in (nlmconv.o): Pass $(NLMCONV_DEFS) to $(CC).
* nlmconv.c: Only compile code for specific CPU types if
NLMCONV_cputype is defined.
* nlmconv.c (main): Change uses of bfd_abs_section, etc., to use
bfd_abs_section_ptr or bfd_is_abs_section, etc.
(i386_mangle_relocs, alpha_mangle_relocs): Likewise.
(powerpc_build_stubs): Likewise.
* nm.c (filter_symbols, print_symbols): Likewise.
* objcopy.c (filter_symbols): Likewise.
(mark_symbols_used_in_relocations): Likewise.
* objdump.c (remove_useless_symbols, dump_relocs): Likewise.
* size.c (sysv_internal_printer): Likewise.
Mon Jun 20 16:43:03 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* Makefile.in (MANPAGES): Remove $(DEMANGLER_PROG).
(install): Install it explicitly, from build dir, not srcdir.
Mon Jun 20 16:29:54 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* objdump.c: Don't include elf/internal.h.
(bfd_elf_find_section): Don't declare.
(read_section_stabs): No special handling for ELF. Always read
using BFD sections.
Thu Jun 16 17:25:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* configure.in: Set UNDERSCORE in Makefile based on result of
invoking config.bfd with a second argument of ``_''.
* Makefile.in (underscore.c): Depend upon Makefile. Don't try to
run $(CC) and $(NM), just use $(UNDERSCORE). Create via temporary
file.
(demangle.o): Remove target.
($(NM_PROG)): Don't depend upon demangle.o, and don't link against
demangle.o. It's in libiberty anyhow.
(cplus-dem.o): Don't depend upon demangle.o.
* binutils.texi: Mention -n and --no-strip-underscores arguments
to c++filt.
Wed Jun 15 12:10:31 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nm.c (long_options): Add --no-demangle to turn off --demangle,
and --no-cplus for Linux compatibility.
(usage): Mention --no-demangle.
* binutils.texi: Document --no-demangle.
Fri Jun 10 15:41:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nm.c: HOST_64_BIT was renamed to BFD_HOST_64_BIT.
* objcopy.c (copy_archive): Make the temporary directory in the
same directory as the output BFD, since we may not have write
permission on the current directory. Set the permissions of the
new directory to 0700, not 0777.
Mon Jun 6 21:36:43 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
* configure.in: if this is an rs6000 (and we're not building for
any other bfd targets) then build only nm (collect needs it on
rs6000-lynx).
* Makefile.in: define TOOL_PROGS which the list of programes to
install in $tooldir -- replaces a hard-coded list.
Fri Jun 3 10:59:18 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (display_target_list): Remove unused local ok.
Thu May 26 18:05:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* config/mh-alphaosf (CFLAGS): Don't specify both -g and -O;
they're not compatible under native cc. Use -O1 instead.
* Makefile.in (VERSION): Updated to cygnus-2.4.1.
Changes from binutils-2.4 net release:
* Makefile.in (MANPAGES): Use $(DEMANGLER_PROG).
($(DEMANGLER_PROG).1): Build from cxxfilt.man, using sed.
* cxxfilt.man: Renamed from c++filt.1, replaced "c++filt" with
magic token to be replaced by sed.
Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
* configure.bat: update for latest makefile.in
Fri May 13 23:25:13 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* bucomm.c: Check ANSI_PROTOTYPES rather than __STDC__.
Tue May 10 18:22:06 1994 Jason Molenda (crash@sendai.cygnus.com)
* objcopy.c (copy_section): Set section size correctly if using
interleave.
Sat May 7 16:49:36 1994 Steve Chamberlain (sac@cygnus.com)
* Makefile.in: Add rule for sysinfo.h
Fri May 6 12:18:33 1994 Steve Chamberlain (sac@cygnus.com)
* Makefile.in (SRCONV_PROG): Define.
(PROGS): Use $(SRCONV_PROG) too.
Thu May 5 19:41:43 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* Makefile.in (DISTSTUFF): Add sysinfo.c, syslex.c, in case
someone configures with `targets=all'.
(distclean): Remove y.*.
(syslex.o): Depend on sysinfo.h.
(sysinfo.c): Rename y.tab.h to sysinfo.h.
(install-info): Don't try to install into $(infodir)/$(srcdir).
* syslex.l: Include sysinfo.h, not y.tab.h.
Thu May 5 11:50:55 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
* syslex.l (yywrap): Define as function if not defined as a macro.
* Makefile.in (objdump.o): Deleted special rule.
* configure.in: Don't bother building ARCHDEFS variable for
Makefile.
* objdump.c (ARCH_*): Deleted handling.
(disassemble_data): Call `disassembler' from opcodes library.
Thu May 5 13:28:42 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in (install): Correct handling of $(tooldir) and
$(bindir) being on different devices.
Fri Apr 29 09:50:38 1994 Steve Chamberlain (sac@cygnus.com)
* sysdump.c (h8300, sh): Add declarations.
Wed Apr 27 11:25:18 1994 Steve Chamberlain (sac@cygnus.com)
* Makefile.in (syslex, sysinfo): Use CC_FOR_BUILD.
* coffdump.c, coffgroc.c, coffgrog.h, srconv.c, sysdump.c,
sysroff.info: Major changes.
Tue Apr 26 18:18:24 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (print_section_stabs): Indicate the stab header symbol
more clearly, print numbers of unrecognized stab n_type values.
Tue Apr 26 16:22:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (copy_sections): Copy arelent pointers, not arelents.
Mon Apr 25 16:14:32 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in (distclean): Remove $(PROGS) and underscore.c.
Fri Apr 22 11:14:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (setup_sections): Remove special handling of .reginfo
section.
(copy_sections): Likewise.
(alpha_mangle_relocs): Use bfd_ecoff_get_gp_value rather than the
special ECOFF .reginfo section.
* objcopy.c (copy_object): Call bfd_copy_private_bfd_data after
copying everything else, to let it fiddle with the file in its
final state.
* objdump.c: Include libiberty.h.
(display_target_list): If a format fails, just go on to the next
one. Check return value of bfd_set_format.
(display_info_table): Likewise. Don't increment loop variable in
for loop test, since that skips the first element.
(display_target_tables): Rewrite loop for clarity. Ensure that it
always prints at least one element.
* nlmconv.c (main): Use CyGnUsEx rather than CyGnUsSeCs for
sections header. Rename from cygnus_sections to cygnus_ext.
Thu Apr 21 12:12:26 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (_DUMMY_NAME_): Don't define.
(display_target_list): Use tmpnam to get a file name rather than
using _DUMMY_NAME_. Unlink it when done.
(display_info_table): Likewise.
* nlmconv.c (secsec): New static variable.
(main): Create .nlmsections section in output BFD. Store
information about it in sections header.
(setup_sections): Allocate space in sections header.
(copy_sections): Copy zero sized sections. Put information about
each section in the sections header.
Wed Apr 20 14:34:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (powerpc_build_stubs): Take new outbfd argument.
Change caller. Create custom header for new PowerPC NetWare
format.
* Makefile.in (nlmheader.o, nlmconv.o): Update dependencies.
* nlmconv.c: Include bfd.h and libiberty.h with "", not <>.
* nlmheader.y: Include bfd.h with "", not <>.
Wed Apr 13 10:52:50 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c: Do an ifdef on __GO32__, not unix.
Wed Apr 6 21:54:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
(--dynamic-reloc) arguments to objdump.
* nm.c (dynamic): New static variable.
(long_options): Added "dynamic".
(usage): Mention -D and --dynamic.
(main): Add D to getopt string. Handle -D by setting dynamic.
(display_rel_file): If dynamic is non-zero, read dynamic symbols
rather than normal symbols.
* nm.1: Updated for -D (--dynamic) option.
* objdump.c (dump_dynamic_symtab): New global variable.
(dump_dynamic_reloc_info): New global variable.
(dynsyms, dynsymcount): New global variables.
(usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
(long_options): Added "dynamic-reloc" and "dynamic-syms".
(slurp_symtab): If no symbols, return rather than exit.
(slurp_dynamic_symtab): New function.
(display_bfd): Handle dump_dynamic_symtab and
dump_dynamic_reloc_info.
(dump_symbols): Take new dynamic argument, indicating whether to
display dynamic symbols.
(dump_relocs): Move most printing into dump_reloc_set.
(dump_dynamic_relocs): New function.
(dump_reloc_set): New function, extracted from dump_relocs.
(main): Add R and T to getopt string. Handle -T by setting
dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
* objdump.1: Updated for -R (--dynamic-reloc) and -T
(--dynamic-syms) options.
* binutils.texi: Updated for new nm and objdump options.
Wed Mar 30 15:52:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
Update for recent BFD changes to symbol and reloc reading. Rename
all uses of get_symtab_upper_bound to bfd_get_symtab_upper_bound.
Also:
* coffgrok.c (symcount): Change to long.
(do_sections_p1): Check for error return from
bfd_get_reloc_upper_bound. Change relcount to long, and check for
error from bfd_canonicalize_reloc.
(coff_grok): Change storage to long. Check for error from
bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
* nlmconv.c (main): Change symcount, newsymalloc, newsymcount, and
i to long. Check for error from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
(copy_sections): Change reloc_size and reloc_count to long. Check
for error from bfd_get_reloc_upper_bound and
bfd_canonicalize_reloc.
(mangle_relocs, i386_mangle_relocs, alpha_mangle_relocs): Change
reloc_count_ptr argument to long *. Make corresponding changes to
variables loaded from *reloc_count_ptr.
* nm.c (display_rel_file): Change storage and symcount to long.
Check for errors from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
* objcopy.c (filter_symbols): Change symcount, src_count and
dst_count to long.
(copy_object): Change symcount to long. Pass another argument to
fprintf. Check for errors from bfd_get_symtab_upper_bound and
bfd_canonicalize_symtab.
(copy_section): Change relcount to long. Check for errors from
bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
(mark_symbols_used_in_relocations): Change relcount and i to long.
Check for errors form bfd_get_reloc_upper_bound and
bfd_canonicalize_reloc.
* objdump.c (storage): Remove global variable.
(symcount): Changed to long.
(slurp_symtab): New local variable storage. Check for errors from
bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
(remove_useless_symbols): Change return value and count to long.
(objdump_print_address): Change min, max, thisplace and i to long.
(disassemble_data): Change i to long.
(dump_symbols): Change count to long.
(dump_relocs): Change relcount to long. Check for errors from
bfd_ret_reloc_upper_bound and bfd_canonicalize_reloc.
(display_info_table): Add casts when passing LONGEST_ARCH for
printf %* argument.
Tue Mar 29 14:59:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nm.c (display_archive): Close each archive element after it has
been displayed.
* objdump.c (display_file): Likewise.
Mon Mar 28 13:04:08 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* configure.in: Change error message to refer to bfd/config.bfd
rather than bfd/configure.in.
Sun Mar 27 16:23:39 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* More fixes for object formats which allow multiple sections
with the same name:
* objcopy.c (setup_section): Make a new output section even if
one already exists with the given name.
(copy_section): Use isection->output_section rather than trying
to look the output section up by its (possibly non-unique) name.
* Makefile.in (install-info): Look for binutils.info in the
current directory, then in $(srcdir). Don't use $<.
Mon Mar 21 12:55:45 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (objdump_print_address): Make static. Declare with
prototype. Change vardiff from int to bfd_signed_vma. Correct
binary search termination condition. When looking for same
section symbol in relocatable file, handle final symbol correctly.
Sun Mar 20 11:26:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* Makefile.in: Avoid bug in hpux sed.
* objcopy.c: Changes to keep it from stripping symbols used
in output relocations.
(mark_symbols_used_in_relocations): New function. Mark symbols
used in output relocations with BSF_KEEP.
(filter_symbols): Do not strip symbols marked with BSF_KEEP.
(copy_object): Reorder actions. First setup sections, then
build the output symbol table, then copy the section contents.
Fri Mar 18 10:53:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ar.c (write_archive): Allocate space for the null byte. From
Robert Lipe <robertl@arnet.com>.
Thu Mar 17 16:20:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in: Built nm.new and strip.new to avoid problems with
collect when . is in PATH.
(STRIP_PROG): Change from strip to strip.new.
(NM_PROG): Change from nm to nm.new.
(install): Remove the .new when installing.
Wed Mar 16 16:27:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (powerpc_build_stubs): Set BSF_DYNAMIC flag for each
symbol for which we build a stub.
(powerpc_mangle_relocs): Only reset TOC pointer for a call to a
symbol with BSF_DYNAMIC flag set.
Tue Mar 15 23:04:13 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* objcopy.c (filter_symbols): Use bfd_is_local_label to determine
if a symbol represents a compiler-generated local label.
(copy_object): Give the BFD backends a chance to copy any private
bfd data from the input BFD to the output BFD.
(setup_section): Give the BFD backends a chance to copy any private
section data from the input section to the output section.
Mon Mar 14 11:15:58 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* objcopy.c (mangle_section): Delete unused function.
(setup_section): Set osection here instead of calling
mangle section to do it.
Mon Mar 14 12:11:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ar.c (write_archive): Close inarch before unlinking it.
Fri Mar 11 22:20:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (main): For PowerPC, call powerpc_build_stubs and
powerpc_resolve_stubs. Use __GOT0, not __toc_start. Handle it if
the start and end symbols are not in the text section.
(struct powerpc_stub): New struct definition.
(powerpc_stubs, powerpc_stub_insns): New static variables.
(powerpc_initial_got_size): New static variable.
(powerpc_build_stubs): New function.
(powerpc_resolve_stubs): New function.
(powerpc_mangle_relocs): Clear extraneous data in .got section.
Rearrange reloc handling to handle ELF relocs that are not
partial_inplace. Resolve PC relative relocs.
Wed Mar 9 13:48:11 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* ar.c (move_members): Fix it so that the abi positional modifiers
don't delete all archive members following the insert point.
Tue Mar 8 13:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* coffgrok.[ch]: New files, understand coff objects.
* coffdump.c: Uses coffgrok to dump out the debug info of a coff
file.
* sysroff.info: Description of a SYSROFF object file.
* sysinfo.y, syslex.l: Parse info file, generate a reader, writer,
header files and a printer.
* srconv.c: Uses coffgrok.c and sysroff.info to convert a coff
file to a SYSROFF file.
Sat Feb 26 13:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)
* ar.c (do_quick_append): Pad with a genuine character 10,
rather than whatever '\n' might happen to be.
Tue Feb 22 18:25:52 1994 Ian Lance Taylor (ian@cygnus.com)
* nlmconv.c (main): Ignore debugging symbols when looking for
special symbols by name.
Sun Feb 20 18:47:42 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
* nlmconv.c: Include libiberty.h.
Support for PowerPC NetWare.
* nlmconv.c (main): For PowerPC NetWare, automatically define the
special symbols __toc_start.
(select_output_format): Handle bfd_arch_powerpc.
(mangle_relocs): Likewise.
(powerpc_mangle_relocs): New function.
Thu Feb 17 09:28:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* ar.c, bucomm.c, nlmconv.c, nm.c, objcopy.c, objdump.c,
size.c: Use bfd_get_error and bfd_set_error and new error names.
Fri Feb 11 15:54:51 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (strip_main, copy_main): Add missing 'break' in switch.
Mon Feb 7 19:45:52 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (disassemble_data): Handle bfd_arch_powerpc.
Sun Feb 6 22:08:20 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* strings.c objdump.c nlmconv.c objcopy.c nm.c ar.c size.c (main):
Call xmalloc_set_program_name.
Fri Feb 4 10:46:01 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (filter_bytes): Make MEMHUNK a char *, not PTR, so we
can do arithmetic on it.
Thu Feb 3 14:06:41 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objdump.c (dump_section_stabs, read_section_stabs,
print_section_stabs): Functions broken out of dump_stabs_1.
Free the stabs and strings when done with them.
Wed Feb 2 13:42:23 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* nlmconv.c (main): Use bfd_get_flavour instead of struct member.
* ar.c (print_contents, extract_file), size.c
(print_berkeley_format, print_sysv_format): Use bfd_get_filename and
bfd_my_archive instead of dereferencing the structs directly.
* ar.c: Use bfd_fatal and bfd_nonfatal instead of bfd_perror and exit.
Indent. Remove DEFUNs.
* nlmconv.c (main), objcopy.c (copy_file): Print matching formats
if ambiguous match.
* nm.c (display_file, display_archive), size.c (display_bfd):
Eliminate gotos.
Print matching formats if there is an ambiguous match. Use
bfd_nonfatal instead of hardcoded error message if nothing matches.
* arsup.c, ar.c, objdump.c: Use bfd_get_filename instead of
abfd->filename.
* nm.c (display_archive): New function, from code in display_file.
(display_rel_file): Renamed from do_one_rel_file.
* size.c: Indent.
(display_archive): New function from code in display_file.
(display_file): Check bfd_close error return.
* strings.c (strings_object_file): Check bfd_check_format
error return.
* strings.c, objdump.c, size.c: Use bfd_nonfatal instead of bfd_perror.
* bucomm.c: Delete references to exit_handler. It wasn't set
anywhere, and now that we're using the libiberty xmalloc, it
wouldn't always get called before exiting.
(list_matching_formats): Function moved from objdump.c.
* bucomm.h: Declare it.
* objdump.c (disassemble_data): Move some variable decls closer to
their use. Add some comments. Replace a nested block with a
return.
Mon Jan 31 18:50:41 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (display_target_list, display_info_table): Check that
the bfd of the dummy output file is not null.
Wed Jan 26 13:13:18 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (filter_bytes): New function.
(copy_section): Call it.
(copy_options, copy_usage, copy_main): Add --byte option to
activate it. Appropriate the -b option (which was an undocumented
synonym for -F) for it, also. Add --interleave, -i option for
additional control.
(setup_section, copy_section, mangle_section): Renamed with no `s'
on the end.
* objcopy.1, binutils.texi: Document the new options.
* objdump.c (display_target_tables, display_target_list):
New functions broken out of display_info.
Eliminate some magic constants. Use more meaningful variable names.
(dump_bfd_header): New function broken out of display_bfd.
(dump_section_header): New function broken out of dump_headers.
(remove_useless_symbols): Don't shadow global variable name with
parameter.
(objdump_print_address): Fix backward test.
Tue Jan 25 19:40:54 1994 Stan Shebs (shebs@andros.cygnus.com)
* bucomm.c (print_arelt_descr): Change decl of `when' to time_t.
* objdump.h: Removed.
Mon Jan 24 13:29:02 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objdump.c (display_file): Remove call to list_matching_formats.
It would never be called.
(list_matching_formats): Take an arg giving the list of matching
formats.
(display_bfd): Pass the arg, and get it filled in by calling
bfd_check_format_matches instead of bfd_check_format.
(display_info, display_info_table): target_vector was renamed to
bfd_target_vector.
* binutils.texi (objdump): Note some limitations of -h section
address printing.
Sat Jan 22 16:20:46 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (MALLOC): Set to emptiness by default.
(ALL_CFLAGS): Add and use.
(arparse.h): Make it depend on arparse.y.
* ar.c (libbfd.h): Don't require to be in ../bfd.
* objdump.c (comp): Rename to compare_symbols.
Fri Jan 21 20:22:30 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objdump.c (list_matching_formats): If the file format is ambiguous,
print the matching names so the user can choose one.
(display_bfd): Call it.
(display_file): Call it.
Fri Jan 21 19:17:25 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (disassemble_data): Support bfd_arch_rs6000.
Mon Jan 17 13:57:25 1994 Stan Shebs (shebs@andros.cygnus.com)
* objdump.c (stab_name): Allocate dynamically.
(stab_print): Use pointers to strings instead of char arrays.
(dump_stabs): Change alloc and init of arrays appropriately.
(dump_stabs_1): Always decide whether to print stab_name or
the stab's type number, if unnamed.
Fri Jan 14 14:42:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objcopy.c (strip_main, copy_main): Don't clobber the input file
if copy_file fails.
* nlmconv.c (main): Warn about an attempt to use a shared library
with uninitialized data.
* nlmconv.c (setup_sections): Make sure that we align the
output_offset of each input section appropriately.
Thu Jan 13 17:32:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (dump_relocs): Don't crash if section name is NULL.
Tue Jan 11 19:46:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* filemode.c (filemodestring): Commented out; not used.
(mode_string): Use POSIX definitions.
(ftypelet): Likewise.
(rwx): Removed; no longer used.
* bucomm.c: Include bucomm.h.
(bfd_nonfatal, bfd_fatal): Argument is const.
(fatal): Make __STDC__ version.
* bucomm.h (mode_string): Declare.
* Makefile.in (bucomm.o): Depend upon bucomm.h
Sun Jan 9 12:03:20 1994 Ken Raeburn (raeburn@rtl.cygnus.com)
* bucomm.c (xmalloc, xrealloc): Deleted.
* bucomm.h (xmalloc, xrealloc): Fix prototypes, to correspond to
libiberty version of functions.
Thu Jan 6 06:18:15 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* binutils.texi: Add a chapter summarizing the ways to select
aspects of the target for each program.
* objdump.c (long_options, usage): Add long equivalents for all
remaining short options that lacked them.
* binutils.texi objdump.1: Document them.
* size.c (usage): Tweak usage message.
* size.1: Add missing `=' in examples.
* binutils.texi strip.1 objcopy.1 nlmconv.1 objcopy.c nlmconv.c:
Use "--target=bfdname" as the option to select the BFD target,
like nm and size already do.
Reserve "--format=format" for textual output selection options, but
for now keep old option names as obsolete for backward compatibility.
* strings.c (main, strings_object_file, usage): Add --target option.
* binutils.texi strings.1: Document it.
Sat Jan 1 13:58:24 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* ar.c (main): Add \n in error message.
Thu Dec 23 12:23:11 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
gcc -Wall lint:
* ar.c (main): Put parens around assignment used as truth value.
* objcopy.c (strip_main): Remove unused variables. Return 0.
(copy_main): Remove unused variables. Return 0.
* objdump.c (display_bfd): Declare return value as void.
(stab_print): Use "" instead of 0 to initialize array.
(dump_stabs_1): Print vma using printf_vma.
(display_info): Put parens around assignment used as truth value.
* strings.c (print_strings): Cast printf arguments.
* objcopy.c (copy_main): Use copy_options, not strip_options.
* nlmheader.y (command): Warn about illegal date values.
Wed Dec 15 11:18:03 1993 David J. MacKenzie (djm@frosty.eng.umd.edu)
* bucomm.c bucomm.h: Run through indent. De-ansidecl-ify.
(bfd_nonfatal): New function.
(bfd_fatal): Call it.
* objcopy.c (smart_rename): Do a copy if the dest file has
multiple hard links. Remove source file on successful copy.
Try to preserve mode and owner on successful rename.
* objcopy.c: Run through indent. Clean up a bit.
Make global variables static.
Make {input,output}_{target,filename}, show_version local
to various functions.
New global variable `status' for exit status.
(strip_main, copy_main): New functions with code from main.
(nonfatal): New macro. Use it globally instead of bfd_perror and
bfd_fatal.
(copy_object): Call mangle_sections with bfd_map_over_sections.
(mangle_sections): Adjust for new calling convention.
Fri Dec 10 11:28:11 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
* nlmheader.y (command): Accept MAP and FULLMAP without arguments.
* nlmconv.c (main): Change error message for MAP and FULLMAP.
Thu Dec 9 17:47:19 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
* nlmconv.c (main): Warn about imported symbols that are not in
the IMPORT list even if the IMPORT keyword is not used.
* nlmconv.c (debug, unlink_on_exit): New static variables.
(long_options): Add "debug" and "linker".
(main): Handle -d and -l arguments. Make command line input and
output files optional. Parse the command file before opening the
BFD's, which requires storing more information in local variables.
If INPUT names multiple files, link them together. Use OUTPUT for
the output file name if not named on command line.
(show_usage): Changed for new options.
(link_inputs): New function to automatically invoke linker to
handle multiple INPUT files.
(choose_temp_base_try, choose_temp_base, pexecute): New functions,
mostly copied from gcc/gcc.c.
* nlmconv.h (input_files, output_file): Declare.
* nlmheader.y (input_files, output_file): Define.
(command): Support INPUT with a string_list argument. Support
OUTPUT.
(string_list): Renamed from module_list.
* Makefile.in (nlmconv.o): Define LD_NAME based on
program_transform_name.
Wed Dec 8 10:09:04 1993 Ian Lance Taylor (ian@deneb.cygnus.com)
* nlmheader.y (nlmheader_identify): New function. Use it to print
the program name just once, instead of with every error message.
Mon Dec 6 16:11:32 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (long_options): Changed --header-info to --header-file
to match documentation and usage message.
Sun Dec 5 01:31:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
* objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
in a relocation.
Thu Dec 2 16:00:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (main): Change various types from bfd_size_type to
size_t, since they have to be arguments to fread and fwrite.
Change set from char * to unsigned char *.
(select_output_format): Make mach argument unsigned. Handle
bfd_arch_alpha.
(setup_sections): Don't copy the .reginfo section of an ECOFF
file. Call bfd_set_reloc to initialize the relocation fields.
(copy_sections): Don't copy the .reginfo section of an ECOFF file.
Combine all relocs for a section.
(mangle_relocs): Change type of relocs to permit specific
functions to change it. Call alpha_mangle_relocs for alpha,
default_mangle_relocs for other architectures.
(default_mangle_relocs): New function. Adjust the address of all
relocs by the output_offset.
(i386_mangle_relocs): Change type of relocs argument. Cast length
argument to memmove to size_t.
(alpha_mangle_relocs): New function.
Wed Nov 17 17:38:58 1993 Sean Eric Fagan (sef@cygnus.com)
* nlmconv.c (select_output_format): Use nlm32-sparc for
bfd_arch_sparc.
Wed Nov 17 14:41:35 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
* nlmconv.1: added man page
* objcopy.1: fixed format errors
Wed Nov 17 12:03:41 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in: Use CFLAGS as well as LDFLAGS when linking.
Wed Nov 17 04:50:55 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* strings.1: Fix typo.
Mon Nov 15 12:03:20 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
* Makefile.in (DISTSTUFF): Build "info".
(VERSION): Updated to cygnus-2.3.1; 2.3 has gone out.
Sun Nov 14 00:27:24 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
* objdump.c (dump_stabs): Handle stabs-in-som as implemented
by the new BFD SOM assembler.
Sat Nov 13 07:14:05 1993 David J. Mackenzie (djm@rtl.cygnus.com)
* ar.1 c++filt.1 nm.1 objcopy.1 objdump.1 ranlib.1 size.1
strings.1 strip.1: Replace \(em in NAME section with \- so
makewhatis can grok it.
Tue Nov 9 15:22:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (i386_mangle_relocs): Adjust reloc address by
section output_offset.
Fri Nov 5 12:11:52 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
* binutils.texi: added nlmconv chapter
Wed Nov 3 16:10:50 1993 Jeffrey Wheat (cassidy@cygnus.com)
* Makefile.in: Change RUNTESTFLAGS to RUNTEST_FLAGS
Wed Nov 3 15:09:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
* Makefile.in (distclean): Don't get rid of dvi or info files.
Tue Nov 2 13:29:59 1993 David J. Mackenzie (djm@rtl.cygnus.com)
* objcopy.c (S_ISLNK): Define as 0 if there's no S_IFLNK.
Fri Oct 29 16:02:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* binutils.texi: Move objcopy docs into alphabetical order.
* objdump.c: Use xmalloc instead of malloc.
Fri Oct 29 11:11:14 1993 Stan Shebs (shebs@rtl.cygnus.com)
* objdump.c (info): Rename to formats_info.
(dump_stabs_1): Better comments and formatting.
Thu Oct 28 19:43:16 1993 Stan Shebs (shebs@rtl.cygnus.com)
* ar.c (main): Always create the archive when quick appending,
even if no input files have been given.
Wed Oct 27 12:03:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (main): Set sharedDebugRecordOffset and
sharedDebugRecordCount fields in extended header.
* nlmconv.c (main): Force moduleName field to upper case.
Mon Oct 25 16:45:42 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objcopy.c (main): Give a usage message if there are too many
arguments.
Mon Oct 25 10:37:08 1993 Ken Raeburn (raeburn@rover.cygnus.com)
* Makefile.in (install-info): Rewrite to take advantage of VPATH,
so FSF distributions (with info files in $(srcdir)) install
properly.
(DISTSTUFF): Build nlmheader.c too.
Fri Oct 22 11:43:23 1993 Ken Raeburn (raeburn@rover.cygnus.com)
* ar.c (program_name): Don't define here.
* objdump.c: Include "bucomm.h".
(xmalloc): Don't declare here.
(program_name): Don't define here.
(program_version): Fixed type in declaration.
* size.c: Include "bucomm.h".
(program_name): Don't declare here.
Fri Oct 22 14:10:41 1993 Mark Eichin (eichin@cygnus.com)
* objdump.c (fprintf): hide declaration in FPRINTF_ALREADY_DECLARED
Fri Oct 1 12:43:00 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (i386_mangle_relocs): Resolve and remove PC relative
relocs against defined symbols in the same section.
Thu Sep 30 16:46:26 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
* Makefile.in (binutils.dvi): use TEXIDIR to find texinfo.tex
Sat Sep 25 18:09:29 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (simple_copy, smart_rename): New functions.
(main): Use them.
Fri Sep 24 15:38:29 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in (clean, distclean): Recurse into testsuite.
Thu Sep 23 01:05:06 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objcopy.c (setup_sections, copy_sections): If stripping, don't
copy SEC_DEBUGGING sections.
* objdump.c (dump_headers): Print SEC_DEBUGGING flag.
* objdump.c (usage): Mention --stabs.
* objcopy.c (copy_object): Copy all applicable file flags.
(copy_file): Don't copy EXEC_P specially here.
Mon Sep 20 19:28:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (main): Adjust data section size to correspond to bss
alignment adjustment. Clear BSF_SECTION_SYM if symbol is moved to
a different section. Use time_t for time variable.
(setup_sections): Only put sections with contents in output NLM.
(i386_mangle_relocs): No symbols are common at this point. Add
casts to avoid warnings.
Fri Sep 10 11:00:40 1993 Stan Shebs (shebs@rtl.cygnus.com)
* objdump.c: Made the --stabs option work for stabs-in-coff.
(ELF_STAB_DISPLAY): Removed.
(dump_elf_stabs): Renamed to dump_stabs, changed to run for
any object file format.
(dump_elf_stabs_1): Renamed to dump_stabs_1, added calls to
generic BFD routines for non-ELF case, changed format of message
for no-section-found case.
(display_bfd): Always call dump_stabs if requested.
(dump_data): Call bfd_section_size to get section size.
Fri Sep 10 08:12:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* Makefile.in (install): Don't put strings in tooldir/bin.
Mon Sep 6 15:39:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (total_bss_size): Removed.
(main): Set the bss vma to always follow the data section. Move
symbols into new sections, and adjust values by output_offset.
(setup_sections): Don't copy all sections, but instead point all
text sections to .text, all data sections to .data, and all bss
sections to .bss.
(copy_sections): Adjust accordingly.
Thu Sep 2 12:34:03 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
Only build nlmconv if configured for a NetWare target.
* configure.in: If we have some *-*-netware* target, or are using
all targets, set BUILD_NLMCONV to $(NLMCONV_PROG) in Makefile.
* Makefile.in (PROGS): Use $(BUILD_NLMCONV) rather than
$(NLMCONV_PROG).
Tue Aug 31 14:13:35 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* objdump.c (ARCH_all): Define ARCH_hppa too.
(dump_headers): Don't test for SEC_BALIGN if it's not defined by
bfd.h.
Tue Aug 31 13:29:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* nlmconv.c (main): Force creation of .bss section. Set up the
sections before looking at the symbols. Move all common symbols
into .bss section. Automatically define _edata and _end. Only
export symbols in the export list, with multiple prefixes if
necessary. Warn if no version. Always create extended header.
Set date automatically if not already set.
(setup_sections): Count size of bss sections.
(mangle_relocs, i386_mangle_relocs): Accept section argument, and
take reloc_count as a changeable pointer; changed callers.
(i386_mangle_relocs): Remove PC relative relocs within a section,
as they require no adjustment.
* nlmheader.y: Fixed memory allocation throughout: token STRING is
now allocated on the heap, and freed if not needed. Null
terminated copyright message. Accept version with only two
strings.
(symbol_list_opt): New nonterminal, either symbol_list or empty.
(symbol_list): Use left recursion to avoid overflowing parser
stack.
(yylex): Rearranged beginning of line check. Accept quoted
strings using single quotes. End generic argument at comment
character or parentheses.
(string_list_append): Fixed.
(string_list_append1): New function.
* bucomm.h: The first argument to xrealloc is PTR, not char *.
* bucomm.c (xrealloc): Use PTR rather than char *.
* Makefile.in (objdump.o): Depend upon config.status to notice
--with-targets changes.
(nlmconv.o): Depend upon bucomm.h.
Tue Aug 17 09:46:01 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* configure.in: Don't pass cpu to config.bfd.
Thu Aug 12 16:43:04 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* Makefile.in ($(NM_PROG)): Depend on demangle.o.
(demangle.o): New target.
(cplus-dem.o): Depend on it, to force compilation order when doing
parallel compiles.
* nm.c (print_symbol_info_{bsd,sysv,posix}): Take a bfd arg.
(struct output_fns print_symbol_info): Ditto.
(long_options, usage, main): Add -C --demangle option.
(print_symname): New function, demangling if requested.
(print_symbols, print_symbol_info_{bsd,sysv,posix}): Use it.
Wed Aug 11 22:57:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* Makefile.in: Put CFLAGS last in compilation rules and omit from
linking rules. Use ARCHDEFS to compile objdump.c.
Update dependencies.
* configure.in: Construct ARCHDEFS based on the BFD target makefile
fragments.
* objdump.c: Conditionalize calls to the print_insn_ARCH functions
according to ARCHDEFS.
Thu Aug 12 08:06:15 1993 Ian Lance Taylor (ian@cygnus.com)
* ar.c: Removed obsolete and non-functional GNU960 code.
Wed Aug 11 13:08:26 1993 Ian Lance Taylor (ian@cygnus.com)
* size.c (berkeley_sum): New function.
(bsssize, datasize, textsize): New global variables.
(bss_section_name, data_section_name, text_section_name): Removed.
(print_berkeley_format): Map berkeley_sum over all the sections,
rather than only reporting sizes of specifically named sections.
* Makefile.in ($(OBJDUMP_PROG)): Removed dependency on size.o.
Tue Aug 10 10:46:01 1993 Ian Lance Taylor (ian@cygnus.com)
* nlmconv.c, nlmconv.h, nlmheader.y: New files for program to
convert object files into NetWare Loadable Modules.
* Makefile.in (NLMCONV_PROG): New macro, define to be nlmconv.
(PROGS): Add NLMCONV_PROG.
(nlmheader.c, nlmheader.o, nlmconv.o, $(NLMCONV_PROG)): New
targets.
Thu Aug 5 15:48:32 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
* Makefile.in: define MAKEOVERRIDES to an empty string
Wed Aug 4 17:08:08 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (copy_file): Make failures to process a file nonfatal.
Mon Aug 2 11:28:23 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* nm.c: Add -B option, like --format=bsd.
Tue Jul 27 16:29:54 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objcopy.c (copy_file): If the file is neither an object nor an
archive, give an error rather than returning success.
Mon Jul 19 16:13:40 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
* objdump.c (objdump_print_address): Prefer non-local symbols over
local ones, and especially discriminate against debugging symbols.
Also, for relocateable files, try to find a symbol in the current
section, instead of picking one from some random section with a
convenient value (read, section offset).
(disassemble_data): Cast argument to malloc to size_t first.
(dump_data): Likewise.
(dump_relocs): If a single section name is specified, show relocs
only for that section. Otherwise, silently omit sections without
relocs. Format table nicely even if values are printed using 16
digits instead of 8.
Fri Jul 16 15:19:59 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* nm.c: Changes for final version of POSIX.2.
(print_symbol_filename_{bsd,sysv,posix}): New functions.
(formats): Add an element for a pointer to them.
(print_symbols): Call it.
(print_object_filename_posix, print_archive_member_posix): Produce
output according to new POSIX.2 spec.
* strings.c (print_strings): Handle STREAM being NULL.
(strings_a_section): Pass a NULL.
(main): Don't open /dev/null.
Thu Jul 15 12:44:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (disassemble_data): Handle the m88k.
(display_bfd): Use bfd_errmsg, rather than just claiming that the
bfd is not an object file.
Mon Jul 12 17:55:34 1993 K. Richard Pixley (rich@cygnus.com)
* Makefile.in (TAGS): make work again by naming directories
explicitly rather than depending on undefined macros.
(INSTALL_XFORM): correct bad install target.
Fri Jul 2 16:58:34 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* strings.c: Doc fixes.
Sun Jun 27 13:35:24 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* Makefile.in: Note dependencies on bucomm.h.
(cplus-dem.o): Link c++filt with version.o.
* strings.c: Include bucomm.h and add prototypes to other decls.
Remove -h option.
* bucomm.h: Declare xrealloc.
* nm.c, objcopy.c, objdump.c, size.c, strings.c (main, usage): Add
--help option. Put "GNU" in the version message.
(usage): Take stream and exit status as args.
(main): Pass new args to usage.
Fri Jun 25 23:12:12 1993 David J. Mackenzie (djm@thepub.cygnus.com)
* strings.c, strings.1: New files.
* binutils.texi: Document strings.
* Makefile.in: Add rules for it.
Fri Jun 25 20:44:43 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
* objdump.c: Use size-independent bfd elf section names.
Sun Jun 20 23:09:06 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
* objdump.c (objdump_print_address): Handle wide offsets by
calling sprintf_vma.
Fri Jun 18 14:29:12 1993 Per Bothner (bothner@deneb.cygnus.com)
* objdump.c (syms2): Removed unused variable.
* objdump.c (remove_useless_symbols): New function.
* objdump.c (comp): Simplify.
* objdump.c (dis-assemble_data): Make simpler and more
efficient how we filter out useless symbols: Just filter
BEFORE the sort (using remove_useless_symbols).
* objdump.c (objdump_print_address): Simplify.
Change output syntax to match gdb.
Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
* Makefile.in: canonicalize install.sh; for use within
this directory (and subdirs)
Mon Jun 14 12:13:22 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
* Makefile.in (install, install-info): remove parentdir support,
use INSTALL_XFORM; define INSTALL_XFORM
Thu Jun 10 17:29:21 1993 Per Bothner (bothner@cygnus.com)
* objcopy.c (copy_object): Fix bad size passed to xmalloc().
Mon Jun 7 12:41:12 1993 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
* configure.in: No longer need to configure to get sysdep.h.
* objcopy.c (copy_object): Fix symbol table handling.
Fri Jun 4 17:20:03 1993 Per Bothner (bothner@cygnus.com)
* objcopy.c (filter_symbols): Cannot filter the symbols
in place, because that confuses the relocs, so take separate
parameter for output array.
* objcopy.c (sympp): Make two variables: isympp and osympp.
* objcopy.c (copy_object): Allocate separate array (osympp)
for filtered symbols.
Fri Jun 4 10:51:44 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in: change recursion test to presence of a configured
testsuite directory
Thu Jun 3 14:05:57 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* Makefile.in (underscore.c): Hack the backquoted command so it
doesn't cause Solaris make to bomb.
Thu Jun 3 10:40:19 1993 Jeffrey Osier (jeffrey@cygnus.com)
* Makefile.in: added c++filt and objcopy to MANPAGES variable
Thu Jun 3 00:32:52 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in: rename LOADLIBES to EXTRALIBS
Wed Jun 2 18:30:24 1993 Jeffrey Osier (jeffrey@cygnus.com)
* c++filt.1, objcopy.1: new man pages
Fri May 28 15:01:24 1993 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in (install): Also install ar and ranlib in
$(tooldir)/bin; needed for building libgcc.a.
* objdump.c (objdump_print_address): Fix the check
"coincidental" label matches by dis-allowing undefined
or com symbols.
Thu May 27 16:58:31 1993 Jeffrey Osier (jeffrey@cygnus.com)
* biutils.texi: revised c++filt chapter
Wed May 26 17:24:17 1993 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (FLAGS_TO_PASS): Pass down CC and CFLAGS.
Tue May 25 00:26:47 1993 Ken Raeburn (raeburn@cygnus.com)
* objdump.c (slurp_symtab): Print warning for bad symbol table.
(bfd_elf32_find_section, Elf32_Internal_Shdr): Updated
declarations and uses.
* Makefile.in (DISTSTUFF): Don't build binutils.mm.
Fri May 21 10:51:19 1993 David J. Mackenzie (djm@rtl.cygnus.com)
* nm.c: Add -f/--format, -P/--portability, -t/--radix options.
Make global variables static.
(main): Make -v like -n, not -V, and make -A like -o, for POSIX.2.
(set_print_radix, set_output_format,
print_{object_filename,archive_filename,archive_member,symbol_info}
{bsd,sysv,posix}): New functions.
(display_file, print_symbols): Call them.
* ar.c: Improve error messages.
* nm.c (main): Handle long options that just set a flag.
* nm.c (main), ar.c (do_show_version), objcopy.c (main), size.c
(main): Exit after printing the version number, per the GNU coding
standards.
Mon May 17 13:20:25 1993 Per Bothner (bothner@cygnus.com)
* README, Makefile.in: Minor updates for 2.2.
Fri May 14 11:12:26 1993 Per Bothner (bothner@cygnus.com)
* Makefile.in (underscore.c): Automatically generate
(using nm) a file with the variable prepends_underscore.
* Makefile.in (c++filt): Link underscore.o with cplus-dem.o
so that initial underscores get removed iff appropriate.
* binutils.texi: Preliminary documentation for c++filt.
* Makefile.in, binutils.texi: Set to version 2.2.
* NEWS: Mention copy->objcopy renaming and new c++filt program.
Wed May 12 12:05:36 1993 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (cplus-dem.o, $(DEMANGLER_PROG)): Build the
demangler via cplus-dem.o, rather than directly from the .c file.
* objcopy.c: Renamed from copy.c, updated comments accordingly.
* Makefile.in, binutils.texi: Renamed copy to objcopy.
* is-strip.c, maybe-strip.c, not-strip.c: Updated comments for
rename of copy to objcopy.
Mon May 10 17:20:18 1993 Per Bothner (bothner@cygnus.com)
* binutils.texi (strip, -v option): Fix typo.
Fri May 7 13:57:50 1993 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (RUNTEST): Define.
(FLAGS_TO_PASS): Pass down RUNTEST.
Tue May 4 10:06:50 1993 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (DEMANGLER_PROG): Name it c++filt.
(PROG): Also build and install COPY_PROG.
Mon May 3 19:11:48 1993 Per Bothner (bothner@cygnus.com)
* Makefile.in: Change definition of $(tooldir) to match FSF.
Wed Apr 28 23:41:32 1993 David J. Mackenzie (djm@rtl.cygnus.com)
* size.c (usage): Add missing options.
(main): Clean up option parser.
* objdump.c (usage): Add missing options.
(display_file): Print program name before calling
bdf_perror.
* nm.c (usage): Add missing options.
(main): Clean up option parser.
(display_file): Print program name before calling
bdf_perror.
* copy.c (copy_usage, strip_usage): Add missing options.
* ar.c (usage): New function.
(main): Call it.
(open_inarch, do_quick_append): Print program name before calling
bdf_perror.
Thu Apr 22 15:01:35 1993 Ian Lance Taylor (ian@cygnus.com)
* nm.c (main): Accept and ignore -A and -B for MIPS compatibility.
Mon Apr 19 14:06:59 1993 Rob Savoye (rob@cygnus.com)
* Makefile.in: Added FLAGS_TO_PASS so tests get run on freshly
built binaries if they exist. (otherwise the path)
Wed Apr 7 22:22:50 1993 Rob Savoye (rob@cygnus.com)
* Makefile.in: Changed check target to use DejaGnu.
Thu Apr 1 12:37:13 1993 Jim Kingdon (kingdon@cygnus.com)
* Makefile.in: Remove am29k-pinsn.c, i960-pinsn.c.
objdump.c: a29k and i960 are `disassemble' not `print'.
* objdump.c: Rename print_address to objdump_print_address
and change parameters.
(disassemble_data): Use objdump_print_address.
Wed Mar 31 10:25:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* objdump.c (disassemble_data): print_insn_sparc is now a
`disassemble' not a `print'.
Makefile.in: Remove sparc-pinsn.c (now in libopcodes.a).
* objdump.c (disassemble_data): Use new read_memory_func stuff.
Thu Mar 25 10:38:11 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* objdump.c (fprintf): Declaration of variadic function had better
be a prototype for ANSI C systems.
Mon Mar 22 23:19:46 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in: rename test-install to install-check
Fri Mar 19 14:40:08 1993 Steve Chamberlain (sac@thepub.cygnus.com)
* objdump.c (disassemble_data): Add H8500.
Fri Mar 19 10:56:51 1993 Jim Kingdon (kingdon@cygnus.com)
* objdump.c (usage): Mention long options.
Thu Mar 18 14:22:17 1993 Per Bothner (bothner@rtl.cygnus.com)
* nm.c: Modify behavior of -o flag for archives to match
BSD4.4 and Sunos 4: Prefix archive name before each line.
* m68k-pinsn.c: Removed. Subsumed by ../opcodes/m68k-dis.c.
* i386-pinsn.c: Removed. Subsumed by ../opcodes/i386-dis.c.
* Makefile.in: Adjust accordingly.
* objdump.c: Support new-style disassemblers (ones that use
the interface of ../include/dis-asm.h).
Thu Feb 25 15:57:00 1993 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: When making tar file, remove texinfo/*,
except for texinfo/texinfo.tex.
* ardup.c: Add extern declaration of strdup.
* Makefile.in (testsuite): Add 'else true' since otherwise
Ultrix /bin/sh complains.
Wed Feb 24 19:44:18 1993 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Set VERSION to 2.1.
* README, NEWS: Updates.
* nm.c: Add -v as a synonym for -V.
Tue Feb 23 19:00:50 1993 Mike Werner (mtw@poseidon.cygnus.com)
* configure.in: added testsuite to configdirs.
* Makefile.in: added support for building testsuite.
Mon Feb 22 22:52:10 1993 Per Bothner (bothner@rtl.cygnus.com)
* objdump.c (disassemble_data): Print function names when
given by bfd_find_nearest_line. If not - still print
line numbers.
Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
* binutils/testsuite: made modifications to testcases, etc., to allow
them to work properly given the reorganization of deja-gnu and the
relocation of the testcases from deja-gnu to a "tool" subdirectory.
Mon Feb 22 10:27:24 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* objdump.c (dump_data): Free up section contents each time
through the loop. Reported by minyard@bnr.ca.
Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
* binutils/testsuite: Initial creation of binutils/testsuite.
Migrated dejagnu testcases and support files for testing nm to
binutils/testsuite from deja-gnu. These files were moved "as is"
with no modifications. This migration is part of a major overhaul
of dejagnu. The modifications to these testcases, etc., which
will allow them to work with the new version of dejagnu will be
made in a future update.
Fri Feb 12 10:05:20 1993 Fred Fish (fnf@cygnus.com)
* Makefile.in (LIBIBERTY_SRC_DIR, LIBIBERTY_BIN_DIR): New macros.
* Makefile.in (LIBIBERTY): Use LIBIBERTY_BIN_DIR.
* Makefile.in (DEMANGLER_PROG): New program to build. Add macro
and rule.
* Makefile.in (PROGS): Add DEMANGLER_PROG.
Tue Jan 26 11:56:33 1993 Ian Lance Taylor (ian@cygnus.com)
* copy.c, nm.c, objdump.c, size.c: Use new bfd_is_com_section
macro rather than checking for equality to bfd_com_section.
Fri Jan 8 15:50:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (disassemble_data): Fix code to find first useless
symbol.
Thu Jan 7 13:13:31 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* objdump.c (disassemble_data): Use mips_print_insn for MIPS.
Don't core dump if bfd_find_nearest_line returns false.
Wed Jan 6 17:14:01 1993 Steve Chamberlain (sac@thepub.cygnus.com)
* objdump.c (disassemble_data): know how to disassemble z8000s
too.
Wed Jan 6 15:16:27 1993 Per Bothner (bothner@cygnus.com)
* arsup.h (interactive), bucomm.h (program_name): Prefix
with 'extern', to avoid warnings from some compilers.
Wed Jan 6 15:14:11 1993 Per Bothner (bothner@rtl.cygnus.com)
* arparse.y: fix unnecessary shift/reduce
Tue Dec 22 15:46:56 1992 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Make check depend on all.
* Makefile.in (distclean): Remove sysdep.h.
* size.c: Use %u format where appropriate.
* objdump.c: Standardize: L_SET -> SEEK_SET.
* objdump.c: Use new macro bfd_asymbol_bfd.
* configure.in: Allow std-host as the default ${mys_host}.
Thu Dec 17 19:38:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in: added dvi target, define and use TEXI2DVI
Tue Dec 15 18:05:07 1992 Per Bothner (bothner@cygnus.com)
* Makefile.in (dist): Fix permissions before release.
* size.c: Use bfd_size_type (and long) where appropriate.
* ar.c: Make writing a map the default, to be compatible
with SYSV and Posix.2. Remove some bogus kludges that
handled __.SYMDEF directly.
* NEWS: New file.
Mon Nov 9 13:36:53 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* Makefile.in: flex no longer needs the -S flag
Sat Nov 7 15:06:13 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* ar.c (extract_file): utime needs a pointer to a utimbuf
* Makefile.in: handle -I includes better, adding $(BASEDIR)/bfd to
the list (since some of the bfd/hosts/*.h files include other
files from that directory)
Fri Nov 6 00:12:51 1992 John Gilmore (gnu@cygnus.com)
* i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper bound properly.
Thu Nov 5 03:37:15 1992 John Gilmore (gnu@cygnus.com)
Clean up some old BFD ansification macros.
* arsup.h, bucomm.h, objdump.h: Remove EXFUN from binutils.
It still remains as a local macro in gmalloc.c, which is derived
from some other copy of GNU Malloc somewhere (FIXME).
* ar.c, objdump.c, size.c: Replace EXFUN with PROTO. Make static
fns really static.
* arsup.h: Declare extract_files.
Mon Nov 2 12:42:11 1992 Ian Lance Taylor (ian@cygnus.com)
* ar.c (extract_file): instead of checking USG: if POSIX_UTIME,
use utime and utimbuf structure, otherwise if USE_UTIME use utime
and array of two longs, otherwise use utimes.
Thu Oct 15 13:57:35 1992 Per Bothner (bothner@cygnus.com)
* binutils.tex: Document yesterday's changes to strip and copy.
Wed Oct 14 13:22:14 1992 Per Bothner (bothner@cygnus.com)
* copy.c: Re-do command-line parsing to use getopt_long().
Add long option names. Re-think option letters to be more
consistent.
* copy.c: New function filter_symbols() for stripping only
debug-symbols and/or local symbols. Use these to support
the previously-missing options of the old FSF strip.
Tue Oct 13 01:24:20 1992 John Gilmore (gnu@cygnus.com)
* configure.in (host): Use ${srcdir}/../bfd/configure.host rather
than repeating a copy of it here.
Wed Oct 7 12:53:52 1992 Ken Raeburn (raeburn@cygnus.com)
* copy.c (main): Even if is_strip, accept -d argument indicating
alternate output format. Needed by gdb for Nindy.
* m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
Tue Oct 6 16:33:56 1992 Jeffrey Osier (jeffrey@cygnus.com)
* binutils.texi: added documentation for "copy"
Tue Oct 6 14:22:56 1992 Per Bothner (bothner at PersSony)
* Makefile.in (*clean rules): Some cleaning up.
* Makefile.in (dist): Make diststuff in gprof for a dist.
* ar.c (do_show_version): New function.
* ar.c (main): Fix so "ar -V" works.
Thu Oct 1 22:44:45 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* configure.in: now uses the cpu-vendor-os triple instead of
nested cases.
Fri Sep 25 22:41:08 1992 John Gilmore (gnu@cygnus.com)
* i960-pinsn.c: Change bzero to memset.
* sparc-pinsn.c: Change index to strchr.
Mon Sep 21 14:39:56 1992 Ian Lance Taylor (ian@cygnus.com)
* m68k-pinsn (print_insn_arg, fetch_arg): added support for
operands to memory management instructions, from WRS.
Tue Sep 15 15:26:38 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (install): if $(tooldir) exists, install nm and
strip in $(tooldir)/bin.
Thu Sep 3 11:57:40 1992 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Let's call it version 2.0.
Wed Sep 2 00:25:13 1992 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Bump to version 0.98.
* TODO, README: Minor updates.
* Makefile.in: Added mostlyclean, distclean rules,
and cleaned up clean, realclean.
Sun Aug 30 21:18:59 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in: map program names through program_transform_name
when installing.
Sun Aug 30 18:09:03 1992 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Bump to versions 1.97.90.
* cplus-dem.c: Removed. Was nowhere used - and if some
programs are changed to to demangling should now use the
versions in libiberty.
Thu Aug 27 12:58:09 1992 Brendan Kehoe (brendan@cygnus.com)
* configure.in: add we32k
Mon Aug 24 14:53:42 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* ar.c (map_over_members): if the element of the archive has a
null name, fill it in.
* nm.c (do_one_rel_file): only warn if a bfd's flags say there
will be symbols and there aren't any.
Wed Aug 19 11:20:25 1992 Ian Lance Taylor (ian@cygnus.com)
* m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
Tue Aug 18 20:45:48 1992 Rob Savoye (rob@cygnus.com)
* nm.c objdump.c: Added support for a +version (-V)
to print the version number.
* ar.c, copy.c: Added support for a -V option to print
the version number.
Tue Aug 18 13:28:44 1992 Ian Lance Taylor (ian@cygnus.com)
* config/mh-apollo68v: removed -g from CC definition.
* Makefile.in: always create installation directories.
Mon Aug 17 18:33:41 1992 Per Bothner (bothner@rtl.cygnus.com)
* m68k-pinsn.c: Minor fix in style of output (don't use
range to indicate floating point control registers).
Tue Aug 11 23:42:21 1992 Per Bothner (bothner@cygnus.com)
* ar.c (main): Don't *always* set the verbose flag!
Wed Aug 5 11:25:27 1992 Per Bothner (bothner@rtl.cygnus.com)
* copy.c: When is_strip (because it is invoked as the strip
program), follow traditional argv processing:
'strip file1 file2' now strips file1 and file2, rather
than stripping file1 (as input), leaving output in file2.
Mon Jul 27 16:28:08 1992 Per Bothner (bothner@rtl.cygnus.com)
* objdump.c (display_info, display_info_table): Call
bfd_set_format() on dummy bfd before using it (twice).
* ar.c: Make sure archive is created on command 'r'
even when no elements are inserted. (Clean up and
simplify some non-working related code.)
Mon Jul 20 02:48:38 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
* configure.in: hppa support doesn't assume hp OS (from sef).
Sat Jul 18 14:35:22 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
* configure.in: recognize hppa hosts (bsd & hpux), error messages
to stderr, not stdout
Fri Jul 17 18:39:44 1992 K. Richard Pixley (rich@rtl.cygnus.com)
* ar.1, binutils.texi, i960-pinsn.c, nm.1, objdump.1, ranlib.1,
size.1, sparc-pinsn.c, strip.1: removed rcsid's.
Thu Jul 16 16:55:24 1992 K. Richard Pixley (rich@rtl.cygnus.com)
* Makefile.dos: removed rcsid.
Thu Jul 16 08:23:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* objdump.c (display_bfd): print state of BFD_IS_RELAXABLE too
Tue Jun 30 20:26:15 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
* Makefile.in: Add program_suffix (parallel to program_prefix)
Thu Jun 25 04:52:45 1992 John Gilmore (gnu at cygnus.com)
* nm.c (sorters): Lint. Remove excess whitespace.
Wed Jun 24 13:48:07 1992 Per Bothner (bothner@cygnus.com)
* nm.c (valueof macro): Add missing parentheses.
(Their lack screwed up numeric_forward().)
Sun Jun 14 10:33:27 1992 John Gilmore (gnu at cygnus.com)
* objdump.c (dump_elf_stabs): Also dump .stab.index and
.stab.excl sections.
(dump_elf_stabs_1): Split out main body of old dump_elf_stabs.
* objdump.1, binutils.texi: Document new sections dumped.
Fri Jun 12 22:23:35 1992 John Gilmore (gnu at cygnus.com)
* size.c, objdump.c, bucomm.c: Lint.
Thu Jun 11 01:19:06 1992 John Gilmore (gnu at cygnus.com)
* objdump.c (dump_elf_stabs): New feature: --stabs prints out a
.stab section from an ELF file. Installed under #ifdef
ELF_STAB_DISPLAY so it can be easily disabled, since it requires
bfd-internals header files and such.
* objdump.1, binutils.texi: Update for --stabs. Also fix
objdump's doc to use -- rather than + for long options.
(FIXME: Not yet fixed everywhere in binutils.texinfo.)
Wed Jun 10 07:53:24 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* objdump.c(display_info), patches from
mohring@informatik.tu-muenchen.de to print the table much more
nicely.
Thu May 28 13:36:16 1992 Per Bothner (bothner@rtl.cygnus.com)
* objdump.c: Add another enum->int cast, for the sake of
old compilers (such as PCC).
Wed May 27 13:01:44 1992 Per Bothner (bothner@rtl.cygnus.com)
* arlex.l: Don't include <sysdep.h> (unneeded conflicts).
Add declaration of strdup().
Fri May 22 13:40:37 1992 Per Bothner (bothner@cygnus.com)
* Makefile.in: Use srcdir instead of VPATH in ldgram/ldlex
rules, since these are used when building a distribution.
* Makefile.in (arlex.c): Don't re-direct output, since that
leaves a bogus output files if it fails.
* arlex.l: Make work with lex, for what it's worth.
* Makefile.in: Better lex support.
* Makefile.in (dist): Generate flex and bison outputs
for distribution.
Thu May 14 17:17:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
* Makefile.in: get BISON definition right.
Fri May 8 07:47:08 1992 K. Richard Pixley (rich@cygnus.com)
* sanity.sh: default TMPDIR to ".".
Thu May 7 12:34:50 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
* binutils.texi: add doc for ar command language.
Wed May 6 18:05:36 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* arparse.y: make END call ar_end
* arsup.c (ar_end): added, deletes temp file if archive session
aborted.
Wed May 6 11:08:53 1992 K. Richard Pixley (rich@rtl.cygnus.com)
* Makefile.in: use bison & flex from ../ if they exist. Also,
FLEX->LEX.
* sanity.sh: remove temporary directory when finished.
Tue May 5 12:00:58 1992 Per Bothner (bothner@rtl.cygnus.com)
* Makefile.in: Bump to version 1.97.
* ar.c: Declare errno for machines that need it.
Mon May 4 23:29:51 1992 John Gilmore (gnu@cygnus.com)
* objdump.c (display_info): Handle error cases without coredump.
Close the dummy temporary file we open in the loop.
* Makefile.in (arsup.o): Add kludge to build with Sun Make.
Fri May 1 16:20:23 1992 K. Richard Pixley (rich@cygnus.com)
* Makefile.in: added test-install target.
* sanity.sh: new file.
* Makefile.in: use sanity test on make check.
Tue Apr 21 13:38:37 1992 K. Richard Pixley (rich@cygnus.com)
* Makefile.in: rework CFLAGS so that they can be passed on the
command line to make. Remove MINUS_G. Default CFLAGS to -g.
Wed Apr 15 14:33:07 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* arsup.c, arsup.h, arparse.y, arlex.l: support for archive
scripting language.
Fri Mar 6 21:54:53 1992 K. Richard Pixley (rich@cygnus.com)
* Makefile.in: added check target.
Thu Mar 5 21:35:49 1992 K. Richard Pixley (rich@cygnus.com)
* Makefile.in: added clean-info target.
Tue Mar 3 15:36:37 1992 K. Richard Pixley (rich@rtl.cygnus.com)
* Makefile.in: remove $(COPY_PROG) from PROGS. It shouldn't be
installed. added tooldir and program_prefix.
Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
* Makefile.in, configure.in: removed traces of namesubdir,
-subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
copyrights to '92, changed some from Cygnus to FSF.
Sun Feb 16 12:53:02 1992 Per Bothner (bothner at cygnus.com)
* Makefile.in: Bump version to 1.96, and remove -beta
suffix from distribution name.
* m68k-pinsn.c: New macro COERCE_SIGNED_CHAR to extract
the signed value of a character (even if chars are unsigned).
* sparc-pinsn.c: Add new operand types.
Thu Feb 6 12:14:19 1992 Steve Chamberlain (sac at rtl.cygnus.com)
* objdump.c (disassemble_data): don't print a section's contents
if it's not loadable (eg bss)
Tue Jan 28 11:11:06 1992 Steve Chamberlain (sac at rtl.cygnus.com)
* m68k-pinsn.c (print_insn_arg): fixed so that -ve branch
displacements don't get printed as large +ve ones.
Fri Jan 24 14:47:53 1992 Steve Chamberlain (sac at rtl.cygnus.com)
* copy.c, nm.c, objdump.c, size.c : changed to use the
new reloc scheme.
Mon Dec 30 18:34:41 1991 Per Bothner (bothner at cygnus.com)
* bucomm.c (print_arelt_descr): Tweek the output format
so that 'ar tv' output follows Posix 1003.2/D11.
Output is now also identical to Sun's (except __.SYMDEF).
Mon Dec 30 06:09:53 1991 John Gilmore (gnu at cygnus.com)
* Makefile.in: Make `make' output more readable.
Wed Dec 18 15:04:45 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in: Bump to version 1.94.
Wed Dec 11 16:48:09 1991 Steve Chamberlain (sac at cygnus.com)
* ar.c: added "b" to fopens for dos
* configdj.bat, makefile.dos new files from DJ
Tue Dec 10 04:07:26 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: infodir belongs in datadir.
Sat Dec 7 17:09:37 1991 Steve Chamberlain (sac at rtl.cygnus.com)
* bucomm.h: created to hold prototypes of bucomm.c
* objdump.h: created to hold prototyes of objdump.c
* am29k-pinsn.c: include objdump.h
* ar.c: include bucomm.h, get ar.h from the right place and
include libbfd.h
* bucomm.c: defunize bfd_fatal
* copy.c: include bucomm.h, lint.
* i960-pinsn.h: include bucomm.h
* m68k-pinsn.h: lint
* nm.c: include bucomm.h, lint
* objdump.c: lint
* sparc-pinsn.c: include objdump.h
Fri Dec 6 23:02:14 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: added standards.text support. install using
INSTALL_PROGRAM and INSTALL_DATA.
* configure.in: configure now does all of it's work from objdir so
make file existence tests against ${srcdir}.
Thu Dec 5 22:46:22 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: idestdir and ddestdir go away. Added copyrights
and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
and mandir now keyed off datadir by default.
Wed Dec 4 22:42:03 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in: Bump to version 1.93.
* Makefile.in: Add make-strip.o:maybe-strip.c dependency
for make versions that provide half-baked VPATH-support (e.g. Sun's).
* size.c: Improvements suggested by
"david d [zoo] zuhn" <zoo@aps1.spa.umn.edu>:
- Don't emit (Berkeley) headers if no files were found.
- Return a non-zero return code on failure.
Sat Nov 30 21:34:19 1991 Steve Chamberlain (sac at rtl.cygnus.com)
Changes due to include file renaming:
* am29k-pinsn.c: a29k-opcode.h -> opcode/a29k.h
* sparc-pinsn.c: sparc-opcode.h -> opcode/sparc.h
* m68k-pinsn.c: m68k-opcode.h -> opcode/m68k.h
* nm.c: stab.gnu.h -> aout/stab_gnu.h
Tue Nov 19 19:20:43 1991 Per Bothner (bothner at cygnus.com)
* README: Mention MINIMIZE flag for bfd's make.
Mon Nov 18 12:05:37 1991 Per Bothner (bothner at cygnus.com)
* README: Various improvements.
Sun Nov 17 23:40:59 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in: Bump to version 1.92.
* version.c, Makefile.in: Get version string from Makefile.
* copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
Make the same change that we earlier did for ar/ranlib:
Generate two different binaries for strip and copy and use
a global variable with different values to distinguish
ostrip from copy. (-1 means to use argv[0] to decide,
so you can get the old behavior, but it is no longer the default).
* copy.c (copy_file): Set EXEC_P of output bfd if input is so.
* copy.c (main): If is_strip==-1, compare last 5 chars
of argv[0], not the whole path.
* copy.c (main): Return 0, not 1.
* copy.c (setup_sections): Fix due to change in bfd_make_section
now failing if asked for a duplicate section.
* strip.c, ostrip.c: Removed obsolete files.
* ar.c, not-ranlib.c, maybe-ranlib.c:
Change encoding of is_ranlib variable to be consistent
with is_strip for strip.copy (i.e -1 to means use argv[0]).
Thu Nov 14 20:11:02 1991 Per Bothner (bothner at cygnus.com)
* version.c (program_version): Update to version 1.92.
Tue Nov 12 16:17:53 1991 Per Bothner (bothner at cygnus.com)
* ar.c (get_pos_bfd): Previous fix was missing a "break".
Thu Nov 7 08:55:56 1991 Steve Chamberlain (sac at cygnus.com)
* am29k-pinsn.c: Fixed bug in mtacc, dmac and fmac instruction
encodings. (Thaks to David Wood)
Sun Nov 3 14:50:23 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
* ar.c (get_pos_bfd): Fix to handling of before/after
positioning options.
* bucomm.c (fatal): MISSING_VFPRINTF is no longer an issue,
since libiberty contains vfprintf etc if otherwise missing.
* m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
type operands, as used by branch instructions.
* nm.c: Delegate printing of symbols to BFD,
by using bfd_print_symbol to do the formatting.
Mon Oct 28 11:20:47 1991 Steve Chamberlain (steve at cygnus.com)
* ar.c (write_archive.c): added unlink before rename since some
systems can't rename onto an existant file.
Mon Oct 21 09:47:23 1991 Steve Chamberlain (steve at rtl.cygnus.com)
* nm.c: now doesn't crash if a symbol with no section and no
SEC_ABS appears.
Thu Oct 17 15:25:50 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in, version.c: Bump to version 1.91.
Wed Oct 16 11:45:36 1991 Per Bothner (bothner at cygnus.com)
* Makefile.in, ar.c, bucomm.c, copy.c, cplus-dem.c, filemode.c,
i960-pinsn.c, m68k-pinsn.c, nm.c, objdump.c, size.c, sparc-pinsn.c,
* strip.c: Add or update Copyright notice.
* TODO: Add note on 'nm -a'.
* version.c: Update version number to 1.90.
* Makefile.in: Fix making of documentation for dist.
Tue Oct 15 00:17:17 1991 Per Bothner (bothner at cygnus.com)
* README: New file.
* Makefile.in: New kludgy rules for making a tarfile.
* Makefile.in: Fix bindir path.
Mon Oct 14 17:34:29 1991 Roland H. Pesch (pesch at cygnus.com)
* Makefile.in: add targets binutils.mm, binutils.me
Fri Oct 11 22:44:21 1991 John Gilmore (gnu at cygnus.com)
* Makefile.in: Avoid Sun Make VPATH bugs by adding dependencies.
Fri Oct 11 12:51:33 1991 Roland H. Pesch (pesch at cygnus.com)
* Makefile.in: add target "binutils.ms"
* binutils.texinfo: minor restructuring for texi2roff comfort.
Fri Oct 11 04:12:28 1991 John Gilmore (gnu at cygnus.com)
Restructure configuration scheme for bfd, binutils, ld.
* include/sys/h-*.h: Move to bfd/hosts/h-*.h.
* configure.in: Revise to symlink sysdep.h to ../bfd/hosts/h-xxx.h.
Change some config names to match other dirs.
* *.c: Include bfd.h before sysdep.h, so ansidecl and PROTO()
get defined first.
* Makefile.in: Use -I. to get sysdep.h.
Wed Oct 9 22:42:56 1991 Per Bothner (bothner at cygnus.com)
* nm.c (print_symbols): Handle NULL name field of symbol.
* Makefile.in: Removed spurious comment.
Tue Oct 8 16:55:03 1991 Roland H. Pesch (pesch at cygnus.com)
* binutils.texinfo: minor typos, phrasing, formatting fixes.
Tue Oct 8 15:13:20 1991 Per Bothner (bothner at cygnus.com)
* configure.in: Get host file from ../bfd/config, not config.
* config/*: Remove config directory and its files.
Tue Oct 8 13:58:59 1991 Roland H. Pesch (pesch at cygnus.com)
* Makefile.in: new targets binutils.dvi, binutils.info
* binutils.texinfo: remove most remaining FIXME's, delete
references to __.SYMDEF by name
Tue Oct 8 10:23:44 1991 Steve Chamberlain (steve at cygnus.com)
* objdump.c (print_address) Print addresses nicely.
Mon Oct 7 11:31:05 1991 Per Bothner (bothner at cygnus.com)
* ar.c, Makefile.in, new files {is,not,maybe}-ranlib.c:
Make two different binaries for ar and ranlib, instead of
distinguishing them at run time using argv[0].
(Old behavior is still available if you "make ar_with_ranlib",
but it is not the default.)
* ranlib.sh (new): An alternative one-line
shell implementation of ranlib.
Fri Oct 4 21:49:44 1991 John Gilmore (gnu at cygnus.com)
* objdump.c: Cope with renames of a few BFD types & enums.
Fri Oct 4 19:08:09 1991 Roland H. Pesch (pesch at cygnus.com)
* binutils.texinfo: add new file (rudimentary docn)
Mon Sep 30 12:30:39 1991 Per Bothner (bothner at cygnus.com)
* config/hmake-news: Add new file (for Sony NEWSOS3).
* bucomm.c (fatal): Conditionally compile fatal() depending on
MISSING_VFPRINTF, and don't confuse the issue with NO_VARARGS.
* objdump.c (dump_headers): Trivial output format change.
* objdump.c (display_info): Loop over integers, not enums,
to appease old compilers.
Mon May 20 16:14:07 1991 Steve Chamberlain (steve at cygint.cygnus.com)
*objdump.c *nm.c *copy.c: Changed some types to work with 64 bit
object files.
Thu May 16 16:06:55 1991 Steve Chamberlain (steve at cygint.cygnus.com)
from bother
* objdump.c (print_address): Make disasembled output more
consistent with gdb and as: Add 0x when printing hex.
Don't print extra leading zeros.
Attempt to not print "filename.o".
* objdump.c: Add some enum-to-int casts to accomodate old compilers.
Fri May 3 22:21:44 1991 John Gilmore (gnu at cygint.cygnus.com)
* copy.c: Change =& constructs to = &, since they confuse older
C compilers.
Local Variables:
mode: change-log
left-margin: 8
fill-column: 74
version-control: never
End:
|