Commit Graph
24 Commits
Author SHA1 Message Date
Ten Eugene 230c63650f std.Io.Reader: add readAllocShort, mirror readAlloc* with readSlice* (#36807)
Closes #36767

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36807
Reviewed-by: Ryan Liptak <squeek502@noreply.codeberg.org>
2026-09-21 07:53:28 +02:00
kcbanner 5dab6a4533 objdump: instead of crashing when using --strings and there is no string table, print a message 2026-09-19 15:35:47 -04:00
kcbanner ab30a0b9a0 Coff: Incremental progress (#36706)
Making progress on incremental support in the COFF linker:

- Support reloc deletion by replacing them with .ABSOLUTE relocs (actually using the relocs from the free list will come later)
- Fixup setting sizes during incremental updates
- Fix incorrect modifications to the target_relocs linked list, add clarifying docs
- Enable `x86_64-windows-selfhosted` for test-incremental

Closes https://codeberg.org/ziglang/zig/issues/31773

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36706
2026-09-05 07:06:21 +02:00
Justus Klausecker 69a26976ed zig fmt
Converts usages of `@intFromEnum` and `@enumFromInt` to instead use the
new `@backingInt` and `@fromBackingInt` builtins.
2026-07-17 23:30:26 +02:00
kcbanner e2c587ae54 objdump: when redacting ordinals, show weak external alias as relative to the WEAK_EXTERNAL symbol
objdump: dump the filename for file aux symbols
test/link: remove the text attribute on the snapshots folder to avoid changing snapshot line endings
2026-06-23 00:27:17 -04:00
kcbanner 09b51b3dc1 objdump: fixup incorrect type in byteSwap 2026-06-23 00:27:17 -04:00
kcbanner 1b74bc22e9 Rebase fixups
- Fixup error sets / use the new linker error conventions
- Improve snapshot diff output
2026-06-23 00:27:17 -04:00
kcbanner 1b95427715 Coff: add support for .is_dll_import
x86_64: emit the correct encodings for loading / calling .is_dll_import externs
Coff: fix emitting an empty import directory
objdump: add --exports=sort for sorting implibs in snapshots (self-hosted outputs members in a different order than llvm)
objdump: fix some missed redactions / filters / elements calls
test: add dllimport standalone test
2026-06-23 00:27:17 -04:00
kcbanner 72bc140ad1 test/link: separate out shared lib tests
- Fixup snapshot naming
- Fixup verifyObjdumps so we can dump other artifacts
- Add llvm link_targets for comparison
2026-06-23 00:27:17 -04:00
kcbanner 7f0b5787fb objdump: various fixes
- symbol filtering applies to import headers
- fix missing formatting hooks
- fix referencing stale memory for reloc symbol names (short names)
- improved output when the user requests things that don't exist in the file
2026-06-23 00:27:16 -04:00
kcbanner 344d0ab72c Coff: handle relocations of absolute symbols
test/link: add absolute symbol tests
2026-06-23 00:27:16 -04:00
kcbanner 2c3f42724d objdump: rework --omit-element= as --elements= for more flexibility 2026-06-23 00:27:16 -04:00
kcbanner 1c6d19b0ff tests: more work on the linker snapshot testing framework
build: add the ability to test the output of a Run step against a snapshot
objdump:  add --redact, --omit-element, --snapshot, and --only-symbol
2026-06-23 00:27:14 -04:00
kcbanner c6d0c68141 objdump: fixup incorrect dumping of implib objects 2026-06-23 00:26:57 -04:00
kcbanner b2eee06bd6 objdump: coff --tls 2026-06-23 00:26:57 -04:00
kcbanner 97bf880486 objdump: coff --imports 2026-06-23 00:26:57 -04:00
kcbanner 6289217383 objdump: coff --exports 2026-06-23 00:26:57 -04:00
kcbanner 32377bb73c objdump: show section number in relocation table 2026-06-23 00:26:57 -04:00
kcbanner 815ef72523 objdump: fix --relocs not triggering object dump
- Reformat table headers
2026-06-23 00:26:56 -04:00
kcbanner 9df2ca0d33 objdump: more coff progress
- Linker member selection
- Dump implib headers
- Dump relocs
- Add more info to table headers for easier grepping
2026-06-23 00:26:56 -04:00
kcbanner 224d7e7999 objdump: more coff progress 2026-06-23 00:26:56 -04:00
kcbanner 601da46f15 objdump: initial COFF implementation 2026-06-23 00:26:56 -04:00
Andrew Kelley f7dabba561 objdump: recognize some file types 2026-04-11 18:56:51 -07:00
Andrew Kelley 1809a19c27 add objdump subcommand
does nothing so far
2026-04-11 18:56:51 -07:00