* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place - Suite 330, Boston, MA 02111-1307 USA.
*/
+#include <inttypes.h>
#include <elf.h>
+#ifdef __sun__
+#include <sys/machelf.h>
+#endif
+
#include <xen/hvm/e820.h>
#include "util.h"
#include "config.h"
int i;
if (ehdr->e_type != ET_REL) {
- printf("Not a relocatabel BIOS object file. Has type %d, need %d\n",
+ printf("Not a relocatable BIOS object file. Has type %d, need %d\n",
ehdr->e_type, ET_REL);
return -1;
}
done;
$(TARGET): subdirs 32bitbios.o util.o
- ld $(LDFLAGS_DIRECT) -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
+ $(LD) $(LDFLAGS_DIRECT) -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
@nm 32bitbios_all.o | \
grep -E -q '^ +U ' && { \
echo "There are undefined symbols in the BIOS:"; \