Skip to content

why not shared registry between main and shared library??? #2033

Answered by tt4g
hbwang15 asked this question in Q&A
Discussion options

You must be logged in to vote

This can be described as a C/C++ language specification and security limitation.

Since a shared library may be linked and used by multiple applications, the OS reserves memory storage dedicated to the library when the library is loaded into memory.
The objects generated by the library code are placed in the memory storage reserved for the library (this allows objects generated by a single library to be shared by multiple applications).

The library's memory storage cannot be accessed directly by different applications (this is a memory access violation).

See also:

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@tt4g
Comment options

@hbwang15
Comment options

@hbwang15
Comment options

@tt4g
Comment options

@hbwang15
Comment options

Answer selected by hbwang15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants