mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-27 22:10:32 +00:00
MIPS: Fix a .pdr section linker buffer overrun
* elfxx-mips.c (_bfd_mips_elf_discard_info): Set section's rawsize if changing size.
This commit is contained in:
parent
7bfe824172
commit
e034b2cc9d
@ -1,3 +1,8 @@
|
||||
2014-08-05 Maciej W. Rozycki <macro@codesourcery.com>
|
||||
|
||||
* elfxx-mips.c (_bfd_mips_elf_discard_info): Set section's
|
||||
rawsize if changing size.
|
||||
|
||||
2014-08-05 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/17226
|
||||
|
@ -12380,6 +12380,8 @@ _bfd_mips_elf_discard_info (bfd *abfd, struct elf_reloc_cookie *cookie,
|
||||
if (skip != 0)
|
||||
{
|
||||
mips_elf_section_data (o)->u.tdata = tdata;
|
||||
if (o->rawsize == 0)
|
||||
o->rawsize = o->size;
|
||||
o->size -= skip * PDR_SIZE;
|
||||
ret = TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user