Skip to content

Use new directives on x86 #3931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 8, 2025
Prev Previous commit
Next Next commit
stapsdt handling on different platforms
  • Loading branch information
spiessimon committed May 7, 2025
commit 2dfacdc3b0bc1b2ca08a02773d34033306c2a5c8
6 changes: 4 additions & 2 deletions backend/asm_targets/asm_section.ml
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,13 @@ let details t ~first_occurrence =
| Read_only_data, _, (MinGW_32 | Win32) -> data ()
| Read_only_data, _, (MinGW_64 | Cygwin) -> [".rdata"], Some "dr", []
| Read_only_data, _, _ -> rodata ()
(* CR sspies: Is this one really possible on all systems? *)
| Stapsdt_base, _, _ ->
| Stapsdt_base, _, (GNU | Solaris | Linux | Generic_BSD | BeOS) ->
[".stapsdt.base"], Some "aG", ["\"progbits\""; ".stapsdt.base"; "comdat"]
| Stapsdt_base, _, _ ->
Misc.fatal_error "stapsdt not supported on platforms other than Linux."
| Stapsdt_note, _, MacOS_like ->
["__DATA"; "__note_stapsdt"], None, ["regular"]
(* NOTE: This is section is currently not tested. *)
| Stapsdt_note, _, (GNU | Solaris | Linux | Generic_BSD | BeOS) ->
[".note.stapsdt"], Some "?", ["\"note\""]
| Stapsdt_note, _, _ ->
Expand Down
Loading