ref: e0b1a359c5ec97ff904222864d13a7f73f571ca1
parent: 2ceb6eb753269256d560b2af3d5d1cb042723ea2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed May 9 17:40:19 EDT 2018
[ld] Update pass variable in every pass
--- a/ld/main.c
+++ b/ld/main.c
@@ -136,6 +136,7 @@
static void
pass1(int argc, char *argv[])
{
+ pass = 1;
while (*argv)
process(*argv++);
}
@@ -143,6 +144,7 @@
static void
pass2(int argc, char *argv[])
{
+ pass = 2;
while (*argv)
process(*argv++);
}
@@ -179,7 +181,7 @@
if (argv[0][1] == '-') {
--argc, ++argv;
break;
- |
+ }
for (cp = &argv[0][1]; *cp; ++cp) {
switch (*cp) {
case 's':