/usr/share/doc/radare-doc/html/Section3.7.html is in radare-doc 1:1.5.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=US-ASCII">
<title>Flags</title>
<link rel="previous" href="Section3.6.html">
<link rel="ToC" href="contents.html">
<link rel="next" href="Section3.7.1.html">
</head>
<body>
<h1><a name="flagsmin"></a>3.7 Flags</h1>
<p>
The flags are bookmarks at a certain offset in the file that can be stored inside 'flag spaces'. A flag space is something like a namespace for flags. They are used to group flags with similar characteristics or of a certain type. Some example of flagspaces could be [i]sections, registers, symbols, search hits[/i], etc.
</p>
<p>
To create a flag just type:
</p>
<pre><code>> f flag_name @ offset
</code></pre>
<p>
You can remove this flag adding '-' at the begginging of the command. Most commands accept '-' as argument-prefix as a way to delete.
</p>
<pre><code>> f -flag_name
</code></pre>
<p>
To switch/create between flagspaces use the 'fs' command:
</p>
<pre><code>[0x4A13B8C0]> fs ; list flag spaces
00 symbols
01 imports
02 sections
03 strings
04 regs
05 maps
</code></pre>
<pre><code>> fs symbols
> f ; list only flags in symbols flagspace
...
> fs * ; select all flagspaces
</code></pre>
<p>
You can create two flags with the same name with 'fn' or rename them with 'fr'.
</p>
<p>
Sometimes you'll like to add some flags adding a delta base address to each of them. To do this use the command 'ff' (flag from) which is used to specify this base address. Here's an example:
</p>
<pre><code>[0x00000000]> f patata
[0x00000000]> ? patata
0x0 ; 0d ; 0o ; 0000 0000
[0x00000000]> ff 0x100
[0x00000000]> f patata
[0x00000000]> ? patata
0x100 ; 256d ; 400o ; 0000 0000
[0x00000000]> ff
0x00000100
[0x00000000]> ff 0 ; reset flag from
</code></pre>
<ul>
<li><a href="Section3.7.1.html#flagsint">3.7.1 Flag intersections</a></li>
</ul>
<!-- version IDs:
$Id: radare.but 2009-04-25 pancake $
-->
</body>
</html>
|