[Bug gas/28262] Add warning when generating code in data section

2021-09-07 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28262 --- Comment #5 from Dietmar May --- > Ran in what environment ? Bare metal aarch64 boot loader - the very first steps in bring up an existing custom operating system on a new hardware platform. > So how did the assembled-into-a-data-section

[Bug gas/28262] Add warning when generating code in data section

2021-09-05 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28262 --- Comment #2 from Dietmar May --- > Are you sure about this ? If the code is in a non-executable section then it > should be linked into a non-executable segment, and so it should never be run. Please see the attachment for 28254: https:/

[Bug gas/28262] New: Add warning when generating code in data section

2021-08-24 Thread dcmay at copper dot net
Component: gas Assignee: unassigned at sourceware dot org Reporter: dcmay at copper dot net Target Milestone: --- If assembler code exists within a section that does not have a flags argument, and does not have a "well known" name (like ".init" or ".te

[Bug gas/28254] gas 2.36.1 fails to generate debugging information for aarch64 .S files

2021-08-24 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 --- Comment #10 from Dietmar May --- >> Consider a stub of code that is intended to be copied somewhere else before >> it is executed That seems like the exception, rather than the rule. In that situation, the section can be explicitly marked

[Bug gas/28254] gas 2.36.1 fails to generate debugging information for aarch64 .S files

2021-08-24 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 --- Comment #7 from Dietmar May --- OK. From the AS manual: "If no flags are specified, the default flags depend upon the section name. If the section name is not recognized, the default will be for the section to be loaded and writable." We

[Bug gas/28254] gas 2.63.1 fails to generate debugging information for aarch64 .S files

2021-08-24 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 --- Comment #5 from Dietmar May --- No, I trust that it works. The PR states: >> DW_AT_ranges (since DWARF v3; probably ok to have it in -gdwarf-2) probably >> should not have contribution from non-executable sections. But this is NOT a non

[Bug gas/28254] gas 2.63.1 fails to generate debugging information for aarch64 .S files

2021-08-24 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 Dietmar May changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|WONTFIX

[Bug gas/28254] gas 2.63.1 fails to generate debugging information for aarch64 .S files

2021-08-20 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 Dietmar May changed: What|Removed |Added CC||omair.javaid at linaro dot org -- You

[Bug gas/28254] gas 2.63.1 fails to generate debugging information for aarch64 .S files

2021-08-20 Thread dcmay at copper dot net
https://sourceware.org/bugzilla/show_bug.cgi?id=28254 Dietmar May changed: What|Removed |Added CC||luis.machado at linaro dot org -- You

[Bug gas/28254] New: gas 2.63.1 fails to generate debugging information for aarch64 .S files

2021-08-20 Thread dcmay at copper dot net
Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: dcmay at copper dot net Target Milestone: --- Created attachment 13622 --> https://sourceware.org/bugzilla/attachment.cgi?id=13622&action=edit sample .s file