From 017657f05697a9bae31e7117075d3429b5b5eecf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 29 Oct 2006 23:49:37 +0000 Subject: [PATCH] * elf.c (elfcore_write_note): Pad to 4-byte boundary. --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 38dbdbd96df..b5f6c42b94b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-10-30 Alan Modra + + * elf.c (elfcore_write_note): Pad to 4-byte boundary. + 2006-10-28 Richard Sandiford * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT. diff --git a/bfd/elf.c b/bfd/elf.c index 24ca6df7c9e..747310bf587 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -8120,7 +8120,7 @@ elfcore_write_note (bfd *abfd, namesz = strlen (name) + 1; bed = get_elf_backend_data (abfd); - pad = -namesz & ((1 << bed->s->log_file_align) - 1); + pad = -namesz & 3; } newspace = 12 + namesz + pad + size; -- 2.30.2