[llvm-bugs] [Bug 21357] clang driver doesn't handle -r

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 7 01:30:37 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=21357

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |i at maskray.me

--- Comment #6 from Fangrui Song <i at maskray.me> ---
Fixed by D10279/r247351

In 2015 (r227088), Joerg acknowledged this misfeature (I agree this is a
misfeature of gcc)...

--- a/test/Driver/netbsd.c
+++ b/test/Driver/netbsd.c
@@ -19,6 +19,9 @@
 // RUN: %clang -no-canonical-prefixes -target armeb--netbsd-eabi \
 // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
 // RUN: | FileCheck -check-prefix=ARMEB %s
+// RUN: %clang -r -no-canonical-prefixes -target armeb--netbsd-eabi \
+// RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
+// RUN: | FileCheck -check-prefix=ARMEB-R %s

https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options

> -r
>   Produce a relocatable object as output. This is also known as partial linking.

*** This bug has been marked as a duplicate of bug 12587 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190707/af21196d/attachment.html>


More information about the llvm-bugs mailing list