aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object-coff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-09-29 13:07:56 +0930
committerAlan Modra <amodra@gmail.com>2017-09-29 14:42:36 +0930
commitf6ac8c52c955b487dcb56d05fc93fced7b203294 (patch)
treee6d5d5476dfced009be38e0f2ee3aa80d4d4b80a /libiberty/simple-object-coff.c
parent1b8f6c7f827726b5f91745149f7d4329f10de7fd (diff)
downloadgdb-f6ac8c52c955b487dcb56d05fc93fced7b203294.zip
gdb-f6ac8c52c955b487dcb56d05fc93fced7b203294.tar.gz
gdb-f6ac8c52c955b487dcb56d05fc93fced7b203294.tar.bz2
Fail when string merge can't alloc memory
I was looking at Debian bug #874674 again today, and think I might have spotted the problem. It appears that merge.c tries to cope with memory allocation failures in some circumstances, but doesn't quite manage to get everything right. This patch will make ld report memory allocation failures instead of silently not merging strings. * merge.c (merge_strings): Return FALSE on malloc failure. (_bfd_merge_sections): Return failures from record_section and merge_strings.
Diffstat (limited to 'libiberty/simple-object-coff.c')
0 files changed, 0 insertions, 0 deletions