gcc m68k: put macsbug symbols in the same section as the function again, because gcc7 sometimes puts two functions in one section. --mac-strip-macsbug has no effect for now.

This commit is contained in:
Wolfgang Thaller 2017-10-07 16:07:53 +02:00
parent 6edc940bd2
commit b30c823f2b

View File

@ -6771,8 +6771,8 @@ m68k_write_macsbug_name(FILE *file, const char *name)
int len = strlen(name);
if(len > 255)
len = 255;
if(flag_function_sections)
fprintf(file, "\t.section .text.%s.macsbug,\"ax\",@progbits\n",name);
//if(flag_function_sections)
// fprintf(file, "\t.section .text.%s.macsbug,\"ax\",@progbits\n",name);
fprintf(file, "# macsbug symbol\n");
if(!retro68_hack_asm_rts_counter)
fprintf(file, "\trts\n");
@ -6783,8 +6783,8 @@ m68k_write_macsbug_name(FILE *file, const char *name)
ASM_OUTPUT_ASCII(file, name, len);
fprintf(file, "\t.align 2,0\n\t.short 0\n");
if(flag_function_sections)
fprintf(file, "\t.section .text.%s,\"ax\",@progbits\n",name);
//if(flag_function_sections)
// fprintf(file, "\t.section .text.%s,\"ax\",@progbits\n",name);
}
static tree