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
|
Mon Jul 31 12:51:06 1995 Ian Lance Taylor <ian@cygnus.com>
* 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): Hanlde 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
* .Sanitize: keep c++filt.1 and objcopy.1
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 :hanged 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: indented-text
left-margin: 8
fill-column: 74
version-control: never
End:
|