Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-30-2003, 12:48 PM
|
#1
|
Member
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99
Rep:
|
ELF and a.out
Whats the different between ELF and a.oit format ?
When a compile a c code woth gcc
, what's that ELF or a.out format
|
|
|
04-30-2003, 05:19 PM
|
#2
|
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
ELF is what we've used since about '95, iirc.
a.out is a much older format, that doesn't support dynamic linking.
Use gcc -o foo foo.c to generate an executable. The file program will tell you what type it is. gcc will always generate ELF by default, ignore the file name
|
|
|
05-01-2003, 04:54 AM
|
#3
|
Member
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99
Original Poster
Rep:
|
So these days gcc compiled ti into ELF format By default .
How about cc
|
|
|
05-01-2003, 08:19 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
On most systems cc is symlinked to gcc now. cc=gcc
Check yours:
whereis cc
ls -l /path/to/cc
Mine:
Code:
bash-2.05a$ whereis cc
cc: /usr/bin/cc /usr/man/man1/cc.1.gz /usr/share/man/man1/cc.1.gz
bash-2.05a$ ls -l /usr/bin/cc
lrwxrwxrwx 1 root root 3 Nov 16 03:29 /usr/bin/cc -> gcc
bash-2.05a$
Cool
|
|
|
05-01-2003, 10:17 AM
|
#5
|
Member
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99
Original Poster
Rep:
|
Thank you,
I never bother to check that out
|
|
|
All times are GMT -5. The time now is 11:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|