Subversion Repositories HelenOS-historic

Rev

Rev 1771 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1771 Rev 1773
Line 38... Line 38...
38
 
38
 
39
echo 'OUTPUT_FORMAT("elf64-sparc")
39
echo 'OUTPUT_FORMAT("elf64-sparc")
40
ENTRY(start)
40
ENTRY(start)
41
 
41
 
42
SECTIONS {
42
SECTIONS {
43
	.boot 0x4000: AT (0) {
43
	.boot 0x4000: AT (0x4000) {
44
		*(BOOTSTRAP);
44
		*(BOOTSTRAP);
45
		*(.text);
45
		*(.text);
46
		*(.rodata);
46
		*(.rodata);
47
		*(.rodata.*);
47
		*(.rodata.*);
48
		*(.data);               /* initialized data */
48
		*(.data);               /* initialized data */
Line 72... Line 72...
72
	SYMBOL="`echo "_binary_$TASK" | tr "./" "__"`"
72
	SYMBOL="`echo "_binary_$TASK" | tr "./" "__"`"
73
	MACRO="`echo "$BASENAME" | tr [:lower:] [:upper:]`"
73
	MACRO="`echo "$BASENAME" | tr [:lower:] [:upper:]`"
74
	echo "$TASK -> $OBJECT"
74
	echo "$TASK -> $OBJECT"
75
	
75
	
76
	echo "
76
	echo "
77
		. = ALIGN(8192);
-
 
78
		*(.${BASENAME}_image);" >> "$LINK"
77
		*(.${BASENAME}_image);" >> "$LINK"
79
	
78
	
80
	echo "
79
	echo "
81
extern int ${SYMBOL}_start;
80
extern int ${SYMBOL}_start;
82
extern int ${SYMBOL}_end;
81
extern int ${SYMBOL}_end;
Line 94... Line 93...
94
	components[$COUNT].size = ${MACRO}_SIZE;";
93
	components[$COUNT].size = ${MACRO}_SIZE;";
95
	COUNT="`expr "$COUNT" + 1`"
94
	COUNT="`expr "$COUNT" + 1`"
96
done
95
done
97
 
96
 
98
echo '	}
97
echo '	}
-
 
98
	/DISCARD/ : {
-
 
99
		*(.comment);
-
 
100
		*(.note*);
-
 
101
	}
99
}' >> "$LINK"
102
}' >> "$LINK"
100
 
103
 
101
echo "
104
echo "
102
#define COMPONENTS $COUNT
105
#define COMPONENTS $COUNT
103
 
106