@@ -52,12 +52,11 @@ diff -uNr 01_wait_forever/Cargo.toml 02_runtime_init/Cargo.toml
5252diff -uNr 01_wait_forever/Makefile 02_runtime_init/Makefile
5353--- 01_wait_forever/Makefile
5454+++ 02_runtime_init/Makefile
55- @@ -180,6 +180,8 @@
55+ @@ -180,6 +180,7 @@
5656 $(call color_header, "Launching objdump")
5757 @$(DOCKER_TOOLS) $(OBJDUMP_BINARY) --disassemble --demangle \
5858 --section .text \
5959+ --section .rodata \
60- + --section .got \
6160 $(KERNEL_ELF) | rustfilt
6261
6362 ##------------------------------------------------------------------------------
@@ -211,7 +210,7 @@ diff -uNr 01_wait_forever/src/bsp/raspberrypi/kernel.ld 02_runtime_init/src/bsp/
211210 /* The physical address at which the the kernel binary will be loaded by the Raspberry's firmware */
212211 __rpi_phys_binary_load_addr = 0x80000;
213212
214- @@ -13,21 +15,58 @@
213+ @@ -13,21 +15,65 @@
215214 * 4 == R
216215 * 5 == RX
217216 * 6 == RW
@@ -257,7 +256,6 @@ diff -uNr 01_wait_forever/src/bsp/raspberrypi/kernel.ld 02_runtime_init/src/bsp/
257256 } :segment_code
258257+
259258+ .rodata : ALIGN(8) { *(.rodata*) } :segment_code
260- + .got : ALIGN(8) { *(.got) } :segment_code
261259+
262260+ /***********************************************************************************************
263261+ * Data + BSS
@@ -272,6 +270,14 @@ diff -uNr 01_wait_forever/src/bsp/raspberrypi/kernel.ld 02_runtime_init/src/bsp/
272270+ . = ALIGN(16);
273271+ __bss_end_exclusive = .;
274272+ } :segment_data
273+ +
274+ + /***********************************************************************************************
275+ + * Misc
276+ + ***********************************************************************************************/
277+ + .got : { *(.got*) }
278+ + ASSERT(SIZEOF(.got) == 0, "Relocation support not expected")
279+ +
280+ + /DISCARD/ : { *(.comment*) }
275281 }
276282
277283diff -uNr 01_wait_forever/src/bsp/raspberrypi.rs 02_runtime_init/src/bsp/raspberrypi.rs
0 commit comments