{"id":806263,"url":"http://patchwork.ozlabs.org/api/1.0/patches/806263/?format=json","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.0/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<1503849720-21739-1-git-send-email-trini@konsulko.com>","date":"2017-08-27T16:02:00","name":"[U-Boot] sh: Fix linking of ms7722se","commit_ref":"34f98a3d2e10a273bf5b707ce941b4b8c9fc0e87","pull_url":null,"state":"accepted","archived":false,"hash":"12e8a153fffede046e85bede8030035a29df4c59","submitter":{"id":65875,"url":"http://patchwork.ozlabs.org/api/1.0/people/65875/?format=json","name":"Tom Rini","email":"trini@konsulko.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.0/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1503849720-21739-1-git-send-email-trini@konsulko.com/mbox/","series":[{"id":28,"url":"http://patchwork.ozlabs.org/api/1.0/series/28/?format=json","date":"2017-08-27T16:02:00","name":"[U-Boot] sh: Fix linking of ms7722se","version":1,"mbox":"http://patchwork.ozlabs.org/series/28/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/806263/checks/","tags":{},"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xgKQw4FhMz9s8V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 28 Aug 2017 02:01:59 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 4B983C22245; Sun, 27 Aug 2017 16:01:53 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id E7E9FC220CF;\n\tSun, 27 Aug 2017 16:01:50 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid B4FF7C220CF; Sun, 27 Aug 2017 16:01:49 +0000 (UTC)","from mail-yw0-f196.google.com (mail-yw0-f196.google.com\n\t[209.85.161.196])\n\tby lists.denx.de (Postfix) with ESMTPS id 20B7CC22219\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 16:01:49 +0000 (UTC)","by mail-yw0-f196.google.com with SMTP id s187so788463ywf.2\n\tfor <u-boot@lists.denx.de>; Sun, 27 Aug 2017 09:01:49 -0700 (PDT)","from localhost.localdomain (cpe-174-106-0-58.ec.res.rr.com.\n\t[174.106.0.58]) by smtp.gmail.com with ESMTPSA id\n\tq127sm4163821ywb.10.2017.08.27.09.01.45 for <u-boot@lists.denx.de>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 27 Aug 2017 09:01:45 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3,\n\tRCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=QURJ08wQVvl1ovmubjV5lnyvQIxlAqEWHznmDIld9ss=;\n\tb=RzaF+248Wy6oVYU1WjWBFEPwEFJshP/KUwV8TOpv6azzGcirLb9SR9x45uhkUIhbaH\n\tKiDPaYzepjQSxHZjj67OYhW80hcXYXE7xk39Zkl7Jf93yE9/BIxvs8RpgtFBanpvCIuX\n\t+5759ZH1RIj7oKODd5Y+YZX/hCNz0Y2dxPwaw2roDb7YVVjA/M7pFDCMhe0w+UUPK8JD\n\tHudW7jwzWjLYKphCimcZr6X7Y264vrET5uFxR7C0ovkx2MwNzy0eVVNhKLgAXzoEkuGe\n\tPtGrwYkK3TTaDsLraMTTkmIokqIznbSnnGsYetWpg4V/aIGE5RpelS6AqdjO1R1SBnbL\n\tY1bQ==","X-Gm-Message-State":"AHYfb5imSiXCcuOD9spLNVTRtRQjwQAjsfZsDPR3XAnXJBHNs8QY78mA\n\tJNr6/P+BquZgQy9S","X-Received":"by 10.37.97.215 with SMTP id v206mr4201090ybb.198.1503849707366; \n\tSun, 27 Aug 2017 09:01:47 -0700 (PDT)","From":"Tom Rini <trini@konsulko.com>","To":"u-boot@lists.denx.de","Date":"Sun, 27 Aug 2017 12:02:00 -0400","Message-Id":"<1503849720-21739-1-git-send-email-trini@konsulko.com>","X-Mailer":"git-send-email 1.9.1","Subject":"[U-Boot] [PATCH] sh: Fix linking of ms7722se","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"While it is true that we no longer have 'ppcenv' and similar sections,\nincluding env/embedded.o at all results in the text/etc sections being\navailable for the rest of the link.  This in turn is required for the\nsetup used on ms7722se.  This also, likely, needs further fine-tuning.\n\nFixes: f40ad66fa066 (\"arch/sh: don't bring common/env_embedded.o into the link\")\nSigned-off-by: Tom Rini <trini@konsulko.com>\n---\n arch/sh/cpu/u-boot.lds | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds\nindex 2f2bdb5b83ea..db5b14c5540e 100644\n--- a/arch/sh/cpu/u-boot.lds\n+++ b/arch/sh/cpu/u-boot.lds\n@@ -38,6 +38,10 @@ SECTIONS\n \t\tKEEP(CONFIG_BOARDDIR/lowlevel_init.o\t(.text .spiboot1.text))\n \t\tKEEP(*(.spiboot2.text))\n \t\t. = ALIGN(8192);\n+#ifdef CONFIG_ENV_IS_IN_FLASH\n+\t\tenv/embedded.o  (.doesnotexist)\n+\t\t. = ALIGN(8192);\n+#endif\n \t\t*(.text)\n \t\t. = ALIGN(4);\n \t} >ram =0xFF\n","prefixes":["U-Boot"]}