1200038Skib/*- 2200038Skib * Copyright 2009 Konstantin Belousov. 3200038Skib * All rights reserved. 4200038Skib * 5200038Skib * Redistribution and use in source and binary forms, with or without 6200038Skib * modification, are permitted provided that the following conditions 7200038Skib * are met: 8200038Skib * 1. Redistributions of source code must retain the above copyright 9200038Skib * notice, this list of conditions and the following disclaimer. 10200038Skib * 2. Redistributions in binary form must reproduce the above copyright 11200038Skib * notice, this list of conditions and the following disclaimer in the 12200038Skib * documentation and/or other materials provided with the distribution. 13200038Skib * 14200038Skib * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15200038Skib * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16200038Skib * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17200038Skib * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18200038Skib * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19200038Skib * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20200038Skib * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21200038Skib * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22200038Skib * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23200038Skib * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24200038Skib * 25200038Skib * $FreeBSD$ 26200038Skib */ 27200038Skib 28216338Sdim#include <machine/asm.h> 29216338Sdim__FBSDID("$FreeBSD$"); 30200038Skib 31200038Skib .text 32200038Skib .align 4 33200038Skib .globl _start 34200038Skib .type _start, @function 35209295Skib_start: 36209295Skib .cfi_startproc 37209295Skib xorl %ebp,%ebp 38200038Skib pushl %ebp 39209295Skib .cfi_def_cfa_offset 4 40200038Skib movl %esp,%ebp 41209295Skib .cfi_offset %ebp,-8 42209295Skib .cfi_def_cfa_register %ebp 43200038Skib andl $0xfffffff0,%esp # align stack 44200038Skib leal 8(%ebp),%eax 45217383Skib subl $4,%esp 46200038Skib pushl %eax # argv 47200038Skib pushl 4(%ebp) # argc 48200038Skib pushl %edx # rtld cleanup 49200038Skib call _start1 50209295Skib int3 51209295Skib .cfi_endproc 52200038Skib .size _start, . - _start 53217105Skib 54217105Skib .section .note.GNU-stack,"",%progbits 55