[gtk/matthiasc/for-main] Cosmetic fixes to objcopy hack




commit 8bd77441a9c04536b7c810afb72dd0d41d234283
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 14 07:53:47 2022 -0400

    Cosmetic fixes to objcopy hack
    
    Preserve the elf section name that we would get
    without the objcopy hack. Minimizing the differences

 gtk/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 3a8457ada7..987835ff9d 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -942,7 +942,8 @@ if not meson.is_cross_build() and build_machine.cpu_family() != 'arm' and build_
     output : 'gtkresources_blob2.o',
     command : [objcopy,
                  '--strip-all',
-                 '--add-symbol','_gtk_resource_data=.data:0',
+                 '--rename-section', '.data=.gresource.gtk',
+                 '--add-symbol','_gtk_resource_data=.gresource.gtk:0',
                  '@INPUT@',
                  '@OUTPUT@'])
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]