Cosmetic fixes to objcopy hack
authorMatthias Clasen <mclasen@redhat.com>
Sat, 14 May 2022 11:53:47 +0000 (07:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 May 2022 11:53:47 +0000 (07:53 -0400)
Preserve the elf section name that we would get
without the objcopy hack. Minimizing the differences

gtk/meson.build

index 3a8457ada7aa5c7ff7e13550f9efde23ac0df5f4..987835ff9dcb8d81ba660e195d3977299f3fdaa3 100644 (file)
@@ -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@'])