pupdate = pupdate->next)
{
pupdate->section = bfd_get_section_by_name (ibfd, pupdate->name);
- if (pupdate->section == NULL)
+ if (pupdate->section == NULL
+ || (osec = pupdate->section->output_section) == NULL)
{
- non_fatal (_("error: %s not found, can't be updated"), pupdate->name);
+ non_fatal (_("error: %s can't be updated"), pupdate->name);
return false;
}
- osec = pupdate->section->output_section;
if (!bfd_set_section_size (osec, pupdate->size))
{
bfd_nonfatal_message (NULL, obfd, osec, NULL);
# Check that --update-section on an unknown section will fail.
if { ![do_objcopy update-2.o \
"--update-section .bar=tmpdir/dumped-contents" \
- "error: .bar not found, can't be updated"] } then {
+ "error: .bar can't be updated"] } then {
return
}