tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Adrian Cochrane (alcinnz@floss.social)'s status on Thursday, 22-Apr-2021 22:09:20 CEST Adrian Cochrane Adrian Cochrane
    in reply to

    Usually the read & write implementations for each format doesn't take that much code, but ELF for some reason takes a lot more. Can anyone please explain what ELF is about?

    LibBFD also provides e.g. a hashmap implementation as being central to many GNU Binutils commands.

    There's several trivial (or at least as trivial as C gets) commands, though I'll have to discuss the major commands over the next two days...

    2/2 Fin, for now! Next: GNU Assembler & linkers.

    In conversation Thursday, 22-Apr-2021 22:09:20 CEST from floss.social permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Thursday, 22-Apr-2021 22:09:21 CEST Adrian Cochrane Adrian Cochrane

      "Binary" executable files contains more than raw machine code your CPU's control unit can *directly* understand. There's additional labelling for our sake, & for linkers (though I haven't gotten through *that* code yet).

      Whilst today's topic GNU Binutils contains a suite of commands, the core of *most* of them is libbfd. LibBFD's headerfiles are predominantly C structs & macros defining the numerous formats (including archive files) GNU supports, it also implements methodtables for them.

      1/2

      In conversation Thursday, 22-Apr-2021 22:09:21 CEST permalink
    • Adrian Cochrane (alcinnz@floss.social)'s status on Thursday, 22-Apr-2021 23:19:51 CEST Adrian Cochrane Adrian Cochrane
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga No, it's not rhetorical.

      How does it differ from other object formats? Why does it require so much more code?

      In conversation Thursday, 22-Apr-2021 23:19:51 CEST permalink
    • Thiago Jung Bauermann (bauermann@fosstodon.org)'s status on Thursday, 22-Apr-2021 23:57:28 CEST Thiago Jung Bauermann Thiago Jung Bauermann
      • Ekaitz Zárraga 👹

      @ekaitz_zarraga @alcinnz actually ELF offers two complementary views into the binary:

      The section header, meant to be used by the linker at build time, tells what are the contents of each section of the binary (e.g., symbols, relocation entries, debug info).

      The program header, meant to be used by the loader (e.g., ld.so) to create the process image, tells which parts of the binary ("segments") go where in memory, and which sections they are made of.

      In conversation Thursday, 22-Apr-2021 23:57:28 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.