From 02fdf718a4b2a7053f19748a0ac0011aa576eb69 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 5 Feb 2013 11:09:49 -0600 Subject: rmodule: include heap in bss section By including the heap in the bss output section the size is accounted for in a elf PT_LOAD segment. Without this change the heap wasn't being put into a PT_LOAD segment. The result is a nop w.r.t. functionality, but readelf and company will have proper MemSiz fields. Change-Id: Ibfe9bb87603dcd4c5ff1c57c6af910bbba96b02b Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/2750 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/lib/rmodule.ld | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/rmodule.ld') diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld index 4c13c84666..fdee279697 100644 --- a/src/lib/rmodule.ld +++ b/src/lib/rmodule.ld @@ -74,9 +74,7 @@ SECTIONS *(COMMON); . = ALIGN(8); _bss_end = .; - } - .heap (NOLOAD) : { /* * Place the heap after BSS. The heap size is passed in by * by way of ld --defsym=__heap_size=<> -- cgit v1.2.3