* target-reloc.h (relocate_section): Fix dead-pointer bug.
This commit is contained in:
parent
e94cf12773
commit
4418b2d587
@ -1,5 +1,7 @@
|
||||
2008-04-30 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* target-reloc.h (relocate_section): Fix dead-pointer bug.
|
||||
|
||||
* layout.cc (Layout::include_section): Refactored check for debug
|
||||
info section.
|
||||
(Layout::add_comdat): Add new parameters. Change type
|
||||
|
@ -227,9 +227,8 @@ relocate_section(
|
||||
{
|
||||
if (comdat_behavior == CB_UNDETERMINED)
|
||||
{
|
||||
const char* name =
|
||||
object->section_name(relinfo->data_shndx).c_str();
|
||||
comdat_behavior = get_comdat_behavior(name);
|
||||
std::string name = object->section_name(relinfo->data_shndx);
|
||||
comdat_behavior = get_comdat_behavior(name.c_str());
|
||||
}
|
||||
if (comdat_behavior == CB_PRETEND)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user