diff --git a/samples/2_Cookbook/16_assembly_to_executable/hip_obj_gen.mcin b/samples/2_Cookbook/16_assembly_to_executable/hip_obj_gen.mcin index 4551e5a1c4..8153784242 100644 --- a/samples/2_Cookbook/16_assembly_to_executable/hip_obj_gen.mcin +++ b/samples/2_Cookbook/16_assembly_to_executable/hip_obj_gen.mcin @@ -12,9 +12,17 @@ # # Note: log 2 of 4096 is 12. # - .type __hip_fatbin,@object - .section .hip_fatbin,"a",@progbits - .globl __hip_fatbin + .protected __hip_gpubin_handle_ + .type __hip_gpubin_handle_,@object + .section .hip_gpubin_handle,"aw" + .globl __hip_gpubin_handle_ .p2align 12 -__hip_fatbin: +__hip_gpubin_handle_: + .zero 8 + + .type __hip_fatbin_,@object + .section .hip_fatbin,"a",@progbits + .globl __hip_fatbin_ + .p2align 12 +__hip_fatbin_: .incbin "offload_bundle.hipfb" diff --git a/samples/2_Cookbook/17_llvm_ir_to_executable/hip_obj_gen.mcin b/samples/2_Cookbook/17_llvm_ir_to_executable/hip_obj_gen.mcin index 4551e5a1c4..8153784242 100644 --- a/samples/2_Cookbook/17_llvm_ir_to_executable/hip_obj_gen.mcin +++ b/samples/2_Cookbook/17_llvm_ir_to_executable/hip_obj_gen.mcin @@ -12,9 +12,17 @@ # # Note: log 2 of 4096 is 12. # - .type __hip_fatbin,@object - .section .hip_fatbin,"a",@progbits - .globl __hip_fatbin + .protected __hip_gpubin_handle_ + .type __hip_gpubin_handle_,@object + .section .hip_gpubin_handle,"aw" + .globl __hip_gpubin_handle_ .p2align 12 -__hip_fatbin: +__hip_gpubin_handle_: + .zero 8 + + .type __hip_fatbin_,@object + .section .hip_fatbin,"a",@progbits + .globl __hip_fatbin_ + .p2align 12 +__hip_fatbin_: .incbin "offload_bundle.hipfb"