Subject: $./a.out Memory fault / gcc
To: None <netbsd-help@netbsd.org>
From: Wood <758534@gmail.com>
List: netbsd-help
Date: 04/01/2007 13:36:04
Hi, can someone tell why this is not working on NetBSD?
(I'm running NetBSD/i386 3.1)

$cat test.c
#include<stdio.h>

void read(){
    printf("function: read\n");
}

void write(){
    printf("function: write\n");
}

int main(){
    read();
    write();

    return 1;
}

$gcc test.c
$
$./a.out
Memory fault
$


It works perfect on Linux and FreeBSD.

Is read and write protected words?