We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.globl
1 parent eeb6595 commit 0fcc981Copy full SHA for 0fcc981
compiler/rustc_codegen_ssa/src/mir/naked_asm.rs
@@ -109,15 +109,6 @@ impl AsmBinaryFormat {
109
}
110
111
fn linkage_directive(linkage: Linkage) -> Option<&'static str> {
112
- if true {
113
- // this is required. emitting nothing or .weak will emit
114
- //
115
- // > Global is external, but doesn't have external or weak linkage!
116
117
- // and then aborts compilation
118
- return Some(".globl");
119
- }
120
-
121
match linkage {
122
Linkage::External => Some(".globl"),
123
Linkage::WeakAny | Linkage::WeakODR => Some(".weak"),
0 commit comments