From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] relocate-rela: replace a magic number with sizeof(Elf64_Rela)
Date: Thu, 13 Feb 2014 15:19:00 +0100 [thread overview]
Message-ID: <20140213151900.3425ea67@lilith> (raw)
In-Reply-To: <1391479111-31498-1-git-send-email-yamada.m@jp.panasonic.com>
Hi Masahiro,
On Tue, 4 Feb 2014 10:58:31 +0900, Masahiro Yamada
<yamada.m@jp.panasonic.com> wrote:
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Cc: Scott Wood <scottwood@freescale.com>
> Cc: David Feng <fenghua@phytium.com.cn>
> ---
> tools/relocate-rela.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/relocate-rela.c b/tools/relocate-rela.c
> index 93b4c39..670b9fd 100644
> --- a/tools/relocate-rela.c
> +++ b/tools/relocate-rela.c
> @@ -120,7 +120,7 @@ int main(int argc, char **argv)
> }
>
> if (rela_start > rela_end || rela_start < text_base ||
> - (rela_end - rela_start) % 24) {
> + (rela_end - rela_start) % sizeof(Elf64_Rela)) {
> fprintf(stderr, "%s: bad rela bounds\n", argv[0]);
> return 3;
> }
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
prev parent reply other threads:[~2014-02-13 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 1:58 [U-Boot] [PATCH] relocate-rela: replace a magic number with sizeof(Elf64_Rela) Masahiro Yamada
2014-02-04 2:00 ` Scott Wood
2014-02-13 14:19 ` Albert ARIBAUD [this message]
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=20140213151900.3425ea67@lilith \
--to=albert.u.boot@aribaud.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.