Displaying 5 results from an estimated 5 matches for "gcodeview".
Did you mean:
codeview
2020 Jan 09
3
LLD PDB Lines zero number issue
...Index1;
for (Index1 = 0; Index1 == 0; assembly_fun(), Index1++){
assembly_fun();
}
assembly_fun();
}
$ cat assembly.nasm
DEFAULT REL
SECTION .text
global assembly_fun
assembly_fun:
ret
$ cat makefile_clanglto_Oz
CC_FLAGS= -g -m64 -mcmodel=small -target x86_64-unknown-windows -gcodeview -flto -Oz
CC = /home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang
DLINK_FLAGS = /Machine:X64 /DLL /ENTRY:main /DEBUG:GHASH /lldmap
DLINK = /home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/lld-link
SLINK = /home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gn...
2020 Jan 14
2
LLD PDB Lines zero number issue
...nline the assembly function:
$ cat main.c
void assembly_fun();
int main()
{
int Index1;
for (Index1 = 0; Index1 == 0; assembly_fun(), Index1++){
assembly_fun();
}
assembly_fun();
}
Then link the assembly and c functions together as below:
$ clang -g -m64 -target x86_64-unknown-windows -gcodeview -O1 -c -o main.obj main.c
$ nasm -f win64 -o assembly.obj assembly.nasm
$ lld-link /OUT:main.dll /Machine:X64 /DLL /ENTRY:main /DEBUG:GHASH /lldmap main.obj assembly.obj
Check to see that there are line zeros in the pdb file:
$ llvm-pdbutil" dump -l main.pdb
Lines...
2020 Jan 12
2
LLD PDB Lines zero number issue
...in my side with llvm 9.0.0. Could you give me some more advices? Do I need to use the master LLVM instead of the 9.0.0?
$ make -f makefile_clanglto_Oz
"/home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang" -g -m64 -mcmodel=small -target x86_64-unknown-windows -gcodeview -mllvm -use-unknown-locations=Disable -flto -Oz -c -o main.obj main.c
"nasm" -f win64 -o assembly.obj assembly.nasm
"/home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/llvm-lib" /OUT:main.lib main.obj
"/home/jshi19/llvm/clang+llvm-9.0.0-x86_64-linux-gn...
2020 Jan 09
2
LLD PDB Lines zero number issue
On Thu, 9 Jan 2020, David Blaikie via llvm-dev wrote:
> +rnk who works on COFF debugging things.
>
> My understanding is that this has nothing to do with the linker - but is a
> function of LLVM optimizations creating line zero debug locations. I believe
> rnk & folks have disabled line zero emission for CodeView debug info in some
> manner - perhaps that needs a flag? or
2020 Feb 28
2
Is BlockAddress always correct ?
Hi
I use BlockAddress to get the address of BasicBlock ,
and I use GlobalVariable 's getInitializer()
to pass the address of BasicBlock to the global variable of my own program
and then I print it out.
But , I found that BlockAddress is not always correct.
For example, some function's rsp (stack pointer) or other register is
maintained by caller,
so it would be like: