Add ASAN guards to some asm data structures

This commit is contained in:
Justine Tunney 2022-03-18 12:56:10 -07:00
parent 6c2fd9ecc6
commit 390e22a8c6
15 changed files with 31 additions and 4 deletions

View file

@ -29,6 +29,7 @@
.hidden __bench_start,__bench_end
.byte 0
.align __SIZEOF_POINTER__
.underrun
__bench_start:
.previous/*
...
@ -37,4 +38,5 @@ __bench_start:
*/.section .piro.relo.sort.bench.3,"aw",@nobits
__bench_end:
.quad 0
.overrun
.previous

View file

@ -20,11 +20,12 @@
.rodata
// Nontrivial NUL-terminated string test vector.
.align 1
.underrun
kBlocktronics:
0: .incbin "libc/testlib/blocktronics.txt"
1: .byte 0
.endobj kBlocktronics,globl
.overrun
.align 8
kBlocktronicsSize:

View file

@ -28,6 +28,7 @@
.hidden __combo_start,__combo_end
.byte 0
.align __SIZEOF_POINTER__
.underrun
__combo_start:
.previous/*
...
@ -36,4 +37,5 @@ __combo_start:
*/.section .piro.relo.sort.combo.3,"aw",@nobits
__combo_end:
.quad 0
.overrun
.previous

View file

@ -28,6 +28,7 @@
.hidden __fixture_start,__fixture_end
.byte 0
.align __SIZEOF_POINTER__
.underrun
__fixture_start:
.previous/*
...
@ -36,4 +37,5 @@ __fixture_start:
*/.section .piro.relo.sort.fixture.3,"aw",@nobits
__fixture_end:
.quad 0
.overrun
.previous

View file

@ -20,11 +20,12 @@
.rodata
// Nontrivial NUL-terminated string test vector.
.align 1
.underrun
kHyperion:
0: .incbin "libc/testlib/hyperion.txt"
1: .byte 0
.endobj kHyperion,globl
.overrun
.align 8
kHyperionSize:

View file

@ -20,11 +20,12 @@
.rodata
// Nontrivial NUL-terminated string test vector.
.align 1
.underrun
kMoby:
0: .incbin "libc/testlib/moby.txt"
1: .byte 0
.endobj kMoby,globl
.overrun
.align 8
kMobySize:

View file

@ -28,6 +28,7 @@
.hidden __testcase_start,__testcase_end
.byte 0
.align __SIZEOF_POINTER__
.underrun
__testcase_start:
.previous/*
...
@ -36,4 +37,5 @@ __testcase_start:
*/.section .piro.relo.sort.testcase.3,"aw",@nobits
__testcase_end:
.quad 0
.overrun
.previous