break;
case SHT_NOTE:
-#if 0
- fprintf (stderr, "Note Sections not yet supported.\n");
- BFD_FAIL ();
-#endif
break;
case SHT_SHLIB:
-#if 0
- fprintf (stderr, "SHLIB Sections not supported (and non conforming.)\n");
-#endif
return true;
default:
return (off + align - 1) & ~(align - 1);
}
-/* Assign a file position to a section, optionally aligning to the
- required section alignment. */
+/* Assign a file position to a section, aligning to the required
+ section alignment. */
INLINE file_ptr
-_bfd_elf_assign_file_position_for_section (i_shdrp, offset, align)
+_bfd_elf_assign_file_position_for_section (i_shdrp, offset)
Elf_Internal_Shdr *i_shdrp;
file_ptr offset;
- boolean align;
{
- if (align)
- {
- unsigned int al;
+ unsigned int al;
+
+ /* Align the offst. */
+ al = i_shdrp->sh_addralign;
+ if (al > 1)
+ offset = BFD_ALIGN (offset, al);
- al = i_shdrp->sh_addralign;
- if (al > 1)
- offset = BFD_ALIGN (offset, al);
- }
i_shdrp->sh_offset = offset;
if (i_shdrp->bfd_section != NULL)
i_shdrp->bfd_section->filepos = offset;
continue;
}
- off = _bfd_elf_assign_file_position_for_section (hdr, off, true);
+ off = _bfd_elf_assign_file_position_for_section (hdr, off);
}
}
else
hdr->sh_offset = -1;
continue;
}
- off = _bfd_elf_assign_file_position_for_section (hdr, off,
- true);
+ off = _bfd_elf_assign_file_position_for_section (hdr, off);
}
else
{
the page size. This is required by the program
header. */
off += (hdr->sh_addr - off) % maxpagesize;
- off = _bfd_elf_assign_file_position_for_section (hdr, off,
- false);
+ off = _bfd_elf_assign_file_position_for_section (hdr, off);
}
}
shdrp = *shdrpp;
if ((shdrp->sh_type == SHT_REL || shdrp->sh_type == SHT_RELA)
&& shdrp->sh_offset == -1)
- off = _bfd_elf_assign_file_position_for_section (shdrp, off, true);
+ off = _bfd_elf_assign_file_position_for_section (shdrp, off);
}
elf_tdata (abfd)->next_file_pos = off;
bfd *ignore_abfd;
asymbol *symbol;
{
- fprintf (stderr, "elf_get_lineno unimplemented\n");
- fflush (stderr);
- BFD_FAIL ();
+ abort ();
return NULL;
}
arelent *cache_ptr;
Elf_Internal_Rela *dst;
{
- fprintf (stderr, "elf RELA relocation support for target machine unimplemented\n");
- fflush (stderr);
- BFD_FAIL ();
+ abort ();
}
#if 0
arelent *cache_ptr;
Elf_Internal_Rel *dst;
{
- fprintf (stderr, "elf REL relocation support for target machine unimplemented\n");
- fflush (stderr);
- BFD_FAIL ();
+ abort ();
}
#endif