21 Oct 2024 |
aleksana (force me to bed after 18:00 UTC) | https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#staging | 14:28:58 |
aleksana (force me to bed after 18:00 UTC) | Cannot merge branch 'master' into itself. For more information, see https://docs.github.com/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams#creating-mermaid-diagrams | 14:29:03 |
aleksana (force me to bed after 18:00 UTC) | Not familiar with this | 14:29:16 |
emily | GitHub updated Mermaid and it doesn't like our branch diagram now. | 14:31:06 |
emily | In reply to @qyliss:fairydust.space
Tethys SvenssonUh, what's binutils-unwrapped-all-targets?
it is in fact maybe exactly what they want, I think. | 14:31:37 |
emily | Xen was doing overrideAttrs crimes on binutils for want of that too. antimemetic package. | 14:32:00 |
| nyanbinary 🏳️⚧️ left the room. | 14:37:14 |
| nyanbinary 🏳️⚧️ joined the room. | 14:38:47 |
Tethys Svensson | It's kinda useful. Some parts of binutils support building for multiple architectures at once. This is useful to e.g. get a single gdb binary that supports many architectures at once. | 14:46:22 |
Tethys Svensson | However not all parts of binutils support building for multiple architectures at once. Specifically the assembler only supports building for a single architecture at a some (or perhaps architecture family, I'm not quite sure). | 14:46:58 |
Tethys Svensson | In any case, no: this unfortunately won't solve mu problems | 14:47:08 |
Tethys Svensson | Pwntools is already using a multiarchitecture-aware gdb. I don't quite remember, but it might also be possible to get a multiarchitecture-aware disassembler. But I'm fairly sure that there is absolutely no way to get binutils to build an architecture-away assembler. | 14:48:47 |
Alyssa Ross | What does pwntools do with an assembler, as opposed to a disassembler? | 14:52:08 |
Tethys Svensson | It's a tool and library for playing Capture The Flag competitions (hacking competitions). It helps you write shellcode and has a bunch of pre-written shellcodes for many different architectures | 14:54:06 |
Alyssa Ross | I see, it helps you write things as opposed to just analyze them | 14:54:49 |
Alyssa Ross | gas has a --enable-targets=all option? | 14:55:41 |
Alyssa Ross | that's the assembler, right? | 14:56:03 |
Tethys Svensson | Yes, that is the assembler. If you can actually get it to work I'm very impressed though. | 14:56:53 |
Alyssa Ross | If it's supposed to work and doesn't, we probably need to talk to upstream rather than adding new packages… | 14:57:11 |
Tethys Svensson | I wouldn't bet my life on it, but I have sunk multiple hours into getting a functional multi-architecture-aware assembler to work | 14:57:13 |
aleksana (force me to bed after 18:00 UTC) | Redacted or Malformed Event | 14:58:16 |
Alyssa Ross | What went wrong when you tried? Build failure on runtime? | 14:58:39 |
aleksana (force me to bed after 18:00 UTC) | In reply to @aleksana:mozilla.org https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#staging https://github.com/NixOS/nixpkgs/pull/350258 | 14:58:42 |
Tethys Svensson | From the gas README:
`--enable-targets=...'
This causes one or more specified configurations to be added to those for
which BFD support is compiled. Currently gas cannot use any format other
than its compiled-in default, so this option is not very useful.
| 14:59:29 |
Alyssa Ross | Aha, okay. | 15:00:09 |
Alyssa Ross | So is gas the only thing we'd need multiple packages for? | 15:01:47 |
Alyssa Ross | Not the rest of binutils? | 15:01:57 |
Tethys Svensson | Possibly yes. Pwntools uses other tools like objcopy and objdump. I don't remember if those specific tools works with multiple architectures or not | 15:02:29 |
Tethys Svensson | I think they only hacked in multi-architecture support for what they considered most important, but I'm not sure | 15:02:43 |
Alyssa Ross | Would you mind checking which parts we actually need? This might be easier if we don't need whole binutils packages for all of these. | 15:03:11 |