@@ -43,8 +43,8 @@ pub fn symbol_visibility_to_gcc(visibility: SymbolVisibility) -> gccjit::Visibil
4343
4444pub fn global_linkage_to_gcc ( linkage : Linkage ) -> GlobalKind {
4545 match linkage {
46- Linkage :: External => GlobalKind :: Exported ,
47- Linkage :: AvailableExternally => GlobalKind :: Exported ,
46+ Linkage :: External => GlobalKind :: Imported ,
47+ Linkage :: AvailableExternally => GlobalKind :: Imported ,
4848 Linkage :: LinkOnceAny => unimplemented ! ( ) ,
4949 Linkage :: LinkOnceODR => unimplemented ! ( ) ,
5050 Linkage :: WeakAny => unimplemented ! ( ) ,
@@ -154,15 +154,12 @@ pub fn compile_codegen_unit(
154154 match tcx. sess . relocation_model ( ) {
155155 rustc_target:: spec:: RelocModel :: Static => {
156156 context. add_command_line_option ( "-fno-pie" ) ;
157- context. add_driver_option ( "-fno-pie" ) ;
158157 }
159158 rustc_target:: spec:: RelocModel :: Pic => {
160159 context. add_command_line_option ( "-fPIC" ) ;
161- context. add_driver_option ( "-fPIC" ) ;
162160 }
163161 rustc_target:: spec:: RelocModel :: Pie => {
164162 context. add_command_line_option ( "-fPIE" ) ;
165- context. add_driver_option ( "-fPIE" ) ;
166163 }
167164 model => eprintln ! ( "Unsupported relocation model: {:?}" , model) ,
168165 }
0 commit comments