From fd29e78a6864b1354fa628a2e1c86403f42edb1c Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 17 Aug 2013 19:24:58 +0000 Subject: libc: Access _logname_valid more efficiently. The variable _logname_valid is not exported via the version script; therefore, change C and i386/amd64 assembler code to remove indirection (which allowed interposition). This makes the code slightly smaller and faster. Also, remove #define PIC_GOT from i386/amd64 in !PIC mode. Without PIC, there is no place containing the address of each variable, so there is no possible definition for PIC_GOT. --- sys/amd64/include/asm.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h index 7efd642..078da03 100644 --- a/sys/amd64/include/asm.h +++ b/sys/amd64/include/asm.h @@ -43,7 +43,6 @@ #define PIC_GOT(x) x@GOTPCREL(%rip) #else #define PIC_PLT(x) x -#define PIC_GOT(x) x #endif /* -- cgit v1.1