boards: Remove OUTPUT_FORMAT and OUTPUT_ARCH from ld script

let toolchain decide the correct value base on the command line

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I342db6a88e4a161a322a8fea48a59e6ca7617ae6
This commit is contained in:
Xiang Xiao 2020-06-02 18:00:35 +08:00 committed by patacongo
parent 86b7c20b7d
commit 4fe35cc87c
54 changed files with 0 additions and 108 deletions

View File

@ -42,8 +42,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x4a000000, LENGTH = 864M
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -47,8 +47,6 @@ MEMORY
ddr (W!RX) : ORIGIN = 0x8a000000, LENGTH = 512M - 160M
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -48,8 +48,6 @@ MEMORY
ddr3 (W!RX) : ORIGIN = 0x10800000, LENGTH = 1024M - 8M
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -47,8 +47,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20000000, LENGTH = 256M
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -44,8 +44,6 @@ MEMORY
isram (W!RX) : ORIGIN = 0x00200000, LENGTH = 128K - 16K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -48,8 +48,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 256M - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -48,8 +48,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 256M - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -44,8 +44,6 @@ MEMORY
isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -48,8 +48,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 2G - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -44,8 +44,6 @@ MEMORY
isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -53,8 +53,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20000000, LENGTH = 256K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -49,8 +49,6 @@ MEMORY
isram (WRX) : ORIGIN = 0x00304000, LENGTH = 128K - 16K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -72,8 +72,6 @@ MEMORY
data (rw) : ORIGIN = 0x00316000, LENGTH = 24K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -47,8 +47,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20000000, LENGTH = 256M
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -44,8 +44,6 @@ MEMORY
isram (W!RX) : ORIGIN = 0x00200000, LENGTH = 128K - 16K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -48,8 +48,6 @@ MEMORY
sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 256M - 32K
}
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(entry)
ENTRY(_stext)

View File

@ -43,8 +43,6 @@ MEMORY
sram (rwx) : ORIGIN = 0x08000000, LENGTH = 32K
}
OUTPUT_ARCH(arm)
OUTPUT_FORMAT(elf32-bigarm)
EXTERN(_vectors)
ENTRY(_stext)

View File

@ -45,8 +45,6 @@ MEMORY
sram (rwx) : ORIGIN = 0x08000000, LENGTH = (0x0003EB00 + 0x00001500)
}
OUTPUT_ARCH(arm)
OUTPUT_FORMAT(elf32-bigarm)
EXTERN(_vectors)
ENTRY(_stext)

View File

@ -33,8 +33,6 @@
*
****************************************************************************/
OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
OUTPUT_ARCH(avr32:uc)
ENTRY(_stext)
/* The following assumes that the bootloader resides at 0x8000:0000 and so

View File

@ -50,8 +50,6 @@ MEMORY
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 4K
}
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
OUTPUT_ARCH(avr:5)
ENTRY(__start)
SECTIONS

View File

@ -49,8 +49,6 @@ MEMORY
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 4K
}
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
OUTPUT_ARCH(avr:5)
ENTRY(__start)
SECTIONS

View File

@ -51,8 +51,6 @@ MEMORY
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 4K
}
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
OUTPUT_ARCH(avr:5)
ENTRY(__start)
SECTIONS

View File

@ -51,8 +51,6 @@ MEMORY
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 4K
}
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
OUTPUT_ARCH(avr:6)
ENTRY(__start)
SECTIONS

View File

@ -50,8 +50,6 @@ MEMORY
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 4K
}
OUTPUT_FORMAT("elf32-avr","elf32-avr","elf32-avr")
OUTPUT_ARCH(avr:5)
ENTRY(__start)
SECTIONS

View File

@ -88,8 +88,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -88,8 +88,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -88,8 +88,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -88,8 +88,6 @@ MEMORY
kseg1_data_mem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_data_mem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 128K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -90,8 +90,6 @@ MEMORY
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 32K - 512
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mz)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_data_mem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mz)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-littlemips")
OUTPUT_ARCH(mips)
ENTRY(__start)
SECTIONS

View File

@ -104,8 +104,6 @@ MEMORY
kseg1_data_mem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
}
OUTPUT_FORMAT("elf32-tradlittlemips")
OUTPUT_ARCH(pic32mx)
ENTRY(__start)
SECTIONS

View File

@ -33,7 +33,6 @@
*
****************************************************************************/
OUTPUT_FORMAT("elf32-lm32")
ENTRY(_stext)
MEMORY

View File

@ -33,8 +33,6 @@
*
****************************************************************************/
OUTPUT_FORMAT("elf32-littleriscv")
ENTRY(_stext)
MEMORY

View File

@ -33,9 +33,6 @@
*
****************************************************************************/
OUTPUT_FORMAT(elf32-i386)
OUTPUT_ARCH(i386)
TARGET(elf32-i386)
ENTRY(main)
SECTIONS
{