gas-preprocessor: support .bss
authornotaz <notasas@gmail.com>
Sun, 24 Mar 2013 23:03:27 +0000 (00:03 +0100)
committernotaz <notasas@gmail.com>
Mon, 25 Mar 2013 01:45:19 +0000 (03:45 +0200)
same as .data on Mach-O it seems

tools/gas-preprocessor.pl

index 082f71b..9787491 100644 (file)
@@ -121,6 +121,7 @@ while (<ASMFILE>) {
     s/\.global/.globl/x;
     # also catch .section .rodata since the equivalent to .const_data is .section __DATA,__const
     s/(.*)\.rodata/.const_data/x;
+    s/\.bss/.data/x;
     s/\.int/.long/x;
     s/\.float/.single/x;