Ryan Gordon Halts FatELF Project

As we all know, Mac OS X has support for what is called ‘fat binaries’. These are binaries that can carry code for for instance multiple architectures – in the case of the Mac, PowerPC and x86. Ryan Gordon was working on an implementation of fat binaries for Linux – but due to the conduct of the Linux maintainers, Gordon has halted the effort.

The project was called FatELF, and was in quite and advanced state already; in fact, a full FatELF version of Ubuntu 9.04 can be downloaded from the project’s website.

The format is very simple: it adds some accounting info at the start of the file, and then appends all the ELF binaries after it, adding padding for alignment. The end of the file isn’t touched, so you can still do things like self-extracting .zip files for multiple architectures with FatELF.

FatELF lets you pack binaries into one file, seperated by OS ABI, OS ABI version, byte order and word size, and most importantly, CPU architecture.

This approach to binaries has a lot of benefits. For instance, distributors could ship a single DVD which would work on all architectures the distribution in question supports, making it easier for users to pick the right .iso to download. It can even go a lot further; you could ship a binary which could work on noth Linux and FreeBSD out of the box.

It all sounds pretty darn impressive and a major step forward, but the Linux kernel maintainers “frowned upon” Gordon’s patches. “It looks like the Linux kernel maintainers are frowning on the FatELF patches,” he writes, “Some got the idea and disagreed, some didn’t seem to hear what I was saying, and some showed up just to be rude.”

He further detailed:

I didn’t really expect to be walking into the buzzsaw that I did. I imagined people would discuss the merits and flaws of the idea and we’d work towards an agreeable solution that improves Linux for everyone. It sure seemed to be going that way at first. Ultimately, I got hit over the head with package management, the bane of third-party development, as a panacea for everything.

After a while it sort of felt like no one was actually understanding a single thing I said. A lot of it felt like willful ignorance, but I suppose I’m biased.

Even if Gordon did get the kernel guys to agree to include his patches, the next hurdle would be glibc. Ulrich Drepper, glibc’s maintainer, isn’t particularly keen on the idea either. “It is a ‘solution’ which adds costs in many, many places for a problem that doesn’t exist,” Drepper states, “I don’t see why people even spend a second thinking about this.”

I’m actually quite sad Gordon is halting the FatELF project. It seems like a very worthwhile addition to the Linux world, and it could make the lives of distributors and users alike a lot easier.

116 Comments

  1. 2009-11-05 11:09 pm
    • 2009-11-05 11:10 pm
      • 2009-11-06 10:56 am
        • 2009-11-06 10:06 pm
        • 2009-11-06 10:41 pm
    • 2009-11-05 11:31 pm
    • 2009-11-06 3:50 am
      • 2009-11-06 11:01 am
        • 2009-11-06 12:43 pm
  2. 2009-11-05 11:12 pm
    • 2009-11-06 1:59 am
      • 2009-11-06 4:26 am
        • 2009-11-06 9:12 pm
    • 2009-11-06 10:45 pm
  3. 2009-11-05 11:19 pm
    • 2009-11-05 11:28 pm
      • 2009-11-05 11:31 pm
      • 2009-11-05 11:52 pm
      • 2009-11-06 12:22 am
      • 2009-11-06 1:16 am
        • 2009-11-06 2:49 am
          • 2009-11-06 3:04 am
          • 2009-11-06 7:33 am
          • 2009-11-06 9:27 am
          • 2009-11-06 11:04 pm
      • 2009-11-06 1:51 am
        • 2009-11-06 3:52 am
          • 2009-11-06 9:12 am
          • 2009-11-06 12:39 pm
          • 2009-11-06 1:36 pm
    • 2009-11-06 8:57 am
  4. 2009-11-05 11:29 pm
    • 2009-11-06 1:30 am
      • 2009-11-06 3:28 am
        • 2009-11-06 4:41 am
          • 2009-11-06 7:09 am
          • 2009-11-06 8:06 am
          • 2009-11-06 8:07 am
          • 2009-11-06 1:23 pm
          • 2009-11-06 4:05 pm
          • 2009-11-07 1:27 am
          • 2009-11-08 5:36 am
          • 2009-11-06 2:56 pm
          • 2009-11-06 4:20 pm
          • 2009-11-06 7:43 pm
          • 2009-11-09 12:50 pm
          • 2009-11-06 9:18 am
          • 2009-11-06 10:36 am
          • 2009-11-06 2:19 pm
          • 2009-11-06 3:13 pm
          • 2009-11-06 6:00 pm
          • 2009-11-09 6:41 pm
          • 2009-11-09 7:09 pm
          • 2009-11-10 12:33 pm
          • 2009-11-06 5:02 pm
          • 2009-11-09 5:38 pm
      • 2009-11-06 1:46 pm
        • 2009-11-06 3:28 pm
          • 2009-11-09 6:44 pm
    • 2009-11-06 3:59 am
  5. 2009-11-05 11:55 pm
  6. 2009-11-05 11:56 pm
    • 2009-11-06 12:01 am
      • 2009-11-07 1:45 am
        • 2009-11-07 7:00 pm
    • 2009-11-06 12:39 am
      • 2009-11-06 12:47 am
      • 2009-11-06 3:17 am
        • 2009-11-06 4:43 am
  7. 2009-11-06 12:02 am
    • 2009-11-07 2:35 pm
      • 2009-11-07 3:14 pm
        • 2009-11-08 5:06 pm
  8. 2009-11-06 12:02 am
    • 2009-11-06 11:47 am
      • 2009-11-06 3:51 pm
        • 2009-11-07 1:50 am
    • 2009-11-07 2:07 am
      • 2009-11-07 9:07 am
        • 2009-11-07 10:15 am
        • 2009-11-08 5:28 pm
          • 2009-11-08 10:00 pm
  9. 2009-11-06 12:10 am
    • 2009-11-06 6:20 am
  10. 2009-11-06 12:18 am
    • 2009-11-06 9:33 pm
    • 2009-11-06 10:09 pm
      • 2009-11-06 10:36 pm
  11. 2009-11-06 12:27 am
    • 2009-11-06 12:38 am
  12. 2009-11-06 12:46 am
  13. 2009-11-06 1:54 am
    • 2009-11-06 4:13 am
      • 2009-11-06 5:39 am
  14. 2009-11-06 3:59 am
  15. 2009-11-06 4:52 am
    • 2009-11-06 10:29 am
  16. 2009-11-06 5:20 am
  17. 2009-11-06 5:40 am
  18. 2009-11-06 5:44 am
  19. 2009-11-06 6:18 am
    • 2009-11-06 10:10 am
    • 2009-11-06 10:15 am
  20. 2009-11-06 9:38 am
  21. 2009-11-06 9:48 am
  22. 2009-11-06 11:43 am
    • 2009-11-06 12:23 pm
  23. 2009-11-06 2:31 pm
  24. 2009-11-06 4:15 pm
    • 2009-11-06 8:06 pm
  25. 2009-11-06 10:02 pm
  26. 2009-11-06 11:34 pm
    • 2009-11-07 3:01 pm
  27. 2009-11-07 10:27 pm
  28. 2009-11-08 12:43 pm