more ices
[ICEs.git] / bfin-gc-sections / reduce-ice
CommitLineData
45516216 1#!/bin/bash
2#
3# Run like:
4# multidelta -level=# ./reduce-ice $FILE
5# levels: 0 0 1 1 2 2 10 10
81f80d8c 6#
45516216 7
8FILE=asterisk.c
9CC=/usr/local/src/blackfin/toolchains/current/uclinux/bfin-uclinux-gcc
10CFLAGS="-mfdpic -ffunction-sections -Wl,--gc-sections"
11STRING="LINKER BUG: .rofixup section size mismatch"
12
13$CC -lm -pipe $CFLAGS $FILE 2>&1 | grep "$STRING"