Fixed -static linking on x86_64 Linux
This commit is contained in:
		
							parent
							
								
									51f6e52dd3
								
							
						
					
					
						commit
						337dc84b57
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -625,11 +625,7 @@ static void gcall_or_jmp(int is_jmp) | |||
|     if ((vtop->r & (VT_VALMASK | VT_LVAL)) == VT_CONST && | ||||
| 	((vtop->r & VT_SYM) && (vtop->c.i-4) == (int)(vtop->c.i-4))) { | ||||
|         /* constant symbolic case -> simple relocation */ | ||||
| #ifdef TCC_TARGET_PE | ||||
| 	greloca(cur_text_section, vtop->sym, ind + 1, R_X86_64_PC32, (int)(vtop->c.i-4)); | ||||
| #else | ||||
| 	greloca(cur_text_section, vtop->sym, ind + 1, R_X86_64_PLT32, (int)(vtop->c.i-4)); | ||||
| #endif | ||||
|         oad(0xe8 + is_jmp, 0); /* call/jmp im */ | ||||
|     } else { | ||||
|         /* otherwise, indirect call */ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue