Skip to content

Commit

Permalink
Fix RWX section linking error
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjian85 committed Jun 25, 2024
1 parent 98a6255 commit c4b39a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ typedef struct {

#define dev_init(compat, func) \
section(.init.dev) \
used static dev_init_t _DEV_INIT = {_MODULE_NAME, compat, func}
used static const dev_init_t _DEV_INIT = {_MODULE_NAME, compat, func}
2 changes: 1 addition & 1 deletion kernel.ld
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SECTIONS {
*(.init)
}

. = ALIGN(4K);
. = ALIGN(8);
PROVIDE(_pre_init_start = .);
.init.pre_init : {
*(.init.pre_init)
Expand Down

0 comments on commit c4b39a5

Please sign in to comment.