#!/bin/bash

#PREF=../crosstools/opt/crosstool/i686-unknown-linux-gnu/gcc-4.4.3-glibc-2.11.1/bin/i686-unknown-linux-gnu-
PREF=/opt/crosstool64/i686-unknown-linux-gnu/gcc-4.4.3-glibc-2.11.1/bin/i686-unknown-linux-gnu-
${PREF}gcc -g -O0 -o dbg_info_test dbg_info_test.c
${PREF}objcopy --compress-debug-sections --only-keep-debug dbg_info_test dbg_info_test.dbg
${PREF}strip --strip-all dbg_info_test
${PREF}objcopy --add-gnu-debuglink=dbg_info_test.dbg dbg_info_test

 
