recategorized
2,716 views
0 votes
0 votes

Which of the following statement(s) regarding a linker software is/are true ?

  1. A function of a linker is to combine several object modules into a single load module.
  1. A function of a linker is to replace absolute references in an object module by symbolic references to locations in other modules.
  1. Only I

  2. Only II

  3. Both I and II

  4. Neither I nor II

recategorized

6 Answers

0 votes
0 votes
answer:- (a)

reason: a linker is a computer software that combine 2 or more file generated by compiler into a single executable file.

so its function is to combine several object modules into a single load module.
0 votes
0 votes

both statements are correct 

1st statement is easy, let's check 2nd statement 

The linker resolves dependencies between the object files and static libraries while the loader resolves dependencies between the executable and any shared library.

the function of a linker is to replace absolute references in an object module with symbolic references

here symbolic ref means the logical address, not a reference that actually points to a physical memory location 

That's why we call it a linker 

Answer:

Related questions

0 votes
0 votes
4 answers
3
go_editor asked Mar 24, 2020
989 views
Match the following :$\begin{array}{llll} & \textbf{List – I} & {} & \textbf{List – II} \\ \text{a.} & \text{Absurd} & \text{i.} & \text{Clearly impossible being con...