History

move nx stack annotation to gas.c

Quentin Carbonneaux committed 4 years ago

Commit 2caa26e1 parent 3c5cd9f2 files · +3 −4Browse files

Unified · Split

2 files
  1. gas.c +2 −0
  2. main.c +1 −4
gas.c+2−0
@@ -141,6 +141,8 @@ gasemitfin(FILE *f) · 140 unmodified lines
141 int sz, i;141 int sz, i;
142 double d;142 double d;
143 143
144 if (gasasm == Gaself)
145 fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n\n");
144 if (!stash)146 if (!stash)
145 return;147 return;
146 fprintf(f, "/* floating point constants */\n.data\n");148 fprintf(f, "/* floating point constants */\n.data\n");
main.c+1−4
@@ -188,11 +188,8 @@ main(int ac, char *av[]) · 187 unmodified lines
188 fclose(inf);188 fclose(inf);
189 } while (++optind < ac);189 } while (++optind < ac);
190 190
191 if (!dbg) {191 if (!dbg)
192 gasemitfin(outf);192 gasemitfin(outf);
193 if (asmmode == Gaself)
194 fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n");
195 }
196 193
197 exit(0);194 exit(0);
198}195}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t