1999-05-03 07:29:11 +00:00
|
|
|
/* This file is obj-hp300.h
|
2005-03-01 00:43:58 +00:00
|
|
|
Copyright 1993, 2000, 2005 Free Software Foundation, Inc.
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
This file is part of GAS, the GNU Assembler.
|
|
|
|
|
|
|
|
GAS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GAS is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2000-09-14 11:48:26 +00:00
|
|
|
along with GAS; see the file COPYING. If not, write to the Free
|
2005-05-05 09:13:19 +00:00
|
|
|
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
|
|
|
02110-1301, USA. */
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
#include "config/obj-aout.c"
|
|
|
|
|
|
|
|
/* Aout file generation & utilities */
|
|
|
|
void
|
|
|
|
hp300_header_append (where, headers)
|
|
|
|
char **where;
|
|
|
|
object_headers *headers;
|
|
|
|
{
|
|
|
|
tc_headers_hook (headers);
|
|
|
|
|
|
|
|
#define DO(FIELD) \
|
|
|
|
{ \
|
2005-03-01 00:43:58 +00:00
|
|
|
md_number_to_chars (*where, headers->header.FIELD, \
|
|
|
|
sizeof (((struct exec_bytes *) 0)->FIELD)); \
|
|
|
|
*where += sizeof (((struct exec_bytes *) 0)->FIELD); \
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DO (a_info);
|
|
|
|
DO (a_spare1);
|
|
|
|
DO (a_spare2);
|
2000-09-14 11:48:26 +00:00
|
|
|
DO (a_text);
|
|
|
|
DO (a_data);
|
|
|
|
DO (a_bss);
|
|
|
|
DO (a_trsize);
|
1999-05-03 07:29:11 +00:00
|
|
|
DO (a_drsize);
|
|
|
|
DO (a_spare3);
|
|
|
|
DO (a_spare4);
|
|
|
|
DO (a_spare5);
|
2000-09-14 11:48:26 +00:00
|
|
|
DO (a_entry);
|
1999-05-03 07:29:11 +00:00
|
|
|
DO (a_spare6);
|
|
|
|
DO (a_spare7);
|
2000-09-14 11:48:26 +00:00
|
|
|
DO (a_syms);
|
1999-05-03 07:29:11 +00:00
|
|
|
DO (a_spare8);
|
|
|
|
}
|