1. $srcdir/test-subr.sh 2 3# - s.c 4# int main_argc_remaining; 5# 6# int main_argc() { 7# int result = 0; 8# if (main_argc_remaining) 9# result = 0; 10# 11# return 0; 12# } 13# 14# gcc -gdwarf-5 -c -o testfile-dwarf5-fat-lto.o -flto -O s.c -g -ffat-lto-objects 15 16testfiles testfile-dwarf5-fat-lto.o 17testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=loc --debug-dump=ranges -N -U testfile-dwarf5-fat-lto.o << EOF 18 19DWARF section [26] '.debug_loclists' at offset 0x7db: 20Table at Offset 0x0: 21 22 Length: 24 23 DWARF version: 5 24 Address size: 8 25 Segment size: 0 26 Offset entries: 0 27 CU [ c] base: 000000000000000000 28 29 Offset: c, Index: 0 30 view pair 2, 3 31 32 Offset: e, Index: 2 33 start_length 0x0, 0 34 [ 0] lit0 35 [ 1] stack_value 36 end_of_list 37 38 39DWARF section [30] '.debug_rnglists' at offset 0x827: 40Table at Offset 0x0: 41 42 Length: 19 43 DWARF version: 5 44 Address size: 8 45 Segment size: 0 46 Offset entries: 0 47 CU [ c] base: 000000000000000000 48 49 Offset: c, Index: 0 50 start_length 0x0, 8 51 end_of_list 52 53EOF 54