From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 09/12] risck: tools: Prelink u-boot
Date: Fri, 22 Dec 2017 10:31:28 -0500 [thread overview]
Message-ID: <20171222153128.GO7592@bill-the-cat> (raw)
In-Reply-To: <1513928669-9210-9-git-send-email-uboot@andestech.com>
On Fri, Dec 22, 2017 at 03:44:26PM +0800, Andes wrote:
> From: Rick Chen <rick@andestech.com>
>
> Add prelink-riscv to arrange .rela.dyn and .rela.got
> in compile time.
>
> Signed-off-by: Rick Chen <rick@andestech.com>
> Signed-off-by: Rick Chen <rickchen36@gmail.com>
> Signed-off-by: Greentime Hu <green.hu@gmail.com>
> ---
> Makefile | 4 ++
> tools/Makefile | 1 +
> tools/prelink-riscv.c | 91 ++++++++++++++++++++++++++++++++++++++++++
> tools/prelink-riscv.inc | 101 +++++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 197 insertions(+), 0 deletions(-)
> create mode 100644 tools/prelink-riscv.c
> create mode 100644 tools/prelink-riscv.inc
>
> diff --git a/Makefile b/Makefile
> index c573ddb..bb6416f 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1264,6 +1264,10 @@ ifeq ($(CONFIG_KALLSYMS),y)
> $(call cmd,u-boot__) common/system_map.o
> endif
>
> +ifeq ($(CONFIG_RISCV),y)
> + @tools/prelink-riscv $@ 0
> +endif
> +
> quiet_cmd_sym ?= SYM $@
> cmd_sym ?= $(OBJDUMP) -t $< > $@
> u-boot.sym: u-boot FORCE
> diff --git a/tools/Makefile b/tools/Makefile
> index 4d32fe5..571f571 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -185,6 +185,7 @@ hostprogs-$(CONFIG_KIRKWOOD) += kwboot
> hostprogs-$(CONFIG_ARCH_MVEBU) += kwboot
> hostprogs-y += proftool
> hostprogs-$(CONFIG_STATIC_RELA) += relocate-rela
> +hostprogs-$(CONFIG_RISCV) += prelink-riscv
>
> hostprogs-y += fdtgrep
> fdtgrep-objs += $(LIBFDT_OBJS) fdtgrep.o
> diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c
> new file mode 100644
> index 0000000..dd099a9
> --- /dev/null
> +++ b/tools/prelink-riscv.c
> @@ -0,0 +1,91 @@
> +#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
> +#error "Only little-endian host is supported"
> +#endif
[snip]
> diff --git a/tools/prelink-riscv.inc b/tools/prelink-riscv.inc
> new file mode 100644
> index 0000000..f7f9596
> --- /dev/null
> +++ b/tools/prelink-riscv.inc
Needs license information, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/fe9f6777/attachment.sig>
next prev parent reply other threads:[~2017-12-22 15:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 7:44 [U-Boot] [PATCH 01/12] riscv: cpu: Add nx25 to support RISC-V Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 02/12] riscv: nx25: lib: Add relative lib funcs " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 03/12] riscv: nx25: dts: Add AE250 dts " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 04/12] riscv: nx25: include: Add header files " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 05/12] riscv: Add Kconfig " Andes
2017-12-22 15:30 ` Tom Rini
2017-12-25 2:31 ` 陳建志
2017-12-22 7:44 ` [U-Boot] [PATCH 06/12] riscv: board: Add nx25-ae250 " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 07/12] riscv: configs: Add nx25-ae250.h " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 08/12] riscv: defconfig: Add nx25-ae250 defconfig " Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 09/12] risck: tools: Prelink u-boot Andes
2017-12-22 15:31 ` Tom Rini [this message]
2017-12-25 2:33 ` 陳建志
2017-12-22 7:44 ` [U-Boot] [PATCH 10/12] riscv: Support standalone Andes
2017-12-22 7:44 ` [U-Boot] [PATCH 11/12] riscv: Modify generic codes to support RISC-V Andes
2017-12-22 15:30 ` Tom Rini
2017-12-22 7:44 ` [U-Boot] [PATCH 12/12] riscv: doc: Add relative doc to describe RISC-V Andes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171222153128.GO7592@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox