Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have a file foo.c that contains just: SysIn SysIT OP PU PU int main () { return 0; } Sie SYS , and call
I have a file foo.c that contains just: SysIn SysIT OP PU PU int main () { return 0; } Sie SYS , and call readelf - When I compile it to an object file (gcc -c foo.c)foo.o, the output of readelf is 77 lines long. When I compile this to an executable (gcc foo.o), and call readelf -a a.out, the output of readelf is 257 lines long. Why? relocatable objects. B. gcc by default adds a lot of debug info when compiling to an executable. C. This is because of the LD_PRELOAD environment variable. D. foo.o has been linked with some system libraries to start the program. A. The ELF format force 21 that executable objects be bigger th, 2 21-DPU 6221-DPU 021-DPU -W21-DPU Answer A. Answer B. Answer C. Answer D
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started