summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-16 16:09:59 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-05-28 04:20:33 +0000
commit9e9dccb89fe47af5f481b0c656399a61d5c4b79d (patch)
treee573b6cd6b424074867a9ab73da25774e6e5038a
parentb80de180c2ebd7bde5ce4da43d5e0f0c260c25e7 (diff)
downloadcoreboot-9e9dccb89fe47af5f481b0c656399a61d5c4b79d.tar.gz
arch/x86/car.ld: Remove AGESA linker warning workaround
Now that all AGESA codebases have been fixed to not use the .data section, the warning workaround can be disabled. Change-Id: I675d169a5d2f16e1e9ae05f95e045e9ef3d12208 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64401 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Martin L Roth <gaumless@tutanota.com>
-rw-r--r--src/arch/x86/car.ld5
-rw-r--r--src/northbridge/amd/agesa/Kconfig7
-rw-r--r--src/northbridge/amd/agesa/family14/Kconfig3
-rw-r--r--src/northbridge/amd/agesa/family15tn/Kconfig3
-rw-r--r--src/northbridge/amd/agesa/family16kb/Kconfig3
5 files changed, 0 insertions, 21 deletions
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld
index 4e3383cf1e..331c256ece 100644
--- a/src/arch/x86/car.ld
+++ b/src/arch/x86/car.ld
@@ -115,13 +115,8 @@ _rom_mtrr_base = _rom_mtrr_mask;
. = 0xffffff00;
.illegal_globals . : {
-#if CONFIG(AGESA_BROKEN_DATA_SECTION)
- *(EXCLUDE_FILE ("*/libagesa.*.a:" "*/romstage*/buildOpts.o" "*/romstage*/agesawrapper.o" "*/vendorcode/amd/agesa/*" "*/vendorcode/amd/cimx/*") .data)
- *(EXCLUDE_FILE ("*/libagesa.*.a:" "*/romstage*/buildOpts.o" "*/romstage*/agesawrapper.o" "*/vendorcode/amd/agesa/*" "*/vendorcode/amd/cimx/*") .data.*)
-#else
*(.data)
*(.data.*)
-#endif
}
_bogus = ASSERT((CONFIG_DCACHE_RAM_SIZE == 0) || (SIZEOF(.car.data) <= CONFIG_DCACHE_RAM_SIZE), "Cache as RAM area is too full");
diff --git a/src/northbridge/amd/agesa/Kconfig b/src/northbridge/amd/agesa/Kconfig
index 3959284921..6f6e3d63a9 100644
--- a/src/northbridge/amd/agesa/Kconfig
+++ b/src/northbridge/amd/agesa/Kconfig
@@ -27,13 +27,6 @@ config S3_VGA_ROM_RUN
source "src/northbridge/amd/agesa/*/Kconfig"
-config AGESA_BROKEN_DATA_SECTION
- bool
- default y
- help
- Select this on AGESA platforms that incorrectly use the .data
- section.
-
# TODO: Reservation for heap seems excessive
config HEAP_SIZE
hex
diff --git a/src/northbridge/amd/agesa/family14/Kconfig b/src/northbridge/amd/agesa/family14/Kconfig
index 0e5a2bea6b..941972b1a1 100644
--- a/src/northbridge/amd/agesa/family14/Kconfig
+++ b/src/northbridge/amd/agesa/family14/Kconfig
@@ -17,7 +17,4 @@ config ECAM_MMCONF_BASE_ADDRESS
config ECAM_MMCONF_BUS_NUMBER
default 64
-config AGESA_BROKEN_DATA_SECTION
- default n
-
endif # NORTHBRIDGE_AMD_AGESA_FAMILY14
diff --git a/src/northbridge/amd/agesa/family15tn/Kconfig b/src/northbridge/amd/agesa/family15tn/Kconfig
index e3a5cc64d0..5bb7cca300 100644
--- a/src/northbridge/amd/agesa/family15tn/Kconfig
+++ b/src/northbridge/amd/agesa/family15tn/Kconfig
@@ -17,7 +17,4 @@ config ECAM_MMCONF_BASE_ADDRESS
config ECAM_MMCONF_BUS_NUMBER
default 64
-config AGESA_BROKEN_DATA_SECTION
- default n
-
endif # NORTHBRIDGE_AMD_AGESA_FAMILY15_TN
diff --git a/src/northbridge/amd/agesa/family16kb/Kconfig b/src/northbridge/amd/agesa/family16kb/Kconfig
index 01f542d585..8cf919a2d5 100644
--- a/src/northbridge/amd/agesa/family16kb/Kconfig
+++ b/src/northbridge/amd/agesa/family16kb/Kconfig
@@ -24,7 +24,4 @@ config VGA_BIOS_ID
The default VGA BIOS PCI vendor/device ID should be set to the
result of the map_oprom_vendev() function in northbridge.c.
-config AGESA_BROKEN_DATA_SECTION
- default n
-
endif # NORTHBRIDGE_AMD_AGESA_FAMILY16_KB