Skip to contentSkip to conversation

multiboot2: clarify usage of the address tag

PATCH Superseded Roger Pau Monne 2 participants 11 messages Jun 7, 2018 – Jun 11, 2018

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 multiboot2: clarify usage of the address tag

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +6 -0
index 2e2d7e74a..3c797787c 100644
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+
 @subsection The entry address tag of Multiboot2 header
 
 @example
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 20 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 9 lines
doc/multiboot.texi +6 -0
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
In reply to Roger Pau Monne
Quoted 20 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 9 lines
doc/multiboot.texi +6 -0
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Daniel

#3 lore raw
Quoted 24 lines · Daniel Kiper
Quoted 23 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
Quoted 11 lines

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 6 lines
doc/multiboot.texi +6 -0
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
In reply to Daniel Kiper
Quoted 24 lines · Daniel Kiper
Quoted 23 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
Quoted 11 lines

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 6 lines
doc/multiboot.texi +6 -0
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

Roger.

#5 lore raw
Quoted 37 lines · Roger Pau Monné
Quoted 24 lines · Daniel Kiper
Quoted 23 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
Quoted 11 lines

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 6 lines
doc/multiboot.texi +6 -0
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Quoted 4 lines

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

I would put this as a second sentence in note, just after "... some other format." However, then probably last sentence should be rephrased a bit.

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw
In reply to Roger Pau Monné
Quoted 37 lines · Roger Pau Monné
Quoted 24 lines · Daniel Kiper
Quoted 23 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
Quoted 11 lines

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 6 lines
doc/multiboot.texi +6 -0
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Quoted 4 lines

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

I would put this as a second sentence in note, just after "... some other format." However, then probably last sentence should be rephrased a bit.

Daniel

#7 lore raw
Quoted 38 lines · Daniel Kiper
Quoted 37 lines · Roger Pau Monné
Quoted 35 lines · Daniel Kiper
Quoted 20 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 9 lines
doc/multiboot.texi +6 -0
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Quoted 8 lines
Quoted 4 lines

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

I would put this as a second sentence in note, just after "... some other format." However, then probably last sentence should be rephrased a bit.

I think the following is clear enough:

"Note: This information does not need to be provided if the kernel image is in @sc{elf} format, but it must be provided if the image is in a.out format or in some other format. When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present. Compliant boot loaders must be able to load images that are either in @sc{elf} format or contain the address tag embedded in the Multiboot2 header."

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#8 lore raw
In reply to Daniel Kiper
Quoted 38 lines · Daniel Kiper
Quoted 37 lines · Roger Pau Monné
Quoted 35 lines · Daniel Kiper
Quoted 20 lines · Roger Pau Monne

Add a note to spell out that if the address tag is not present the file should be loaded using the elf header.

---
Cc: Daniel Kiper <[email protected]>
Cc: [email protected]
---
Changes since v1:
- s/elf/@sc{elf}/
- s/Multiboot/Multiboot2/

---
 doc/multiboot.texi | 6 ++++++
 1 file changed, 6 insertions(+)
doc/multiboot.texi +0 -0
index 2e2d7e74a..3c797787c 100644

doc/multiboot.texi assumes that no bss segment is present. · line 517

Quoted 9 lines
doc/multiboot.texi +6 -0
@@ -509,6 +509,12 @@ assumes that no bss segment is present.
 
 @end table
 
+Note: This information does not need to be provided if the kernel image
+is in @sc{elf} format, but it must be provided if the image is in a.out
+format or in some other format. Compliant boot loaders must be able to
+load images that are either in @sc{elf} format or contain the address
+tag embedded in the Multiboot2 header.
+

Now it is better. However, there is a lack of information that this tag should be preferred over the relevant data provided in the ELF header if both are available in the image. This have to be clear like it is in Multiboot spec.

Quoted 8 lines
Quoted 4 lines

Would you be OK with adding the following sentence at the end:

"When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present."

I would put this as a second sentence in note, just after "... some other format." However, then probably last sentence should be rephrased a bit.

I think the following is clear enough:

"Note: This information does not need to be provided if the kernel image is in @sc{elf} format, but it must be provided if the image is in a.out format or in some other format. When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present. Compliant boot loaders must be able to load images that are either in @sc{elf} format or contain the address tag embedded in the Multiboot2 header."

Roger.

#9 lore raw

On Mon, Jun 11, 2018 at 11:30:16AM +0200, Roger Pau Monné wrote:

[...]

Quoted 8 lines

I think the following is clear enough:

"Note: This information does not need to be provided if the kernel image is in @sc{elf} format, but it must be provided if the image is in a.out format or in some other format. When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present. Compliant boot loaders must be able to load images that are either in @sc{elf} format or contain the address tag embedded in the Multiboot2 header."

LGTM. Thanks!

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#10 lore raw
In reply to Roger Pau Monné

On Mon, Jun 11, 2018 at 11:30:16AM +0200, Roger Pau Monné wrote:

[...]

Quoted 8 lines

I think the following is clear enough:

"Note: This information does not need to be provided if the kernel image is in @sc{elf} format, but it must be provided if the image is in a.out format or in some other format. When the address tag is present it must be used in order to load the image, regardless of whether an @sc{elf} header is also present. Compliant boot loaders must be able to load images that are either in @sc{elf} format or contain the address tag embedded in the Multiboot2 header."

LGTM. Thanks!

Daniel