mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Implement --just-symbols, including -R FILE. Fix symbol values when
doing a relocatable link.
This commit is contained in:
@@ -574,6 +574,17 @@ Sized_relobj<size, big_endian>::do_layout(Symbol_table* symtab,
|
||||
std::vector<Map_to_output>& map_sections(this->map_to_output());
|
||||
map_sections.resize(shnum);
|
||||
|
||||
// If we are only linking for symbols, then there is nothing else to
|
||||
// do here.
|
||||
if (this->input_file()->just_symbols())
|
||||
{
|
||||
delete sd->section_headers;
|
||||
sd->section_headers = NULL;
|
||||
delete sd->section_names;
|
||||
sd->section_names = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
// Whether we've seen a .note.GNU-stack section.
|
||||
bool seen_gnu_stack = false;
|
||||
// The flags of a .note.GNU-stack section.
|
||||
|
||||
Reference in New Issue
Block a user