Skip to contentSkip to conversation

objtool: bump function name limit to 256 characters

PATCH In review Alexey Dobriyan 2 participants 3 messages Sep 20, 2019 – Sep 21, 2019 objtool

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 objtool: bump function name limit to 256 characters

Fix the following warning:

net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters

---

 tools/objtool/elf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/objtool/elf.c +1 -1
@@ -19,7 +19,7 @@
 #include "elf.h"
 #include "warn.h"
 
-#define MAX_NAME_LEN 128
+#define MAX_NAME_LEN 256
 
 struct section *find_section_by_name(struct elf *elf, const char *name)
 {
#1 lore raw
Quoted 3 lines · Alexey Dobriyan

Fix the following warning:

net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters

Hm, since when do we have mangled symbols in the kernel?

Signature · 1 line
Josh
#2 lore raw
Quoted 6 lines · Josh Poimboeuf
Quoted 3 lines · Alexey Dobriyan

Fix the following warning:

net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters

Hm, since when do we have mangled symbols in the kernel?

We don't, yet :-)