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>
This commit is contained in:
Arthur Heymans 2022-05-16 16:09:59 +02:00 committed by Martin L Roth
parent b80de180c2
commit 9e9dccb89f
5 changed files with 0 additions and 21 deletions

View File

@ -115,13 +115,8 @@ _rom_mtrr_base = _rom_mtrr_mask;
. = 0xffffff00; . = 0xffffff00;
.illegal_globals . : { .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)
*(.data.*) *(.data.*)
#endif
} }
_bogus = ASSERT((CONFIG_DCACHE_RAM_SIZE == 0) || (SIZEOF(.car.data) <= CONFIG_DCACHE_RAM_SIZE), "Cache as RAM area is too full"); _bogus = ASSERT((CONFIG_DCACHE_RAM_SIZE == 0) || (SIZEOF(.car.data) <= CONFIG_DCACHE_RAM_SIZE), "Cache as RAM area is too full");

View File

@ -27,13 +27,6 @@ config S3_VGA_ROM_RUN
source "src/northbridge/amd/agesa/*/Kconfig" 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 # TODO: Reservation for heap seems excessive
config HEAP_SIZE config HEAP_SIZE
hex hex

View File

@ -17,7 +17,4 @@ config ECAM_MMCONF_BASE_ADDRESS
config ECAM_MMCONF_BUS_NUMBER config ECAM_MMCONF_BUS_NUMBER
default 64 default 64
config AGESA_BROKEN_DATA_SECTION
default n
endif # NORTHBRIDGE_AMD_AGESA_FAMILY14 endif # NORTHBRIDGE_AMD_AGESA_FAMILY14

View File

@ -17,7 +17,4 @@ config ECAM_MMCONF_BASE_ADDRESS
config ECAM_MMCONF_BUS_NUMBER config ECAM_MMCONF_BUS_NUMBER
default 64 default 64
config AGESA_BROKEN_DATA_SECTION
default n
endif # NORTHBRIDGE_AMD_AGESA_FAMILY15_TN endif # NORTHBRIDGE_AMD_AGESA_FAMILY15_TN

View File

@ -24,7 +24,4 @@ config VGA_BIOS_ID
The default VGA BIOS PCI vendor/device ID should be set to the The default VGA BIOS PCI vendor/device ID should be set to the
result of the map_oprom_vendev() function in northbridge.c. result of the map_oprom_vendev() function in northbridge.c.
config AGESA_BROKEN_DATA_SECTION
default n
endif # NORTHBRIDGE_AMD_AGESA_FAMILY16_KB endif # NORTHBRIDGE_AMD_AGESA_FAMILY16_KB