* elf.c (elfcore_write_note): Pad to 4-byte boundary.
This commit is contained in:
parent
b12e747eaf
commit
017657f056
|
@ -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>
|
2006-10-28 Richard Sandiford <richard@codesourcery.com>
|
||||||
|
|
||||||
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
|
* elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT.
|
||||||
|
|
|
@ -8120,7 +8120,7 @@ elfcore_write_note (bfd *abfd,
|
||||||
|
|
||||||
namesz = strlen (name) + 1;
|
namesz = strlen (name) + 1;
|
||||||
bed = get_elf_backend_data (abfd);
|
bed = get_elf_backend_data (abfd);
|
||||||
pad = -namesz & ((1 << bed->s->log_file_align) - 1);
|
pad = -namesz & 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
newspace = 12 + namesz + pad + size;
|
newspace = 12 + namesz + pad + size;
|
||||||
|
|
Loading…
Reference in New Issue