mklibs

Alles eine Frage des Images
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

mklibs

Beitrag von JOCKYW2001 »

What tells mklibs which libs it must take from cdkroot/lib ??
(I see about 250 libs in cdkroot/lib and after running make flash-lib only about 40 in cdkflash/root/lib)

JockyW
DieMade
Oberlamer, Administrator & Supernanny
Beiträge: 10532
Registriert: Samstag 13. Juli 2002, 10:49

Beitrag von DieMade »

# HOW IT WORKS
#
# - Gather all unresolved symbols and libraries needed by the programs
# and reduced libraries
# - Gather all symbols provided by the already reduced libraries
# (none on the first pass)
# - If all symbols are provided we are done
# - go through all libraries and remember what symbols they provide
# - go through all unresolved/needed symbols and mark them as used
# - for each library:
# - find pic file (if not present copy and strip the so)
# - compile in only used symbols
# - strip
# - back to the top
There are 10 types of people in the world: those who know binary and those who don't
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Beitrag von JOCKYW2001 »

DieMade hat geschrieben:
# HOW IT WORKS
#
# - Gather all unresolved symbols and libraries needed by the programs
# ....
And how does it gather these libs?
DieMade
Oberlamer, Administrator & Supernanny
Beiträge: 10532
Registriert: Samstag 13. Juli 2002, 10:49

Beitrag von DieMade »

Use the source luke ;)

objdump --private-headers <binary>
There are 10 types of people in the world: those who know binary and those who don't
JOCKYW2001
Einsteiger
Einsteiger
Beiträge: 358
Registriert: Montag 21. Juli 2003, 23:52

Beitrag von JOCKYW2001 »

I'm so lazy today :P

Thx!