From 71d1bd60665240be44ea28499b6b2f40f4e8bf76 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 25 Oct 2016 10:02:05 +0200 Subject: [PATCH] net: Remove unused net sections net_l2_init sections used to exist in early stage of the native IP stack but got removed since. Change-Id: I189d6e6f7aa05a6e5a62a28973c714d0367b0c5a Signed-off-by: Tomasz Bursztyka --- include/linker/common-rom.ld | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linker/common-rom.ld b/include/linker/common-rom.ld index 5ce0ea063b9..348d57a6c61 100644 --- a/include/linker/common-rom.ld +++ b/include/linker/common-rom.ld @@ -33,14 +33,6 @@ __devconfig_end = .; } GROUP_LINK_IN(ROMABLE_REGION) - SECTION_PROLOGUE(net_l2_init, (OPTIONAL),) - { - __net_l2_start = .; - *(".net_l2.init") - KEEP(*(SORT_BY_NAME(".net_l2.init*"))) - __net_l2_end = .; - } GROUP_LINK_IN(ROMABLE_REGION) - SECTION_PROLOGUE(net_l2, (OPTIONAL),) { __net_l2_start = .; @@ -48,3 +40,11 @@ KEEP(*(SORT_BY_NAME(".net_l2.init*"))) __net_l2_end = .; } GROUP_LINK_IN(ROMABLE_REGION) + + SECTION_PROLOGUE(net_l2_init, (OPTIONAL),) + { + __net_l2_start = .; + *(".net_l2.init") + KEEP(*(SORT_BY_NAME(".net_l2.init*"))) + __net_l2_end = .; + } GROUP_LINK_IN(ROMABLE_REGION)