I'm tryng to define some section with a string by Linker. But Linker outputs "linker expression evaluates to undefined when constant expected".
To do this, I use udata8 type. Is there any other type to definition section? Are there any other types besides udata8, udata16, udata32, sdata8, sdata16, sdata32 for Linker?
Code example:
Display Spoiler
Display All
To do this, I use udata8 type. Is there any other type to definition section? Are there any other types besides udata8, udata16, udata32, sdata8, sdata16, sdata32 for Linker?
Code example:
Source Code
- define section .data.mix {
- udata8 "Some string", udata8 'c', udata8 0x00, udata16 0x0000};
- define block Mix{
- section .data.mix
- };
- define region MixBlock = [start(RAM)+4k size (26*1)];
- place in MixBlock {block Mix};
- place in RAM1 { section .RAM1, section .RAM1.* };
- //
- // RAM Placement
- //
- place at start of RAM { block vectors_ram };
- place in RAM {// block TTable,
- section .non_init, section .non_init.*,
- block tls
- };
- place in RAM with auto order { section .fast, section .fast.*,
- section .data, section .data.*,
- section .bss, section .bss.* // Catch-all for zero-initialized data sections (e.g. .bss)
- };
- place in RAM { block heap}; // Heap reserved block
- place at end of RAM with fixed order { block stack_process,
- block stack };