bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27050] [2.36 Regression] ld -no-pie not recognized anymore


From: hjl.tools at gmail dot com
Subject: [Bug ld/27050] [2.36 Regression] ld -no-pie not recognized anymore
Date: Fri, 11 Dec 2020 13:48:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27050

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
longind may not be set by getopt_long_only:

diff --git a/ld/lexsup.c b/ld/lexsup.c
index 0d10bc6fba..60e3f7d8b5 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -735,6 +735,7 @@ parse_args (unsigned argc, char **argv)
       /* getopt_long_only is like getopt_long, but '-' as well as '--'
    can indicate a long option.  */
       opterr = 0;
+      longind = -1;
       last_optind = optind;
       optc = getopt_long_only (argc, argv, shortopts, longopts, &longind);
       if (optc == '?')

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]