Details
- Reviewers
grimar
Diff Detail
Event Timeline
ELF/Config.h | ||
---|---|---|
63 | May be it worth to rename these 2 to be placed together like HashGnu and HashSysv ? Or just make a single enum ? | |
ELF/Driver.cpp | ||
176 | May be it worth to explicit set flags for "both" ? if (S == "both") { Config->SysvHash = true; Config->GnuHash = true; } it makes it more clear (I saw this first time and was need to look into Configuration to check that both works as expected + without that it depends on default initialization which can change). | |
test/elf2/discard-none.s | ||
49 | Do we really need to mantain adresses in such cases ? They changes often, may be we should just skip checking here like: | |
test/elf2/shared.s | ||
284 | Was the next part of test removed intentionaly ? CHECK: HashTable { |
ELF/Config.h | ||
---|---|---|
63 | GnuHash and SysvHash sound natural to me, so I'll leave them alone. | |
ELF/Driver.cpp | ||
176 | That is probably excessive. There are actually five cases: gnu, sysv, both, invalid argument, or no --hash-style flag. We cover four cases here. No matter how we write code for "both", the last one is pretty much implicit. | |
test/elf2/discard-none.s | ||
49 | I feel like this serves the purpose as a safeguard. Not sure how effective that is, but I don't think removing that is the right thing to do in this patch. | |
test/elf2/shared.s | ||
284 | This is intentional. |
LGTM except that I would do enum or bitfield instead of 2 independent variables and i still dont like initialization, but anyways its for you to decide how will be better, so..
test/elf2/discard-none.s | ||
---|---|---|
49 | The problem I see here that single patch changes too many files that are not relative to core idea of patch at all. Also dont see whats the safeguard can be here. Does it save from addresses not being generated ? |
test/elf2/discard-none.s | ||
---|---|---|
49 | I mean not this patch changes, but patches usually do. |
The default settings for hash section should be target-specific. At least MIPS targets don't support GNU-style hash sections at all.
test/elf2/shared.s | ||
---|---|---|
284 | It looks like we now have no tests which check HashTable section. I'd suggest to add -hash-style=sysv command line switch at least for this test case. |
test/elf2/shared.s | ||
---|---|---|
284 | May be would be better to add another test in another patch for testing hashtable sections then ? |
May be it worth to rename these 2 to be placed together like HashGnu and HashSysv ? Or just make a single enum ?