You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
annobin/SOURCES/annobin-gcc-plugin-input-fi...

22 lines
755 B

--- annobin.orig/gcc-plugin/annobin.cc 2024-11-04 10:17:09.628685926 +0000
+++ annobin-12.72/gcc-plugin/annobin.cc 2024-11-04 10:18:01.542935615 +0000
@@ -540,7 +540,17 @@ annobin_gen_string_note (annobin_functio
if (use_extended_string)
{
- size_t len = strlen (annobin_note_buffer) + 1 + strlen (annobin_input_filename);
+ // For some reason this is happening with RHEL-10 builds.
+ if (annobin_input_filename == NULL)
+ {
+ if (!init_annobin_input_filename ())
+ {
+ ice ("annobin_gen_string_note called without an input filename\n");
+ return;
+ }
+ }
+
+ size_t len = strlen (dst) + 1 + strlen (annobin_input_filename);
if (! is_global (info))
len += strlen (get_func_name (info)) + 1;