(frag_now_fix): In absolute_section, return abs_section_offset.
* subsegs.c (subseg_change): If switching to absolute_section,
just set now_seg and now_subseg.
(subseg_set_rest): Special handling when switching to or from
absolute_section.
{
register char *retval;
+ if (now_seg == absolute_section)
+ {
+ as_bad ("attempt to allocate data in absolute section");
+ subseg_set (text_section, 0);
+ }
+
if (mri_common_symbol != NULL)
{
as_bad ("attempt to allocate data in common section");
int
frag_now_fix ()
{
+ if (now_seg == absolute_section)
+ return abs_section_offset;
return (char*)obstack_next_free (&frags) - frag_now->fr_literal;
}