mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Add cache parameter to get_view. Discard uncached views on unlock.
Fix bug this exposed in archive armap symbol name handling.
This commit is contained in:
@ -177,7 +177,7 @@ bool
|
||||
Output_merge_data::do_add_input_section(Relobj* object, unsigned int shndx)
|
||||
{
|
||||
off_t len;
|
||||
const unsigned char* p = object->section_contents(shndx, &len);
|
||||
const unsigned char* p = object->section_contents(shndx, &len, false);
|
||||
|
||||
uint64_t entsize = this->entsize();
|
||||
|
||||
@ -237,7 +237,7 @@ Output_merge_string<Char_type>::do_add_input_section(Relobj* object,
|
||||
unsigned int shndx)
|
||||
{
|
||||
off_t len;
|
||||
const unsigned char* pdata = object->section_contents(shndx, &len);
|
||||
const unsigned char* pdata = object->section_contents(shndx, &len, false);
|
||||
|
||||
const Char_type* p = reinterpret_cast<const Char_type*>(pdata);
|
||||
|
||||
|
Reference in New Issue
Block a user