1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-21 17:42:26 -04:00

Remove unnecessary define

This commit is contained in:
Alex Kotov 2022-01-14 11:05:13 +05:00
parent c8ccffbf47
commit e37d4ac0f2
5 changed files with 4 additions and 5 deletions

View file

@ -14,7 +14,7 @@ SECTIONS
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
*(.multiboot2)
*(.text)
}

View file

@ -1,6 +1,6 @@
#include <kernaux/multiboot2.h>
__attribute__((section(KERNAUX_MULTIBOOT2_HEADER_SECTION), used))
__attribute__((section(".multiboot2"), used))
__attribute__((aligned(KERNAUX_MULTIBOOT2_HEADER_ALIGN)))
const struct {
struct KernAux_Multiboot2_Header multiboot2_header;

View file

@ -14,7 +14,7 @@ SECTIONS
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
*(.multiboot2)
*(.text)
}

View file

@ -1,6 +1,6 @@
#include <kernaux/multiboot2.h>
__attribute__((section(KERNAUX_MULTIBOOT2_HEADER_SECTION), used))
__attribute__((section(".multiboot2"), used))
__attribute__((aligned(KERNAUX_MULTIBOOT2_HEADER_ALIGN)))
const struct {
struct KernAux_Multiboot2_Header multiboot2_header;

View file

@ -11,7 +11,6 @@ extern "C" {
#define KERNAUX_MULTIBOOT2_HEADER_MAGIC 0xE85250D6
#define KERNAUX_MULTIBOOT2_INFO_MAGIC 0x36D76289
#define KERNAUX_MULTIBOOT2_HEADER_SECTION ".multiboot"
#define KERNAUX_MULTIBOOT2_HEADER_ALIGN 4
#define KERNAUX_MULTIBOOT2_HEADER_CHECKSUM(arch, total_size) \