Displaying 7 results from an estimated 7 matches similar to: "[LLVMdev] problem with __thread on linux/x86_64"
2010 Nov 11
0
[LLVMdev] problem with __thread on linux/x86_64
On 9 November 2010 16:42, Jay Foad <jay.foad at gmail.com> wrote:
> Hi,
>
> On Ubuntu Linux/x86_64, I get:
>
> $ cat t.c
> #include <stdio.h>
> __thread int i = 7;
> int main() { printf("%d\n", i); }
> $ clang -o t t.c
> $ ./t
> Segmentation fault
>
> (gdb) disas
> Dump of assembler code for function main:
> 0x0000000000400560
2010 Nov 11
2
[LLVMdev] problem with __thread on linux/x86_64
On 11 November 2010 12:49, Jay Foad <jay.foad at gmail.com> wrote:
> Delving a bit deeper, the difference seems to be that symbol "i" in
> the assembler source:
>
> .type i, at object # @i
> .section .tdata,"awT", at progbits
> .globl i
> .align 4
> i:
> .long 7
2010 Nov 11
0
[LLVMdev] problem with __thread on linux/x86_64
On 11 November 2010 13:22, Jay Foad <jay.foad at gmail.com> wrote:
> On 11 November 2010 12:49, Jay Foad <jay.foad at gmail.com> wrote:
>> Delving a bit deeper, the difference seems to be that symbol "i" in
>> the assembler source:
>>
>> .type i, at object # @i
>> .section .tdata,"awT", at
2010 Feb 12
2
[LLVMdev] [PATCH] Fix off-by-one errors in the doxygen documentation
Some doxygen annotations are attached to the wrong entry, which can be
misleading. This patch fixes the mistake everywhere I could find it.
---
include/llvm/InstrTypes.h | 54 ++++++++++++++++++++--------------------
include/llvm/MC/MCDirectives.h | 42 +++++++++++++++---------------
include/llvm/Pass.h | 10 +++---
3 files changed, 53 insertions(+), 53 deletions(-)
diff
2005 Jan 06
0
[PATCH] ELF headers
This is a patch that I've had kicking around that I never sent in. With
it applied I can compile the module programs from module-init-tools:
diff -uNr klibc-0.178/include/sys/elf32.h klibc-0.178-fogo/include/sys/elf32.h
--- klibc-0.178/include/sys/elf32.h 2004-01-30 14:40:51.000000000 -0700
+++ klibc-0.178-fogo/include/sys/elf32.h 2004-09-20 09:15:58.000000000 -0600
@@ -7,6 +7,10 @@
2010 Nov 11
1
[LLVMdev] problem with __thread on linux/x86_64
> I still think clang's assembler needs to do something like this, if it
> wants to be able to assembler .s files generated by GCC.
Working on it.
> Jay.
Cheers,
Rafael
2016 May 03
4
Linux/ARM: Segfault issue when we build clang sources including __thread variable using -O2 flag
A few days ago, I tried to change the optimization flag from -O0 to -O2 to
speed up the execution of the application on Ubuntu/ARM 14.04 32 bit.
When I compiled the source code with -O2 flag instead of -O0 flag, I could
not run the application normally by getting always the segmentation fault.
Here is debugging information with GDB command in case of that. As you can
see, we could not execute