Announcement

Collapse
No announcement yet.

Linux Kernel Finally Deprecating A.out Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux Kernel Finally Deprecating A.out Support

    Phoronix: Linux Kernel Finally Deprecating A.out Support

    Linux has supported ELF binaries since the 1.x kernel days and now 25 years later, its support for the a.out file format is finally on the way out the door...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    It was always confusing me that there are two things: "a.out" file format and "a.out" the default output file name for gcc. I assume they were related, just gcc changed file format without changing filename.

    Comment


    • #3
      Moving to 100% ELF support. Elrond and Legolas agree.

      Comment


      • #4
        Wikipedia have a comparison of executable file formats. ELF is much better than a.out.

        ELF still does not natively support embedding a icon though. Only possible using an extension. Microsoft's PE32+ format supports icons.

        Comment


        • #5
          Originally posted by uid313 View Post
          Wikipedia have a comparison of executable file formats. ELF is much better than a.out.

          ELF still does not natively support embedding a icon though. Only possible using an extension. Microsoft's PE32+ format supports icons.
          Windows does not support executable being execute only either. It comes a little hard to have icons inside the executable and work when to the shell is able to read the executable because it execute only. This is why the .desktop file you can have that read without making the core of the executable read.

          There are platform differences here so icons in elf files make limited sense due to security differences.

          Comment


          • #6
            I remember using a.out format built somewhat smaller files than ELF. There was a a.out specific gcc option -N to save even more disc space but I can't remember what it actually did.

            Comment


            • #7
              Originally posted by George99 View Post
              I remember using a.out format built somewhat smaller files than ELF. There was a a.out specific gcc option -N to save even more disc space but I can't remember what it actually did.

              Really above is a good read. The smallest elf you can make that works is 45 bytes that is that is smaller than ELF format header of 64. Smallest functional A.out is also 45 bytes. Yes A.out has a smaller executable header at 32 bytes than ELF 64 executable header but you cannot put executable code inside that header a.out header so you have to put your 13 bytes of required asm for executable at the end resulting in the identical 45 byte value. This is one of the warped things.

              You will never have a compiler naturally spit out a super optimised elf or a.out without some serous bashing.

              Comment


              • #8
                Originally posted by oiaohm View Post
                Windows does not support executable being execute only either. It comes a little hard to have icons inside the executable and work when to the shell is able to read the executable because it execute only. This is why the .desktop file you can have that read without making the core of the executable read.

                There are platform differences here so icons in elf files make limited sense due to security differences.
                Can you elaborate on what exactly you are talking about? (perhaps a link would help since your english isn't so good)

                Comment


                • #9
                  Originally posted by uid313 View Post
                  Wikipedia have a comparison of executable file formats. ELF is much better than a.out.

                  ELF still does not natively support embedding a icon though. Only possible using an extension. Microsoft's PE32+ format supports icons.
                  Next step is for Linux to support PE natively. Even UEFI does it, and it's superior to ELF, so obviously if we are to pick just one executable format, PE makes the most sense.

                  Then we can finally be rid of the global namespace cancer. Yeah it will take decades but we have to start at some point.

                  Comment


                  • #10
                    Originally posted by Weasel View Post
                    Next step is for Linux to support PE natively. Even UEFI does it, and it's superior to ELF, so obviously if we are to pick just one executable format, PE makes the most sense.

                    Then we can finally be rid of the global namespace cancer. Yeah it will take decades but we have to start at some point.
                    Is PE really superior to ELF?
                    I thought that they were both pretty much roughly equivalent with none significantly better than the other.

                    What do you mean with global namespace cancer? How does this relate to namespaces?

                    Comment

                    Working...
                    X