]> git.karo-electronics.de Git - linux-beck.git/commitdiff
microblaze: Do not use _start in vmlinux
authorMichal Simek <monstr@monstr.eu>
Wed, 28 Jul 2010 07:29:11 +0000 (09:29 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 4 Aug 2010 08:22:41 +0000 (10:22 +0200)
_start symbol stores physical address where kernel is.
Gdb uses this symbol for their purpose that's why
we have to rename it.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/boot/Makefile
arch/microblaze/kernel/vmlinux.lds.S

index 745a7f145fbebd70ed02f8ec6247ea45e2f14522..be01d78750d9c64dc44e74c8475ec720f19a791f 100644 (file)
@@ -35,7 +35,7 @@ quiet_cmd_cp = CP      $< $@$2
        cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
 
 quiet_cmd_strip = STRIP   $@
-       cmd_strip = $(STRIP) -K _start -K _end -K __log_buf \
+       cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
                                -K _fdt_start vmlinux -o $@
 
 quiet_cmd_uimage = UIMAGE  $@.ub
index b0de1a6b551325d42e434af52023aa10938e43ee..a09f2962fbec7b8db901fe50c1b91ab98bb43097 100644 (file)
@@ -10,7 +10,7 @@
 
 OUTPUT_FORMAT("elf32-microblaze", "elf32-microblaze", "elf32-microblaze")
 OUTPUT_ARCH(microblaze)
-ENTRY(_start)
+ENTRY(microblaze_start)
 
 #include <asm/page.h>
 #include <asm-generic/vmlinux.lds.h>
@@ -20,7 +20,7 @@ jiffies = jiffies_64 + 4;
 
 SECTIONS {
        . = CONFIG_KERNEL_START;
-       _start = CONFIG_KERNEL_BASE_ADDR;
+       microblaze_start = CONFIG_KERNEL_BASE_ADDR;
        .text : AT(ADDR(.text) - LOAD_OFFSET) {
                _text = . ;
                _stext = . ;