You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.data :
{
/* Writable data segment (.data segment) */
*(.data .data.*)
*(.gnu.linkonce.d.*)
/* Have _gp point to middle of sdata/sbss to maximize displacement range */
. = ALIGN(8);
PROVIDE( _gp = ABSOLUTE(.) + 0x800);
可以同步下.
The text was updated successfully, but these errors were encountered:
RISC V的全局指针在linker里面是一个特殊的字符,应该为__global_pointer$,这个是linker决定的,目前linker脚本给的是_gp,此指针主要用于优化全局变量的操作;
这里crt.S
和kendryte.ld
可以同步下.
The text was updated successfully, but these errors were encountered: