Skip to content

Commit b7e29be

Browse files
committed
Dont require bss_size for .bss segment type
1 parent 3b56ee1 commit b7e29be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/splat/segtypes/segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def from_yaml(
430430
if options.opts.ld_bss_is_noload and isinstance(ret, CommonSegBss):
431431
# We need to know the bss space for the segment.
432432
if isinstance(parent, CommonSegCode):
433-
if parent.bss_size <= 0:
433+
if not ret.type.startswith(".") and parent.bss_size <= 0:
434434
log.error(
435435
f"Top-level segment '{parent.name}' is missing a `bss_size` value.\n A non-zero `bss_size` value must be defined on the top-level segments that contain '{ret.type}' sections (produced by the '{ret.name}' section)."
436436
)

0 commit comments

Comments
 (0)