Skip to content

Instantly share code, notes, and snippets.

@rmartinho
Created February 20, 2014 09:04
Show Gist options
  • Save rmartinho/87c263eec8f1fd1baadd to your computer and use it in GitHub Desktop.
Save rmartinho/87c263eec8f1fd1baadd to your computer and use it in GitHub Desktop.
$ cat hello.wide
Main() {}
$ ./widec hello.wide
Triple: x86_64-unknown-linux-gnu
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
'x86_64' is not a recognized processor for this target (ignoring processor)
$ ls
a.o hello.wide widec WideLibrary
$ ld a.o
ld: warning: cannot find entry symbol _start; defaulting to 00000000004000b0
$ nm a.o
0000000000000000 t __0x39e09a0
0000000000000010 T main
$ ld -e main a.o
$ ./a.out
Segmentation fault (core dumped)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment