Displaying 4 results from an estimated 4 matches for "gvsym".
Did you mean:
gsym
2011 Jul 20
2
[LLVMdev] MC ARM ELF local common variable alignment.
...e static local variable(internal global in .bc) is
not aligned in ARM ELF(use MC(-filetype=obj)).
Then I found that the alignment information is lost at:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp:316
if (MAI->hasLCOMMDirective()) {
// .lcomm _foo, 42
OutStreamer.EmitLocalCommonSymbol(GVSym, Size);
return;
}
MCStreamer::EmitLocalCommonSymbol have no parameter about alignment.
Is this issue will cause some problem?
The original c code:
===========test-lcomm.c=========
#include <stdio.h>
int main(){
static char a;
static long long b;
static long long c;...
2010 May 06
2
[LLVMdev] Win32 COFF Support
...:)
>
>
I think I can figure out the right thing to do here.
> Also, w.r.t. section handling stuff, there is this fixme in the asmprinter:
>
> } else if (const char *LinkOnce = MAI->getLinkOnceDirective()) {
> // .globl _foo
> OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
> // FIXME: linkonce should be a section attribute, handled by COFF
> Section
> // assignment.
> //
> http://sourceware.org/binutils/docs-2.20/as/Linkonce.html#Linkonce
> // .linkonce discard
> // FIXME: It would be nice to use .link...
2011 Jul 20
0
[LLVMdev] MC ARM ELF local common variable alignment.
...ernal global in .bc) is
> not aligned in ARM ELF(use MC(-filetype=obj)).
> Then I found that the alignment information is lost at:
> lib/CodeGen/AsmPrinter/AsmPrinter.cpp:316
> if (MAI->hasLCOMMDirective()) {
> // .lcomm _foo, 42
> OutStreamer.EmitLocalCommonSymbol(GVSym, Size);
> return;
> }
>
> MCStreamer::EmitLocalCommonSymbol have no parameter about alignment.
>
> Is this issue will cause some problem?
>
>
>
> The original c code:
> ===========test-lcomm.c=========
> #include <stdio.h>
> int main(){
> s...
2010 May 06
0
[LLVMdev] Win32 COFF Support
...> cool!, I will make that change and submit it too.
Thanks!
> Also, w.r.t. section handling stuff, there is this fixme in the asmprinter:
>
> } else if (const char *LinkOnce = MAI->getLinkOnceDirective()) {
> // .globl _foo
> OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
> // FIXME: linkonce should be a section attribute, handled by COFF Section
> // assignment.
> // http://sourceware.org/binutils/docs-2.20/as/Linkonce.html#Linkonce
> // .linkonce discard
> // FIXME: It would be nice to use .linkonce sames...