Hello, The Java front end emits assembly from class.c:emit_register_classes() to fill the .jcr section. This is not something a front end ought to be doing. Things to write out to the assembler output file should go through the varpool/varasm mechanism. The attached patch makes emit_register_classes build a constructor for the .jcr section, and stops it calling output_constant. The patch passes build+testing on powerpc64-unknown-linux-gnu. With this patch a variable named "_Jv_CLS" is written out. The assembly before and after the patch is the same, except for the variable name. I want to write out a nameless variable but I don't know how. Help welcome. Ciao! Steven java/ PR java/52730 * class.c (emit_register_classes_in_jcr_section): New function. (emit_Jv_RegisterClass_calls): New function, split out from ... (emit_register_classes): ... here. Reorganize. Do not call output_constant.