aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-10-29 23:49:37 +0000
committerAlan Modra <amodra@gmail.com>2006-10-29 23:49:37 +0000
commit017657f05697a9bae31e7117075d3429b5b5eecf (patch)
tree5d674369de586f3978166c969359ff7ca127ced9 /bfd
parentb12e747eaf3af502e5c23187721b2d37a6797a38 (diff)
downloadgdb-017657f05697a9bae31e7117075d3429b5b5eecf.zip
gdb-017657f05697a9bae31e7117075d3429b5b5eecf.tar.gz
gdb-017657f05697a9bae31e7117075d3429b5b5eecf.tar.bz2
* elf.c (elfcore_write_note): Pad to 4-byte boundary.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 38dbdbd..b5f6c42 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2006-10-30 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (elfcore_write_note): Pad to 4-byte boundary.
+
2006-10-28 Richard Sandiford <richard@codesourcery.com>
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
diff --git a/bfd/elf.c b/bfd/elf.c
index 24ca6df..747310b 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;