lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 3061bc1 was e1c0260, checked in by Martin Decky <martin@…>, 13 years ago |
improve loader .interp fix
- suppress the assembler warning by setting @progbits on the .interp section
- suppress the linker warning by putting the .interp section additionally into the "text" segment
- use the same ATSIGN convetion as the kernel makefiles use (for consistency)
|
-
Property mode
set to
100644
|
File size:
487 bytes
|
Line | |
---|
1 | #
|
---|
2 | # Provide a string to be included in a special DT_INTERP header, even though
|
---|
3 | # this is a statically-linked executable. This will mark the binary as
|
---|
4 | # the program loader.
|
---|
5 | #
|
---|
6 |
|
---|
7 | #if ((defined(UARCH_abs32le)) && (defined(COMPILER_gcc_cross)) \
|
---|
8 | && (defined(CROSS_TARGET_arm32)))
|
---|
9 | #define ATSIGN(arg) % ## arg
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifdef UARCH_arm32
|
---|
13 | #define ATSIGN(arg) % ## arg
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #ifndef ATSIGN
|
---|
17 | #define ATSIGN(arg) @ ## arg
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | .section .interp, "a", ATSIGN(progbits)
|
---|
21 | .string "kernel"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.