Skip to content

Commit 167370f

Browse files
tejlmandjukkar
authored andcommitted
[nrf fromtree] cmake: clear llvm bintool gapfill property
The llvm-objcopy doesn't support a gap-fill argument, therefore clear the property to remove the error: > llvm-objcopy: error: unknown argument '--gap-fill' Signed-off-by: Torsten Rasmussen <[email protected]> (cherry picked from commit 71fd4d9) (cherry picked from commit b249f97)
1 parent ad855fa commit 167370f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cmake/bintools/llvm/target_bintools.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ set_property(TARGET bintools PROPERTY elfconvert_flag_section_remove "--remove-s
4444
set_property(TARGET bintools PROPERTY elfconvert_flag_section_only "--only-section=")
4545
set_property(TARGET bintools PROPERTY elfconvert_flag_section_rename "--rename-section;")
4646

47-
# Note, placing a ';' at the end results in the following param to be a list,
48-
# and hence space separated.
49-
# Thus the command line argument becomes:
50-
# `--gap-file <value>` instead of `--gap-fill<value>` (The latter would result in an error)
51-
set_property(TARGET bintools PROPERTY elfconvert_flag_gapfill "--gap-fill;")
47+
# llvm-objcopy doesn't support gap fill argument.
48+
set_property(TARGET bintools PROPERTY elfconvert_flag_gapfill "")
5249
set_property(TARGET bintools PROPERTY elfconvert_flag_srec_len "--srec-len=")
5350

5451
set_property(TARGET bintools PROPERTY elfconvert_flag_infile "")

0 commit comments

Comments
 (0)