Displaying 9 results from an estimated 9 matches for "__user_label_prefix__".
2019 Feb 18
2
lld-link fails to link 32bits assembly functions but 64bits pass
...orated with an underscore prefix. So you'd need to update
> your nasm source file to define the symbol _Foo instead of Foo. (Most
> assembly files use some sort of macro for wrapping this detail.)
Yes, my assembly files do use prefix macro (ASM_PFX) for wrapping the underscore. We use the __USER_LABEL_PREFIX__ to control the prefix macro expand to be "_" as below. I find the __USER_LABEL_PREFIX__ has been predefined by clang-cl, but it is defined as nothing. That is why my prefix macro expands to be nothing. Do you know why the clang-cl predefines the __USER_LABEL_PREFIX__ as nothing?
#ifndef...
2019 Feb 18
2
lld-link fails to link 32bits assembly functions but 64bits pass
Hi Rui, Peter,
You know I'm enabling the "clang-cl + lld-link" toolchain for Uefi firmware. I meet a problem that the lld-link fails to link 32bits assembly functions, but can link 64bits assembly functions successfully. I need your suggestion.
Below is an example to show my problem in linux. The example has two only source files: main.c and foo.nasm.
$ cat main.c
void Foo (void);
2013 Oct 23
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...o i wanna to know how to use this directive
> to detect if it's target to x86/win32. if that's true, then I can control
> which code to be generate.
>>
I don't think there is anything in plain .s files. In .S files you can
use any of the C predefined macros, in particular,
__USER_LABEL_PREFIX__ might be what you want.
Cheers,
Rafael
2013 Oct 23
1
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...ctive
> > to detect if it's target to x86/win32. if that's true, then I can control
> > which code to be generate.
> >>
>
>
> I don't think there is anything in plain .s files. In .S files you can
> use any of the C predefined macros, in particular,
> __USER_LABEL_PREFIX__ might be what you want.
>
Thanks, Rafael, this is acceptable if GCC/binutils also support for this, I
want to keep compatible with GCC/binutils,
besides, is there any command option to force use C predefined macros?
because use .S is too tricky.
>
> Cheers,
> Rafael
>
--...
2013 Oct 23
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
2013/10/23 Reid Kleckner <rnk at google.com>
> I don't think we should attempt to mangle symbols declared in assembly
> source files. If you're writing assembly, you will need to handle ABI
>
Sorry for the unclear statements, I didn't means the assembler to mangle
symbols declared in assembly source files, I means directly use assembly
directive to choice which symbol
2009 Aug 18
0
[LLVMdev] Build issues on Solaris
Hello, Nathan
> or if it should be a configure test, which might be safer. Are there
> any x86 platforms (other than apple) that don't need PLT-indirect calls?
Yes, mingw. However just tweaking the define is not enough - we're not
loading address of GOT into ebx before the call (on 32 bit ABIs) thus
the call will be to nowhere.
--
With best regards, Anton Korobeynikov
Faculty of
2009 Aug 25
2
[LLVMdev] Build issues on Solaris
..."llvm/Function.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Config/config.h"
#include <cstdlib>
#include <cstring>
using namespace llvm;
@@ -52,7 +53,7 @@
#define ASMPREFIX GETASMPREFIX(__USER_LABEL_PREFIX__)
// Check if building with -fPIC
-#if defined(__PIC__) && __PIC__ && defined(__linux__)
+#if defined(__PIC__) && __PIC__ && defined(NEED_PLT_CALL)
#define ASMCALLSUFFIX "@PLT"
#else
#define ASMCALLSUFFIX
Index: autoconf/configure.ac
===============...
2005 Sep 19
1
ssh hangs or gives Segmentation fault
...__LDBL_EPSILON__ 1.08420217248550443401e-19L
#define __SHRT_MAX__ 32767
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __linux 1
#define __unix 1
#define __LDBL_MAX_EXP__ 16384
#define __LONG_MAX__ 2147483647L
#define __linux__ 1
#define __SCHAR_MAX__ 127
#define __DBL_DIG__ 15
#define __USER_LABEL_PREFIX__
#define linux 1
#define __tune_pentium__ 1
#define __STDC_HOSTED__ 1
#define __LDBL_MANT_DIG__ 64
#define __FLT_EPSILON__ 1.19209290e-7F
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
#define __WCHAR_TYPE__ long int
#define __FLT_DIG__ 6
#define __FLT_MAX_10_EXP__ 38
#define __INT_MAX__ 214748...
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
Hi all,
I've encountered a couple of minor build issues on Solaris that
have crept in since 2.5, fixes below:
1. In lib/Target/X86/X86JITInfo.cpp, there is:
// Check if building with -fPIC
#if defined(__PIC__) && __PIC__ && defined(__linux__)
#define ASMCALLSUFFIX "@PLT"
#else
#define ASMCALLSUFFIX
#endif
Which causes a link failure due to the non-PLT