@@ -43,8 +43,8 @@ pub fn symbol_visibility_to_gcc(visibility: SymbolVisibility) -> gccjit::Visibil
43
43
44
44
pub fn global_linkage_to_gcc ( linkage : Linkage ) -> GlobalKind {
45
45
match linkage {
46
- Linkage :: External => GlobalKind :: Exported ,
47
- Linkage :: AvailableExternally => GlobalKind :: Exported ,
46
+ Linkage :: External => GlobalKind :: Imported ,
47
+ Linkage :: AvailableExternally => GlobalKind :: Imported ,
48
48
Linkage :: LinkOnceAny => unimplemented ! ( ) ,
49
49
Linkage :: LinkOnceODR => unimplemented ! ( ) ,
50
50
Linkage :: WeakAny => unimplemented ! ( ) ,
@@ -154,15 +154,12 @@ pub fn compile_codegen_unit(
154
154
match tcx. sess . relocation_model ( ) {
155
155
rustc_target:: spec:: RelocModel :: Static => {
156
156
context. add_command_line_option ( "-fno-pie" ) ;
157
- context. add_driver_option ( "-fno-pie" ) ;
158
157
}
159
158
rustc_target:: spec:: RelocModel :: Pic => {
160
159
context. add_command_line_option ( "-fPIC" ) ;
161
- context. add_driver_option ( "-fPIC" ) ;
162
160
}
163
161
rustc_target:: spec:: RelocModel :: Pie => {
164
162
context. add_command_line_option ( "-fPIE" ) ;
165
- context. add_driver_option ( "-fPIE" ) ;
166
163
}
167
164
model => eprintln ! ( "Unsupported relocation model: {:?}" , model) ,
168
165
}
0 commit comments