aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs
Commit message (Collapse)AuthorAgeFilesLines
* rename tools/lzma to tools/lzma-old (preparation for adding a new lzma version)Felix Fietkau2009-05-041-8/+2
| | | | SVN-Revision: 15595
* build system refactoring in preparation for allowing packages to do ↵Felix Fietkau2009-02-221-7/+7
| | | | | | host-build steps SVN-Revision: 14610
* tools: refresh patches for tools lua, mtd-utils, ipkg-utils, squashfs, lzma, ↵Hauke Mehrtens2009-02-211-2/+2
| | | | | | and autoconf are touched SVN-Revision: 14589
* added unsquashfs-lzma, usefull for debugging of existing fs imagesRalph Hempel2008-06-162-5/+10
| | | | SVN-Revision: 11496
* build system cleanup/restructuring as described in ↵Felix Fietkau2007-08-071-5/+6
| | | | | | http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html SVN-Revision: 8362
* finally move buildroot-ng to trunkFelix Fietkau2016-03-202-0/+59
bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh
[ $# -lt 4 -o -z "$1" -o -z "$2" -o -z "$3" -o -z "$4" ] && {
	echo "Usage: $0 <cross> <reference> <pic .a> <destination>"
	exit 1
}

cross="$1"; shift
ref="$1"; shift
pic="$1"; shift
dest="$1"; shift

SYMBOLS="$(${cross}nm "$ref" | grep -E '........ [TW] ' | awk '$3 {printf "-u%s ", $3}')"
set -x
${cross}gcc -nostdlib -nostartfiles -shared -Wl,--gc-sections -o "$dest" $SYMBOLS "$pic" "$@"