From b680d2e544f959e4982ff3b6d745978beaf90339 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 2 Oct 2019 12:55:37 +0200 Subject: lds: create and use BAREBOX_PCI_FIXUP macro No need to repeat the pci fixup sections in each linker script. Add a define for it. Signed-off-by: Sascha Hauer --- arch/mips/lib/barebox.lds.S | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'arch/mips/lib') diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index 86a469a042..f9a0b44937 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/barebox.lds.S @@ -47,20 +47,8 @@ SECTIONS .barebox_initcalls : { BAREBOX_INITCALLS } .barebox_exitcalls : { BAREBOX_EXITCALLS } __usymtab : { BAREBOX_SYMS } - -#ifdef CONFIG_PCI - __start_pci_fixups_early = .; - .pci_fixup_early : { KEEP(*(.pci_fixup_early)) } - __end_pci_fixups_early = .; - __start_pci_fixups_header = .; - .pci_fixup_header : { KEEP(*(.pci_fixup_header)) } - __end_pci_fixups_header = .; - __start_pci_fixups_enable = .; - .pci_fixup_enable : { KEEP(*(.pci_fixup_enable)) } - __end_pci_fixups_enable = .; -#endif + .pci_fixup : { BAREBOX_PCI_FIXUP } .oftables : { BAREBOX_CLK_TABLE } - .dtb : { BAREBOX_DTB } _edata = .; -- cgit v1.2.3