.text : { .= ALIGN(4);*(EXCLUDE_FILE(*test.o) .text)/*.text sections (code)*/*(EXCLUDE_FILE(*test.o) .text*)/*.text* sections (code)*/*(.rodata)/*.rodata sections (constants, strings, etc.)*/*(.rodata*)/*.rodata* sections (constants, strings, etc.)*/*(.glue_7)/*...
*(.fini_array EXCLUDE_FILE(*crtend?.o *crtend.o *crtbegin?.o *crtbegin.o) .dtors) .fini_array 0x0000000000600e18 0x8 /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o [!provide] PROVIDE (__fini_array_end, .) .ctors *crtbegin.o(.ctors) *crtbegin?.o(.ctors) *(EXCLUDE_FILE(*crtend?
其内容如下,这里是告诉 FreeMarker 不要将 critical_code.o 里的 RO data 段放进主 RO data 段里一起处理。 *(EXCLUDE_FILE(*critical_code.o) .rodata) *(EXCLUDE_FILE(*critical_code.o) .rodata.*) *(EXCLUDE_FILE(*critical_code.o) .constdata) *(EXCLUDE_FILE(*critical_code.o) .constdata.*...
其内容如下,这里是告诉 FreeMarker 不要将 critical_code.o 里的 RO data 段放进主 RO data 段里一起处理。 *(EXCLUDE_FILE(*critical_code.o) .rodata) *(EXCLUDE_FILE(*critical_code.o) .rodata.*) *(EXCLUDE_FILE(*critical_code.o) .constdata) *(EXCLUDE_FILE(*critical_code.o) .constdata.*...
EXCLUDE_FILE (*文件名.o) *(.text) 5. 一些内建函数 ABSOLUTE(exp) 返回表达式exp的绝对(非可重分配的,而不是非负)值。主要用来在段定义内为符号分配一个绝对值,通常段定义内的符号值都是相对段地址的。 ADDR(section) 返回名为’section’的段的地址(VMA)。你的脚本必须事先未该段定义了位置。在下面...
EXCLUDE_FILE (文件名.o)(.text) 一些内建函数 ABSOLUTE(exp) 返回表达式exp的绝对(非可重分配的,而不是非负)值。主要用来在段定义内为符号分配一个绝对值,通常段定义内的符号值都是相对段地址的。 ADDR(section) 返回名为’section’的段的地址(VMA)。你的脚本必须事先未该段定义了位置。在下面的例子里,...
(*(EXCLUDE_FILE (*a.o *b.o) .text)) 表示除了 a.o和 b.o文件外的所有输入文件的 .text段 *fill* 指填充的意思,即在某两个段之间的0值填充,以达到地址值对齐的目的 eg: *fill* 0x0800575a 0x2 指从地址0x0800575a往后补0x2个0值,即地址0x0800575a和0x0800575b中的内容为0 ...
一种简易的做法是首先设置与这些 Makefile 变量同名的环境变量并将它们 export 为全局,然后运行 configure 脚本,大多数 configure 脚本会使用这同名的环境变量代替 Makefile 中的值。但是少数 configure 脚本并不这样做(比如GCC-3.4.6和Binutils-2.16.1的脚本就不传递LDFLAGS),你必须手动编辑生成的 Makefile ...
the crtend.o file until after the sorted ctors. The .ctor section from the crtend file contains the end of ctors marker and it must be last */ KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors)) KEEP (*(SORT(.ctors.*))) ...
the crtend.o file until after the sorted ctors. The .ctor section from the crtend file contains the end of ctors marker and it must be last */ KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors)) KEEP (*(SORT(.ctors.*))) ...