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
141141 int sz, i;
142142 double d;
143143
144+ if (gasasm == Gaself)
145+ fprintf(f, ".section .note.GNU-stack,\"\",@progbits\n\n");
144146 if (!stash)
145147 return;
146148 fprintf(f, "/* floating point constants */\n.data\n");
main.c+1−4
@@ -188,11 +188,8 @@ main(int ac, char *av[]) · 187 unmodified lines
188188 fclose(inf);
189189 } while (++optind < ac);
190190
191− if (!dbg) {
191+ if (!dbg)
192192 gasemitfin(outf);
193− if (asmmode == Gaself)
194− fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n");
195− }
196193
197194 exit(0);
198195 }

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