• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

inlined_f()1 static inline int inlined_f() {
2   volatile int x = 2;
3   return x;
4 }
5 
main()6 int main() {
7   return inlined_f();
8 }
9 
10 // Build instructions:
11 // $ mkdir /tmp/dbginfo
12 // $ cp fission-ranges.cc /tmp/dbginfo/
13 // $ cd /tmp/dbginfo
14 // $ gcc -gsplit-dwarf -O2 -fPIC fission-ranges.cc -c -o obj2.o
15 // $ clang -gsplit-dwarf -O2 -fsanitize=address -fPIC -Dmain=foo fission-ranges.cc -c -o obj1.o
16 // $ gcc obj1.o obj2.o -shared -o <output>
17 // $ objcopy --remove-section=.debug_aranges <output>
18