[PATCH] D144565: dwp check overflow

zhuna via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 04:34:05 PST 2023


zhuna8616 added a comment.

I added a test case for detecting overflow cases. I will look into the `error to warning` option presently.

The gist of the test is:

- create 2 simple C code files `main.c, hello.c` with skeleton functions, one calling the other
- compile them with split-dwarf option on to assembly code
- manually change the section attribute of `hello.s .debug_info`, and let the section have size close to 2^32-1
- compile & link the 2 .s files and `llvm-dwp` the linked result

The last step should produce an error prompt, indicating an overflow.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144565/new/

https://reviews.llvm.org/D144565



More information about the llvm-commits mailing list