Skip to content

[Suggestion]: Allow kind: group entries to take section_order #80

Description

@AngheloAlf

Explain the feature

Allow using section_order on groups, and apply it to the listed files of the group.

Advantage

  • Avoids repetition

Disadvantage

  • More code to write
  • Not that common of an issue
  • Not clear what to do when both a group and a file from that group have an explicit and different section_order. Probably override.

Example(s)

Currently if we want to change the section order of all the files in a group it is needed to be set on every file, like this.

      - kind: group
        files:
          - { path: src/shapes.o, section_order: { .data: .rodata } }
          - { path: src/rcp_init.o, section_order: { .data: .rodata } }
          - { path: src/samples.o, section_order: { .data: .rodata } }

Ideally we could just tag the group itself and avoid repetition.

      - kind: group
        section_order: { .data: .rodata }
        files:
          - { path: src/shapes.o }
          - { path: src/rcp_init.o }
          - { path: src/samples.o }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions