Subversion Repositories HelenOS-historic

Rev

Rev 1685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1685 Rev 1747
Line 28... Line 28...
28
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
#
29
#
30
 
30
 
31
[ "$#" -lt 1 ] && exit 1
31
[ "$#" -lt 1 ] && exit 1
32
 
32
 
-
 
33
case "$1" in
-
 
34
	"mips")
-
 
35
		BFD="binary"
-
 
36
		;;
-
 
37
	"ecoff")
-
 
38
		BFD="ecoff-littlemips"
-
 
39
		;;
-
 
40
	*)
-
 
41
		echo "Undefined image format" >&1
-
 
42
		exit 1
-
 
43
		;;
-
 
44
esac
-
 
45
 
33
OBJCOPY="$1"
46
OBJCOPY="$2"
34
LINK="_link.ld"
47
LINK="_link.ld"
35
HEADER="_components.h"
48
HEADER="_components.h"
36
 
49
 
37
shift
50
shift 2
38
 
51
 
39
echo 'OUTPUT_FORMAT("binary")
52
echo "OUTPUT_FORMAT(\"${BFD}\")
40
ENTRY(start)
53
ENTRY(start)
41
 
54
 
42
SECTIONS {
55
SECTIONS {
43
	.boot 0xbfc00000: AT (0) {
56
	.boot 0xbfc00000: AT (0) {
44
		*(BOOTSTRAP);
57
		*(BOOTSTRAP);
Line 51... Line 64...
51
		*(.sdata2);
64
		*(.sdata2);
52
		*(.sbss);
65
		*(.sbss);
53
		*(.scommon);
66
		*(.scommon);
54
		*(.bss);		/* uninitialized static variables */	
67
		*(.bss);		/* uninitialized static variables */	
55
		*(COMMON); 		/* global variables */
68
		*(COMMON); 		/* global variables */
56
		*(.reginfo);' > "$LINK"
69
		*(.reginfo);" > "$LINK"
57
 
70
 
58
echo '#ifndef ___COMPONENTS_H__
71
echo '#ifndef ___COMPONENTS_H__
59
#define ___COMPONENTS_H__
72
#define ___COMPONENTS_H__
60
 
73
 
61
typedef struct {
74
typedef struct {