Fix some careless inernal_error changes.

Back when I did the abort->internal_error change, I wasn't paying attention
and forgot I should use linker_internal_error in linker.c.
This commit is contained in:
Bill Currie 2012-11-13 21:51:16 +09:00
parent f80a74228c
commit 8625964634

View file

@ -461,7 +461,7 @@ static void
add_data (int space, qfo_mspace_t *data)
{
if (space < 0 || space >= qfo_num_spaces || !work_spaces[space])
internal_error (0, "bad space for add_data (): %d", space);
linker_internal_error ("bad space for add_data (): %d", space);
defspace_add_data (*work_spaces[space], data->d.data, data->data_size);
work->spaces[space].d.data = (*work_spaces[space])->data;
work->spaces[space].data_size = (*work_spaces[space])->size;
@ -478,8 +478,8 @@ add_data_space (qfo_t *qfo, qfo_mspace_t *space)
{
qfo_mspace_t *ws;
if (space->type != qfos_data)
internal_error (0, "bad space type for add_data_space (): %d",
space->type);
linker_internal_error ("bad space type for add_data_space (): %d",
space->type);
space->id = work->num_spaces++; // so the space in work can be found
work->spaces = realloc (work->spaces,
work->num_spaces * sizeof (qfo_mspace_t));