Rev 1395 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1395 | Rev 1401 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | SECTIONS { |
43 | SECTIONS { |
44 | .boot 0x0000000010000000: AT (0) { |
44 | .boot 0x0000000010000000: AT (0) { |
45 | *(BOOTSTRAP); |
45 | *(BOOTSTRAP); |
46 | *(REALMODE); |
46 | *(REALMODE); |
47 | *(.text); |
47 | *(.text); |
- | 48 | *(.toc); |
|
48 | 49 | ||
- | 50 | *(.opd); |
|
49 | *(.rodata); |
51 | *(.rodata); |
50 | *(.rodata.*); |
52 | *(.rodata.*); |
51 | *(.data); /* initialized data */ |
53 | *(.data); /* initialized data */ |
52 | *(.sdata); |
54 | *(.sdata); |
53 | *(.sdata2); |
55 | *(.sdata2); |
Line 89... | Line 91... | ||
89 | 91 | ||
90 | #define ${MACRO}_START ((void *) &${SYMBOL}_start) |
92 | #define ${MACRO}_START ((void *) &${SYMBOL}_start) |
91 | #define ${MACRO}_END ((void *) &${SYMBOL}_end) |
93 | #define ${MACRO}_END ((void *) &${SYMBOL}_end) |
92 | #define ${MACRO}_SIZE ((unsigned long) ${MACRO}_END - (unsigned long) ${MACRO}_START)" >> "$HEADER" |
94 | #define ${MACRO}_SIZE ((unsigned long) ${MACRO}_END - (unsigned long) ${MACRO}_START)" >> "$HEADER" |
93 | 95 | ||
94 | "$OBJCOPY" -I binary -O elf32-powerpc -B powerpc:common --rename-section ".data=.${BASENAME}_image" "$TASK" "$OBJECT" |
96 | "$OBJCOPY" -I binary -O elf64-powerpc -B powerpc:common64 --rename-section ".data=.${BASENAME}_image" "$TASK" "$OBJECT" |
95 | 97 | ||
96 | DATA="${DATA} |
98 | DATA="${DATA} |
97 | components[$COUNT].name = \"${BASENAME}\"; |
99 | components[$COUNT].name = \"${BASENAME}\"; |
98 | components[$COUNT].start = ${MACRO}_START; |
100 | components[$COUNT].start = ${MACRO}_START; |
99 | components[$COUNT].end = ${MACRO}_END; |
101 | components[$COUNT].end = ${MACRO}_END; |
100 | components[$COUNT].size = ${MACRO}_SIZE;"; |
102 | components[$COUNT].size = ${MACRO}_SIZE;"; |
101 | COUNT="`expr "$COUNT" + 1`" |
103 | COUNT="`expr "$COUNT" + 1`" |
102 | done |
104 | done |
103 | 105 | ||
104 | echo ' } |
106 | echo '} |
- | 107 | ||
- | 108 | /DISCARD/ : { |
|
- | 109 | *(*); |
|
- | 110 | } |
|
105 | }' >> "$LINK" |
111 | }' >> "$LINK" |
106 | 112 | ||
107 | echo " |
113 | echo " |
108 | #define COMPONENTS $COUNT |
114 | #define COMPONENTS $COUNT |
109 | 115 |