Runtime Environment Linking and Loading 1: Slides Credits Prof.Bernhard Egger @SNU CSE

EnoughFluxus avatar
EnoughFluxus
·
·
Download

Start Quiz

Study Flashcards

10 Questions

In the provided code snippet, how many global variables are declared as objects with global binding?

2

Which function is an example of a weak symbol in the given code?

weak_function

What is the static keyword used for in C programming?

To control the visibility of functions and variables within the file

Which of the following is NOT a way to declare a weak symbol in C?

Declaring the variable as static

What is the significance of 'extern' when used to declare a variable?

It links the variable declaration to a definition in another file

Which section does the 'swap' function belong to (based on readelf output)?

GLOBAL

What is the size of the 'global_initialized' variable in the readelf output?

4 bits

What is the default binding strength for symbols in C?

Strong

Which of the following is an example of a not initialized global variable in the readelf output?

global_static_not_initialized

What does the command 'gcc -c swap.c' do?

Creates an object file from the source file swap.c

This quiz covers topics related to the runtime environment, linking, and loading. It includes information presented in slides by Prof. Bernhard Egger at SNU CSE. Test your understanding of R_X86_64_PC32, R_X86_64_32S, mov instructions, and more.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser