Article 5GAJV ar -rsv some.a new.o works, what is the equivalent for gcc -shared some.so new.o

ar -rsv some.a new.o works, what is the equivalent for gcc -shared some.so new.o

by
centguy
from LinuxQuestions.org on (#5GAJV)
ar -rsv some.a new.o

adds new.o into the existing some.a

However

gcc -shared some.so new.o
seems to "add" the new.o into the shared object some.so while removing the old stuff.

Is something like
gcc -shared -add_to_existing some.so new.o ?latest?d=yIl2AUoC8zA latest?i=I7YAiMMZ-UQ:S0M8xZunEFo:F7zBnMy latest?i=I7YAiMMZ-UQ:S0M8xZunEFo:V_sGLiP latest?d=qj6IDK7rITs latest?i=I7YAiMMZ-UQ:S0M8xZunEFo:gIN9vFwI7YAiMMZ-UQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments