arc: libc, libgloss: Remove .file directive from .S files

Assembler for ARCv2 always extends the name provided by
.file directive to an absolute form.

On ARCv3 targets .file directive forces assembler to put
a provided string to DW_AT_name field as is without
extending to an absolute path. Then GDB cannot find
source files because of it.

The best way to fix this issue is just delete lines
with .file directive in .S files and let the compiler
to decide what DW_AT_name must contain. Particularly,
the compiler fills this filed by an absolute path to
a .S file because only absolute paths are used in
toolchain's build process.

Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
This commit is contained in:
Yuriy Kolerov 2024-05-21 10:56:46 +01:00 committed by Jeff Johnston
parent d85bb55f45
commit 880d537347
2 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
Copyright (c) 2015-2016, Synopsys, Inc. All rights reserved. Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@ -55,7 +55,6 @@
#define __ARCHS__ 1 #define __ARCHS__ 1
#endif #endif
.file "crt0.S"
.extern main .extern main
#if defined (__ARCEM__) || defined (__ARCHS__) #if defined (__ARCEM__) || defined (__ARCHS__)

View File

@ -1,5 +1,5 @@
/* /*
Copyright (c) 2015, Synopsys, Inc. All rights reserved. Copyright (c) 2015-2024, Synopsys, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: modification, are permitted provided that the following conditions are met:
@ -32,8 +32,6 @@
these are the stack mappings for the registers these are the stack mappings for the registers
as stored in the ABI for ARC */ as stored in the ABI for ARC */
.file "setjmp.S"
ABIr13 = 0 ABIr13 = 0
ABIr14 = ABIr13 + 4 ABIr14 = ABIr13 + 4
ABIr15 = ABIr14 + 4 ABIr15 = ABIr14 + 4