Commit 5e39ac8
committed
[llvm-objcopy] Let --change-section-lma change segments wth filesz=0, memsz>0
Currently, segments with a file size of 0 are ignored for the purposes of
--change-section-lma, regardless of their memory size. It seems reasonable
to me to modify such segments given that we're changing the LMA for all
sections and these LMAs may be used during loading. GNU objcopy also seems
to adjust such segments.
Fixes #1246801 parent 5ecce45 commit 5e39ac8
File tree
2 files changed
+14
-5
lines changed- llvm
- lib/ObjCopy/ELF
- test/tools/llvm-objcopy/ELF
2 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
| 827 | + | |
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments