Skip to content

Commit

Permalink
Dont include static functions in linker script (issue confluentinc#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed May 18, 2016
1 parent 671297d commit e568367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lds-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
m = re.match(r'^(\S+.*\s+\**)?(rd_kafka_\S+)\s*\(', line)
if m:
sym = m.group(2)
m2 = re.match(r'(RD_UNUSED|__attribute__\(\(unused\)\))', line)
# Ignore static (unused) functions
m2 = re.match(r'(RD_UNUSED|__attribute__\(\(unused\)\))', last_line)
if not m2:
funcs.append(sym)
last_line = ''
Expand Down

0 comments on commit e568367

Please sign in to comment.