* powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
--just-symbols.
This commit is contained in:
parent
918d227b01
commit
957564c930
@ -1,3 +1,8 @@
|
||||
2012-09-04 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
|
||||
--just-symbols.
|
||||
|
||||
2012-08-31 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* powerpc.cc (Powerpc_relobj): Add and use Address typedef.
|
||||
|
@ -1149,7 +1149,10 @@ Target_powerpc<size, big_endian>::do_make_elf_object(
|
||||
off_t offset, const elfcpp::Ehdr<size, big_endian>& ehdr)
|
||||
{
|
||||
int et = ehdr.get_e_type();
|
||||
if (et == elfcpp::ET_REL)
|
||||
// ET_EXEC files are valid input for --just-symbols/-R,
|
||||
// and we treat them as relocatable objects.
|
||||
if (et == elfcpp::ET_REL
|
||||
|| (et == elfcpp::ET_EXEC && input_file->just_symbols()))
|
||||
{
|
||||
Powerpc_relobj<size, big_endian>* obj =
|
||||
new Powerpc_relobj<size, big_endian>(name, input_file, offset, ehdr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user