Skip to content

Commit 370700c

Browse files
committed
link.x: Add .sdata2 sections
Clang doesn't seem to generate these, but GCC does. I'm trying to link secp256k1, which is a C library, to my Rust code so the linker script needs to include these sections too.
1 parent 0427294 commit 370700c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-rt/link.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SECTIONS
5757
_sdata = .;
5858
/* Must be called __global_pointer$ for linker relaxations to work. */
5959
PROVIDE(__global_pointer$ = . + 0x800);
60-
*(.sdata .sdata.*);
60+
*(.sdata .sdata.* .sdata2 .sdata2.*);
6161
*(.data .data.*);
6262
. = ALIGN(4);
6363
_edata = .;

0 commit comments

Comments
 (0)