Jakub Konka
c4519d6bba
lib/std/Build/CheckObject: implement for Wasm
2023-12-13 11:41:51 +01:00
Jakub Konka
92cca7fbf1
lib/std/Build/CheckObject: implement for ELF
2023-12-13 11:38:57 +01:00
Jakub Konka
2492488501
lib/std/Build/CheckObject: introduce scoped checks; implement for MachO
2023-12-13 11:22:46 +01:00
Jakub Konka
a38af5f542
lib/std/Build/CheckObject: fix parsing and dumping special dylib lookup values
2023-12-13 01:29:01 +01:00
Jakub Konka
a2d8e03931
lib/std/Build/CheckObject: dump Mach-O dyld_info_only bind, weak-bind and lazy-bind data
2023-12-10 00:50:52 +01:00
Jakub Konka
5bda88f9a3
lib/std/Build/CheckObject: dump Mach-O dyld_info_only rebase data
2023-12-10 00:14:53 +01:00
Jakub Konka
40952b4cdb
lib/std/Build/CheckObject: dump Mach-O dyld_info_only exports data
2023-12-09 10:57:12 +01:00
Jakub Konka
eb70c8801e
lib/std/Build/CheckObject: dump Mach-O symbol attributes
2023-12-09 09:38:23 +01:00
Jakub Konka
36981d46a3
lib/std/Build/CheckObject: dump Mach-O header
2023-12-08 20:31:45 +01:00
mlugg
51595d6b75
lib: correct unnecessary uses of 'var'
2023-11-19 09:55:07 +00:00
Jakub Konka
261db02018
CheckObject: support parsing and dumping archive symtab for ELF
2023-11-06 21:18:26 +01:00
Andrew Kelley
3fc6fc6812
std.builtin.Endian: make the tags lower case
...
Let's take this breaking change opportunity to fix the style of this
enum.
2023-10-31 21:37:35 -04:00
Jacob Young
d890e81761
mem: fix ub in writeInt
...
Use inline to vastly simplify the exposed API. This allows a
comptime-known endian parameter to be propogated, making extra functions
for a specific endianness completely unnecessary.
2023-10-31 21:37:35 -04:00
Andrew Kelley
8ebebbd134
std.macho: remove alignment from LoadCommandIterator
2023-10-03 14:55:17 -07:00
Jakub Konka
1e899b8769
check-object: dump contents of LC_BUILD_VERSION and LC_VERSION_MIN_* cmds
2023-08-18 11:56:14 +02:00
Felix (xq) Queißner
ce95a3b153
Build.zig rename orgy (aka: #16353 ). Renames FileSource to LazyPath and removes functions that take literal paths instead of LazyPath.
2023-07-30 11:18:50 -07:00
kcbanner
8b9627f01d
test: add a test that verifies no debug handlers get pulled into compiler_rt
...
build: fix CheckObject checkNotPresent only checking a single line of the haystack
2023-07-27 10:31:52 -04:00
Jakub Konka
c0260d39d5
check-object: allow for multiple extractions within one check
2023-07-20 22:12:06 +02:00
Jakub Konka
245f6553e6
check-object: format known OS-specific types before doing generic format
2023-07-20 20:01:06 +02:00
Jakub Konka
3b6200db41
check-object: dump PT flags when dumping program headers
2023-07-20 20:01:06 +02:00
Jakub Konka
e8b613783f
check-object: remove wildcard matchers as they are too clunky
...
Instead, we now have a looser helper called `checkContains(...)`
that will match on any occurrence similarly to `std.mem.indexOf()`.
While at it, I have cleaned up other combinators to make the entire
API more consistent, and so:
* `checkStart(phrase)` is now `checkStart()` followed by
`checkExact(phrase)`
* `checkNext(phrase)` if matching exactly is now `checkExact(phrase)`
* `checkNext(phrase)` if matching loosely is now `checkContains(phrase)`
* `checkNext(phrase)` if matching exactly with var extractors is now
`checkExtract(phrase)`
Finally, `ElfDumper` is now dumping contents of `.symtab` and `.dynsym`
symbol tables. I have also removed dumping of symtabs as optional - they
are now always dumped which cleaned up the implementation even more.
2023-07-20 20:01:06 +02:00
Jakub Konka
5839054e85
check-object: dump contents of .dynamic section
2023-07-20 20:01:06 +02:00
Luuk de Gram
1a3304ed23
test/link: add shared-memory test for WebAssembly
2023-07-19 17:22:46 +02:00
Jakub Konka
77026c67a4
check-object: dump info on PHDRs
2023-07-13 21:27:18 +02:00
Jakub Konka
33154b511c
check-object: dump more info on SHDRs
2023-07-13 20:31:19 +02:00
Jakub Konka
76dc0d5160
check-object: dump some info on SHDRs
2023-07-13 17:01:26 +02:00
Jakub Konka
4c3625d745
check-object: dump ELF header
2023-07-13 14:33:33 +02:00
mlugg
f26dda2117
all: migrate code to new cast builtin syntax
...
Most of this migration was performed automatically with `zig fmt`. There
were a few exceptions which I had to manually fix:
* `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten
* `@truncate`'s fixup is incorrect for vectors
* Test cases are not formatted, and their error locations change
2023-06-24 16:56:39 -07:00
Zapolsky Anton
c76ce25a61
Remove CheckObjectStep.runAndCompare ( #15973 )
...
Closes #14969
2023-06-13 14:09:24 -04:00
Ryan Liptak
815e53b147
Update all std.mem.tokenize calls to their appropriate function
...
Everywhere that can now use `tokenizeScalar` should get a nice little performance boost.
2023-05-13 13:45:04 -07:00
Veikka Tuominen
3f3b1a6808
std.Build: use Step.* instead of *Step
...
Follow up to 13eb7251d37759bd47403db304c6120c706fe353
2023-05-03 20:55:29 -07:00
Nicolas Sterchele
13eb7251d3
build: rename std.Build.*Step to std.Build.Step.*
...
Follow-up actions from #14647
Fixes #14947
2023-05-03 08:39:24 +03:00