uint64_t entries;
unsigned char *data;
bool res = true;
+ bool found = false;
if (!do_got_section_contents)
return res;
/* process_mips_specific also displays GOT related contents. */
if (!do_arch)
res = process_mips_specific (filedata, true);
+ found = true;
goto out;
}
if (!startswith (name, ".got"))
continue;
+ found = true;
+
data = (unsigned char *) get_section_contents (section,
filedata);
if (data == NULL)
}
out:
+ if (! found)
+ {
+ if (filedata->is_separate)
+ printf (_("\nThere is no GOT section in linked file '%s'.\n"),
+ filedata->file_name);
+ else
+ printf (_("\nThere is no GOT section in this file.\n"));
+ }
+
for (size_t j = 0; j < all_relocations_count; j++)
free (all_relocations_root[j].r_symbol);
free (all_relocations_root);
run_dump_test "readelf-maskos-1a"
run_dump_test "readelf-maskos-1b"
run_dump_test "readelf-debug-str-offsets-dw4"
+ run_dump_test "readelf-got"
if {![istarget *-*-hpux*]} then {
run_dump_test pr26548
if {![binutils_assemble_flags $srcdir/$subdir/pr26548.s tmpdir/pr26548e.o {--defsym ERROR=1}]} then {