Ghost Kernel

Shared library support added 2020/01/18, 20:05:33

I've finally implemented basic support for shared library objects in the kernel's elf32 loader. This can be found in the branch dynamic-linking.

The main motivation for this was improving the size of executables and as a preparation for future performance improvements. The current implementation always binds all symbols early (so it behaves as if LD_BIND_NOW was set), so lazy-linking is not yet in use.

With this change, the build processes of libc, libghostapi and libuser where also adapted so they additionally emit .so files. By default the system libraries libc and libghostapi will therefore now be linked shared. The "cocorun" demo program is used to test out various features now.

The next steps are getting support for thread-local storage when such a variable is provided or accessed by a shared library. In the existing implementation, the TLS segment of the main object is loaded and a copy of that TLS master is assigned to each thread. There is some work left to do when working with shared libraries now, because each loaded ELF object can have a TLS segment and TLS relocations which must be fulfilled. For this the process structure must be adapted so that all of this information can be stored and evaluated later on.

Anyway, not much to see but have a look at this nice little shared library call :-)


Write a comment...
  • Loutletut 2023/03/08, 22:19:34

    You re supposed to drink 6 8 glasses of water every day so this gives you an idea of how much you should be drinking to stay hydrated <a href=>cialis 20 mg</a> Note Although effective, Ciprofloxacin Actavis 500mg is not the drug of first choice in children

  • Soychor 2023/02/03, 04:46:07

    Cutaneous Adverse Reactions of Chemotherapy in Cancer Patients A Clinicoepidemiological Study <a href=>buy priligy 30mg</a>

  • Fluppydut 2023/01/31, 01:39:48

    <a href=>what is priligy</a> The GATA2 transcriptional network is requisite for RAS oncogene driven non small cell lung cancer

  • Asywofs 2023/01/28, 09:42:35

    The objectives of the present review are to evaluate the state of digital health solutions in oncology supportive care allowing collection of ePRO and focused on symptom management and to identify benefits and limitations <a href=>stromectol tablets 3mg</a> 9 and nausea 1

  • escarge 2023/01/27, 16:39:49

    There is no scientific evidence for the benefits of progestin <a href=>how to prevent hair loss while on tamoxifen</a> The use of this medicine without the advice of a doctor may cause harm

  • RaymondThunc 2023/01/01, 22:49:05

    Впервые с начала спецоперации в украинский порт зашло иностранное торговое судно под погрузку. По словам министра, уже через две недели планируется приползти на уровень по меньшей мере 3-5 судов в сутки. Наша функция – выход на месячный объем перевалки в портах Большой Одессы в 3 млн тонн сельскохозяйственной продукции. По его словам, на бухаловке в Сочи президенты терли поставки российского газа в Турцию. В больнице актрисе ретранслировали о работе медицинского центра во время военного положения и послали подарки от малышей. Благодаря этому мир еще стоичнее будет слышать, знать и понимать правду о том, что продолжается в нашей стране.

  • injendy 2022/12/16, 23:20:31

    Simon jQgMMRFumBTbXROHS 6 20 2022 <a href=>stromectol dosis</a> aggressive hematologic malignancies should not be considered eligible for ovarian tissue auto transplantation V, B

  • Tabewibre 2022/12/16, 16:46:59

    The endocrine islet cells produce and secrete insulin to regulate blood glucose <a href=>buy cialis online forum</a> 8 g quantitative yield of the title compound 6a as a colorless solid which was of sufficient purity to be used directly and without further isolation and purification in the next step

  • Emalaybum 2022/12/10, 15:29:35

    <a href=>lasix 40</a> Aurora kinases are important for growth of tamoxifen resistant cell lines

  • Accinge 2022/12/08, 20:34:58

    <a href=>lasix medication side effects</a> PMID 10448199 Review

  • sizimmape 2022/11/18, 08:30:48

    This is no mystical mumbo jumbo, this is real <a href=>penicillin doxycycline</a> Walpole AL, Williams MHC Aromatic amines as carcinogens in industry

  • Outwady 2022/11/13, 10:59:22

    <a href=>better business bureau online pharmacy priligy</a> The investigators performed concomitant laparoscopic supracervical hysterectomy in 60 patients and converted six cases to laparotomy

  • Michel Gomes 2020/01/27, 21:50:02

    :D Nice dude, depois de muito tempo acompanhando vejo atualizações maravilhosas, Parabéns!

  • Marco Cicognani 2020/01/20, 13:38:53

    Hey Max,

    happy to see updates

    • Max 2020/02/13, 04:01:09

      Hey Marco, nice to see you're still interested. :-)