Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp100299pxb; Wed, 18 Nov 2020 17:45:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIo13vHlkYl7J+AjuDKJaa4pEDDECby1ekDJhDrAXgiuKYIuseSvcaScf5vlgXC9UiXGBz X-Received: by 2002:aa7:c3c3:: with SMTP id l3mr28780147edr.118.1605750329963; Wed, 18 Nov 2020 17:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605750329; cv=none; d=google.com; s=arc-20160816; b=Ebzi50RuAG2SfHxDl7Nhg+qMN3fQATg4PG3vTmDZ9+/mJiQVp55TzFZ8p95/mMR+gk WEgzLQiuZ7veB19qYdq/YLr0fvOB5mV/7oU7+fYxE1hdRuVneqQ1WDBWiONKX2MQLeLP 8fcVqd8HUKgvraRDtobEPIsDiueVc90AnF03UnOSPys+GFNDw4iSavlZ0aqEb1GnsXfb czB8HovhSOYc2E+GSHoWWG3X1KsHqYeF6qf5egQ9pZJS+YoKNPxC/8WyJZSzkE5YyhvS sNwD1fzTTcQto5bKa9OY/yOL8pX0LhWJOrS+diKDM4z/gW+o7ejTy2nuMTJXdZ95dx1j t70g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=m7Ooz3gXMjmNZlN3KHU1UBHw9rS8r/jLS+f+cCdLj88=; b=AgsUkULyRs4hfvDlfxmG7X/wKhOvjkPo7wOufqnSOFQyyviXlIBYxYgEB7jic8sXGa nsCcqFSpR2OnvDxPO2vj8TjSQctgW9m7x/VSVwT2XidzGST8vsXXJdcevPzTa0udY1By UGxS2+en3IU/obB9nAIA0uET3PJMti4PuJPN9V7ihurMLq+Ngz0JfQCBXlCTehirK5cL Qb3OjnaJMdMB76kSOp+8K1bXjpDBMkSjTJOY/tQ6a/P6gHRKAZle5oasd1wQBFxd7HDb aCE+DU2gabvQ1nc3GMlgy4EhqZpwigEojzVKsKpiplthhMH+uCOvpcfr8oX7vfpgsMYB MBmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si15701045ejx.101.2020.11.18.17.45.06; Wed, 18 Nov 2020 17:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727180AbgKSBkm (ORCPT + 99 others); Wed, 18 Nov 2020 20:40:42 -0500 Received: from mail.loongson.cn ([114.242.206.163]:40870 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727136AbgKSBkm (ORCPT ); Wed, 18 Nov 2020 20:40:42 -0500 Received: from bogon.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxitAVzbVfalYSAA--.29117S2; Thu, 19 Nov 2020 09:40:38 +0800 (CST) From: Youling Tang To: Michal Simek , Stefan Asserhall , Arnd Bergmann Cc: linux-kernel@vger.kernel.org Subject: [PATCH] microblaze: Use the common INIT_DATA_SECTION macro in vmlinux.lds.S Date: Thu, 19 Nov 2020 09:40:37 +0800 Message-Id: <1605750037-433-1-git-send-email-tangyouling@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9AxitAVzbVfalYSAA--.29117S2 X-Coremail-Antispam: 1UD129KBjvJXoW7WF4kCw1fuFW5Kr1rXr4kXrb_yoW8JFy8pr sIv3s7uw4UGF4UZ3Z7KFy8uryavr1ftw4UWayqvay8Cr17uFyvvwnrtrs3JFyDGrWUC3Wr uF18XFWYga17J3JanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkab7Iv0xC_Zr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAC Y4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJV W8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6w4l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMI IF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY 6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07jOCzZUUUUU= X-CM-SenderInfo: 5wdqw5prxox03j6o00pqjv00gofq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the common INIT_DATA_SECTION rule for the linker script in an effort to regularize the linker script. Signed-off-by: Youling Tang --- arch/microblaze/kernel/vmlinux.lds.S | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S index df07b3d..527ebfc 100644 --- a/arch/microblaze/kernel/vmlinux.lds.S +++ b/arch/microblaze/kernel/vmlinux.lds.S @@ -96,10 +96,7 @@ SECTIONS { __init_begin = .; INIT_TEXT_SECTION(PAGE_SIZE) - - .init.data : AT(ADDR(.init.data) - LOAD_OFFSET) { - INIT_DATA - } + INIT_DATA_SECTION(0) . = ALIGN(4); .init.ivt : AT(ADDR(.init.ivt) - LOAD_OFFSET) { @@ -107,25 +104,6 @@ SECTIONS { *(.init.ivt) __ivt_end = .; } - - .init.setup : AT(ADDR(.init.setup) - LOAD_OFFSET) { - INIT_SETUP(0) - } - - .initcall.init : AT(ADDR(.initcall.init) - LOAD_OFFSET ) { - INIT_CALLS - } - - .con_initcall.init : AT(ADDR(.con_initcall.init) - LOAD_OFFSET) { - CON_INITCALL - } - - __init_end_before_initramfs = .; - - .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { - INIT_RAM_FS - } - __init_end = .; .bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) - LOAD_OFFSET) { -- 2.1.0