@@ -2784,22 +2784,26 @@ $bu = $ARGV[2];
2784
2784
2785
2785
$bu = " " if (($bu eq " 0" ) || ($bu eq " 1" ));
2786
2786
2787
+ $symbolprefix = $ARGV [9];
2788
+
2789
+ $symbolsuffix = $ARGV [10];
2790
+
2787
2791
if ($ARGV [0] eq " osx" ){
2788
2792
2789
2793
@underscore_objs = (@underscore_objs , @misc_common_objs );
2790
2794
@no_underscore_objs = (@no_underscore_objs , @misc_common_objs );
2791
2795
2792
2796
foreach $objs (@underscore_objs ) {
2793
- print " _" , $objs , $bu , " \n " ;
2797
+ print " _" , $symbolprefix , $ objs , $bu , $symbolsuffix , " \n " ;
2794
2798
}
2795
2799
2796
2800
foreach $objs (@need_2underscore_objs ) {
2797
- print " _" , $objs , $bu , $bu , " \n " ;
2801
+ print " _" , $symbolprefix , $ objs , $bu , $bu , $symbolsuffix , " \n " ;
2798
2802
}
2799
2803
2800
2804
# if ($ARGV[4] == 0) {
2801
2805
foreach $objs (@no_underscore_objs ) {
2802
- print " _" , $objs , " \n " ;
2806
+ print " _" , $symbolprefix , $ objs, $symbolsuffix , " \n " ;
2803
2807
}
2804
2808
# }
2805
2809
exit (0);
@@ -2811,16 +2815,58 @@ if ($ARGV[0] eq "aix"){
2811
2815
@no_underscore_objs = (@no_underscore_objs , @misc_common_objs );
2812
2816
2813
2817
foreach $objs (@underscore_objs ) {
2814
- print $objs , $bu , " \n " ;
2818
+ print $symbolprefix , $objs , $bu , $symbolsuffix , " \n " ;
2819
+ }
2820
+
2821
+ foreach $objs (@need_2underscore_objs ) {
2822
+ print $symbolprefix , $objs , $bu , $bu , $symbolsuffix , " \n " ;
2823
+ }
2824
+
2825
+ # if ($ARGV[4] == 0) {
2826
+ foreach $objs (@no_underscore_objs ) {
2827
+ print $symbolprefix , $objs , $symbolsuffix , " \n " ;
2828
+ }
2829
+ # }
2830
+ exit (0);
2831
+ }
2832
+
2833
+ if ($ARGV [0] eq " objcopy" ){
2834
+
2835
+ @underscore_objs = (@underscore_objs , @misc_common_objs );
2836
+ @no_underscore_objs = (@no_underscore_objs , @misc_common_objs );
2837
+
2838
+ foreach $objs (@underscore_objs ) {
2839
+ print $objs , $bu , " " , $symbolprefix , $objs , $bu , $symbolsuffix , " \n " ;
2840
+ }
2841
+
2842
+ foreach $objs (@need_2underscore_objs ) {
2843
+ print $objs , $bu , $bu , " " , $symbolprefix , $objs , $bu , $bu , $symbolsuffix , " \n " ;
2844
+ }
2845
+
2846
+ # if ($ARGV[4] == 0) {
2847
+ foreach $objs (@no_underscore_objs ) {
2848
+ print $objs , " " , $symbolprefix , $objs , $symbolsuffix , " \n " ;
2849
+ }
2850
+ # }
2851
+ exit (0);
2852
+ }
2853
+
2854
+ if ($ARGV [0] eq " objconv" ){
2855
+
2856
+ @underscore_objs = (@underscore_objs , @misc_common_objs );
2857
+ @no_underscore_objs = (@no_underscore_objs , @misc_common_objs );
2858
+
2859
+ foreach $objs (@underscore_objs ) {
2860
+ print " -nr:_" , $objs , $bu , " :_" , $symbolprefix , $objs , $bu , $symbolsuffix , " \n " ;
2815
2861
}
2816
2862
2817
2863
foreach $objs (@need_2underscore_objs ) {
2818
- print $objs , $bu , $bu , " \n " ;
2864
+ print " -nr:_ " , $objs , $bu , $bu , " :_ " , $symbolprefix , $objs , $bu , $bu , $symbolsuffix , " \n " ;
2819
2865
}
2820
2866
2821
2867
# if ($ARGV[4] == 0) {
2822
2868
foreach $objs (@no_underscore_objs ) {
2823
- print $objs , " \n " ;
2869
+ print " -nr:_ " , $objs , " :_ " , $symbolprefix , $objs , $symbolsuffix , " \n " ;
2824
2870
}
2825
2871
# }
2826
2872
exit (0);
@@ -2835,22 +2881,22 @@ if ($ARGV[0] eq "win2k"){
2835
2881
foreach $objs (@underscore_objs ) {
2836
2882
$uppercase = $objs ;
2837
2883
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2838
- print " \t $ objs =$objs " ," _ \@ " , $count , " \n " ;
2884
+ print " \t " , $symbolprefix , $ objs, $symbolsuffix , " =$objs " ," _ \@ " , $count , " \n " ;
2839
2885
$count ++;
2840
- print " \t " ,$objs , " _=$objs " ," _ \@ " , $count , " \n " ;
2886
+ print " \t " ,$symbolprefix , $ objs , " _" , $symbolsuffix , " =$objs " ," _ \@ " , $count , " \n " ;
2841
2887
$count ++;
2842
- print " \t $ uppercase =$objs " , " _ \@ " , $count , " \n " ;
2888
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " =$objs " , " _ \@ " , $count , " \n " ;
2843
2889
$count ++;
2844
2890
}
2845
2891
2846
2892
foreach $objs (@need_2underscore_objs ) {
2847
2893
$uppercase = $objs ;
2848
2894
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2849
- print " \t $ objs =$objs " ," __ \@ " , $count , " \n " ;
2895
+ print " \t " , $symbolprefix , $ objs, $symbolsuffix , " =$objs " ," __ \@ " , $count , " \n " ;
2850
2896
$count ++;
2851
- print " \t " ,$objs , " __=$objs " ," __ \@ " , $count , " \n " ;
2897
+ print " \t " ,$symbolprefix , $ objs , " __" , $symbolsuffix , " =$objs " ," __ \@ " , $count , " \n " ;
2852
2898
$count ++;
2853
- print " \t $ uppercase =$objs " , " __ \@ " , $count , " \n " ;
2899
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " =$objs " , " __ \@ " , $count , " \n " ;
2854
2900
$count ++;
2855
2901
}
2856
2902
@@ -2859,15 +2905,15 @@ if ($ARGV[0] eq "win2k"){
2859
2905
2860
2906
$uppercase = $objs ;
2861
2907
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2862
- print " \t " ,$objs , " _=$objs " ," _ \@ " , $count , " \n " ;
2908
+ print " \t " ,$symbolprefix , $ objs , " _" , $symbolsuffix , " =$objs " ," _ \@ " , $count , " \n " ;
2863
2909
$count ++;
2864
- print " \t $ uppercase =$objs " , " _ \@ " , $count , " \n " ;
2910
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " =$objs " , " _ \@ " , $count , " \n " ;
2865
2911
$count ++;
2866
2912
}
2867
2913
2868
2914
2869
2915
foreach $objs (@no_underscore_objs ) {
2870
- print " \t " ,$objs ," =$objs " ," \@ " , $count , " \n " ;
2916
+ print " \t " ,$symbolprefix , $ objs, $symbolsuffix ," =$objs " ," \@ " , $count , " \n " ;
2871
2917
$count ++;
2872
2918
}
2873
2919
@@ -2880,11 +2926,11 @@ if ($ARGV[0] eq "win2khpl"){
2880
2926
foreach $objs (@hplobjs ) {
2881
2927
$uppercase = $objs ;
2882
2928
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2883
- print " \t $ objs =$objs " ," _ \@ " , $count , " \n " ;
2929
+ print " \t " , $symbolprefix , $ objs, $symbolsuffix , " =$objs " ," _ \@ " , $count , " \n " ;
2884
2930
$count ++;
2885
- print " \t " ,$objs , " _=$objs " ," _ \@ " , $count , " \n " ;
2931
+ print " \t " ,$symbolprefix , $ objs , " _" , $symbolsuffix , " =$objs " ," _ \@ " , $count , " \n " ;
2886
2932
$count ++;
2887
- print " \t $ uppercase =$objs " , " _ \@ " , $count , " \n " ;
2933
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " =$objs " , " _ \@ " , $count , " \n " ;
2888
2934
$count ++;
2889
2935
}
2890
2936
@@ -2905,24 +2951,24 @@ if ($ARGV[0] eq "microsoft"){
2905
2951
foreach $objs (@underscore_objs ) {
2906
2952
$uppercase = $objs ;
2907
2953
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2908
- print " \t $ objs = $objs " ," _\n " ;
2954
+ print " \t " , $symbolprefix , $ objs, $symbolsuffix , " = $objs " ," _\n " ;
2909
2955
$count ++;
2910
- print " \t $ objs\_ = $objs " ," _\n " ;
2956
+ print " \t " , $symbolprefix , $ objs, " \_ " , $symbolsuffix , " = $objs " ," _\n " ;
2911
2957
$count ++;
2912
- print " \t $ uppercase = $objs " ," _\n " ;
2958
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " = $objs " ," _\n " ;
2913
2959
$count ++;
2914
- print " \t $ uppercase\_ = $objs " ," _\n " ;
2960
+ print " \t " , $symbolprefix , $ uppercase, " \_ " , $symbolsuffix , " = $objs " ," _\n " ;
2915
2961
$count ++;
2916
2962
}
2917
2963
2918
2964
foreach $objs (@need_2underscore_objs ) {
2919
2965
$uppercase = $objs ;
2920
2966
$uppercase =~ tr / [a-z]/ [A-Z]/ ;
2921
- print " \t $ objs =$objs " ," __ \@ " , $count , " \n " ;
2967
+ print " \t " , $symbolprefix , $ objs, $symbolsuffix , " =$objs " ," __ \@ " , $count , " \n " ;
2922
2968
$count ++;
2923
- print " \t " ,$objs , " __=$objs " ," __ \@ " , $count , " \n " ;
2969
+ print " \t " ,$symbolprefix , $ objs , " __" , $symbolsuffix , " =$objs " ," __ \@ " , $count , " \n " ;
2924
2970
$count ++;
2925
- print " \t $ uppercase =$objs " , " __ \@ " , $count , " \n " ;
2971
+ print " \t " , $symbolprefix , $ uppercase, $symbolsuffix , " =$objs " , " __ \@ " , $count , " \n " ;
2926
2972
$count ++;
2927
2973
}
2928
2974
@@ -2936,16 +2982,16 @@ if ($ARGV[0] eq "linktest"){
2936
2982
2937
2983
print " int main(void){\n " ;
2938
2984
foreach $objs (@underscore_objs ) {
2939
- print $objs , $bu , " ();\n " if $objs ne " xerbla" ;
2985
+ print $symbolprefix , $ objs , $bu , $symbolsuffix , " ();\n " if $objs ne " xerbla" ;
2940
2986
}
2941
2987
2942
2988
foreach $objs (@need_2underscore_objs ) {
2943
- print $objs , $bu , $bu , " ();\n " ;
2989
+ print $symbolprefix , $ objs , $bu , $bu , $symbolsuffix , " ();\n " ;
2944
2990
}
2945
2991
2946
2992
# if ($ARGV[4] == 0) {
2947
2993
foreach $objs (@no_underscore_objs ) {
2948
- print $objs , " ();\n " ;
2994
+ print $symbolprefix , $ objs, $symbolsuffix , " ();\n " ;
2949
2995
}
2950
2996
# }
2951
2997
0 commit comments