Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)ON
Posts
73
Comments
2,971
Joined
2 yr. ago

  • EDIT: It does work. My (GNU) libc spits out version info when executed as an executable.

    How does that work? There must be something above ld.so, maybe the OS? Because looking at the ELF header, ld.so is a shared library "Type: DYN (Shared object file)"

     
        
    $ readelf -hl ld.so
    ELF Header:
      Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 
      Class:                             ELF64
      Data:                              2's complement, little endian
      Version:                           1 (current)
      OS/ABI:                            UNIX - GNU
      ABI Version:                       0
      Type:                              DYN (Shared object file)
      Machine:                           Advanced Micro Devices X86-64
      Version:                           0x1
      Entry point address:               0x1d780
      Start of program headers:          64 (bytes into file)
      Start of section headers:          256264 (bytes into file)
      Flags:                             0x0
      Size of this header:               64 (bytes)
      Size of program headers:           56 (bytes)
      Number of program headers:         11
      Size of section headers:           64 (bytes)
      Number of section headers:         23
      Section header string table index: 22
    
    Program Headers:
      Type           Offset             VirtAddr           PhysAddr
                     FileSiz            MemSiz              Flags  Align
      LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                     0x0000000000000db8 0x0000000000000db8  R      0x1000
      LOAD           0x0000000000001000 0x0000000000001000 0x0000000000001000
                     0x0000000000029435 0x0000000000029435  R E    0x1000
      LOAD           0x000000000002b000 0x000000000002b000 0x000000000002b000
                     0x000000000000a8c0 0x000000000000a8c0  R      0x1000
      LOAD           0x00000000000362e0 0x00000000000362e0 0x00000000000362e0
                     0x0000000000002e24 0x0000000000003000  RW     0x1000
      DYNAMIC        0x0000000000037e80 0x0000000000037e80 0x0000000000037e80
                     0x0000000000000180 0x0000000000000180  RW     0x8
      NOTE           0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
                     0x0000000000000040 0x0000000000000040  R      0x8
      NOTE           0x00000000000002e8 0x00000000000002e8 0x00000000000002e8
                     0x0000000000000024 0x0000000000000024  R      0x4
      GNU_PROPERTY   0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
                     0x0000000000000040 0x0000000000000040  R      0x8
      GNU_EH_FRAME   0x0000000000031718 0x0000000000031718 0x0000000000031718
                     0x00000000000009b4 0x00000000000009b4  R      0x4
      GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                     0x0000000000000000 0x0000000000000000  RW     0x10
      GNU_RELRO      0x00000000000362e0 0x00000000000362e0 0x00000000000362e0
                     0x0000000000001d20 0x0000000000001d20  R      0x1
    
      

    The program headers don't have interpreter information either. Compare that to ls "Type: EXEC (Executable file)".

     
        
    $ readelf -hl ls
    ELF Header:
      Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
      Class:                             ELF64
      Data:                              2's complement, little endian
      Version:                           1 (current)
      OS/ABI:                            UNIX - System V
      ABI Version:                       0
      Type:                              EXEC (Executable file)
      Machine:                           Advanced Micro Devices X86-64
      Version:                           0x1
      Entry point address:               0x40b6e0
      Start of program headers:          64 (bytes into file)
      Start of section headers:          1473672 (bytes into file)
      Flags:                             0x0
      Size of this header:               64 (bytes)
      Size of program headers:           56 (bytes)
      Number of program headers:         14
      Size of section headers:           64 (bytes)
      Number of section headers:         32
      Section header string table index: 31
    
    Program Headers:
      Type           Offset             VirtAddr           PhysAddr
                     FileSiz            MemSiz              Flags  Align
      PHDR           0x0000000000000040 0x0000000000400040 0x0000000000400040
                     0x0000000000000310 0x0000000000000310  R      0x8
      INTERP         0x00000000000003b4 0x00000000004003b4 0x00000000004003b4
                     0x0000000000000053 0x0000000000000053  R      0x1
      LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
                     0x0000000000007570 0x0000000000007570  R      0x1000
      LOAD           0x0000000000008000 0x0000000000408000 0x0000000000408000
                     0x00000000000decb1 0x00000000000decb1  R E    0x1000
      LOAD           0x00000000000e7000 0x00000000004e7000 0x00000000004e7000
                     0x00000000000553a0 0x00000000000553a0  R      0x1000
      LOAD           0x000000000013c9c8 0x000000000053d9c8 0x000000000053d9c8
                     0x000000000000d01c 0x0000000000024748  RW     0x1000
      DYNAMIC        0x0000000000148080 0x0000000000549080 0x0000000000549080
                     0x0000000000000250 0x0000000000000250  RW     0x8
      NOTE           0x0000000000000350 0x0000000000400350 0x0000000000400350
                     0x0000000000000040 0x0000000000000040  R      0x8
      NOTE           0x0000000000000390 0x0000000000400390 0x0000000000400390
                     0x0000000000000024 0x0000000000000024  R      0x4
      NOTE           0x000000000013c380 0x000000000053c380 0x000000000053c380
                     0x0000000000000020 0x0000000000000020  R      0x4
      GNU_PROPERTY   0x0000000000000350 0x0000000000400350 0x0000000000400350
                     0x0000000000000040 0x0000000000000040  R      0x8
      GNU_EH_FRAME   0x0000000000126318 0x0000000000526318 0x0000000000526318
                     0x0000000000002eb4 0x0000000000002eb4  R      0x4
      GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
                     0x0000000000000000 0x0000000000000000  RW     0x10
      GNU_RELRO      0x000000000013c9c8 0x000000000053d9c8 0x000000000053d9c8
                     0x000000000000c638 0x000000000000c638  R      0x1
    
      

    It feels like somewhere in the flow there is the same thing that's happening in python just more hidden. Python seems to expose it because a file can be a library and an executable at the same time.

    Anti Commercial-AI license

  • Can someone explain to me how to compile a C library with "main" and a program with main? How does executing a program actually work? It has an executable flag, but what actually happens in the OS when it encounters a file with an executable file? How does it know to execute "main"? Is it possible to have a library that can be called and also executed like a program?

    Anti Commercial-AI license

  • I'd say the problem is education. Porn is only an issue because people do not get proper sex ed. The reaction to seeing a dick sucked in front of a child shouldn't be shame, disgust, or terror but allowing the inquisitive mind to ask what is happening.

    Sex is a completely normal occurrence that is the reason we are all here. There shouldn't be any shame or stigma in explaining to a child (or any person for that matter) what it is, what it involves, why it is done, how to safely do it, what consent is, why it is stigmatised.

    Want to protect children? Educate them.

    Anti Commercial-AI license

  • Right now, the jetbrains IDEs are my favourite because they are proper IDEs, not some editor with a bunch of scripts in a trenchcoat pretending to be an editor. But the company is starting to lose touch with its customers: developers who want an IDE for productivity, not a VS Code lookalike. It's like the company is finally being taken over by managers who don't know lick about development and it's starting to show (at least to me).

    Now, I'm on the market for a new editor and even willing to pay, even though I'd prefer paying for an open source IDE. Right now, Zed is looking interesting. The only thing that bothers me is how loud people were about it. Hype destroys my faith in stuff as it's often just good marketing. Another thing that bugged me is that when they started, they were "Mac first, Linux maybe". But now that the hype has died down, there's much less "omg, zed is the new editor and it will be better anything else" type posts, and it supposedly works on Linux, I can give it a try.

    Anti Commercial-AI license

  • Execs that float this shit can suck it. If they don't want to hire, don't let them saddle you with more work. I work my hours, do what I can and clock out. If they ask for more, I tell them what I'm working on, how much it takes, and when their stuff will be able to get slotted in. They can try and squeeze more out of you, but only if you let them. Don't let them.

    They can fire you and try to hire a sucker who will - or keep running through suckers that do, but it won't do their company nor their clients good, at least not in the long term. But these people are only around for the short term gains.

    Anti Commercial-AI license

  • My problem isn't the hardware, it's that the place I'm moving to will have a bad internet connection. My current homeserver has stuff like a CI (currently being tested), a builder for software (compiling rust, C/C++, go, and whatever else), immich, nextcloud with an extension to download from youtube and other sources (basically to circumvent geoblocking of multiple friends and family), and it could be expanded to host other services e.g a seedbox. All that stuff needs good hardware and a good connection.

    Anti Commercial-AI license

  • My problem is that I'm moving in the not so far future and I don't know where to put my server. Physical security is important and if someone gets into my house, takes the computer and leaves, it'll be worthless due to encryption. But if it's in somebody's datacenter (co-location or whatever), they could be forced to monitor my traffic, tamper with my system, and I'd have to entrust the key to somebody in order to boot the system and decrypt the drives should it restart for an update or for any other reason.

    I'm considering asking a friend to host the homeserver and reimburse them for a better internet connection (fiber) + electricity costs. But I'm not sure they'd be up for it.

    How would you solve the problem?

    Anti Commercial-AI license

  • Don't want this to happen? Vote for a left wing party in your area or nationally. Change won't be immediate, but every vote counts. The right wingers are friends of business and unfettered capitalism. They will let this happen time and time again.

    Anti Commercial-AI license

  • Programming @programming.dev

    What are your experiences with mono repos?

    Fediverse @lemmy.world

    Why haven't we figured out monetisation for peertube?

    Programmer Humor @programming.dev

    "No way to prevent this" say users of only language where this regularly happens - 07/01/2024

    Programming @programming.dev

    Is this the electron-alternative we've been waiting for?

    Programmer Humor @programming.dev

    Derisking a project 1 year out

    Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com

    Anybody know why Anna's Archive is torrents only and not IPFS?

    Programming @programming.dev

    Solved: How can containers be forced to use a VPN?

    Programming @programming.dev

    Does anybody actually use trunk based development in their company?

    Programming @programming.dev

    Public personal dev accounts: opinions?

    Programming @programming.dev

    CID concept is broken

    Gaming @beehaw.org

    Can somebody explain why game makers don't start their own companies together?

    Open Source @lemmy.ml

    How are companies or developers supposed to make a full time living with OSI opensourced projects?

    Open Source @lemmy.ml

    TIL: FairCode is the software model Redis, ElasticSearch, etc. use

    Programming @programming.dev

    How do you holistically document microservices in a multi-repo setup?

    linuxmemes @lemmy.world

    Found this on the web years ago

    Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com

    PSA: If you're going to write software for piracy, put it on I2P!

    Programmer Humor @programming.dev

    Should it just be called JASM?

    Programmer Humor @programming.dev

    Probably the wrong meme format

    linuxmemes @lemmy.world

    Arch celebrating plasma 6 dropping a week after NixOS

    Programmer Humor @programming.dev

    FLOSS communities right now