18 lines
624 B
Diff
18 lines
624 B
Diff
Link: https://www.mail-archive.com/elfutils-devel@sourceware.org/msg03817.html
|
|
Subject: fix undefined referense to function buffer_left
|
|
Bug:
|
|
Tags: common
|
|
|
|
diff -Naur orig/src/elflint.c new/src/elflint.c
|
|
--- orig/src/elflint.c 2021-07-13 18:42:34.095812026 +0300
|
|
+++ new/src/elflint.c 2021-07-13 18:42:53.691562320 +0300
|
|
@@ -3434,7 +3434,7 @@
|
|
return p - (const unsigned char *) data->d_buf;
|
|
}
|
|
|
|
-inline size_t
|
|
+static inline size_t
|
|
buffer_left (Elf_Data *data, const unsigned char *p)
|
|
{
|
|
return (const unsigned char *) data->d_buf + data->d_size - p;
|