Displaying 5 results from an estimated 5 matches for "bss_end".
2013 Sep 24
1
[LLVMdev] possible dwarf regression
In compiling perlbench in SPEC2006 today, I get the following asm code:
.4byte ($debug_loc2280)
.4byte 1
.4byte PerlIO_fd_refcnt
$set1406 = ($.bss_end)-PerlIO_fd_refcnt
.4byte ($set1406)
.4byte PerlIO_perlio
$set1407 = ($.data_end)-PerlIO_perlio
.4byte ($set1407)
.4byte ($func_begin0)
$set1408 = ($.text_end)-($func_begin0)
.4byte ($set1408)
Gas complains:
perlio.s: Assembler messages:
perlio.s:43549: Err...
2013 Sep 21
2
[LLVMdev] Debug info failing in assembler.
...64ecc -g -o %t %s && %x86_64run %t
int comm;
int main()
{
comm = 6;
}
This fails on all but the x86 processors. The typical failure looks like
this:
...
.type comm, at object # @comm
.comm comm,4,4
.cfi_sections .debug_frame
.bss
.L.bss_end:
...
.L.debug_abbrev_end:
.section .debug_aranges,"", at progbits
.long 36 # Length of ARange Set
.short 2 # DWARF Arange version number
.long .L.debug_info_begin0 # Offset Into Debug Info Sectio...
2013 Sep 21
0
[LLVMdev] Debug info failing in assembler.
...int main()
> {
> comm = 6;
> }
>
> This fails on all but the x86 processors. The typical failure looks like
> this:
> ...
> .type comm, at object # @comm
> .comm comm,4,4
> .cfi_sections .debug_frame
> .bss
> .L.bss_end:
> ...
> .L.debug_abbrev_end:
> .section .debug_aranges,"", at progbits
> .long 36 # Length of ARange Set
> .short 2 # DWARF Arange version number
> .long .L.debug_info_begin0 # Off...
2013 Sep 22
1
[LLVMdev] Debug info failing in assembler.
...int main()
> {
> comm = 6;
> }
>
> This fails on all but the x86 processors. The typical failure looks
> like this:
> ...
> .type comm, at object # @comm
> .comm comm,4,4
> .cfi_sections .debug_frame
> .bss
> .L.bss_end:
> ...
> .L.debug_abbrev_end:
> .section .debug_aranges,"", at progbits
> .long 36 # Length of ARange Set
> .short 2 # DWARF Arange version number
> .long .L.debug_info_begin0 # Off...
2015 Aug 28
7
Clearing the BSS section
...tion that clears the BSS section on an Cortex-M4 embedded system.
The LLVM (version 3.7.0rc3) code I had wrote is :
;------------
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7em-none--eabi"
@__bss_start = external global i32
@__bss_end = external global i32
define void @clearBSS () nounwind {
entry:
br label %bssLoopTest
bssLoopTest:
%p = phi i32* [@__bss_start, %entry], [%p.next, %bssLoop]
%completed = icmp eq i32* %p, @__bss_end
br i1 %completed, label %clearCompleted, label %bssLoop
bssLoop:
store i32 0, i32*...