set start to _start in hello_world lds script
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 11 Apr 2022 15:31:46 +0000 (16:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 11 Apr 2022 15:31:46 +0000 (16:31 +0100)
this causes elf image to get the correct start (execution) address

hello_world/powerpc.lds

index 96bc6b9b16120335e73f6e90c29b3573d2c55e59..f3901f41fb975508554035ba778dcf9437a8fb89 100644 (file)
@@ -1,6 +1,7 @@
 SECTIONS
 {
        _start = .;
+       start = _start;
        . = 0;
        .head : {
                KEEP(*(.head))